@allxsmith/bestax-bulma 5.67.11 → 5.67.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allxsmith/bestax-bulma",
3
- "version": "5.67.11",
3
+ "version": "5.67.12",
4
4
  "description": "Component library based on React, Bulma, with Agent Skills and MCP",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.esm.js",
@@ -15,3 +15,4 @@
15
15
  @use 'ringprogress';
16
16
  @use 'skeleton';
17
17
  @use 'stat';
18
+ @use 'tag';
@@ -1,6 +1,6 @@
1
1
  // Notification Styles
2
2
  // Bulma already styles the notification; this keeps its text clear of the
3
- // close button, and gives the dark color back its own look
3
+ // close button, and gives the dark and light colors back their own looks
4
4
 
5
5
  @use "bulma/sass/utilities/initial-variables" as iv;
6
6
  @use "bulma/sass/utilities/css-variables" as cv;
@@ -96,3 +96,21 @@ $-delete-sizes: (
96
96
  )
97
97
  );
98
98
  }
99
+
100
+ // The same nesting writes the light color's light variant as
101
+ // `.notification.is-light.is-light`, which matches every light notification,
102
+ // with a 90% background and the text's lightness read from
103
+ // `--bulma-light-light-invert-l`, which Bulma doesn't define either. This puts
104
+ // back what `.notification.is-light` sets. Its `:not()` names every other
105
+ // color, `dark` included, so a dark notification with `isLight` keeps the rule
106
+ // above.
107
+ .#{iv.$class-prefix}notification.#{iv.$class-prefix}is-light.#{iv.$class-prefix}is-light:not(
108
+ #{extras-color-classes("light")}
109
+ ) {
110
+ @include cv.register-vars(
111
+ (
112
+ "notification-background-l": #{cv.getVar("light-l")},
113
+ "notification-color-l": #{cv.getVar("light-invert-l")},
114
+ )
115
+ );
116
+ }
@@ -0,0 +1,29 @@
1
+ // Tag Styles
2
+ // Bulma already styles the tag; this gives the light color back its own text
3
+
4
+ @use 'bulma/sass/utilities/initial-variables' as iv;
5
+ @use 'bulma/sass/utilities/css-variables' as cv;
6
+ @use '../color-classes' as *;
7
+
8
+ // Bulma nests a light variant, `&.is-light`, in each color of its tag. For the
9
+ // light color it is `.tag.is-light.is-light`, and a class repeated in a
10
+ // selector matches an element that has it once, so every light tag gets it.
11
+ // It reads the text's lightness from `--bulma-light-light-invert-l`, which
12
+ // Bulma doesn't define, so the text inherits the color around it, which on the
13
+ // dark scheme is light text on the light tag. Its background is already the
14
+ // light color's own.
15
+ //
16
+ // This puts back the text's lightness `.tag.is-light` sets. The `:not()`
17
+ // skips a tag that carries another color, so Bulma's light variant of that
18
+ // color (`is-primary is-light`) keeps its look, and adds a class's weight, so
19
+ // the rule outranks Bulma's whichever stylesheet loads first. Once Bulma fixes
20
+ // its loop, this restates Bulma's value and can go.
21
+ .#{iv.$class-prefix}tag.#{iv.$class-prefix}is-light.#{iv.$class-prefix}is-light:not(
22
+ #{extras-color-classes('light')}
23
+ ) {
24
+ @include cv.register-vars(
25
+ (
26
+ 'tag-color-l': #{cv.getVar('light-invert-l')},
27
+ )
28
+ );
29
+ }