@allxsmith/bestax-bulma 5.57.2 → 5.57.4
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/Th.js.map +1 -1
- package/dist/extras.css +1 -1
- package/dist/extras.css.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/types/elements/Th.d.ts +6 -1
- package/dist/types-cjs/elements/Th.d.ts +6 -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/CLAUDE.md +5 -1
- package/src/scss/bestax.scss +4 -2
- package/src/scss/elements/_delete.scss +63 -0
- package/src/scss/elements/_index.scss +1 -0
- package/src/scss/form/_dropzone.scss +0 -34
- package/src/scss/versions/bestax-no-dark-mode.scss +2 -1
- package/src/scss/versions/bestax-no-helpers-prefixed.scss +2 -1
- package/src/scss/versions/bestax-no-helpers.scss +2 -1
- package/src/scss/versions/bestax-prefixed.scss +6 -1
package/src/scss/bestax.scss
CHANGED
|
@@ -6,8 +6,10 @@
|
|
|
6
6
|
// Usage (SCSS source):
|
|
7
7
|
// @use '@allxsmith/bestax-bulma/scss/bestax';
|
|
8
8
|
|
|
9
|
-
// Include all of Bulma
|
|
10
|
-
|
|
9
|
+
// Include all of Bulma, with bestax blue as primary, and table header cells
|
|
10
|
+
// aligned to the start of the line, as body cells are, rather than Bulma's
|
|
11
|
+
// `left`, so they follow a right-to-left page
|
|
12
|
+
@use 'bulma/sass' with ($primary: #1e6b99, $table-cell-text-align: start);
|
|
11
13
|
|
|
12
14
|
// Include bestax extras
|
|
13
15
|
@use 'variables';
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// Bestax Extras - Delete Styles
|
|
2
|
+
// Bulma draws a delete button's circle and its cross as background colors,
|
|
3
|
+
// on the button and on its `::before` and `::after`, and draws the Modal's
|
|
4
|
+
// floating close and a delete tag's cross the same way. Forced colors
|
|
5
|
+
// (Windows' contrast themes) replaces background colors with the system's, so
|
|
6
|
+
// the buttons vanish, or their cross does, while they still work and still
|
|
7
|
+
// take focus. This keeps them drawn there, in the system's button colors: the
|
|
8
|
+
// circle in ButtonFace with a ButtonText edge, and the cross in ButtonText.
|
|
9
|
+
// The floating close has no circle, so it gets only the cross. Outside forced
|
|
10
|
+
// colors it changes nothing.
|
|
11
|
+
//
|
|
12
|
+
// `.delete` is `Delete`, which every other close button bestax renders is
|
|
13
|
+
// too, apart from the Modal's floating close (`.modal-close`) and `Tag
|
|
14
|
+
// isDelete` (`.tag.is-delete`).
|
|
15
|
+
//
|
|
16
|
+
// `forced-color-adjust: none` keeps these colors, and the focus ring's too,
|
|
17
|
+
// which would then be Bulma's focus color rather than the user's, so the ring
|
|
18
|
+
// takes the system's Highlight. It would also keep a disabled one looking
|
|
19
|
+
// like the rest, so that one's edge and cross take GrayText, the system's
|
|
20
|
+
// color for a disabled control: a `Delete` with `disabled`, which writes
|
|
21
|
+
// Bulma's `is-disabled` too, and any of them inside a disabled `<fieldset>`.
|
|
22
|
+
//
|
|
23
|
+
// Bulma's CSS can land on either side of this partial, as it can for
|
|
24
|
+
// `_loader.scss`, which says why, so each selector names its last class twice
|
|
25
|
+
// to outrank Bulma's rule for the same element, wherever the two load.
|
|
26
|
+
|
|
27
|
+
@use 'bulma/sass/utilities/initial-variables' as iv;
|
|
28
|
+
|
|
29
|
+
@media (forced-colors: active) {
|
|
30
|
+
.#{iv.$class-prefix}delete.#{iv.$class-prefix}delete,
|
|
31
|
+
.#{iv.$class-prefix}tag.#{iv.$class-prefix}is-delete.#{iv.$class-prefix}is-delete {
|
|
32
|
+
background-color: ButtonFace;
|
|
33
|
+
border: 1px solid ButtonText;
|
|
34
|
+
|
|
35
|
+
&:disabled,
|
|
36
|
+
&.#{iv.$class-prefix}is-disabled {
|
|
37
|
+
border-color: GrayText;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.#{iv.$class-prefix}delete.#{iv.$class-prefix}delete,
|
|
42
|
+
.#{iv.$class-prefix}modal-close.#{iv.$class-prefix}modal-close,
|
|
43
|
+
.#{iv.$class-prefix}tag.#{iv.$class-prefix}is-delete.#{iv.$class-prefix}is-delete {
|
|
44
|
+
forced-color-adjust: none;
|
|
45
|
+
|
|
46
|
+
&::before,
|
|
47
|
+
&::after {
|
|
48
|
+
background-color: ButtonText;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&:disabled,
|
|
52
|
+
&.#{iv.$class-prefix}is-disabled {
|
|
53
|
+
&::before,
|
|
54
|
+
&::after {
|
|
55
|
+
background-color: GrayText;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&:focus-visible {
|
|
60
|
+
outline-color: Highlight;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -197,37 +197,3 @@ $dropzone-size-font-size: cv.getVar('size-small') !default;
|
|
|
197
197
|
flex: none;
|
|
198
198
|
font-size: cv.getVar('dropzone-size-font-size');
|
|
199
199
|
}
|
|
200
|
-
|
|
201
|
-
// Bulma shows a delete button's focus only as a slightly darker circle, so a
|
|
202
|
-
// row's remove button takes a ring from the keyboard, in Bulma's focus
|
|
203
|
-
// colour, style and width.
|
|
204
|
-
.#{iv.$class-prefix}dropzone-item .#{iv.$class-prefix}delete:focus-visible {
|
|
205
|
-
outline-color: hsl(
|
|
206
|
-
cv.getVar('focus-h'),
|
|
207
|
-
cv.getVar('focus-s'),
|
|
208
|
-
cv.getVar('focus-l')
|
|
209
|
-
);
|
|
210
|
-
outline-offset: cv.getVar('focus-offset');
|
|
211
|
-
outline-style: cv.getVar('focus-style');
|
|
212
|
-
outline-width: cv.getVar('focus-width');
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
// Bulma draws a delete button's circle and cross as backgrounds, which forced
|
|
216
|
-
// colours paints over, so the remove buttons would vanish. They keep their
|
|
217
|
-
// own colours there, in the system's button colours.
|
|
218
|
-
@media (forced-colors: active) {
|
|
219
|
-
.#{iv.$class-prefix}dropzone-item .#{iv.$class-prefix}delete {
|
|
220
|
-
background-color: ButtonFace;
|
|
221
|
-
border: 1px solid ButtonText;
|
|
222
|
-
forced-color-adjust: none;
|
|
223
|
-
|
|
224
|
-
&::before,
|
|
225
|
-
&::after {
|
|
226
|
-
background-color: ButtonText;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
&:focus-visible {
|
|
230
|
-
outline-color: Highlight;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
}
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
|
|
20
20
|
@forward "bulma/sass/utilities";
|
|
21
21
|
@forward "bulma/sass/base";
|
|
22
|
-
|
|
22
|
+
// Table header cells align to the start of the line, as in bestax.scss.
|
|
23
|
+
@forward "bulma/sass/elements" with ($table-cell-text-align: start !default);
|
|
23
24
|
@forward "bulma/sass/form";
|
|
24
25
|
@forward "bulma/sass/components";
|
|
25
26
|
@forward "bulma/sass/grid";
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
@use "bulma/sass/utilities" with ($class-prefix: "bestax-", $primary: #1e6b99);
|
|
9
9
|
@forward "bulma/sass/themes";
|
|
10
10
|
@forward "bulma/sass/base";
|
|
11
|
-
|
|
11
|
+
// Table header cells align to the start of the line, as in bestax.scss.
|
|
12
|
+
@forward "bulma/sass/elements" with ($table-cell-text-align: start !default);
|
|
12
13
|
@forward "bulma/sass/form";
|
|
13
14
|
@forward "bulma/sass/components";
|
|
14
15
|
@forward "bulma/sass/grid";
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
@forward "bulma/sass/utilities";
|
|
10
10
|
@forward "bulma/sass/themes";
|
|
11
11
|
@forward "bulma/sass/base";
|
|
12
|
-
|
|
12
|
+
// Table header cells align to the start of the line, as in bestax.scss.
|
|
13
|
+
@forward "bulma/sass/elements" with ($table-cell-text-align: start !default);
|
|
13
14
|
@forward "bulma/sass/form";
|
|
14
15
|
@forward "bulma/sass/components";
|
|
15
16
|
@forward "bulma/sass/grid";
|
|
@@ -5,7 +5,12 @@
|
|
|
5
5
|
//
|
|
6
6
|
// All CSS classes will be prefixed with "bestax-", e.g. "bestax-button", "bestax-is-primary"
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// Table header cells align to the start of the line, as in bestax.scss.
|
|
9
|
+
@use 'bulma/sass' with (
|
|
10
|
+
$class-prefix: "bestax-",
|
|
11
|
+
$primary: #1e6b99,
|
|
12
|
+
$table-cell-text-align: start
|
|
13
|
+
);
|
|
9
14
|
|
|
10
15
|
@use '../variables';
|
|
11
16
|
@use '../mixins';
|