@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/dist/bestax.css +1 -1
- package/dist/bestax.css.map +1 -1
- package/dist/esm/elements/Button.js +3 -1
- package/dist/esm/elements/Button.js.map +1 -1
- package/dist/esm/elements/Notification.js +3 -1
- package/dist/esm/elements/Notification.js.map +1 -1
- package/dist/esm/elements/Tag.js +3 -1
- package/dist/esm/elements/Tag.js.map +1 -1
- package/dist/esm/form/ColorInputBase.js +3 -1
- package/dist/esm/form/ColorInputBase.js.map +1 -1
- package/dist/extras.css +1 -1
- package/dist/extras.css.map +1 -1
- package/dist/index.cjs +12 -4
- package/dist/index.cjs.map +1 -1
- package/dist/types/elements/Notification.d.ts +16 -12
- package/dist/types/elements/Tag.d.ts +11 -2
- package/dist/types-cjs/elements/Notification.d.ts +16 -12
- package/dist/types-cjs/elements/Tag.d.ts +11 -2
- package/dist/versions/bestax-no-dark-mode.css +1 -1
- package/dist/versions/bestax-no-dark-mode.css.map +1 -1
- package/dist/versions/bestax-no-helpers-prefixed.css +1 -1
- package/dist/versions/bestax-no-helpers-prefixed.css.map +1 -1
- package/dist/versions/bestax-no-helpers.css +1 -1
- package/dist/versions/bestax-no-helpers.css.map +1 -1
- package/dist/versions/bestax-prefixed.css +1 -1
- package/dist/versions/bestax-prefixed.css.map +1 -1
- package/package.json +1 -1
- package/src/scss/elements/_index.scss +1 -0
- package/src/scss/elements/_notification.scss +19 -1
- package/src/scss/elements/_tag.scss +29 -0
package/package.json
CHANGED
|
@@ -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
|
|
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
|
+
}
|