@allxsmith/bestax-bulma 5.66.0 → 5.66.1
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/components/Navbar.js +1 -1
- package/dist/esm/components/Navbar.js.map +1 -1
- package/dist/extras.css +1 -1
- package/dist/extras.css.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/types/components/Navbar.d.ts +11 -1
- package/dist/types-cjs/components/Navbar.d.ts +11 -1
- 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/components/_pagination.scss +31 -2
- package/src/scss/components/_tooltip.scss +19 -0
- package/src/scss/elements/_button.scss +27 -3
package/package.json
CHANGED
|
@@ -4,15 +4,23 @@
|
|
|
4
4
|
// replaces all three with the system's, so the current page looks like every
|
|
5
5
|
// other page there. This draws it in Highlight and HighlightText, the pair the
|
|
6
6
|
// system keeps for a selection, the way the themed Checkbox marks a checked
|
|
7
|
-
// box. `forced-color-adjust: none` keeps them. Outside forced colors
|
|
8
|
-
//
|
|
7
|
+
// box. `forced-color-adjust: none` keeps them. Outside forced colors those
|
|
8
|
+
// colors change nothing.
|
|
9
9
|
//
|
|
10
10
|
// It reads the classes Bulma highlights, `is-current` and its other name
|
|
11
11
|
// `is-selected`, so a hand-written current link gets it too, and so does
|
|
12
12
|
// `DataTable`'s pager, which is a `Pagination`. Two classes outrank Bulma's
|
|
13
13
|
// colors for a link, wherever the two stylesheets load.
|
|
14
|
+
//
|
|
15
|
+
// Bulma's control mixin also sets `outline: none` on `:focus-visible`, which
|
|
16
|
+
// outranks Bulma's own link ring, so a keyboard user sees only the hover
|
|
17
|
+
// shade. The rules below bring that outline back. The `.pagination` ancestor
|
|
18
|
+
// outranks the mixin's `outline: none` whichever stylesheet loads first.
|
|
19
|
+
// `:focus-visible` keeps the ring off a mouse click, and an item without
|
|
20
|
+
// keyboard focus looks as it does now.
|
|
14
21
|
|
|
15
22
|
@use 'bulma/sass/utilities/initial-variables' as iv;
|
|
23
|
+
@use 'bulma/sass/utilities/css-variables' as cv;
|
|
16
24
|
|
|
17
25
|
@media (forced-colors: active) {
|
|
18
26
|
.#{iv.$class-prefix}pagination-link.#{iv.$class-prefix}is-current,
|
|
@@ -23,3 +31,24 @@
|
|
|
23
31
|
color: HighlightText;
|
|
24
32
|
}
|
|
25
33
|
}
|
|
34
|
+
|
|
35
|
+
.#{iv.$class-prefix}pagination .#{iv.$class-prefix}pagination-previous:focus-visible,
|
|
36
|
+
.#{iv.$class-prefix}pagination .#{iv.$class-prefix}pagination-next:focus-visible,
|
|
37
|
+
.#{iv.$class-prefix}pagination .#{iv.$class-prefix}pagination-link:focus-visible {
|
|
38
|
+
outline-color: hsl(
|
|
39
|
+
cv.getVar('focus-h'),
|
|
40
|
+
cv.getVar('focus-s'),
|
|
41
|
+
cv.getVar('focus-l')
|
|
42
|
+
);
|
|
43
|
+
outline-style: cv.getVar('focus-style');
|
|
44
|
+
outline-width: cv.getVar('focus-width');
|
|
45
|
+
outline-offset: cv.getVar('focus-offset');
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// The current page is filled with the link color, which the focus color
|
|
49
|
+
// matches by default, so its ring takes the page's text color, inside the fill.
|
|
50
|
+
.#{iv.$class-prefix}pagination .#{iv.$class-prefix}pagination-link.#{iv.$class-prefix}is-current:focus-visible,
|
|
51
|
+
.#{iv.$class-prefix}pagination .#{iv.$class-prefix}pagination-link.#{iv.$class-prefix}is-selected:focus-visible {
|
|
52
|
+
outline-color: currentColor;
|
|
53
|
+
outline-offset: calc(-2 * #{cv.getVar('focus-width')});
|
|
54
|
+
}
|
|
@@ -323,3 +323,22 @@ $tooltip-large-arrow-size: 7px !default;
|
|
|
323
323
|
)
|
|
324
324
|
);
|
|
325
325
|
}
|
|
326
|
+
|
|
327
|
+
// Forced colors turns the box's background into the page's and paints every
|
|
328
|
+
// side of the arrow. An outline, not a border, so the tooltip doesn't grow.
|
|
329
|
+
// Only the arrow opts out, so its transparent sides stay transparent and the
|
|
330
|
+
// side that points takes the system's text color.
|
|
331
|
+
@media (forced-colors: active) {
|
|
332
|
+
.#{iv.$class-prefix}tooltip-content {
|
|
333
|
+
outline: 1px solid CanvasText;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.#{iv.$class-prefix}tooltip-content::before {
|
|
337
|
+
forced-color-adjust: none;
|
|
338
|
+
@include cv.register-vars(
|
|
339
|
+
(
|
|
340
|
+
"tooltip-background": CanvasText,
|
|
341
|
+
)
|
|
342
|
+
);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
@@ -17,13 +17,29 @@
|
|
|
17
17
|
// The ghost rule doesn't ask for LinkButton's class, since a ghost Button has
|
|
18
18
|
// none.
|
|
19
19
|
//
|
|
20
|
+
// Forced colors also replaces a colored button's fill, and Bulma sets its
|
|
21
|
+
// border width to 0, so in Chromium the button has no edge and an icon-only
|
|
22
|
+
// one shows only its glyph. The last rule gives those buttons back a 1px
|
|
23
|
+
// border there. An outlined button keeps the width it sets, and Bulma
|
|
24
|
+
// subtracts the width from the padding, so the size stays the same. Bulma
|
|
25
|
+
// gives a colored button that same border only while it's focused, so with
|
|
26
|
+
// one at rest the outline above is what shows focus.
|
|
27
|
+
//
|
|
28
|
+
// Bulma's colors include `text`, but `.button.is-text` is a text button, as
|
|
29
|
+
// `Button color="text"` and LinkButton's text and underline variants render
|
|
30
|
+
// it. It has no fill to lose, and a border at rest would draw a box around a
|
|
31
|
+
// link, so the loop leaves it out.
|
|
32
|
+
//
|
|
20
33
|
// Bulma's CSS can land on either side of this partial, as `_loader.scss`
|
|
21
|
-
// says, so each selector outranks
|
|
22
|
-
//
|
|
23
|
-
//
|
|
34
|
+
// says, so each selector outranks Bulma's rule by its classes: the ghost rule
|
|
35
|
+
// has three to the mixin's two, the forced colors outline names `.button`
|
|
36
|
+
// twice, as `_delete.scss` does, and the border names the color class twice
|
|
37
|
+
// to outrank Bulma's `.button.is-<color>`.
|
|
24
38
|
|
|
39
|
+
@use 'sass:map';
|
|
25
40
|
@use 'bulma/sass/utilities/initial-variables' as iv;
|
|
26
41
|
@use 'bulma/sass/utilities/css-variables' as cv;
|
|
42
|
+
@use 'bulma/sass/utilities/derived-variables' as dv;
|
|
27
43
|
|
|
28
44
|
@mixin -focus-outline {
|
|
29
45
|
outline-color: hsl(
|
|
@@ -46,4 +62,12 @@
|
|
|
46
62
|
.#{iv.$class-prefix}button.#{iv.$class-prefix}button:not(.#{iv.$class-prefix}is-loading).#{iv.$class-prefix}is-focused {
|
|
47
63
|
@include -focus-outline;
|
|
48
64
|
}
|
|
65
|
+
|
|
66
|
+
@each $name in map.keys(map.remove(dv.$colors, 'text')) {
|
|
67
|
+
.#{iv.$class-prefix}button.#{iv.$class-prefix}is-#{$name}.#{iv.$class-prefix}is-#{$name}:not(
|
|
68
|
+
.#{iv.$class-prefix}is-outlined
|
|
69
|
+
) {
|
|
70
|
+
@include cv.register-var('button-border-width', 1px);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
49
73
|
}
|