@finstack-com-public/design 0.10.1 → 0.10.3
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/CHANGELOG.md +81 -0
- package/dist/css/breadcrumbs.css +7 -0
- package/dist/css/button.css +14 -0
- package/dist/css/checkbox.css +3 -1
- package/dist/css/data-type.md +1 -1
- package/dist/css/diag.md +1 -1
- package/dist/css/disclosure.css +7 -0
- package/dist/css/drag.css +7 -0
- package/dist/css/drag.md +2 -0
- package/dist/css/dropzone.css +9 -0
- package/dist/css/field.css +18 -0
- package/dist/css/grid.css +25 -0
- package/dist/css/icon-button.css +10 -0
- package/dist/css/icon.md +7 -2
- package/dist/css/input.css +24 -0
- package/dist/css/menu.css +20 -0
- package/dist/css/pill.css +7 -0
- package/dist/css/progress.css +17 -0
- package/dist/css/stacked-bar.css +16 -0
- package/dist/css/table.css +8 -0
- package/dist/css/tabs.css +9 -0
- package/dist/css/tokens.css +9 -3
- package/dist/css/tree.css +8 -0
- package/dist/css-text/breadcrumbs.js +1 -1
- package/dist/css-text/button.js +1 -1
- package/dist/css-text/checkbox.js +1 -1
- package/dist/css-text/disclosure.js +1 -1
- package/dist/css-text/drag.js +1 -1
- package/dist/css-text/dropzone.js +1 -1
- package/dist/css-text/field.js +1 -1
- package/dist/css-text/grid.js +1 -1
- package/dist/css-text/icon-button.js +1 -1
- package/dist/css-text/input.js +1 -1
- package/dist/css-text/kit.js +218 -4
- package/dist/css-text/menu.js +1 -1
- package/dist/css-text/pill.js +1 -1
- package/dist/css-text/progress.js +1 -1
- package/dist/css-text/stacked-bar.js +1 -1
- package/dist/css-text/table.js +1 -1
- package/dist/css-text/tabs.js +1 -1
- package/dist/css-text/tokens.js +1 -1
- package/dist/css-text/tree.js +1 -1
- package/dist/grid.json +2 -1
- package/dist/icons/masks.css +167 -1
- package/dist/kit.css +218 -4
- package/dist/tokens/contrast-pairs.js +22 -3
- package/dist/tokens/grid.d.ts +1 -0
- package/dist/tokens/grid.js +2 -1
- package/dist/tokens/index.d.ts +2 -2
- package/dist/tokens.json +3 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,87 @@
|
|
|
3
3
|
Written by hand for each release. Token names, class names, file paths and exports are the
|
|
4
4
|
public API. While the kit is 0.x, a minor version may break them, and its entry says so.
|
|
5
5
|
|
|
6
|
+
## 0.10.3 — 2026-11-15
|
|
7
|
+
|
|
8
|
+
Nothing breaks. Two colours change: in dark, the checked checkbox and radio mark is navy instead of white; in light,
|
|
9
|
+
the grid's stale dot is a darker amber. Both now meet their contrast floor. In forced colours, the refused drag ghost and
|
|
10
|
+
the pill, legend and stale dots show.
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **The checked checkbox and radio mark is visible in dark (T126, I21):** the check, dash and dot are drawn in
|
|
15
|
+
`--fs-bg-surface` (navy in dark, 8.1:1 on the accent) instead of white (2.0:1). Light is unchanged.
|
|
16
|
+
`--fs-ink-on-accent` keeps its value.
|
|
17
|
+
- **The grid's stale dot reaches 3:1 in light (T128, I22):** `--fs-grid-stale-dot` is `#c27c00` (3.4:1 on the
|
|
18
|
+
surface) instead of `#f9a825` (2.0:1). Dark is unchanged.
|
|
19
|
+
- **The pill, legend and stale dots show in forced colours (T128, I23):** each fills `CanvasText`; the legend dots take
|
|
20
|
+
the mark dot's shapes (solid, half filled, ring).
|
|
21
|
+
- **A refused drag ghost shows in forced colours (T112):** `.fs-drag-ghost.fs-is-refused` draws a 4 px dashed
|
|
22
|
+
`CanvasText` outline inside its edge. Forced colours had dropped its danger wash and painted its outline like an
|
|
23
|
+
accepted ghost's. The mark dot already kept its three kinds there (checked, no change).
|
|
24
|
+
|
|
25
|
+
### Docs
|
|
26
|
+
|
|
27
|
+
- **Upgrading from 0.7 (T110):** `docs/guides/upgrade-0.7-to-0.10.md` lists what changes, what to add and what to adopt
|
|
28
|
+
for an app on kit 0.7.0. It is in the repo, not the package.
|
|
29
|
+
- **Tests (T111):** the browser checks are faster (Firefox and WebKit about 7.5 and 11 minutes, from 18) with the same
|
|
30
|
+
checks. No change to the package.
|
|
31
|
+
- **Recipes for BI App (T119):** `docs/guides/bi-app-recipes.md` shows a picker that opens from a button and gives
|
|
32
|
+
focus back, the editing cell's red ink, forced-colours cues, a tab bar with arrow keys, and a toolbar, each run by a
|
|
33
|
+
test in this repo. It is in the repo, not the package.
|
|
34
|
+
- **Drafts (T113, T114, T118):** `docs/spec/drafts/` holds proposals for the combobox, custom select, switch and slider,
|
|
35
|
+
for a dimmed diagram node that keeps its text readable, and for grid keyboard movement. Nothing in them is built
|
|
36
|
+
or decided.
|
|
37
|
+
- **Spec 06 §7 lists the forced-colours cue of each component and state (T127)**, with its ticket and test; the
|
|
38
|
+
old summary's "selected adds a Highlight outline", "status dots become CanvasText" and its disabled list are corrected.
|
|
39
|
+
|
|
40
|
+
### Tooling
|
|
41
|
+
|
|
42
|
+
- **Tests that guard consumers and docs (T115, T116, T121):** 187 more unit tests; a consumer contract that fails the
|
|
43
|
+
kit's CI when a change would break a class, token, export or prop that BI App or Grizzbi uses; and a check that
|
|
44
|
+
every kit name a usage note or guide shows exists. No change to the package.
|
|
45
|
+
- **`npm run release:check` (T120):** installs the packed package in a scratch folder and imports every export before
|
|
46
|
+
a release. No change to the package.
|
|
47
|
+
- **Contrast-pair coverage (T125):** a test reads the kit CSS and fails on a colour pair that `contrast-pairs.ts`
|
|
48
|
+
doesn't check and no reasoned allow-list entry covers; 14 pairs added, one new known issue (I22).
|
|
49
|
+
- **Forced-colours cases for every row of spec 06 §7 (T129):** the calendar range edges, node frame and rows, diagram
|
|
50
|
+
and xyflow lines, end circles and arrows, the lock chip, parameter badge, data-type badge and glass edges, and the
|
|
51
|
+
invalid textarea and select; green on Chromium, Firefox and WebKit.
|
|
52
|
+
- **Forced-colours grounds (T130):** the diagram's dot grid is gone and the glass ground is plain in forced colours,
|
|
53
|
+
each checked by a case. No change to the package.
|
|
54
|
+
|
|
55
|
+
## 0.10.2 — 2026-11-14
|
|
56
|
+
|
|
57
|
+
Nothing breaks. Upgrading from 0.10.1 needs no change. The normal look is unchanged; only the light grid's editing
|
|
58
|
+
cell (red ink) and forced colours look different.
|
|
59
|
+
|
|
60
|
+
### Added
|
|
61
|
+
|
|
62
|
+
- **`--fs-grid-editing-danger-ink` (T108):** a grid token for red ink (negative, error, invalid) inside
|
|
63
|
+
`.fs-cell--editing`: `#b71c1c` in the light theme (4.92:1 on `--fs-grid-editing-bg`; `#c62828` was 4.21:1), and
|
|
64
|
+
`#ff8a80` in the dark theme, the red the editing cell already had. Every other red ink is unchanged.
|
|
65
|
+
|
|
66
|
+
### Fixed
|
|
67
|
+
|
|
68
|
+
- **`icons/masks.css` sets the layer order (T106):** it now starts with the kit's `@layer` order statement, so it can
|
|
69
|
+
load before or after `kit.css`. Before, loaded first it made `fs.utilities` the weakest layer, and component rules
|
|
70
|
+
beat the mask classes' rules.
|
|
71
|
+
- **Mask icons in components keep the component's size (T106):** the mask classes' base look, with its `1em` size,
|
|
72
|
+
moved from `fs.utilities` to `fs.base`. A mask icon in a button or a notice (`.fs-button__icon`,
|
|
73
|
+
`.fs-notice__icon`) is 16 px again, as those rules say, whichever sheet loads first; with `kit.css` loaded first the
|
|
74
|
+
`1em` size had beaten them. `.fs-i--14` … `--24` stay in `fs.utilities`.
|
|
75
|
+
- **Mask-drawn glyphs show in forced colours (T105):** the disclosure chevron (and the grid, table and tree rows that
|
|
76
|
+
reuse it), the breadcrumb separator, the select arrow and the menu check mark are drawn in `CanvasText` (`GrayText`
|
|
77
|
+
when disabled); the `.fs-i-*` mask icons take their parent's forced colour (`forced-color-adjust:
|
|
78
|
+
preserve-parent-color`). Before, they painted in the background colour and vanished.
|
|
79
|
+
- **State cues show in forced colours (T107):** 16 cues that forced colours erased are drawn with system colours: a
|
|
80
|
+
pressed button and icon button, a selected table row and tree item (`Highlight`/`HighlightText`); the current, done
|
|
81
|
+
and failed progress steps; an invalid input and field box (an inner `CanvasText` outline, replaced by the focus ring
|
|
82
|
+
while focused); an invalid or error grid cell (a wavy underline); a disabled input and field box and an
|
|
83
|
+
`aria-disabled` button, icon button and tab (`GrayText`); and a slot under a drag (a `Highlight` outline). Focus
|
|
84
|
+
rings were already kept (the outline survives; only the halo goes). A disabled menu item and its icon are drawn in
|
|
85
|
+
`GrayText` too (T109; Firefox had drawn it like an enabled item).
|
|
86
|
+
|
|
6
87
|
## 0.10.1 — 2026-11-12
|
|
7
88
|
|
|
8
89
|
Nothing breaks. Upgrading from 0.10.0 needs no change.
|
package/dist/css/breadcrumbs.css
CHANGED
|
@@ -66,4 +66,11 @@
|
|
|
66
66
|
outline-offset: var(--fs-ring-halo-width);
|
|
67
67
|
box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);
|
|
68
68
|
}
|
|
69
|
+
|
|
70
|
+
/* Forced colours erase a fill, so the separator's mask is drawn in CanvasText (T105). */
|
|
71
|
+
@media (forced-colors: active) {
|
|
72
|
+
.fs-breadcrumbs__item + .fs-breadcrumbs__item::before {
|
|
73
|
+
background-color: CanvasText;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
69
76
|
}
|
package/dist/css/button.css
CHANGED
|
@@ -158,4 +158,18 @@
|
|
|
158
158
|
transform: rotate(360deg);
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
+
|
|
162
|
+
/* Forced colours erase the pressed fill and the accent edge, so pressed takes the system's
|
|
163
|
+
selection colours; aria-disabled gets GrayText, as a native :disabled button does (T107). */
|
|
164
|
+
@media (forced-colors: active) {
|
|
165
|
+
.fs-button[aria-pressed='true'] {
|
|
166
|
+
--fs-button-ink: HighlightText;
|
|
167
|
+
background-color: Highlight;
|
|
168
|
+
border-color: Highlight;
|
|
169
|
+
}
|
|
170
|
+
.fs-button[aria-disabled='true'] {
|
|
171
|
+
--fs-button-ink: GrayText;
|
|
172
|
+
border-color: GrayText;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
161
175
|
}
|
package/dist/css/checkbox.css
CHANGED
|
@@ -36,7 +36,9 @@
|
|
|
36
36
|
content: '';
|
|
37
37
|
position: absolute;
|
|
38
38
|
inset: 0;
|
|
39
|
-
|
|
39
|
+
/* The mark is the surface colour on the accent (I21): white in light as before; in dark the navy surface,
|
|
40
|
+
8.1:1 on the light-blue accent where white was 2.0:1. Not ink-on-accent, which products read for text. */
|
|
41
|
+
background: var(--fs-bg-surface);
|
|
40
42
|
visibility: hidden;
|
|
41
43
|
}
|
|
42
44
|
.fs-checkbox__input::before {
|
package/dist/css/data-type.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Data-type badge — `.fs-data-type`
|
|
2
2
|
|
|
3
3
|
Spec 02 F (T93, Phase G). CSS: `css/data-type.css` (the tip is `css/tooltip.css`). Gallery: `diagram.html`. Not the object-type
|
|
4
|
-
icon: that is `.fs-type-icon
|
|
4
|
+
icon: that is `.fs-type-icon--<role>` (`css/type-icon.md`, spec 01 §3.7), which colours an icon by object type. This one marks a
|
|
5
5
|
column's **data** type.
|
|
6
6
|
|
|
7
7
|
```html
|
package/dist/css/diag.md
CHANGED
package/dist/css/disclosure.css
CHANGED
|
@@ -90,4 +90,11 @@
|
|
|
90
90
|
background: var(--fs-gap-wash);
|
|
91
91
|
border-color: var(--fs-gap-edge);
|
|
92
92
|
}
|
|
93
|
+
|
|
94
|
+
/* Forced colours erase a fill, so the chevron's mask is drawn in CanvasText (T105, as node.css does). */
|
|
95
|
+
@media (forced-colors: active) {
|
|
96
|
+
.fs-disclosure__summary::before {
|
|
97
|
+
background-color: CanvasText;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
93
100
|
}
|
package/dist/css/drag.css
CHANGED
|
@@ -95,6 +95,13 @@
|
|
|
95
95
|
background: var(--fs-danger-wash);
|
|
96
96
|
outline-color: var(--fs-danger-fill);
|
|
97
97
|
}
|
|
98
|
+
/* Forced colours drops the wash and paints both outlines in the text colour: refused is a thicker dashed outline. */
|
|
99
|
+
@media (forced-colors: active) {
|
|
100
|
+
.fs-drag-ghost.fs-is-refused {
|
|
101
|
+
outline: 4px dashed CanvasText;
|
|
102
|
+
outline-offset: -4px;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
98
105
|
|
|
99
106
|
.fs-add-cell {
|
|
100
107
|
display: grid;
|
package/dist/css/drag.md
CHANGED
|
@@ -15,5 +15,7 @@ Spec 02 F (BI App's page builder, tree and editors). CSS: `css/drag.css`. Galler
|
|
|
15
15
|
- `.fs-add-cell` has `--fs-space-3` of horizontal padding, so a label such as "+ Add" does not touch the dashed edge.
|
|
16
16
|
- The kit styles the markers; the product's own engine runs the drag (BI §9.6) and adds or removes
|
|
17
17
|
`fs-is-dragover` and `fs-is-refused`.
|
|
18
|
+
- The ghost is accent when accepted and danger when refused. Forced colours drops both washes and paints the outline in the
|
|
19
|
+
text colour, so a refused ghost there has a thicker dashed outline (4 px) against the accepted ghost's solid 2 px (T112).
|
|
18
20
|
- Every move a drag does needs a keyboard path too (BI's move buttons: up, down, shrink, grow).
|
|
19
21
|
The grip is a button for that reason.
|
package/dist/css/dropzone.css
CHANGED
|
@@ -117,4 +117,13 @@
|
|
|
117
117
|
background: var(--fs-accent-wash);
|
|
118
118
|
border-color: var(--fs-accent);
|
|
119
119
|
}
|
|
120
|
+
|
|
121
|
+
/* Forced colours erase the wash and the accent edge: the slot being dropped on gets a Highlight
|
|
122
|
+
ring just outside its edge, on Canvas (T107). */
|
|
123
|
+
@media (forced-colors: active) {
|
|
124
|
+
.fs-slot.fs-is-dragover {
|
|
125
|
+
outline: 2px solid Highlight;
|
|
126
|
+
outline-offset: 2px;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
120
129
|
}
|
package/dist/css/field.css
CHANGED
|
@@ -181,4 +181,22 @@
|
|
|
181
181
|
outline-offset: calc(-1 * var(--fs-ring-width));
|
|
182
182
|
box-shadow: inset 0 0 0 calc(var(--fs-ring-width) + var(--fs-ring-halo-width)) var(--fs-ring-halo);
|
|
183
183
|
}
|
|
184
|
+
|
|
185
|
+
/* Forced colours turn the invalid box's red edge into the plain one, so a second, inner line
|
|
186
|
+
marks it (the focus ring takes the outline while focused); a disabled box greys its edge and
|
|
187
|
+
text (T107). */
|
|
188
|
+
@media (forced-colors: active) {
|
|
189
|
+
.fs-field__box:has([aria-invalid='true']):not(:has(:focus-visible)) {
|
|
190
|
+
outline: var(--fs-line-width) solid CanvasText;
|
|
191
|
+
outline-offset: calc(-2 * var(--fs-line-width) - 1px);
|
|
192
|
+
}
|
|
193
|
+
.fs-field__box:has(:disabled) {
|
|
194
|
+
color: GrayText;
|
|
195
|
+
border-color: GrayText;
|
|
196
|
+
}
|
|
197
|
+
.fs-field__box:has(:disabled) :is(.fs-input, .fs-select__control, .fs-field__control) {
|
|
198
|
+
color: GrayText;
|
|
199
|
+
-webkit-text-fill-color: GrayText;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
184
202
|
}
|
package/dist/css/grid.css
CHANGED
|
@@ -171,6 +171,12 @@
|
|
|
171
171
|
.fs-grid .fs-cell--editing {
|
|
172
172
|
background-color: var(--fs-grid-editing-bg);
|
|
173
173
|
}
|
|
174
|
+
/* Red ink on the editing fill: a darker red in light (T108), the same red as before in dark. */
|
|
175
|
+
.fs-grid .fs-cell--editing.fs-cell--negative,
|
|
176
|
+
.fs-grid .fs-cell--editing.fs-cell--error,
|
|
177
|
+
.fs-grid .fs-cell--editing.fs-cell--invalid {
|
|
178
|
+
color: var(--fs-grid-editing-danger-ink);
|
|
179
|
+
}
|
|
174
180
|
.fs-grid .fs-cell--editing .fs-grid__cover {
|
|
175
181
|
visibility: hidden;
|
|
176
182
|
}
|
|
@@ -196,4 +202,23 @@
|
|
|
196
202
|
border-top: 6px solid var(--fs-accent);
|
|
197
203
|
border-left: 6px solid transparent;
|
|
198
204
|
}
|
|
205
|
+
|
|
206
|
+
/* Forced colours erase the danger ink and the error fill: a wavy underline marks the value (on the
|
|
207
|
+
cover, which is positioned, so the cell's own underline doesn't reach it), as .fs-diag--error
|
|
208
|
+
does, and an error cell also gets a dashed inner edge (T107). */
|
|
209
|
+
@media (forced-colors: active) {
|
|
210
|
+
.fs-grid :is(.fs-cell--invalid, .fs-cell--error) > .fs-grid__cover {
|
|
211
|
+
text-decoration: underline wavy CanvasText;
|
|
212
|
+
text-decoration-skip-ink: none;
|
|
213
|
+
text-underline-offset: 3px;
|
|
214
|
+
}
|
|
215
|
+
.fs-grid .fs-cell--error:not(.fs-is-selected) {
|
|
216
|
+
outline: var(--fs-line-width) dashed CanvasText;
|
|
217
|
+
outline-offset: -3px;
|
|
218
|
+
}
|
|
219
|
+
/* A fill becomes Canvas here, so the stale dot would vanish (I23). */
|
|
220
|
+
.fs-grid .fs-cell--stale::before {
|
|
221
|
+
background: CanvasText;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
199
224
|
}
|
package/dist/css/icon-button.css
CHANGED
|
@@ -65,4 +65,14 @@
|
|
|
65
65
|
border-color: transparent;
|
|
66
66
|
cursor: not-allowed;
|
|
67
67
|
}
|
|
68
|
+
|
|
69
|
+
/* Forced colours erase the pressed fill and edge, so pressed takes the system's selection
|
|
70
|
+
colours (T107). */
|
|
71
|
+
@media (forced-colors: active) {
|
|
72
|
+
.fs-icon-button[aria-pressed='true'] {
|
|
73
|
+
color: HighlightText;
|
|
74
|
+
background-color: Highlight;
|
|
75
|
+
border-color: Highlight;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
68
78
|
}
|
package/dist/css/icon.md
CHANGED
|
@@ -11,8 +11,13 @@ button.prepend(createIcon('download', { size: 16, className: 'fs-button__icon' }
|
|
|
11
11
|
its own (`role="img"`).
|
|
12
12
|
- `.fs-icon` draws one 1.25 px stroke at every size; override `--fs-icon-stroke` to thicken.
|
|
13
13
|
- Colour is `currentColor`. Authored layouts that can't hold `<svg>` use the mask classes in
|
|
14
|
-
`icons/masks.css` (`<i class="fs-i-folder"></i>`).
|
|
14
|
+
`icons/masks.css` (`<i class="fs-i-folder"></i>`). It starts with the kit's layer order, so it can load
|
|
15
|
+
before or after `kit.css` (T106).
|
|
16
|
+
- In forced colours a mask icon is coloured as an `<svg>` icon is (`preserve-parent-color`), or in
|
|
17
|
+
`CanvasText` where the browser lacks it; a mask's fill would otherwise be erased (T105).
|
|
15
18
|
- A mask icon is `1em` square, so `font-size` sizes it. Set `--fs-i-size` (on the icon or any
|
|
16
19
|
ancestor) to size it apart from the text; `.fs-i--14` … `--24` fix it in px. `--fs-icon-size`
|
|
17
20
|
is the density's icon-in-a-control size (`.fs-button`, `.fs-tabs__tab`, …) and doesn't reach
|
|
18
|
-
the masks.
|
|
21
|
+
the masks. The 1em size is in `fs.base`, so a component's own icon size (`.fs-button__icon`,
|
|
22
|
+
`.fs-notice__icon`, 16 px) beats it in any load order; `.fs-i--14` … `--24` are in `fs.utilities`
|
|
23
|
+
and beat the component (T106).
|
package/dist/css/input.css
CHANGED
|
@@ -118,4 +118,28 @@
|
|
|
118
118
|
.fs-select:has(:disabled) {
|
|
119
119
|
color: var(--fs-ink-disabled);
|
|
120
120
|
}
|
|
121
|
+
|
|
122
|
+
/* Forced colours erase a fill, so the select's arrow is drawn in a system colour (T105). */
|
|
123
|
+
@media (forced-colors: active) {
|
|
124
|
+
.fs-select::after {
|
|
125
|
+
background-color: CanvasText;
|
|
126
|
+
}
|
|
127
|
+
.fs-select:has(:disabled)::after {
|
|
128
|
+
background-color: GrayText;
|
|
129
|
+
}
|
|
130
|
+
/* An invalid control's red edge becomes the plain one: a second, inner line marks it (T107). */
|
|
131
|
+
.fs-input[aria-invalid='true'],
|
|
132
|
+
.fs-textarea[aria-invalid='true'],
|
|
133
|
+
.fs-select__control[aria-invalid='true'] {
|
|
134
|
+
outline: var(--fs-line-width) solid CanvasText;
|
|
135
|
+
outline-offset: calc(-2 * var(--fs-line-width) - 1px);
|
|
136
|
+
}
|
|
137
|
+
.fs-input:disabled,
|
|
138
|
+
.fs-textarea:disabled,
|
|
139
|
+
.fs-select__control:disabled {
|
|
140
|
+
color: GrayText;
|
|
141
|
+
-webkit-text-fill-color: GrayText;
|
|
142
|
+
border-color: GrayText;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
121
145
|
}
|
package/dist/css/menu.css
CHANGED
|
@@ -157,4 +157,24 @@
|
|
|
157
157
|
.fs-menu__item[aria-disabled='true'] > .fs-icon {
|
|
158
158
|
color: var(--fs-ink-disabled);
|
|
159
159
|
}
|
|
160
|
+
|
|
161
|
+
/* Forced colours erase a fill, so the check mark is drawn in a system colour (T105). */
|
|
162
|
+
@media (forced-colors: active) {
|
|
163
|
+
.fs-menu__item:is([role='menuitemcheckbox'], [role='menuitemradio'])[aria-checked='true']::before {
|
|
164
|
+
background-color: CanvasText;
|
|
165
|
+
}
|
|
166
|
+
.fs-menu__item:is([role='menuitemcheckbox'], [role='menuitemradio'])[aria-checked='true']:is(
|
|
167
|
+
[aria-disabled='true'],
|
|
168
|
+
:disabled
|
|
169
|
+
)::before {
|
|
170
|
+
background-color: GrayText;
|
|
171
|
+
}
|
|
172
|
+
/* A disabled item's ink is forced to the plain text colour, so it is greyed with GrayText. Firefox
|
|
173
|
+
showed no difference without this; Chromium did, for a reason not traced (T109). */
|
|
174
|
+
.fs-menu__item[aria-disabled='true'],
|
|
175
|
+
.fs-menu__item:disabled,
|
|
176
|
+
.fs-menu__item[aria-disabled='true'] > .fs-icon {
|
|
177
|
+
color: GrayText;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
160
180
|
}
|
package/dist/css/pill.css
CHANGED
|
@@ -89,4 +89,11 @@
|
|
|
89
89
|
--fs-pill-wash: var(--fs-mark-none-wash);
|
|
90
90
|
--fs-pill-dot: var(--fs-mark-none-fill);
|
|
91
91
|
}
|
|
92
|
+
|
|
93
|
+
/* A fill becomes Canvas here, so the dot would vanish (I23); the word carries the tone. */
|
|
94
|
+
@media (forced-colors: active) {
|
|
95
|
+
.fs-pill--dot::before {
|
|
96
|
+
background: CanvasText;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
92
99
|
}
|
package/dist/css/progress.css
CHANGED
|
@@ -57,4 +57,21 @@
|
|
|
57
57
|
transform: rotate(360deg);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
+
|
|
61
|
+
/* Forced colours draw a transparent border and erase fills and shadows, so every step would be a
|
|
62
|
+
plain ring: the current step's gap is painted in Canvas, done is a filled dot, failed a thick
|
|
63
|
+
ring (T107). */
|
|
64
|
+
@media (forced-colors: active) {
|
|
65
|
+
.fs-progress__step[aria-current='step']::before {
|
|
66
|
+
border-color: CanvasText;
|
|
67
|
+
border-top-color: Canvas;
|
|
68
|
+
}
|
|
69
|
+
.fs-progress__step.fs-is-done::before {
|
|
70
|
+
background-color: CanvasText;
|
|
71
|
+
border-color: CanvasText;
|
|
72
|
+
}
|
|
73
|
+
.fs-progress__step.fs-is-failed::before {
|
|
74
|
+
border: 4px solid CanvasText;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
60
77
|
}
|
package/dist/css/stacked-bar.css
CHANGED
|
@@ -60,4 +60,20 @@
|
|
|
60
60
|
font-variant-numeric: tabular-nums;
|
|
61
61
|
color: var(--fs-ink);
|
|
62
62
|
}
|
|
63
|
+
|
|
64
|
+
/* A fill becomes Canvas here, so the legend dots would vanish (I23). They take the mark dot's shapes:
|
|
65
|
+
exact solid, approximate half filled, not converted a ring; the words and counts still name them. */
|
|
66
|
+
@media (forced-colors: active) {
|
|
67
|
+
.fs-legend__dot {
|
|
68
|
+
box-sizing: border-box;
|
|
69
|
+
background: CanvasText;
|
|
70
|
+
border: 1.5px solid CanvasText;
|
|
71
|
+
}
|
|
72
|
+
.fs-legend__dot--approximate {
|
|
73
|
+
background: linear-gradient(90deg, CanvasText 50%, transparent 50%);
|
|
74
|
+
}
|
|
75
|
+
.fs-legend__dot--not-converted {
|
|
76
|
+
background: transparent;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
63
79
|
}
|
package/dist/css/table.css
CHANGED
|
@@ -190,4 +190,12 @@
|
|
|
190
190
|
break-inside: avoid;
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
+
|
|
194
|
+
/* Forced colours erase the selected row's fill: the system's selection colours instead (T107). */
|
|
195
|
+
@media (forced-colors: active) {
|
|
196
|
+
.fs-table tbody tr[aria-selected='true'] > * {
|
|
197
|
+
color: HighlightText;
|
|
198
|
+
background-color: Highlight;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
193
201
|
}
|
package/dist/css/tabs.css
CHANGED
|
@@ -178,4 +178,13 @@
|
|
|
178
178
|
background-color: transparent;
|
|
179
179
|
cursor: not-allowed;
|
|
180
180
|
}
|
|
181
|
+
|
|
182
|
+
/* After the disabled rule above, which it overrides: forced colours turn the disabled ink into
|
|
183
|
+
the plain text colour, so a disabled tab is greyed with GrayText (T107). */
|
|
184
|
+
@media (forced-colors: active) {
|
|
185
|
+
.fs-tabs__tab:disabled,
|
|
186
|
+
.fs-tabs__tab[aria-disabled='true'] {
|
|
187
|
+
color: GrayText;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
181
190
|
}
|
package/dist/css/tokens.css
CHANGED
|
@@ -163,12 +163,13 @@
|
|
|
163
163
|
--fs-grid-error-bg: #fdecea;
|
|
164
164
|
--fs-grid-negative-ink: #c62828;
|
|
165
165
|
--fs-grid-stale-ink: #5f5e5a;
|
|
166
|
-
--fs-grid-stale-dot: #
|
|
166
|
+
--fs-grid-stale-dot: #c27c00;
|
|
167
167
|
--fs-grid-dirty-ink: #3d3db4;
|
|
168
168
|
--fs-grid-invalid-ink: #c62828;
|
|
169
169
|
--fs-grid-selected: #3d3db4;
|
|
170
170
|
--fs-grid-selected-invalid-bg: rgba(252,0,0,0.10);
|
|
171
171
|
--fs-grid-editing-bg: rgb(221,221,244);
|
|
172
|
+
--fs-grid-editing-danger-ink: #b71c1c;
|
|
172
173
|
--fs-grid-nodata-bg: rgba(0,0,0,0.03);
|
|
173
174
|
--fs-grid-chevron: #8a8983;
|
|
174
175
|
--fs-grid-tree-guide: #d9d9d9;
|
|
@@ -430,6 +431,7 @@
|
|
|
430
431
|
--fs-grid-selected: #8c8cff;
|
|
431
432
|
--fs-grid-selected-invalid-bg: rgba(255,138,128,0.08);
|
|
432
433
|
--fs-grid-editing-bg: #223a7e;
|
|
434
|
+
--fs-grid-editing-danger-ink: #ff8a80;
|
|
433
435
|
--fs-grid-nodata-bg: rgba(232,238,252,0.04);
|
|
434
436
|
--fs-grid-chevron: #6f81ad;
|
|
435
437
|
--fs-grid-tree-guide: #22356a;
|
|
@@ -568,6 +570,7 @@
|
|
|
568
570
|
--fs-grid-selected: #8c8cff;
|
|
569
571
|
--fs-grid-selected-invalid-bg: rgba(255,138,128,0.08);
|
|
570
572
|
--fs-grid-editing-bg: #223a7e;
|
|
573
|
+
--fs-grid-editing-danger-ink: #ff8a80;
|
|
571
574
|
--fs-grid-nodata-bg: rgba(232,238,252,0.04);
|
|
572
575
|
--fs-grid-chevron: #6f81ad;
|
|
573
576
|
--fs-grid-tree-guide: #22356a;
|
|
@@ -700,12 +703,13 @@
|
|
|
700
703
|
--fs-grid-error-bg: #fdecea;
|
|
701
704
|
--fs-grid-negative-ink: #c62828;
|
|
702
705
|
--fs-grid-stale-ink: #5f5e5a;
|
|
703
|
-
--fs-grid-stale-dot: #
|
|
706
|
+
--fs-grid-stale-dot: #c27c00;
|
|
704
707
|
--fs-grid-dirty-ink: #3d3db4;
|
|
705
708
|
--fs-grid-invalid-ink: #c62828;
|
|
706
709
|
--fs-grid-selected: #3d3db4;
|
|
707
710
|
--fs-grid-selected-invalid-bg: rgba(252,0,0,0.10);
|
|
708
711
|
--fs-grid-editing-bg: rgb(221,221,244);
|
|
712
|
+
--fs-grid-editing-danger-ink: #b71c1c;
|
|
709
713
|
--fs-grid-nodata-bg: rgba(0,0,0,0.03);
|
|
710
714
|
--fs-grid-chevron: #8a8983;
|
|
711
715
|
--fs-grid-tree-guide: #d9d9d9;
|
|
@@ -887,6 +891,7 @@
|
|
|
887
891
|
--fs-grid-selected: #8c8cff;
|
|
888
892
|
--fs-grid-selected-invalid-bg: rgba(255,138,128,0.08);
|
|
889
893
|
--fs-grid-editing-bg: #223a7e;
|
|
894
|
+
--fs-grid-editing-danger-ink: #ff8a80;
|
|
890
895
|
--fs-grid-nodata-bg: rgba(232,238,252,0.04);
|
|
891
896
|
--fs-grid-chevron: #6f81ad;
|
|
892
897
|
--fs-grid-tree-guide: #22356a;
|
|
@@ -1073,12 +1078,13 @@
|
|
|
1073
1078
|
--fs-grid-error-bg: #fdecea;
|
|
1074
1079
|
--fs-grid-negative-ink: #c62828;
|
|
1075
1080
|
--fs-grid-stale-ink: #5f5e5a;
|
|
1076
|
-
--fs-grid-stale-dot: #
|
|
1081
|
+
--fs-grid-stale-dot: #c27c00;
|
|
1077
1082
|
--fs-grid-dirty-ink: #3d3db4;
|
|
1078
1083
|
--fs-grid-invalid-ink: #c62828;
|
|
1079
1084
|
--fs-grid-selected: #3d3db4;
|
|
1080
1085
|
--fs-grid-selected-invalid-bg: rgba(252,0,0,0.10);
|
|
1081
1086
|
--fs-grid-editing-bg: rgb(221,221,244);
|
|
1087
|
+
--fs-grid-editing-danger-ink: #b71c1c;
|
|
1082
1088
|
--fs-grid-nodata-bg: rgba(0,0,0,0.03);
|
|
1083
1089
|
--fs-grid-chevron: #8a8983;
|
|
1084
1090
|
--fs-grid-tree-guide: #d9d9d9;
|
package/dist/css/tree.css
CHANGED
|
@@ -138,4 +138,12 @@
|
|
|
138
138
|
.fs-tree__status.fs-tone-danger {
|
|
139
139
|
color: var(--fs-danger-ink);
|
|
140
140
|
}
|
|
141
|
+
|
|
142
|
+
/* Forced colours erase the selected row's fill: the system's selection colours instead (T107). */
|
|
143
|
+
@media (forced-colors: active) {
|
|
144
|
+
.fs-tree__item[aria-selected='true'] > .fs-tree__row {
|
|
145
|
+
color: HighlightText;
|
|
146
|
+
background-color: Highlight;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
141
149
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Breadcrumbs (spec 02 C). Usage: breadcrumbs.md. */\n@layer fs.components {\n .fs-breadcrumbs__list {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--fs-space-1);\n margin: 0;\n padding: 0;\n list-style: none;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n }\n .fs-breadcrumbs__item {\n display: inline-flex;\n align-items: center;\n gap: var(--fs-space-1);\n min-width: 0;\n color: var(--fs-ink-muted);\n }\n /* The separator is decoration: the list already says where each item sits. */\n .fs-breadcrumbs__item + .fs-breadcrumbs__item::before {\n content: '';\n flex: none;\n width: 12px;\n height: 12px;\n background-color: currentColor;\n mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E\")\n center / contain no-repeat;\n }\n .fs-breadcrumbs__link,\n .fs-breadcrumbs__gap {\n margin: 0;\n padding: 0;\n font: inherit;\n color: var(--fs-ink-2);\n text-decoration: none;\n background: transparent;\n border: 0;\n border-radius: var(--fs-radius-sm);\n cursor: pointer;\n }\n .fs-breadcrumbs__gap {\n color: var(--fs-ink-muted);\n }\n @media (hover: hover) {\n .fs-breadcrumbs__link:hover,\n .fs-breadcrumbs__gap:hover {\n color: var(--fs-ink);\n text-decoration: underline;\n text-underline-offset: 2px;\n }\n }\n .fs-breadcrumbs__current,\n .fs-breadcrumbs__link[aria-current='page'] {\n color: var(--fs-ink);\n font-weight: var(--fs-weight-medium);\n text-decoration: none;\n cursor: default;\n }\n\n /* The ring recipe (D15). */\n .fs-breadcrumbs__link:focus-visible,\n .fs-breadcrumbs__gap:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: var(--fs-ring-halo-width);\n box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);\n }\n}\n";
|
|
1
|
+
export default "/* Breadcrumbs (spec 02 C). Usage: breadcrumbs.md. */\n@layer fs.components {\n .fs-breadcrumbs__list {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--fs-space-1);\n margin: 0;\n padding: 0;\n list-style: none;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n }\n .fs-breadcrumbs__item {\n display: inline-flex;\n align-items: center;\n gap: var(--fs-space-1);\n min-width: 0;\n color: var(--fs-ink-muted);\n }\n /* The separator is decoration: the list already says where each item sits. */\n .fs-breadcrumbs__item + .fs-breadcrumbs__item::before {\n content: '';\n flex: none;\n width: 12px;\n height: 12px;\n background-color: currentColor;\n mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E\")\n center / contain no-repeat;\n }\n .fs-breadcrumbs__link,\n .fs-breadcrumbs__gap {\n margin: 0;\n padding: 0;\n font: inherit;\n color: var(--fs-ink-2);\n text-decoration: none;\n background: transparent;\n border: 0;\n border-radius: var(--fs-radius-sm);\n cursor: pointer;\n }\n .fs-breadcrumbs__gap {\n color: var(--fs-ink-muted);\n }\n @media (hover: hover) {\n .fs-breadcrumbs__link:hover,\n .fs-breadcrumbs__gap:hover {\n color: var(--fs-ink);\n text-decoration: underline;\n text-underline-offset: 2px;\n }\n }\n .fs-breadcrumbs__current,\n .fs-breadcrumbs__link[aria-current='page'] {\n color: var(--fs-ink);\n font-weight: var(--fs-weight-medium);\n text-decoration: none;\n cursor: default;\n }\n\n /* The ring recipe (D15). */\n .fs-breadcrumbs__link:focus-visible,\n .fs-breadcrumbs__gap:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: var(--fs-ring-halo-width);\n box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);\n }\n\n /* Forced colours erase a fill, so the separator's mask is drawn in CanvasText (T105). */\n @media (forced-colors: active) {\n .fs-breadcrumbs__item + .fs-breadcrumbs__item::before {\n background-color: CanvasText;\n }\n }\n}\n";
|
package/dist/css-text/button.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Button (spec 02 A). Usage: button.md. */\n@layer fs.components {\n .fs-button {\n --fs-button-ink: var(--fs-ink);\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: max(var(--fs-space-1), calc(var(--fs-gap) - 2px));\n box-sizing: border-box;\n height: var(--fs-control-h);\n min-width: var(--fs-control-h);\n margin: 0;\n padding: 0 calc(var(--fs-pad-x) * 1.5);\n font: inherit;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n font-weight: var(--fs-weight-medium);\n color: var(--fs-button-ink);\n white-space: nowrap;\n text-decoration: none;\n background: var(--fs-bg-surface);\n border: var(--fs-line-width) solid var(--fs-line-button);\n border-radius: var(--fs-radius-md);\n cursor: pointer;\n transition:\n background-color var(--fs-dur-fast) var(--fs-ease),\n border-color var(--fs-dur-fast) var(--fs-ease);\n }\n\n .fs-button__icon,\n .fs-button > .fs-icon {\n flex: none;\n width: var(--fs-icon-size);\n height: var(--fs-icon-size);\n }\n\n @media (hover: hover) {\n .fs-button:hover {\n border-color: var(--fs-ink-2);\n }\n .fs-button--ghost:hover {\n background-color: var(--fs-bg-hover);\n }\n .fs-button--danger:hover {\n background-color: var(--fs-danger-wash);\n }\n .fs-button--primary:hover {\n background-color: var(--fs-primary-bg-hover);\n border-color: var(--fs-primary-bg-hover);\n }\n }\n\n .fs-button:active {\n background-color: var(--fs-bg-active);\n }\n\n /* The ring recipe (D15). */\n .fs-button:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: var(--fs-ring-halo-width);\n box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);\n }\n\n .fs-button--primary {\n --fs-button-ink: var(--fs-primary-ink);\n background-color: var(--fs-primary-bg);\n border-color: var(--fs-primary-bg);\n }\n .fs-button--primary:active {\n background-color: var(--fs-primary-bg-hover);\n }\n\n .fs-button--ghost,\n .fs-button--danger {\n background-color: transparent;\n border-color: transparent;\n }\n .fs-button--danger {\n --fs-button-ink: var(--fs-danger-ink);\n }\n\n .fs-button--sm {\n height: var(--fs-size-touch);\n min-width: var(--fs-size-touch);\n padding: 0 var(--fs-space-2);\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n }\n\n .fs-button--icon-only {\n padding: 0;\n width: var(--fs-control-h);\n }\n .fs-button--sm.fs-button--icon-only {\n width: var(--fs-size-touch);\n }\n\n /* Toggle: a button with aria-pressed. */\n .fs-button[aria-pressed='true'] {\n --fs-button-ink: var(--fs-accent);\n background-color: var(--fs-bg-selected);\n border-color: var(--fs-accent);\n }\n\n /* Busy: a spinner in place of the leading icon; with no icon, over the hidden label. */\n .fs-button[aria-busy='true'] {\n cursor: progress;\n }\n .fs-button[aria-busy='true']::before {\n content: '';\n flex: none;\n box-sizing: border-box;\n width: var(--fs-icon-size);\n height: var(--fs-icon-size);\n border: 2px solid var(--fs-button-ink);\n border-top-color: transparent;\n border-radius: 50%;\n animation: fs-spin 0.7s linear infinite;\n }\n .fs-button[aria-busy='true'] > .fs-button__icon,\n .fs-button[aria-busy='true'] > .fs-icon {\n display: none;\n }\n .fs-button[aria-busy='true']:not(:has(> .fs-button__icon, > .fs-icon)) {\n color: transparent;\n }\n .fs-button[aria-busy='true']:not(:has(> .fs-button__icon, > .fs-icon))::before {\n position: absolute;\n inset: 0;\n margin: auto;\n }\n\n /* Disabled comes last, so it beats hover, press and every variant. Never opacity. */\n .fs-button:disabled,\n .fs-button[aria-disabled='true'] {\n --fs-button-ink: var(--fs-ink-disabled);\n background-color: var(--fs-bg-disabled);\n border-color: var(--fs-line);\n cursor: not-allowed;\n }\n .fs-button--ghost:disabled,\n .fs-button--ghost[aria-disabled='true'],\n .fs-button--danger:disabled,\n .fs-button--danger[aria-disabled='true'] {\n background-color: transparent;\n border-color: transparent;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .fs-button[aria-busy='true']::before {\n animation: none;\n }\n }\n\n @keyframes fs-spin {\n to {\n transform: rotate(360deg);\n }\n }\n}\n";
|
|
1
|
+
export default "/* Button (spec 02 A). Usage: button.md. */\n@layer fs.components {\n .fs-button {\n --fs-button-ink: var(--fs-ink);\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: max(var(--fs-space-1), calc(var(--fs-gap) - 2px));\n box-sizing: border-box;\n height: var(--fs-control-h);\n min-width: var(--fs-control-h);\n margin: 0;\n padding: 0 calc(var(--fs-pad-x) * 1.5);\n font: inherit;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n font-weight: var(--fs-weight-medium);\n color: var(--fs-button-ink);\n white-space: nowrap;\n text-decoration: none;\n background: var(--fs-bg-surface);\n border: var(--fs-line-width) solid var(--fs-line-button);\n border-radius: var(--fs-radius-md);\n cursor: pointer;\n transition:\n background-color var(--fs-dur-fast) var(--fs-ease),\n border-color var(--fs-dur-fast) var(--fs-ease);\n }\n\n .fs-button__icon,\n .fs-button > .fs-icon {\n flex: none;\n width: var(--fs-icon-size);\n height: var(--fs-icon-size);\n }\n\n @media (hover: hover) {\n .fs-button:hover {\n border-color: var(--fs-ink-2);\n }\n .fs-button--ghost:hover {\n background-color: var(--fs-bg-hover);\n }\n .fs-button--danger:hover {\n background-color: var(--fs-danger-wash);\n }\n .fs-button--primary:hover {\n background-color: var(--fs-primary-bg-hover);\n border-color: var(--fs-primary-bg-hover);\n }\n }\n\n .fs-button:active {\n background-color: var(--fs-bg-active);\n }\n\n /* The ring recipe (D15). */\n .fs-button:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: var(--fs-ring-halo-width);\n box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);\n }\n\n .fs-button--primary {\n --fs-button-ink: var(--fs-primary-ink);\n background-color: var(--fs-primary-bg);\n border-color: var(--fs-primary-bg);\n }\n .fs-button--primary:active {\n background-color: var(--fs-primary-bg-hover);\n }\n\n .fs-button--ghost,\n .fs-button--danger {\n background-color: transparent;\n border-color: transparent;\n }\n .fs-button--danger {\n --fs-button-ink: var(--fs-danger-ink);\n }\n\n .fs-button--sm {\n height: var(--fs-size-touch);\n min-width: var(--fs-size-touch);\n padding: 0 var(--fs-space-2);\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n }\n\n .fs-button--icon-only {\n padding: 0;\n width: var(--fs-control-h);\n }\n .fs-button--sm.fs-button--icon-only {\n width: var(--fs-size-touch);\n }\n\n /* Toggle: a button with aria-pressed. */\n .fs-button[aria-pressed='true'] {\n --fs-button-ink: var(--fs-accent);\n background-color: var(--fs-bg-selected);\n border-color: var(--fs-accent);\n }\n\n /* Busy: a spinner in place of the leading icon; with no icon, over the hidden label. */\n .fs-button[aria-busy='true'] {\n cursor: progress;\n }\n .fs-button[aria-busy='true']::before {\n content: '';\n flex: none;\n box-sizing: border-box;\n width: var(--fs-icon-size);\n height: var(--fs-icon-size);\n border: 2px solid var(--fs-button-ink);\n border-top-color: transparent;\n border-radius: 50%;\n animation: fs-spin 0.7s linear infinite;\n }\n .fs-button[aria-busy='true'] > .fs-button__icon,\n .fs-button[aria-busy='true'] > .fs-icon {\n display: none;\n }\n .fs-button[aria-busy='true']:not(:has(> .fs-button__icon, > .fs-icon)) {\n color: transparent;\n }\n .fs-button[aria-busy='true']:not(:has(> .fs-button__icon, > .fs-icon))::before {\n position: absolute;\n inset: 0;\n margin: auto;\n }\n\n /* Disabled comes last, so it beats hover, press and every variant. Never opacity. */\n .fs-button:disabled,\n .fs-button[aria-disabled='true'] {\n --fs-button-ink: var(--fs-ink-disabled);\n background-color: var(--fs-bg-disabled);\n border-color: var(--fs-line);\n cursor: not-allowed;\n }\n .fs-button--ghost:disabled,\n .fs-button--ghost[aria-disabled='true'],\n .fs-button--danger:disabled,\n .fs-button--danger[aria-disabled='true'] {\n background-color: transparent;\n border-color: transparent;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .fs-button[aria-busy='true']::before {\n animation: none;\n }\n }\n\n @keyframes fs-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n /* Forced colours erase the pressed fill and the accent edge, so pressed takes the system's\n selection colours; aria-disabled gets GrayText, as a native :disabled button does (T107). */\n @media (forced-colors: active) {\n .fs-button[aria-pressed='true'] {\n --fs-button-ink: HighlightText;\n background-color: Highlight;\n border-color: Highlight;\n }\n .fs-button[aria-disabled='true'] {\n --fs-button-ink: GrayText;\n border-color: GrayText;\n }\n }\n}\n";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Checkbox and radio (spec 02 B): native inputs, so authored layouts and forced colours work.\n Usage: checkbox.md. */\n@layer fs.components {\n .fs-checkbox,\n .fs-radio {\n display: inline-flex;\n align-items: center;\n gap: var(--fs-space-2);\n min-height: var(--fs-size-touch);\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n color: var(--fs-ink);\n cursor: pointer;\n }\n /* Drawn by the kit (T81), still a native input: the browser's own unchecked edge was a mixed olive in dark\n (Chrome blends accent-color into it). The edge is --fs-line-control-strong (3:1: a box has no label inside). */\n .fs-checkbox__input,\n .fs-radio__input {\n appearance: none;\n position: relative;\n flex: none;\n box-sizing: border-box;\n width: 16px;\n height: 16px;\n margin: 0;\n background: var(--fs-bg-sunken);\n border: var(--fs-line-width) solid var(--fs-line-control-strong);\n border-radius: var(--fs-radius-sm);\n cursor: pointer;\n }\n .fs-radio__input {\n border-radius: 50%;\n }\n .fs-checkbox__input::before,\n .fs-radio__input::before {\n content: '';\n position: absolute;\n inset: 0;\n background: var(--fs-
|
|
1
|
+
export default "/* Checkbox and radio (spec 02 B): native inputs, so authored layouts and forced colours work.\n Usage: checkbox.md. */\n@layer fs.components {\n .fs-checkbox,\n .fs-radio {\n display: inline-flex;\n align-items: center;\n gap: var(--fs-space-2);\n min-height: var(--fs-size-touch);\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n color: var(--fs-ink);\n cursor: pointer;\n }\n /* Drawn by the kit (T81), still a native input: the browser's own unchecked edge was a mixed olive in dark\n (Chrome blends accent-color into it). The edge is --fs-line-control-strong (3:1: a box has no label inside). */\n .fs-checkbox__input,\n .fs-radio__input {\n appearance: none;\n position: relative;\n flex: none;\n box-sizing: border-box;\n width: 16px;\n height: 16px;\n margin: 0;\n background: var(--fs-bg-sunken);\n border: var(--fs-line-width) solid var(--fs-line-control-strong);\n border-radius: var(--fs-radius-sm);\n cursor: pointer;\n }\n .fs-radio__input {\n border-radius: 50%;\n }\n .fs-checkbox__input::before,\n .fs-radio__input::before {\n content: '';\n position: absolute;\n inset: 0;\n /* The mark is the surface colour on the accent (I21): white in light as before; in dark the navy surface,\n 8.1:1 on the light-blue accent where white was 2.0:1. Not ink-on-accent, which products read for text. */\n background: var(--fs-bg-surface);\n visibility: hidden;\n }\n .fs-checkbox__input::before {\n mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.8 2.8L12 5.5' fill='none' stroke='currentColor' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\")\n center / 100% 100% no-repeat;\n }\n .fs-radio__input::before {\n inset: 3px;\n border-radius: 50%;\n }\n .fs-checkbox__input:checked,\n .fs-checkbox__input:indeterminate,\n .fs-radio__input:checked {\n background: var(--fs-accent);\n border-color: var(--fs-accent);\n }\n .fs-checkbox__input:checked::before,\n .fs-checkbox__input:indeterminate::before,\n .fs-radio__input:checked::before {\n visibility: visible;\n }\n .fs-checkbox__input:indeterminate::before {\n mask: linear-gradient(var(--fs-ink) 0 0) center / 8px 2px no-repeat;\n }\n\n /* The ring recipe (D15). */\n .fs-checkbox__input:focus-visible,\n .fs-radio__input:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: var(--fs-ring-halo-width);\n box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);\n }\n\n .fs-checkbox:has(:disabled),\n .fs-radio:has(:disabled) {\n color: var(--fs-ink-disabled);\n cursor: not-allowed;\n }\n .fs-checkbox__input:disabled,\n .fs-radio__input:disabled {\n background: var(--fs-bg-disabled);\n border-color: var(--fs-line);\n cursor: not-allowed;\n }\n .fs-checkbox__input:disabled:checked,\n .fs-checkbox__input:disabled:indeterminate,\n .fs-radio__input:disabled:checked {\n background: var(--fs-ink-disabled);\n border-color: var(--fs-ink-disabled);\n }\n\n /* Forced colours: hand the control back to the system's own drawing. */\n @media (forced-colors: active) {\n .fs-checkbox__input,\n .fs-radio__input {\n appearance: auto;\n }\n .fs-checkbox__input::before,\n .fs-radio__input::before {\n display: none;\n }\n }\n}\n";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Disclosure on native <details> (spec 02 D), and Grizzbi's folding filter card. Usage: disclosure.md. */\n@layer fs.components {\n .fs-disclosure {\n color: var(--fs-ink);\n }\n .fs-disclosure__summary {\n display: flex;\n align-items: center;\n gap: var(--fs-space-2);\n min-height: var(--fs-row-h);\n padding: 0 var(--fs-space-2);\n list-style: none;\n border-radius: var(--fs-radius-sm);\n cursor: pointer;\n }\n .fs-disclosure__summary::-webkit-details-marker {\n display: none;\n }\n .fs-disclosure__summary::before {\n content: '';\n flex: none;\n width: 16px;\n height: 16px;\n background-color: var(--fs-grid-chevron);\n mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.875' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E\")\n center / contain no-repeat;\n transition: transform var(--fs-dur) var(--fs-ease);\n }\n .fs-disclosure[open] > .fs-disclosure__summary::before {\n transform: rotate(90deg);\n }\n .fs-disclosure__title {\n flex: none;\n font-weight: var(--fs-weight-semibold);\n }\n .fs-disclosure__hint {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n color: var(--fs-ink-muted);\n white-space: nowrap;\n text-align: right;\n text-overflow: ellipsis;\n }\n .fs-disclosure__body {\n padding: var(--fs-space-1) var(--fs-space-2) var(--fs-space-3) calc(var(--fs-space-2) * 2 + 16px);\n }\n\n @media (hover: hover) {\n .fs-disclosure__summary:hover {\n background-color: var(--fs-bg-hover);\n }\n }\n\n /* The ring recipe (D15). */\n .fs-disclosure__summary:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: var(--fs-ring-halo-width);\n box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);\n }\n\n .fs-disclosure--card {\n background: var(--fs-bg-surface);\n border: var(--fs-line-width) solid var(--fs-line);\n border-radius: var(--fs-radius-md);\n }\n .fs-disclosure--card > .fs-disclosure__summary {\n min-height: calc(var(--fs-row-h) + 8px);\n padding: 0 var(--fs-space-3);\n }\n\n /* Active filter: the hint in accent ink at weight 600. */\n .fs-disclosure.fs-is-active .fs-disclosure__hint {\n color: var(--fs-accent);\n font-weight: var(--fs-weight-semibold);\n }\n /* Locked: read-only, not disabled. It still opens; it holds no control. */\n .fs-disclosure.fs-is-locked .fs-disclosure__title {\n color: var(--fs-ink-2);\n }\n .fs-disclosure__lock {\n flex: none;\n width: 14px;\n height: 14px;\n color: var(--fs-ink-muted);\n }\n .fs-disclosure.fs-tone-gap {\n background: var(--fs-gap-wash);\n border-color: var(--fs-gap-edge);\n }\n}\n";
|
|
1
|
+
export default "/* Disclosure on native <details> (spec 02 D), and Grizzbi's folding filter card. Usage: disclosure.md. */\n@layer fs.components {\n .fs-disclosure {\n color: var(--fs-ink);\n }\n .fs-disclosure__summary {\n display: flex;\n align-items: center;\n gap: var(--fs-space-2);\n min-height: var(--fs-row-h);\n padding: 0 var(--fs-space-2);\n list-style: none;\n border-radius: var(--fs-radius-sm);\n cursor: pointer;\n }\n .fs-disclosure__summary::-webkit-details-marker {\n display: none;\n }\n .fs-disclosure__summary::before {\n content: '';\n flex: none;\n width: 16px;\n height: 16px;\n background-color: var(--fs-grid-chevron);\n mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.875' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E\")\n center / contain no-repeat;\n transition: transform var(--fs-dur) var(--fs-ease);\n }\n .fs-disclosure[open] > .fs-disclosure__summary::before {\n transform: rotate(90deg);\n }\n .fs-disclosure__title {\n flex: none;\n font-weight: var(--fs-weight-semibold);\n }\n .fs-disclosure__hint {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n color: var(--fs-ink-muted);\n white-space: nowrap;\n text-align: right;\n text-overflow: ellipsis;\n }\n .fs-disclosure__body {\n padding: var(--fs-space-1) var(--fs-space-2) var(--fs-space-3) calc(var(--fs-space-2) * 2 + 16px);\n }\n\n @media (hover: hover) {\n .fs-disclosure__summary:hover {\n background-color: var(--fs-bg-hover);\n }\n }\n\n /* The ring recipe (D15). */\n .fs-disclosure__summary:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: var(--fs-ring-halo-width);\n box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);\n }\n\n .fs-disclosure--card {\n background: var(--fs-bg-surface);\n border: var(--fs-line-width) solid var(--fs-line);\n border-radius: var(--fs-radius-md);\n }\n .fs-disclosure--card > .fs-disclosure__summary {\n min-height: calc(var(--fs-row-h) + 8px);\n padding: 0 var(--fs-space-3);\n }\n\n /* Active filter: the hint in accent ink at weight 600. */\n .fs-disclosure.fs-is-active .fs-disclosure__hint {\n color: var(--fs-accent);\n font-weight: var(--fs-weight-semibold);\n }\n /* Locked: read-only, not disabled. It still opens; it holds no control. */\n .fs-disclosure.fs-is-locked .fs-disclosure__title {\n color: var(--fs-ink-2);\n }\n .fs-disclosure__lock {\n flex: none;\n width: 14px;\n height: 14px;\n color: var(--fs-ink-muted);\n }\n .fs-disclosure.fs-tone-gap {\n background: var(--fs-gap-wash);\n border-color: var(--fs-gap-edge);\n }\n\n /* Forced colours erase a fill, so the chevron's mask is drawn in CanvasText (T105, as node.css does). */\n @media (forced-colors: active) {\n .fs-disclosure__summary::before {\n background-color: CanvasText;\n }\n }\n}\n";
|
package/dist/css-text/drag.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Drag markers (spec 02 F): the kit styles them; BI App's own engine runs the drag (BI §9.6).\n Usage: drag.md. */\n@layer fs.components {\n .fs-grip {\n display: inline-grid;\n flex: none;\n place-items: center;\n width: 16px;\n min-height: var(--fs-size-touch);\n padding: 0;\n color: var(--fs-ink-muted);\n background: transparent;\n border: 0;\n border-radius: var(--fs-radius-sm);\n cursor: grab;\n }\n .fs-grip:active {\n cursor: grabbing;\n }\n .fs-grip > .fs-icon {\n width: 16px;\n height: 16px;\n }\n .fs-grip:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: var(--fs-ring-halo-width);\n box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);\n }\n\n /* Where a drop would land: a 4 px accent bar. */\n .fs-drop-bar {\n display: block;\n height: 4px;\n background: var(--fs-accent);\n border-radius: 0;\n }\n .fs-drop-target.fs-is-dragover {\n background-color: var(--fs-accent-wash);\n outline: var(--fs-line-width) solid var(--fs-accent);\n outline-offset: calc(-1 * var(--fs-line-width));\n }\n\n /* Resize handles: an 8 px hit area with a 4 px bar on hover. The parent is position: relative. */\n .fs-resize-handle {\n position: absolute;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n .fs-resize-handle--row {\n right: 0;\n bottom: -4px;\n left: 0;\n height: 8px;\n cursor: row-resize;\n }\n .fs-resize-handle--col {\n top: 0;\n right: -4px;\n bottom: 0;\n width: 8px;\n cursor: col-resize;\n }\n .fs-resize-handle::after {\n content: '';\n border-radius: 0;\n }\n .fs-resize-handle--row::after {\n width: 100%;\n height: 4px;\n }\n .fs-resize-handle--col::after {\n width: 4px;\n height: 100%;\n }\n @media (hover: hover) {\n .fs-resize-handle:hover::after {\n background: var(--fs-accent);\n }\n .fs-add-cell:hover {\n color: var(--fs-accent);\n border-color: var(--fs-accent);\n }\n }\n\n /* The ghost of a moved or resized item: accent, or danger when refused. */\n .fs-drag-ghost {\n background: var(--fs-accent-wash);\n border-radius: var(--fs-radius-sm);\n outline: 2px solid var(--fs-accent);\n outline-offset: -2px;\n }\n .fs-drag-ghost.fs-is-refused {\n background: var(--fs-danger-wash);\n outline-color: var(--fs-danger-fill);\n }\n\n .fs-add-cell {\n display: grid;\n place-items: center;\n box-sizing: border-box;\n min-height: var(--fs-row-h);\n margin: 0;\n padding: 0 var(--fs-space-3);\n font: inherit;\n color: var(--fs-ink-muted);\n background: transparent;\n border: var(--fs-line-width) dashed var(--fs-line-control-strong);\n border-radius: var(--fs-radius-sm);\n cursor: pointer;\n }\n .fs-add-cell:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: var(--fs-ring-halo-width);\n box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);\n }\n\n .fs-palette-pill {\n display: inline-flex;\n align-items: center;\n gap: var(--fs-space-1);\n box-sizing: border-box;\n height: 26px;\n padding: 0 var(--fs-space-2) 0 var(--fs-space-1);\n font-size: var(--fs-text-xs-size);\n color: var(--fs-ink);\n background: var(--fs-bg-surface);\n border: var(--fs-line-width) solid var(--fs-line-control-strong);\n border-radius: var(--fs-radius-md);\n cursor: grab;\n }\n .fs-palette-pill > .fs-icon {\n width: 14px;\n height: 14px;\n color: var(--fs-ink-muted);\n }\n}\n";
|
|
1
|
+
export default "/* Drag markers (spec 02 F): the kit styles them; BI App's own engine runs the drag (BI §9.6).\n Usage: drag.md. */\n@layer fs.components {\n .fs-grip {\n display: inline-grid;\n flex: none;\n place-items: center;\n width: 16px;\n min-height: var(--fs-size-touch);\n padding: 0;\n color: var(--fs-ink-muted);\n background: transparent;\n border: 0;\n border-radius: var(--fs-radius-sm);\n cursor: grab;\n }\n .fs-grip:active {\n cursor: grabbing;\n }\n .fs-grip > .fs-icon {\n width: 16px;\n height: 16px;\n }\n .fs-grip:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: var(--fs-ring-halo-width);\n box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);\n }\n\n /* Where a drop would land: a 4 px accent bar. */\n .fs-drop-bar {\n display: block;\n height: 4px;\n background: var(--fs-accent);\n border-radius: 0;\n }\n .fs-drop-target.fs-is-dragover {\n background-color: var(--fs-accent-wash);\n outline: var(--fs-line-width) solid var(--fs-accent);\n outline-offset: calc(-1 * var(--fs-line-width));\n }\n\n /* Resize handles: an 8 px hit area with a 4 px bar on hover. The parent is position: relative. */\n .fs-resize-handle {\n position: absolute;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n .fs-resize-handle--row {\n right: 0;\n bottom: -4px;\n left: 0;\n height: 8px;\n cursor: row-resize;\n }\n .fs-resize-handle--col {\n top: 0;\n right: -4px;\n bottom: 0;\n width: 8px;\n cursor: col-resize;\n }\n .fs-resize-handle::after {\n content: '';\n border-radius: 0;\n }\n .fs-resize-handle--row::after {\n width: 100%;\n height: 4px;\n }\n .fs-resize-handle--col::after {\n width: 4px;\n height: 100%;\n }\n @media (hover: hover) {\n .fs-resize-handle:hover::after {\n background: var(--fs-accent);\n }\n .fs-add-cell:hover {\n color: var(--fs-accent);\n border-color: var(--fs-accent);\n }\n }\n\n /* The ghost of a moved or resized item: accent, or danger when refused. */\n .fs-drag-ghost {\n background: var(--fs-accent-wash);\n border-radius: var(--fs-radius-sm);\n outline: 2px solid var(--fs-accent);\n outline-offset: -2px;\n }\n .fs-drag-ghost.fs-is-refused {\n background: var(--fs-danger-wash);\n outline-color: var(--fs-danger-fill);\n }\n /* Forced colours drops the wash and paints both outlines in the text colour: refused is a thicker dashed outline. */\n @media (forced-colors: active) {\n .fs-drag-ghost.fs-is-refused {\n outline: 4px dashed CanvasText;\n outline-offset: -4px;\n }\n }\n\n .fs-add-cell {\n display: grid;\n place-items: center;\n box-sizing: border-box;\n min-height: var(--fs-row-h);\n margin: 0;\n padding: 0 var(--fs-space-3);\n font: inherit;\n color: var(--fs-ink-muted);\n background: transparent;\n border: var(--fs-line-width) dashed var(--fs-line-control-strong);\n border-radius: var(--fs-radius-sm);\n cursor: pointer;\n }\n .fs-add-cell:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: var(--fs-ring-halo-width);\n box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);\n }\n\n .fs-palette-pill {\n display: inline-flex;\n align-items: center;\n gap: var(--fs-space-1);\n box-sizing: border-box;\n height: 26px;\n padding: 0 var(--fs-space-2) 0 var(--fs-space-1);\n font-size: var(--fs-text-xs-size);\n color: var(--fs-ink);\n background: var(--fs-bg-surface);\n border: var(--fs-line-width) solid var(--fs-line-control-strong);\n border-radius: var(--fs-radius-md);\n cursor: grab;\n }\n .fs-palette-pill > .fs-icon {\n width: 14px;\n height: 14px;\n color: var(--fs-ink-muted);\n }\n}\n";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Drop zone and slot (spec 02 F; Grizzbi's Open screen). Usage: dropzone.md. */\n@layer fs.components {\n .fs-dropzone {\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: var(--fs-space-3);\n box-sizing: border-box;\n min-height: 300px;\n padding: var(--fs-space-8) var(--fs-space-6);\n color: var(--fs-ink);\n text-align: center;\n background: var(--fs-bg-surface);\n border: 2px dashed var(--fs-line-control-strong);\n border-radius: var(--fs-radius-lg);\n }\n .fs-dropzone__icon {\n width: 32px;\n height: 32px;\n color: var(--fs-ink-muted);\n }\n .fs-dropzone__title {\n margin: 0;\n font-size: var(--fs-text-2xl-size);\n line-height: var(--fs-text-2xl-line);\n font-weight: var(--fs-weight-semibold);\n letter-spacing: var(--fs-tracking-tight);\n }\n .fs-dropzone__text {\n margin: 0;\n color: var(--fs-ink-2);\n }\n .fs-dropzone__actions {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: var(--fs-space-2);\n }\n .fs-dropzone__overlay {\n position: absolute;\n inset: 0;\n display: none;\n place-items: center;\n font-size: var(--fs-text-xl-size);\n line-height: var(--fs-text-xl-line);\n font-weight: var(--fs-weight-semibold);\n color: var(--fs-accent);\n background: var(--fs-accent-wash);\n border-radius: inherit;\n }\n .fs-dropzone.fs-is-dragover {\n border-color: var(--fs-accent);\n }\n .fs-dropzone.fs-is-dragover > .fs-dropzone__overlay {\n display: grid;\n }\n .fs-dropzone[aria-busy='true'] {\n border-style: solid;\n }\n .fs-dropzone.fs-is-error {\n border-style: solid;\n border-color: var(--fs-danger-fill);\n }\n\n /* A slot: a numbered field that names what it holds; filled is a success look. */\n .fs-slot {\n display: flex;\n align-items: center;\n gap: var(--fs-space-3);\n box-sizing: border-box;\n min-height: 56px;\n padding: var(--fs-space-3) var(--fs-space-4);\n color: var(--fs-ink);\n background: var(--fs-bg-surface);\n border: 2px dashed var(--fs-line-control-strong);\n border-radius: var(--fs-radius-lg);\n }\n .fs-slot__number {\n display: grid;\n flex: none;\n place-items: center;\n width: 24px;\n height: 24px;\n font-size: var(--fs-text-xs-size);\n font-weight: var(--fs-weight-bold);\n color: var(--fs-primary-ink);\n background: var(--fs-primary-bg);\n border-radius: 50%;\n }\n .fs-slot--optional .fs-slot__number {\n color: var(--fs-ink-2);\n background: transparent;\n box-shadow: inset 0 0 0 1.5px var(--fs-line-control-strong);\n }\n .fs-slot__content {\n flex: 1 1 auto;\n min-width: 0;\n }\n .fs-slot__title {\n display: block;\n font-weight: var(--fs-weight-semibold);\n }\n .fs-slot__text {\n display: block;\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n color: var(--fs-ink-2);\n }\n .fs-slot--filled {\n background: var(--fs-positive-wash);\n border-style: solid;\n border-color: var(--fs-positive-fill);\n }\n .fs-slot.fs-is-dragover {\n background: var(--fs-accent-wash);\n border-color: var(--fs-accent);\n }\n}\n";
|
|
1
|
+
export default "/* Drop zone and slot (spec 02 F; Grizzbi's Open screen). Usage: dropzone.md. */\n@layer fs.components {\n .fs-dropzone {\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: var(--fs-space-3);\n box-sizing: border-box;\n min-height: 300px;\n padding: var(--fs-space-8) var(--fs-space-6);\n color: var(--fs-ink);\n text-align: center;\n background: var(--fs-bg-surface);\n border: 2px dashed var(--fs-line-control-strong);\n border-radius: var(--fs-radius-lg);\n }\n .fs-dropzone__icon {\n width: 32px;\n height: 32px;\n color: var(--fs-ink-muted);\n }\n .fs-dropzone__title {\n margin: 0;\n font-size: var(--fs-text-2xl-size);\n line-height: var(--fs-text-2xl-line);\n font-weight: var(--fs-weight-semibold);\n letter-spacing: var(--fs-tracking-tight);\n }\n .fs-dropzone__text {\n margin: 0;\n color: var(--fs-ink-2);\n }\n .fs-dropzone__actions {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: var(--fs-space-2);\n }\n .fs-dropzone__overlay {\n position: absolute;\n inset: 0;\n display: none;\n place-items: center;\n font-size: var(--fs-text-xl-size);\n line-height: var(--fs-text-xl-line);\n font-weight: var(--fs-weight-semibold);\n color: var(--fs-accent);\n background: var(--fs-accent-wash);\n border-radius: inherit;\n }\n .fs-dropzone.fs-is-dragover {\n border-color: var(--fs-accent);\n }\n .fs-dropzone.fs-is-dragover > .fs-dropzone__overlay {\n display: grid;\n }\n .fs-dropzone[aria-busy='true'] {\n border-style: solid;\n }\n .fs-dropzone.fs-is-error {\n border-style: solid;\n border-color: var(--fs-danger-fill);\n }\n\n /* A slot: a numbered field that names what it holds; filled is a success look. */\n .fs-slot {\n display: flex;\n align-items: center;\n gap: var(--fs-space-3);\n box-sizing: border-box;\n min-height: 56px;\n padding: var(--fs-space-3) var(--fs-space-4);\n color: var(--fs-ink);\n background: var(--fs-bg-surface);\n border: 2px dashed var(--fs-line-control-strong);\n border-radius: var(--fs-radius-lg);\n }\n .fs-slot__number {\n display: grid;\n flex: none;\n place-items: center;\n width: 24px;\n height: 24px;\n font-size: var(--fs-text-xs-size);\n font-weight: var(--fs-weight-bold);\n color: var(--fs-primary-ink);\n background: var(--fs-primary-bg);\n border-radius: 50%;\n }\n .fs-slot--optional .fs-slot__number {\n color: var(--fs-ink-2);\n background: transparent;\n box-shadow: inset 0 0 0 1.5px var(--fs-line-control-strong);\n }\n .fs-slot__content {\n flex: 1 1 auto;\n min-width: 0;\n }\n .fs-slot__title {\n display: block;\n font-weight: var(--fs-weight-semibold);\n }\n .fs-slot__text {\n display: block;\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n color: var(--fs-ink-2);\n }\n .fs-slot--filled {\n background: var(--fs-positive-wash);\n border-style: solid;\n border-color: var(--fs-positive-fill);\n }\n .fs-slot.fs-is-dragover {\n background: var(--fs-accent-wash);\n border-color: var(--fs-accent);\n }\n\n /* Forced colours erase the wash and the accent edge: the slot being dropped on gets a Highlight\n ring just outside its edge, on Canvas (T107). */\n @media (forced-colors: active) {\n .fs-slot.fs-is-dragover {\n outline: 2px solid Highlight;\n outline-offset: 2px;\n }\n }\n}\n";
|