@finstack-com-public/design 0.10.0 → 0.10.2
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 +52 -0
- package/dist/css/breadcrumbs.css +7 -0
- package/dist/css/button.css +14 -0
- package/dist/css/disclosure.css +7 -0
- package/dist/css/dropzone.css +9 -0
- package/dist/css/field.css +18 -0
- package/dist/css/grid.css +21 -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/node.css +6 -0
- package/dist/css/node.md +1 -1
- package/dist/css/progress.css +17 -0
- package/dist/css/reset.css +3 -1
- package/dist/css/reset.md +1 -0
- package/dist/css/table.css +8 -0
- package/dist/css/tabs.css +9 -0
- package/dist/css/tokens.css +6 -0
- package/dist/css/tree.css +8 -0
- package/dist/css/xyflow.css +2 -1
- package/dist/css/xyflow.md +2 -2
- package/dist/css-text/breadcrumbs.js +1 -1
- package/dist/css-text/button.js +1 -1
- package/dist/css-text/disclosure.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 +184 -0
- package/dist/css-text/menu.js +1 -1
- package/dist/css-text/node.js +1 -1
- package/dist/css-text/progress.js +1 -1
- package/dist/css-text/reset.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/css-text/xyflow.js +1 -1
- package/dist/grid.json +1 -0
- package/dist/icons/masks.css +167 -1
- package/dist/kit.css +184 -0
- package/dist/tokens/contrast-pairs.js +2 -3
- package/dist/tokens/grid.d.ts +1 -0
- package/dist/tokens/grid.js +1 -0
- package/dist/tokens/index.d.ts +2 -2
- package/dist/tokens.json +2 -0
- package/package.json +1 -1
package/dist/css-text/input.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Text input, textarea and select (spec 02 B). Usage: input.md. */\n@layer fs.components {\n .fs-input,\n .fs-textarea,\n .fs-select__control {\n box-sizing: border-box;\n width: 100%;\n margin: 0;\n padding: 0 var(--fs-pad-x);\n font: inherit;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n color: var(--fs-ink);\n background-color: var(--fs-bg-sunken);\n border: var(--fs-line-width) solid var(--fs-line-control);\n border-radius: var(--fs-radius-md);\n }\n .fs-input,\n .fs-select__control {\n height: var(--fs-control-h);\n }\n .fs-textarea {\n display: block;\n min-height: calc(var(--fs-text-body-line) * 3 + var(--fs-space-2) * 2);\n padding-block: var(--fs-space-2);\n resize: vertical;\n }\n /* A button that opens a picker (a tree, chips, a calendar) and shows the chosen value. */\n .fs-input--picker {\n display: flex;\n align-items: center;\n text-align: left;\n cursor: pointer;\n }\n .fs-input--num {\n text-align: right;\n font-variant-numeric: tabular-nums;\n }\n .fs-input::placeholder,\n .fs-textarea::placeholder {\n color: var(--fs-ink-muted);\n opacity: 1;\n }\n\n @media (hover: hover) {\n .fs-input:hover,\n .fs-textarea:hover,\n .fs-select__control:hover {\n border-color: var(--fs-ink-2);\n }\n }\n\n /* The ring recipe (D15). */\n .fs-input:focus-visible,\n .fs-textarea:focus-visible,\n .fs-select__control: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-input[aria-invalid='true'],\n .fs-textarea[aria-invalid='true'],\n .fs-select__control[aria-invalid='true'] {\n border-color: var(--fs-danger-fill);\n }\n\n /* Read-only: no control edge, the value in full ink. `:read-only` matches anything not editable, a\n <button> too, so the picker button is left out (T84); `:where` keeps the specificity at (0,2,0), so\n disabled still wins. */\n .fs-input:where(:not(.fs-input--picker)):read-only,\n .fs-textarea:read-only {\n background-color: transparent;\n border-color: transparent;\n }\n .fs-textarea:read-only {\n resize: none;\n }\n\n /* Disabled last. opacity: 1 undoes Safari's own dimming. */\n .fs-input:disabled,\n .fs-textarea:disabled,\n .fs-select__control:disabled {\n color: var(--fs-ink-disabled);\n -webkit-text-fill-color: var(--fs-ink-disabled);\n background-color: var(--fs-bg-disabled);\n border-color: var(--fs-line);\n cursor: not-allowed;\n opacity: 1;\n }\n\n /* Select: a wrapper draws the chevron, since a <select> can't hold a pseudo-element. */\n .fs-select {\n position: relative;\n display: block;\n min-width: 0;\n color: var(--fs-ink-2);\n }\n .fs-select__control {\n appearance: none;\n padding-right: calc(var(--fs-pad-x) * 2 + 16px);\n cursor: pointer;\n }\n .fs-select::after {\n content: '';\n position: absolute;\n top: 0;\n right: var(--fs-pad-x);\n bottom: 0;\n width: 16px;\n margin: auto 0;\n height: 16px;\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='1.875' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\")\n center / contain no-repeat;\n pointer-events: none;\n }\n .fs-select:has(:disabled) {\n color: var(--fs-ink-disabled);\n }\n}\n";
|
|
1
|
+
export default "/* Text input, textarea and select (spec 02 B). Usage: input.md. */\n@layer fs.components {\n .fs-input,\n .fs-textarea,\n .fs-select__control {\n box-sizing: border-box;\n width: 100%;\n margin: 0;\n padding: 0 var(--fs-pad-x);\n font: inherit;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n color: var(--fs-ink);\n background-color: var(--fs-bg-sunken);\n border: var(--fs-line-width) solid var(--fs-line-control);\n border-radius: var(--fs-radius-md);\n }\n .fs-input,\n .fs-select__control {\n height: var(--fs-control-h);\n }\n .fs-textarea {\n display: block;\n min-height: calc(var(--fs-text-body-line) * 3 + var(--fs-space-2) * 2);\n padding-block: var(--fs-space-2);\n resize: vertical;\n }\n /* A button that opens a picker (a tree, chips, a calendar) and shows the chosen value. */\n .fs-input--picker {\n display: flex;\n align-items: center;\n text-align: left;\n cursor: pointer;\n }\n .fs-input--num {\n text-align: right;\n font-variant-numeric: tabular-nums;\n }\n .fs-input::placeholder,\n .fs-textarea::placeholder {\n color: var(--fs-ink-muted);\n opacity: 1;\n }\n\n @media (hover: hover) {\n .fs-input:hover,\n .fs-textarea:hover,\n .fs-select__control:hover {\n border-color: var(--fs-ink-2);\n }\n }\n\n /* The ring recipe (D15). */\n .fs-input:focus-visible,\n .fs-textarea:focus-visible,\n .fs-select__control: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-input[aria-invalid='true'],\n .fs-textarea[aria-invalid='true'],\n .fs-select__control[aria-invalid='true'] {\n border-color: var(--fs-danger-fill);\n }\n\n /* Read-only: no control edge, the value in full ink. `:read-only` matches anything not editable, a\n <button> too, so the picker button is left out (T84); `:where` keeps the specificity at (0,2,0), so\n disabled still wins. */\n .fs-input:where(:not(.fs-input--picker)):read-only,\n .fs-textarea:read-only {\n background-color: transparent;\n border-color: transparent;\n }\n .fs-textarea:read-only {\n resize: none;\n }\n\n /* Disabled last. opacity: 1 undoes Safari's own dimming. */\n .fs-input:disabled,\n .fs-textarea:disabled,\n .fs-select__control:disabled {\n color: var(--fs-ink-disabled);\n -webkit-text-fill-color: var(--fs-ink-disabled);\n background-color: var(--fs-bg-disabled);\n border-color: var(--fs-line);\n cursor: not-allowed;\n opacity: 1;\n }\n\n /* Select: a wrapper draws the chevron, since a <select> can't hold a pseudo-element. */\n .fs-select {\n position: relative;\n display: block;\n min-width: 0;\n color: var(--fs-ink-2);\n }\n .fs-select__control {\n appearance: none;\n padding-right: calc(var(--fs-pad-x) * 2 + 16px);\n cursor: pointer;\n }\n .fs-select::after {\n content: '';\n position: absolute;\n top: 0;\n right: var(--fs-pad-x);\n bottom: 0;\n width: 16px;\n margin: auto 0;\n height: 16px;\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='1.875' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\")\n center / contain no-repeat;\n pointer-events: none;\n }\n .fs-select:has(:disabled) {\n color: var(--fs-ink-disabled);\n }\n\n /* Forced colours erase a fill, so the select's arrow is drawn in a system colour (T105). */\n @media (forced-colors: active) {\n .fs-select::after {\n background-color: CanvasText;\n }\n .fs-select:has(:disabled)::after {\n background-color: GrayText;\n }\n /* An invalid control's red edge becomes the plain one: a second, inner line marks it (T107). */\n .fs-input[aria-invalid='true'],\n .fs-textarea[aria-invalid='true'],\n .fs-select__control[aria-invalid='true'] {\n outline: var(--fs-line-width) solid CanvasText;\n outline-offset: calc(-2 * var(--fs-line-width) - 1px);\n }\n .fs-input:disabled,\n .fs-textarea:disabled,\n .fs-select__control:disabled {\n color: GrayText;\n -webkit-text-fill-color: GrayText;\n border-color: GrayText;\n }\n }\n}\n";
|
package/dist/css-text/kit.js
CHANGED
|
@@ -171,6 +171,7 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
171
171
|
--fs-grid-selected: #3d3db4;
|
|
172
172
|
--fs-grid-selected-invalid-bg: rgba(252,0,0,0.10);
|
|
173
173
|
--fs-grid-editing-bg: rgb(221,221,244);
|
|
174
|
+
--fs-grid-editing-danger-ink: #b71c1c;
|
|
174
175
|
--fs-grid-nodata-bg: rgba(0,0,0,0.03);
|
|
175
176
|
--fs-grid-chevron: #8a8983;
|
|
176
177
|
--fs-grid-tree-guide: #d9d9d9;
|
|
@@ -432,6 +433,7 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
432
433
|
--fs-grid-selected: #8c8cff;
|
|
433
434
|
--fs-grid-selected-invalid-bg: rgba(255,138,128,0.08);
|
|
434
435
|
--fs-grid-editing-bg: #223a7e;
|
|
436
|
+
--fs-grid-editing-danger-ink: #ff8a80;
|
|
435
437
|
--fs-grid-nodata-bg: rgba(232,238,252,0.04);
|
|
436
438
|
--fs-grid-chevron: #6f81ad;
|
|
437
439
|
--fs-grid-tree-guide: #22356a;
|
|
@@ -570,6 +572,7 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
570
572
|
--fs-grid-selected: #8c8cff;
|
|
571
573
|
--fs-grid-selected-invalid-bg: rgba(255,138,128,0.08);
|
|
572
574
|
--fs-grid-editing-bg: #223a7e;
|
|
575
|
+
--fs-grid-editing-danger-ink: #ff8a80;
|
|
573
576
|
--fs-grid-nodata-bg: rgba(232,238,252,0.04);
|
|
574
577
|
--fs-grid-chevron: #6f81ad;
|
|
575
578
|
--fs-grid-tree-guide: #22356a;
|
|
@@ -708,6 +711,7 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
708
711
|
--fs-grid-selected: #3d3db4;
|
|
709
712
|
--fs-grid-selected-invalid-bg: rgba(252,0,0,0.10);
|
|
710
713
|
--fs-grid-editing-bg: rgb(221,221,244);
|
|
714
|
+
--fs-grid-editing-danger-ink: #b71c1c;
|
|
711
715
|
--fs-grid-nodata-bg: rgba(0,0,0,0.03);
|
|
712
716
|
--fs-grid-chevron: #8a8983;
|
|
713
717
|
--fs-grid-tree-guide: #d9d9d9;
|
|
@@ -889,6 +893,7 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
889
893
|
--fs-grid-selected: #8c8cff;
|
|
890
894
|
--fs-grid-selected-invalid-bg: rgba(255,138,128,0.08);
|
|
891
895
|
--fs-grid-editing-bg: #223a7e;
|
|
896
|
+
--fs-grid-editing-danger-ink: #ff8a80;
|
|
892
897
|
--fs-grid-nodata-bg: rgba(232,238,252,0.04);
|
|
893
898
|
--fs-grid-chevron: #6f81ad;
|
|
894
899
|
--fs-grid-tree-guide: #22356a;
|
|
@@ -1081,6 +1086,7 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
1081
1086
|
--fs-grid-selected: #3d3db4;
|
|
1082
1087
|
--fs-grid-selected-invalid-bg: rgba(252,0,0,0.10);
|
|
1083
1088
|
--fs-grid-editing-bg: rgb(221,221,244);
|
|
1089
|
+
--fs-grid-editing-danger-ink: #b71c1c;
|
|
1084
1090
|
--fs-grid-nodata-bg: rgba(0,0,0,0.03);
|
|
1085
1091
|
--fs-grid-chevron: #8a8983;
|
|
1086
1092
|
--fs-grid-tree-guide: #d9d9d9;
|
|
@@ -1236,6 +1242,13 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
1236
1242
|
outline-offset: var(--fs-ring-halo-width);
|
|
1237
1243
|
box-shadow: 0 0 0 var(--fs-ring-halo-width) var(--fs-ring-halo);
|
|
1238
1244
|
}
|
|
1245
|
+
|
|
1246
|
+
/* Forced colours erase a fill, so the separator's mask is drawn in CanvasText (T105). */
|
|
1247
|
+
@media (forced-colors: active) {
|
|
1248
|
+
.fs-breadcrumbs__item + .fs-breadcrumbs__item::before {
|
|
1249
|
+
background-color: CanvasText;
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1239
1252
|
}
|
|
1240
1253
|
|
|
1241
1254
|
/* Button (spec 02 A). Usage: button.md. */
|
|
@@ -1398,6 +1411,20 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
1398
1411
|
transform: rotate(360deg);
|
|
1399
1412
|
}
|
|
1400
1413
|
}
|
|
1414
|
+
|
|
1415
|
+
/* Forced colours erase the pressed fill and the accent edge, so pressed takes the system's
|
|
1416
|
+
selection colours; aria-disabled gets GrayText, as a native :disabled button does (T107). */
|
|
1417
|
+
@media (forced-colors: active) {
|
|
1418
|
+
.fs-button[aria-pressed='true'] {
|
|
1419
|
+
--fs-button-ink: HighlightText;
|
|
1420
|
+
background-color: Highlight;
|
|
1421
|
+
border-color: Highlight;
|
|
1422
|
+
}
|
|
1423
|
+
.fs-button[aria-disabled='true'] {
|
|
1424
|
+
--fs-button-ink: GrayText;
|
|
1425
|
+
border-color: GrayText;
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1401
1428
|
}
|
|
1402
1429
|
|
|
1403
1430
|
/* Calendar (spec 02 B): year, month and day views; one value or a range (T85), one page or two.
|
|
@@ -2626,6 +2653,13 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
2626
2653
|
background: var(--fs-gap-wash);
|
|
2627
2654
|
border-color: var(--fs-gap-edge);
|
|
2628
2655
|
}
|
|
2656
|
+
|
|
2657
|
+
/* Forced colours erase a fill, so the chevron's mask is drawn in CanvasText (T105, as node.css does). */
|
|
2658
|
+
@media (forced-colors: active) {
|
|
2659
|
+
.fs-disclosure__summary::before {
|
|
2660
|
+
background-color: CanvasText;
|
|
2661
|
+
}
|
|
2662
|
+
}
|
|
2629
2663
|
}
|
|
2630
2664
|
|
|
2631
2665
|
/* Drag markers (spec 02 F): the kit styles them; BI App's own engine runs the drag (BI §9.6).
|
|
@@ -2886,6 +2920,15 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
2886
2920
|
background: var(--fs-accent-wash);
|
|
2887
2921
|
border-color: var(--fs-accent);
|
|
2888
2922
|
}
|
|
2923
|
+
|
|
2924
|
+
/* Forced colours erase the wash and the accent edge: the slot being dropped on gets a Highlight
|
|
2925
|
+
ring just outside its edge, on Canvas (T107). */
|
|
2926
|
+
@media (forced-colors: active) {
|
|
2927
|
+
.fs-slot.fs-is-dragover {
|
|
2928
|
+
outline: 2px solid Highlight;
|
|
2929
|
+
outline-offset: 2px;
|
|
2930
|
+
}
|
|
2931
|
+
}
|
|
2889
2932
|
}
|
|
2890
2933
|
|
|
2891
2934
|
/* Empty state (spec 02 E). Usage: empty.md. */
|
|
@@ -3150,6 +3193,24 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
3150
3193
|
outline-offset: calc(-1 * var(--fs-ring-width));
|
|
3151
3194
|
box-shadow: inset 0 0 0 calc(var(--fs-ring-width) + var(--fs-ring-halo-width)) var(--fs-ring-halo);
|
|
3152
3195
|
}
|
|
3196
|
+
|
|
3197
|
+
/* Forced colours turn the invalid box's red edge into the plain one, so a second, inner line
|
|
3198
|
+
marks it (the focus ring takes the outline while focused); a disabled box greys its edge and
|
|
3199
|
+
text (T107). */
|
|
3200
|
+
@media (forced-colors: active) {
|
|
3201
|
+
.fs-field__box:has([aria-invalid='true']):not(:has(:focus-visible)) {
|
|
3202
|
+
outline: var(--fs-line-width) solid CanvasText;
|
|
3203
|
+
outline-offset: calc(-2 * var(--fs-line-width) - 1px);
|
|
3204
|
+
}
|
|
3205
|
+
.fs-field__box:has(:disabled) {
|
|
3206
|
+
color: GrayText;
|
|
3207
|
+
border-color: GrayText;
|
|
3208
|
+
}
|
|
3209
|
+
.fs-field__box:has(:disabled) :is(.fs-input, .fs-select__control, .fs-field__control) {
|
|
3210
|
+
color: GrayText;
|
|
3211
|
+
-webkit-text-fill-color: GrayText;
|
|
3212
|
+
}
|
|
3213
|
+
}
|
|
3153
3214
|
}
|
|
3154
3215
|
|
|
3155
3216
|
/* "Not computed" markers (spec 02 F; GZ §6.1). Usage: gap.md. Every marker brings its own surface
|
|
@@ -3555,6 +3616,12 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
3555
3616
|
.fs-grid .fs-cell--editing {
|
|
3556
3617
|
background-color: var(--fs-grid-editing-bg);
|
|
3557
3618
|
}
|
|
3619
|
+
/* Red ink on the editing fill: a darker red in light (T108), the same red as before in dark. */
|
|
3620
|
+
.fs-grid .fs-cell--editing.fs-cell--negative,
|
|
3621
|
+
.fs-grid .fs-cell--editing.fs-cell--error,
|
|
3622
|
+
.fs-grid .fs-cell--editing.fs-cell--invalid {
|
|
3623
|
+
color: var(--fs-grid-editing-danger-ink);
|
|
3624
|
+
}
|
|
3558
3625
|
.fs-grid .fs-cell--editing .fs-grid__cover {
|
|
3559
3626
|
visibility: hidden;
|
|
3560
3627
|
}
|
|
@@ -3580,6 +3647,21 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
3580
3647
|
border-top: 6px solid var(--fs-accent);
|
|
3581
3648
|
border-left: 6px solid transparent;
|
|
3582
3649
|
}
|
|
3650
|
+
|
|
3651
|
+
/* Forced colours erase the danger ink and the error fill: a wavy underline marks the value (on the
|
|
3652
|
+
cover, which is positioned, so the cell's own underline doesn't reach it), as .fs-diag--error
|
|
3653
|
+
does, and an error cell also gets a dashed inner edge (T107). */
|
|
3654
|
+
@media (forced-colors: active) {
|
|
3655
|
+
.fs-grid :is(.fs-cell--invalid, .fs-cell--error) > .fs-grid__cover {
|
|
3656
|
+
text-decoration: underline wavy CanvasText;
|
|
3657
|
+
text-decoration-skip-ink: none;
|
|
3658
|
+
text-underline-offset: 3px;
|
|
3659
|
+
}
|
|
3660
|
+
.fs-grid .fs-cell--error:not(.fs-is-selected) {
|
|
3661
|
+
outline: var(--fs-line-width) dashed CanvasText;
|
|
3662
|
+
outline-offset: -3px;
|
|
3663
|
+
}
|
|
3664
|
+
}
|
|
3583
3665
|
}
|
|
3584
3666
|
|
|
3585
3667
|
/* Gutter mark (spec 02 H). Usage: gutter-mark.md.
|
|
@@ -3688,6 +3770,16 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
3688
3770
|
border-color: transparent;
|
|
3689
3771
|
cursor: not-allowed;
|
|
3690
3772
|
}
|
|
3773
|
+
|
|
3774
|
+
/* Forced colours erase the pressed fill and edge, so pressed takes the system's selection
|
|
3775
|
+
colours (T107). */
|
|
3776
|
+
@media (forced-colors: active) {
|
|
3777
|
+
.fs-icon-button[aria-pressed='true'] {
|
|
3778
|
+
color: HighlightText;
|
|
3779
|
+
background-color: Highlight;
|
|
3780
|
+
border-color: Highlight;
|
|
3781
|
+
}
|
|
3782
|
+
}
|
|
3691
3783
|
}
|
|
3692
3784
|
|
|
3693
3785
|
/* Icons drawn by createIcon and iconSvg (spec 05 §1). */
|
|
@@ -3825,6 +3917,30 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
3825
3917
|
.fs-select:has(:disabled) {
|
|
3826
3918
|
color: var(--fs-ink-disabled);
|
|
3827
3919
|
}
|
|
3920
|
+
|
|
3921
|
+
/* Forced colours erase a fill, so the select's arrow is drawn in a system colour (T105). */
|
|
3922
|
+
@media (forced-colors: active) {
|
|
3923
|
+
.fs-select::after {
|
|
3924
|
+
background-color: CanvasText;
|
|
3925
|
+
}
|
|
3926
|
+
.fs-select:has(:disabled)::after {
|
|
3927
|
+
background-color: GrayText;
|
|
3928
|
+
}
|
|
3929
|
+
/* An invalid control's red edge becomes the plain one: a second, inner line marks it (T107). */
|
|
3930
|
+
.fs-input[aria-invalid='true'],
|
|
3931
|
+
.fs-textarea[aria-invalid='true'],
|
|
3932
|
+
.fs-select__control[aria-invalid='true'] {
|
|
3933
|
+
outline: var(--fs-line-width) solid CanvasText;
|
|
3934
|
+
outline-offset: calc(-2 * var(--fs-line-width) - 1px);
|
|
3935
|
+
}
|
|
3936
|
+
.fs-input:disabled,
|
|
3937
|
+
.fs-textarea:disabled,
|
|
3938
|
+
.fs-select__control:disabled {
|
|
3939
|
+
color: GrayText;
|
|
3940
|
+
-webkit-text-fill-color: GrayText;
|
|
3941
|
+
border-color: GrayText;
|
|
3942
|
+
}
|
|
3943
|
+
}
|
|
3828
3944
|
}
|
|
3829
3945
|
|
|
3830
3946
|
/* Kicker and section label (spec 02 E). Usage: kicker.md. */
|
|
@@ -4353,6 +4469,26 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
4353
4469
|
.fs-menu__item[aria-disabled='true'] > .fs-icon {
|
|
4354
4470
|
color: var(--fs-ink-disabled);
|
|
4355
4471
|
}
|
|
4472
|
+
|
|
4473
|
+
/* Forced colours erase a fill, so the check mark is drawn in a system colour (T105). */
|
|
4474
|
+
@media (forced-colors: active) {
|
|
4475
|
+
.fs-menu__item:is([role='menuitemcheckbox'], [role='menuitemradio'])[aria-checked='true']::before {
|
|
4476
|
+
background-color: CanvasText;
|
|
4477
|
+
}
|
|
4478
|
+
.fs-menu__item:is([role='menuitemcheckbox'], [role='menuitemradio'])[aria-checked='true']:is(
|
|
4479
|
+
[aria-disabled='true'],
|
|
4480
|
+
:disabled
|
|
4481
|
+
)::before {
|
|
4482
|
+
background-color: GrayText;
|
|
4483
|
+
}
|
|
4484
|
+
/* A disabled item's ink is forced to the plain text colour, so it is greyed with GrayText. Firefox
|
|
4485
|
+
showed no difference without this; Chromium did, for a reason not traced (T109). */
|
|
4486
|
+
.fs-menu__item[aria-disabled='true'],
|
|
4487
|
+
.fs-menu__item:disabled,
|
|
4488
|
+
.fs-menu__item[aria-disabled='true'] > .fs-icon {
|
|
4489
|
+
color: GrayText;
|
|
4490
|
+
}
|
|
4491
|
+
}
|
|
4356
4492
|
}
|
|
4357
4493
|
|
|
4358
4494
|
/* Meter (spec 02 E; Grizzbi's score meter). Usage: meter.md. */
|
|
@@ -4532,9 +4668,11 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
4532
4668
|
text-transform: uppercase;
|
|
4533
4669
|
color: var(--fs-ink-2);
|
|
4534
4670
|
}
|
|
4671
|
+
/* The chevron takes the head's ink, not --fs-grid-chevron, so it reads at the weight of its caps label (T103). */
|
|
4535
4672
|
.fs-node__section-head::before {
|
|
4536
4673
|
width: 12px;
|
|
4537
4674
|
height: 12px;
|
|
4675
|
+
background-color: var(--fs-ink-2);
|
|
4538
4676
|
}
|
|
4539
4677
|
/* The slot for T92's mark counts, pushed right. */
|
|
4540
4678
|
.fs-node__counts {
|
|
@@ -4620,6 +4758,10 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
4620
4758
|
background-image: none;
|
|
4621
4759
|
border-bottom: var(--fs-line-width) dashed CanvasText;
|
|
4622
4760
|
}
|
|
4761
|
+
/* Forced colours erase a fill, so the section chevron's mask is drawn in CanvasText (T103). */
|
|
4762
|
+
.fs-node__section-head::before {
|
|
4763
|
+
background-color: CanvasText;
|
|
4764
|
+
}
|
|
4623
4765
|
}
|
|
4624
4766
|
}
|
|
4625
4767
|
|
|
@@ -5175,6 +5317,23 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
5175
5317
|
transform: rotate(360deg);
|
|
5176
5318
|
}
|
|
5177
5319
|
}
|
|
5320
|
+
|
|
5321
|
+
/* Forced colours draw a transparent border and erase fills and shadows, so every step would be a
|
|
5322
|
+
plain ring: the current step's gap is painted in Canvas, done is a filled dot, failed a thick
|
|
5323
|
+
ring (T107). */
|
|
5324
|
+
@media (forced-colors: active) {
|
|
5325
|
+
.fs-progress__step[aria-current='step']::before {
|
|
5326
|
+
border-color: CanvasText;
|
|
5327
|
+
border-top-color: Canvas;
|
|
5328
|
+
}
|
|
5329
|
+
.fs-progress__step.fs-is-done::before {
|
|
5330
|
+
background-color: CanvasText;
|
|
5331
|
+
border-color: CanvasText;
|
|
5332
|
+
}
|
|
5333
|
+
.fs-progress__step.fs-is-failed::before {
|
|
5334
|
+
border: 4px solid CanvasText;
|
|
5335
|
+
}
|
|
5336
|
+
}
|
|
5178
5337
|
}
|
|
5179
5338
|
|
|
5180
5339
|
/* Segmented control (spec 02 A). Usage: segmented.md. Behaviour: createRovingGroup, mode 'radio'.
|
|
@@ -5951,6 +6110,14 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
5951
6110
|
break-inside: avoid;
|
|
5952
6111
|
}
|
|
5953
6112
|
}
|
|
6113
|
+
|
|
6114
|
+
/* Forced colours erase the selected row's fill: the system's selection colours instead (T107). */
|
|
6115
|
+
@media (forced-colors: active) {
|
|
6116
|
+
.fs-table tbody tr[aria-selected='true'] > * {
|
|
6117
|
+
color: HighlightText;
|
|
6118
|
+
background-color: Highlight;
|
|
6119
|
+
}
|
|
6120
|
+
}
|
|
5954
6121
|
}
|
|
5955
6122
|
|
|
5956
6123
|
/* Tabs, choice tabs and page tabs (spec 02 C). Usage: tabs.md. Behaviour: createTabs. */
|
|
@@ -6133,6 +6300,15 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
6133
6300
|
background-color: transparent;
|
|
6134
6301
|
cursor: not-allowed;
|
|
6135
6302
|
}
|
|
6303
|
+
|
|
6304
|
+
/* After the disabled rule above, which it overrides: forced colours turn the disabled ink into
|
|
6305
|
+
the plain text colour, so a disabled tab is greyed with GrayText (T107). */
|
|
6306
|
+
@media (forced-colors: active) {
|
|
6307
|
+
.fs-tabs__tab:disabled,
|
|
6308
|
+
.fs-tabs__tab[aria-disabled='true'] {
|
|
6309
|
+
color: GrayText;
|
|
6310
|
+
}
|
|
6311
|
+
}
|
|
6136
6312
|
}
|
|
6137
6313
|
|
|
6138
6314
|
/* Page and section titles (spec 01 §4, T68, D39). Usage: title.md. */
|
|
@@ -6530,6 +6706,14 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
6530
6706
|
.fs-tree__status.fs-tone-danger {
|
|
6531
6707
|
color: var(--fs-danger-ink);
|
|
6532
6708
|
}
|
|
6709
|
+
|
|
6710
|
+
/* Forced colours erase the selected row's fill: the system's selection colours instead (T107). */
|
|
6711
|
+
@media (forced-colors: active) {
|
|
6712
|
+
.fs-tree__item[aria-selected='true'] > .fs-tree__row {
|
|
6713
|
+
color: HighlightText;
|
|
6714
|
+
background-color: Highlight;
|
|
6715
|
+
}
|
|
6716
|
+
}
|
|
6533
6717
|
}
|
|
6534
6718
|
|
|
6535
6719
|
/* Object-type icon colours (spec 02 F; 01-tokens §3.7). Usage: type-icon.md. Shipped in T14 for the tree. */
|
package/dist/css-text/menu.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Menu, context menu (spec 02 C) and completion list (spec 02 H). Usage: menu.md.\n Behaviour: createMenu, createListbox. */\n@layer fs.components {\n .fs-menu {\n box-sizing: border-box;\n min-width: 180px;\n max-width: 320px;\n max-height: calc(100vh - 16px);\n inset: auto;\n z-index: var(--fs-z-dropdown);\n margin: 0;\n padding: var(--fs-space-1);\n overflow-y: auto;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n color: var(--fs-ink);\n background: var(--fs-bg-surface);\n border: var(--fs-line-width) solid var(--fs-line-strong);\n border-radius: var(--fs-radius-md);\n box-shadow: var(--fs-shadow-2);\n }\n .fs-menu__title {\n padding: var(--fs-space-1) var(--fs-space-2);\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n font-weight: var(--fs-weight-semibold);\n color: var(--fs-ink-2);\n }\n .fs-menu__group-label {\n padding: var(--fs-space-2) var(--fs-space-2) var(--fs-space-1);\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n font-weight: var(--fs-weight-semibold);\n letter-spacing: var(--fs-tracking-caps);\n text-transform: uppercase;\n color: var(--fs-ink-muted);\n }\n .fs-menu__item {\n display: flex;\n align-items: center;\n gap: var(--fs-space-2);\n box-sizing: border-box;\n width: 100%;\n min-height: var(--fs-row-h);\n margin: 0;\n padding: 0 var(--fs-space-2);\n font: inherit;\n color: var(--fs-ink);\n text-align: left;\n background: transparent;\n border: 0;\n border-radius: var(--fs-radius-sm);\n cursor: pointer;\n }\n .fs-menu__item > .fs-icon {\n flex: none;\n width: var(--fs-icon-size);\n height: var(--fs-icon-size);\n color: var(--fs-ink-2);\n }\n .fs-menu__label {\n flex: 1 1 auto;\n min-width: 0;\n }\n .fs-menu__shortcut {\n margin-left: auto;\n padding-left: var(--fs-space-4);\n font-size: var(--fs-text-xs-size);\n font-variant-numeric: tabular-nums;\n color: var(--fs-ink-muted);\n }\n /* Checkable items keep a 16 px column for the check mark, checked or not. */\n .fs-menu__item:is([role='menuitemcheckbox'], [role='menuitemradio'])::before {\n content: '';\n flex: none;\n width: 16px;\n height: 16px;\n }\n .fs-menu__item:is([role='menuitemcheckbox'], [role='menuitemradio'])[aria-checked='true']::before {\n background-color: var(--fs-accent);\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='M20 6 9 17l-5-5'/%3E%3C/svg%3E\")\n center / contain no-repeat;\n }\n .fs-menu__separator {\n height: var(--fs-line-width);\n margin: var(--fs-space-1) calc(-1 * var(--fs-space-1));\n background: var(--fs-line);\n }\n\n @media (hover: hover) {\n .fs-menu__item:hover {\n background-color: var(--fs-bg-hover);\n }\n }\n .fs-menu__item:focus {\n background-color: var(--fs-bg-hover);\n outline: none;\n }\n\n /* The ring recipe (D15), inside the item so neighbours don't cover it. */\n .fs-menu__item:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: calc(-1 * var(--fs-ring-width));\n box-shadow: inset 0 0 0 calc(var(--fs-ring-width) + var(--fs-ring-halo-width)) var(--fs-ring-halo);\n }\n\n /* Completion list (spec 02 H): a listbox whose current option is drawn, not focused; focus stays\n in the editor (aria-activedescendant). Hover tint plus the ring drawn inside (T13 pattern). */\n .fs-menu--listbox {\n max-height: min(320px, calc(100vh - 16px));\n }\n .fs-menu--listbox .fs-menu__item {\n cursor: default;\n }\n /* The label keeps its width (up to three quarters of the row); the detail gives way. */\n .fs-menu--listbox .fs-menu__label {\n flex: 1 0 auto;\n max-width: 75%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .fs-menu__kind {\n flex: none;\n color: var(--fs-ink-2);\n }\n .fs-menu__detail {\n flex: 0 1 auto;\n min-width: 0;\n margin-left: auto;\n padding-left: var(--fs-space-4);\n overflow: hidden;\n font-size: var(--fs-text-xs-size);\n color: var(--fs-ink-muted);\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .fs-menu__empty {\n display: flex;\n align-items: center;\n min-height: var(--fs-row-h);\n padding: 0 var(--fs-space-2);\n color: var(--fs-ink-muted);\n }\n .fs-menu--listbox .fs-menu__item[aria-selected='true'] {\n background-color: var(--fs-bg-hover);\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: calc(-1 * var(--fs-ring-width));\n box-shadow: inset 0 0 0 calc(var(--fs-ring-width) + var(--fs-ring-halo-width)) var(--fs-ring-halo);\n }\n\n .fs-menu__item[aria-disabled='true'],\n .fs-menu__item:disabled {\n color: var(--fs-ink-disabled);\n cursor: not-allowed;\n }\n .fs-menu__item[aria-disabled='true'] > .fs-icon {\n color: var(--fs-ink-disabled);\n }\n}\n";
|
|
1
|
+
export default "/* Menu, context menu (spec 02 C) and completion list (spec 02 H). Usage: menu.md.\n Behaviour: createMenu, createListbox. */\n@layer fs.components {\n .fs-menu {\n box-sizing: border-box;\n min-width: 180px;\n max-width: 320px;\n max-height: calc(100vh - 16px);\n inset: auto;\n z-index: var(--fs-z-dropdown);\n margin: 0;\n padding: var(--fs-space-1);\n overflow-y: auto;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n color: var(--fs-ink);\n background: var(--fs-bg-surface);\n border: var(--fs-line-width) solid var(--fs-line-strong);\n border-radius: var(--fs-radius-md);\n box-shadow: var(--fs-shadow-2);\n }\n .fs-menu__title {\n padding: var(--fs-space-1) var(--fs-space-2);\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n font-weight: var(--fs-weight-semibold);\n color: var(--fs-ink-2);\n }\n .fs-menu__group-label {\n padding: var(--fs-space-2) var(--fs-space-2) var(--fs-space-1);\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n font-weight: var(--fs-weight-semibold);\n letter-spacing: var(--fs-tracking-caps);\n text-transform: uppercase;\n color: var(--fs-ink-muted);\n }\n .fs-menu__item {\n display: flex;\n align-items: center;\n gap: var(--fs-space-2);\n box-sizing: border-box;\n width: 100%;\n min-height: var(--fs-row-h);\n margin: 0;\n padding: 0 var(--fs-space-2);\n font: inherit;\n color: var(--fs-ink);\n text-align: left;\n background: transparent;\n border: 0;\n border-radius: var(--fs-radius-sm);\n cursor: pointer;\n }\n .fs-menu__item > .fs-icon {\n flex: none;\n width: var(--fs-icon-size);\n height: var(--fs-icon-size);\n color: var(--fs-ink-2);\n }\n .fs-menu__label {\n flex: 1 1 auto;\n min-width: 0;\n }\n .fs-menu__shortcut {\n margin-left: auto;\n padding-left: var(--fs-space-4);\n font-size: var(--fs-text-xs-size);\n font-variant-numeric: tabular-nums;\n color: var(--fs-ink-muted);\n }\n /* Checkable items keep a 16 px column for the check mark, checked or not. */\n .fs-menu__item:is([role='menuitemcheckbox'], [role='menuitemradio'])::before {\n content: '';\n flex: none;\n width: 16px;\n height: 16px;\n }\n .fs-menu__item:is([role='menuitemcheckbox'], [role='menuitemradio'])[aria-checked='true']::before {\n background-color: var(--fs-accent);\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='M20 6 9 17l-5-5'/%3E%3C/svg%3E\")\n center / contain no-repeat;\n }\n .fs-menu__separator {\n height: var(--fs-line-width);\n margin: var(--fs-space-1) calc(-1 * var(--fs-space-1));\n background: var(--fs-line);\n }\n\n @media (hover: hover) {\n .fs-menu__item:hover {\n background-color: var(--fs-bg-hover);\n }\n }\n .fs-menu__item:focus {\n background-color: var(--fs-bg-hover);\n outline: none;\n }\n\n /* The ring recipe (D15), inside the item so neighbours don't cover it. */\n .fs-menu__item:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: calc(-1 * var(--fs-ring-width));\n box-shadow: inset 0 0 0 calc(var(--fs-ring-width) + var(--fs-ring-halo-width)) var(--fs-ring-halo);\n }\n\n /* Completion list (spec 02 H): a listbox whose current option is drawn, not focused; focus stays\n in the editor (aria-activedescendant). Hover tint plus the ring drawn inside (T13 pattern). */\n .fs-menu--listbox {\n max-height: min(320px, calc(100vh - 16px));\n }\n .fs-menu--listbox .fs-menu__item {\n cursor: default;\n }\n /* The label keeps its width (up to three quarters of the row); the detail gives way. */\n .fs-menu--listbox .fs-menu__label {\n flex: 1 0 auto;\n max-width: 75%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .fs-menu__kind {\n flex: none;\n color: var(--fs-ink-2);\n }\n .fs-menu__detail {\n flex: 0 1 auto;\n min-width: 0;\n margin-left: auto;\n padding-left: var(--fs-space-4);\n overflow: hidden;\n font-size: var(--fs-text-xs-size);\n color: var(--fs-ink-muted);\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .fs-menu__empty {\n display: flex;\n align-items: center;\n min-height: var(--fs-row-h);\n padding: 0 var(--fs-space-2);\n color: var(--fs-ink-muted);\n }\n .fs-menu--listbox .fs-menu__item[aria-selected='true'] {\n background-color: var(--fs-bg-hover);\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: calc(-1 * var(--fs-ring-width));\n box-shadow: inset 0 0 0 calc(var(--fs-ring-width) + var(--fs-ring-halo-width)) var(--fs-ring-halo);\n }\n\n .fs-menu__item[aria-disabled='true'],\n .fs-menu__item:disabled {\n color: var(--fs-ink-disabled);\n cursor: not-allowed;\n }\n .fs-menu__item[aria-disabled='true'] > .fs-icon {\n color: var(--fs-ink-disabled);\n }\n\n /* Forced colours erase a fill, so the check mark is drawn in a system colour (T105). */\n @media (forced-colors: active) {\n .fs-menu__item:is([role='menuitemcheckbox'], [role='menuitemradio'])[aria-checked='true']::before {\n background-color: CanvasText;\n }\n .fs-menu__item:is([role='menuitemcheckbox'], [role='menuitemradio'])[aria-checked='true']:is(\n [aria-disabled='true'],\n :disabled\n )::before {\n background-color: GrayText;\n }\n /* A disabled item's ink is forced to the plain text colour, so it is greyed with GrayText. Firefox\n showed no difference without this; Chromium did, for a reason not traced (T109). */\n .fs-menu__item[aria-disabled='true'],\n .fs-menu__item:disabled,\n .fs-menu__item[aria-disabled='true'] > .fs-icon {\n color: GrayText;\n }\n }\n}\n";
|
package/dist/css-text/node.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Node frame: a box for a diagram, with a header, rows and a folding section (spec 02 J, T96). Usage: node.md. The kit draws no ports. */\n@layer fs.components {\n .fs-node {\n --fs-node-edge: var(--fs-line-strong);\n box-sizing: border-box;\n width: var(--fs-node-width, 248px);\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n color: var(--fs-ink);\n background: var(--fs-bg-surface);\n /* D37: corners 0 and no shadow. */\n border: var(--fs-line-width) solid var(--fs-node-edge);\n border-radius: 0;\n transition: border-color var(--fs-dur);\n }\n\n /* The header is the drag handle: it can be a div or a button. */\n .fs-node__header {\n position: relative;\n display: flex;\n align-items: center;\n gap: var(--fs-space-2);\n box-sizing: border-box;\n width: 100%;\n margin: 0;\n padding: 8px 10px;\n border: 0;\n border-bottom: var(--fs-line-width) solid var(--fs-line);\n border-radius: 0;\n background: var(--fs-bg-chrome);\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: grab;\n }\n .fs-node__icon {\n flex: none;\n color: var(--fs-ink-2);\n }\n .fs-node__name {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n font-weight: var(--fs-weight-semibold);\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .fs-node__meta {\n flex: none;\n color: var(--fs-ink-muted);\n white-space: nowrap;\n font-variant-numeric: tabular-nums;\n }\n\n /* Any children: rows, a section, a \"more\" line, or the product's own. */\n .fs-node__body {\n display: grid;\n padding: 3px 0;\n }\n .fs-node__body:empty {\n display: none;\n }\n\n .fs-node__row {\n position: relative;\n display: flex;\n align-items: center;\n gap: 7px;\n box-sizing: border-box;\n width: 100%;\n min-height: 24px;\n margin: 0;\n padding: 2px 10px;\n border: 0;\n border-radius: 0;\n background: none;\n color: inherit;\n font: inherit;\n text-align: left;\n }\n .fs-node__row-name {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .fs-node__tag {\n display: inline-flex;\n flex: none;\n align-items: center;\n color: var(--fs-ink-muted);\n }\n /* The word of a gap row (\"Not converted\"): the word is the cue, the hatch is its backdrop. */\n .fs-node__gap {\n flex: none;\n font-weight: var(--fs-weight-semibold);\n color: var(--fs-gap-ink);\n white-space: nowrap;\n }\n .fs-node__more {\n padding: 2px 10px 6px 39px;\n font-size: var(--fs-text-xs-size);\n color: var(--fs-ink-muted);\n }\n\n /* A row the product makes interactive: a button, or anything with a tabindex. */\n .fs-node__row:is(button, [tabindex]) {\n cursor: pointer;\n }\n .fs-node__header:focus-visible,\n .fs-node__row:focus-visible,\n .fs-node__section-head:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: calc(-1 * var(--fs-ring-width));\n }\n @media (hover: hover) {\n .fs-node__row:hover {\n background-color: var(--fs-bg-hover);\n }\n }\n .fs-node__row.fs-is-selected {\n background-color: var(--fs-bg-selected);\n }\n /* Lit: an accent wash and a 3 px accent left edge. */\n .fs-node__row.fs-is-lit {\n background-color: var(--fs-accent-wash);\n box-shadow: inset 3px 0 0 var(--fs-accent);\n }\n .fs-node__row.fs-is-hidden .fs-node__row-name {\n color: var(--fs-ink-muted);\n }\n .fs-node__row.fs-is-key .fs-node__row-name {\n font-weight: var(--fs-weight-semibold);\n }\n .fs-node__row.fs-is-gap {\n background-image: var(--fs-gap-hatch-sm);\n }\n\n /* The folding section, on .fs-disclosure (the chevron, the open state and the ring are its). */\n .fs-node__section {\n border-top: var(--fs-line-width) solid var(--fs-line);\n }\n .fs-node__section-head {\n min-height: 24px;\n padding: 2px 10px;\n border-radius: 0;\n font-weight: var(--fs-weight-semibold);\n letter-spacing: var(--fs-tracking-caps);\n text-transform: uppercase;\n color: var(--fs-ink-2);\n }\n .fs-node__section-head::before {\n width: 12px;\n height: 12px;\n }\n /* The slot for T92's mark counts, pushed right. */\n .fs-node__counts {\n display: flex;\n gap: 6px;\n margin-left: auto;\n letter-spacing: 0;\n text-transform: none;\n }\n .fs-node__section > .fs-disclosure__body {\n display: grid;\n padding: 3px 0;\n }\n\n /* Node states. Selected is an outline, outside the edge, so it never moves the layout. */\n .fs-node.fs-is-selected {\n outline: 2px solid var(--fs-accent);\n outline-offset: 2px;\n }\n /* Lit and match: the edge turns accent and the header takes the wash, so it is not colour on the edge alone. */\n .fs-node--lit,\n .fs-node--match {\n --fs-node-edge: var(--fs-accent);\n }\n .fs-node--lit > .fs-node__header,\n .fs-node--match > .fs-node__header {\n background-color: var(--fs-accent-wash);\n }\n /* Dim: the one deliberate contrast exception for a node (spec 06 §2). */\n .fs-node--dim {\n opacity: var(--fs-diagram-dim-node);\n }\n /* Fail (two filter paths): a dashed gap edge, and the gap hatch on the header. */\n .fs-node--fail {\n --fs-node-edge: var(--fs-gap-ink);\n border-style: dashed;\n }\n .fs-node--fail > .fs-node__header {\n background-image: var(--fs-gap-hatch-sm);\n }\n /* No data: a hatched header, and the product's \"No data\" in the meta, which turns bold and darker. */\n .fs-node--nodata > .fs-node__header {\n background-image: repeating-linear-gradient(135deg, var(--fs-bg-sunken) 0 6px, transparent 6px 12px);\n }\n .fs-node--nodata .fs-node__meta {\n color: var(--fs-ink-2);\n font-weight: var(--fs-weight-semibold);\n }\n /* Measures only: a dashed edge. */\n .fs-node--measures-only {\n border-style: dashed;\n }\n\n /* Forced colours: system colours; dashes, the outline and the left edge still show. */\n @media (forced-colors: active) {\n .fs-node {\n border-color: CanvasText;\n }\n .fs-node.fs-is-selected {\n outline-color: Highlight;\n }\n .fs-node--lit,\n .fs-node--match {\n border-color: Highlight;\n }\n /* Forced colours removes box-shadow, so the lit row's left edge is a border; the padding gives the 3 px back. */\n .fs-node__row.fs-is-lit {\n border-inline-start: 3px solid Highlight;\n padding-inline-start: 7px;\n }\n .fs-node__row.fs-is-selected {\n outline: 1px solid Highlight;\n outline-offset: -1px;\n }\n /* Forced colours erase a hatch: a dashed system-colour border takes its place (06 §7, as gap.css does). The row's\n border is inside its box-sizing, so the row keeps its height; the header's replaces its bottom hairline. */\n .fs-node__row.fs-is-gap {\n background-image: none;\n border: var(--fs-line-width) dashed CanvasText;\n }\n .fs-node--fail > .fs-node__header,\n .fs-node--nodata > .fs-node__header {\n background-image: none;\n border-bottom: var(--fs-line-width) dashed CanvasText;\n }\n }\n}\n";
|
|
1
|
+
export default "/* Node frame: a box for a diagram, with a header, rows and a folding section (spec 02 J, T96). Usage: node.md. The kit draws no ports. */\n@layer fs.components {\n .fs-node {\n --fs-node-edge: var(--fs-line-strong);\n box-sizing: border-box;\n width: var(--fs-node-width, 248px);\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n color: var(--fs-ink);\n background: var(--fs-bg-surface);\n /* D37: corners 0 and no shadow. */\n border: var(--fs-line-width) solid var(--fs-node-edge);\n border-radius: 0;\n transition: border-color var(--fs-dur);\n }\n\n /* The header is the drag handle: it can be a div or a button. */\n .fs-node__header {\n position: relative;\n display: flex;\n align-items: center;\n gap: var(--fs-space-2);\n box-sizing: border-box;\n width: 100%;\n margin: 0;\n padding: 8px 10px;\n border: 0;\n border-bottom: var(--fs-line-width) solid var(--fs-line);\n border-radius: 0;\n background: var(--fs-bg-chrome);\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: grab;\n }\n .fs-node__icon {\n flex: none;\n color: var(--fs-ink-2);\n }\n .fs-node__name {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n font-weight: var(--fs-weight-semibold);\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .fs-node__meta {\n flex: none;\n color: var(--fs-ink-muted);\n white-space: nowrap;\n font-variant-numeric: tabular-nums;\n }\n\n /* Any children: rows, a section, a \"more\" line, or the product's own. */\n .fs-node__body {\n display: grid;\n padding: 3px 0;\n }\n .fs-node__body:empty {\n display: none;\n }\n\n .fs-node__row {\n position: relative;\n display: flex;\n align-items: center;\n gap: 7px;\n box-sizing: border-box;\n width: 100%;\n min-height: 24px;\n margin: 0;\n padding: 2px 10px;\n border: 0;\n border-radius: 0;\n background: none;\n color: inherit;\n font: inherit;\n text-align: left;\n }\n .fs-node__row-name {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .fs-node__tag {\n display: inline-flex;\n flex: none;\n align-items: center;\n color: var(--fs-ink-muted);\n }\n /* The word of a gap row (\"Not converted\"): the word is the cue, the hatch is its backdrop. */\n .fs-node__gap {\n flex: none;\n font-weight: var(--fs-weight-semibold);\n color: var(--fs-gap-ink);\n white-space: nowrap;\n }\n .fs-node__more {\n padding: 2px 10px 6px 39px;\n font-size: var(--fs-text-xs-size);\n color: var(--fs-ink-muted);\n }\n\n /* A row the product makes interactive: a button, or anything with a tabindex. */\n .fs-node__row:is(button, [tabindex]) {\n cursor: pointer;\n }\n .fs-node__header:focus-visible,\n .fs-node__row:focus-visible,\n .fs-node__section-head:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: calc(-1 * var(--fs-ring-width));\n }\n @media (hover: hover) {\n .fs-node__row:hover {\n background-color: var(--fs-bg-hover);\n }\n }\n .fs-node__row.fs-is-selected {\n background-color: var(--fs-bg-selected);\n }\n /* Lit: an accent wash and a 3 px accent left edge. */\n .fs-node__row.fs-is-lit {\n background-color: var(--fs-accent-wash);\n box-shadow: inset 3px 0 0 var(--fs-accent);\n }\n .fs-node__row.fs-is-hidden .fs-node__row-name {\n color: var(--fs-ink-muted);\n }\n .fs-node__row.fs-is-key .fs-node__row-name {\n font-weight: var(--fs-weight-semibold);\n }\n .fs-node__row.fs-is-gap {\n background-image: var(--fs-gap-hatch-sm);\n }\n\n /* The folding section, on .fs-disclosure (the chevron, the open state and the ring are its). */\n .fs-node__section {\n border-top: var(--fs-line-width) solid var(--fs-line);\n }\n .fs-node__section-head {\n min-height: 24px;\n padding: 2px 10px;\n border-radius: 0;\n font-weight: var(--fs-weight-semibold);\n letter-spacing: var(--fs-tracking-caps);\n text-transform: uppercase;\n color: var(--fs-ink-2);\n }\n /* The chevron takes the head's ink, not --fs-grid-chevron, so it reads at the weight of its caps label (T103). */\n .fs-node__section-head::before {\n width: 12px;\n height: 12px;\n background-color: var(--fs-ink-2);\n }\n /* The slot for T92's mark counts, pushed right. */\n .fs-node__counts {\n display: flex;\n gap: 6px;\n margin-left: auto;\n letter-spacing: 0;\n text-transform: none;\n }\n .fs-node__section > .fs-disclosure__body {\n display: grid;\n padding: 3px 0;\n }\n\n /* Node states. Selected is an outline, outside the edge, so it never moves the layout. */\n .fs-node.fs-is-selected {\n outline: 2px solid var(--fs-accent);\n outline-offset: 2px;\n }\n /* Lit and match: the edge turns accent and the header takes the wash, so it is not colour on the edge alone. */\n .fs-node--lit,\n .fs-node--match {\n --fs-node-edge: var(--fs-accent);\n }\n .fs-node--lit > .fs-node__header,\n .fs-node--match > .fs-node__header {\n background-color: var(--fs-accent-wash);\n }\n /* Dim: the one deliberate contrast exception for a node (spec 06 §2). */\n .fs-node--dim {\n opacity: var(--fs-diagram-dim-node);\n }\n /* Fail (two filter paths): a dashed gap edge, and the gap hatch on the header. */\n .fs-node--fail {\n --fs-node-edge: var(--fs-gap-ink);\n border-style: dashed;\n }\n .fs-node--fail > .fs-node__header {\n background-image: var(--fs-gap-hatch-sm);\n }\n /* No data: a hatched header, and the product's \"No data\" in the meta, which turns bold and darker. */\n .fs-node--nodata > .fs-node__header {\n background-image: repeating-linear-gradient(135deg, var(--fs-bg-sunken) 0 6px, transparent 6px 12px);\n }\n .fs-node--nodata .fs-node__meta {\n color: var(--fs-ink-2);\n font-weight: var(--fs-weight-semibold);\n }\n /* Measures only: a dashed edge. */\n .fs-node--measures-only {\n border-style: dashed;\n }\n\n /* Forced colours: system colours; dashes, the outline and the left edge still show. */\n @media (forced-colors: active) {\n .fs-node {\n border-color: CanvasText;\n }\n .fs-node.fs-is-selected {\n outline-color: Highlight;\n }\n .fs-node--lit,\n .fs-node--match {\n border-color: Highlight;\n }\n /* Forced colours removes box-shadow, so the lit row's left edge is a border; the padding gives the 3 px back. */\n .fs-node__row.fs-is-lit {\n border-inline-start: 3px solid Highlight;\n padding-inline-start: 7px;\n }\n .fs-node__row.fs-is-selected {\n outline: 1px solid Highlight;\n outline-offset: -1px;\n }\n /* Forced colours erase a hatch: a dashed system-colour border takes its place (06 §7, as gap.css does). The row's\n border is inside its box-sizing, so the row keeps its height; the header's replaces its bottom hairline. */\n .fs-node__row.fs-is-gap {\n background-image: none;\n border: var(--fs-line-width) dashed CanvasText;\n }\n .fs-node--fail > .fs-node__header,\n .fs-node--nodata > .fs-node__header {\n background-image: none;\n border-bottom: var(--fs-line-width) dashed CanvasText;\n }\n /* Forced colours erase a fill, so the section chevron's mask is drawn in CanvasText (T103). */\n .fs-node__section-head::before {\n background-color: CanvasText;\n }\n }\n}\n";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Progress list: a column of steps (spec 02 E; GZ's import). Usage: progress.md. */\n@layer fs.components {\n .fs-progress {\n display: grid;\n gap: var(--fs-space-2);\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-progress__step {\n display: flex;\n align-items: center;\n gap: var(--fs-space-3);\n color: var(--fs-ink-muted);\n }\n .fs-progress__step::before {\n content: '';\n flex: none;\n box-sizing: border-box;\n width: 14px;\n height: 14px;\n border: 1.5px solid var(--fs-line-control-strong);\n border-radius: 50%;\n }\n .fs-progress__step[aria-current='step'] {\n color: var(--fs-ink);\n }\n .fs-progress__step[aria-current='step']::before {\n border-color: var(--fs-accent);\n border-top-color: transparent;\n animation: fs-spin 0.7s linear infinite;\n }\n .fs-progress__step.fs-is-done {\n color: var(--fs-ink-2);\n }\n .fs-progress__step.fs-is-done::before {\n background: var(--fs-positive-fill);\n border-color: var(--fs-positive-fill);\n box-shadow: inset 0 0 0 3px var(--fs-bg-surface);\n }\n .fs-progress__step.fs-is-failed {\n color: var(--fs-danger-ink);\n }\n .fs-progress__step.fs-is-failed::before {\n background: var(--fs-danger-fill);\n border-color: var(--fs-danger-fill);\n }\n @media (prefers-reduced-motion: reduce) {\n .fs-progress__step[aria-current='step']::before {\n animation: none;\n }\n }\n @keyframes fs-spin {\n to {\n transform: rotate(360deg);\n }\n }\n}\n";
|
|
1
|
+
export default "/* Progress list: a column of steps (spec 02 E; GZ's import). Usage: progress.md. */\n@layer fs.components {\n .fs-progress {\n display: grid;\n gap: var(--fs-space-2);\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-progress__step {\n display: flex;\n align-items: center;\n gap: var(--fs-space-3);\n color: var(--fs-ink-muted);\n }\n .fs-progress__step::before {\n content: '';\n flex: none;\n box-sizing: border-box;\n width: 14px;\n height: 14px;\n border: 1.5px solid var(--fs-line-control-strong);\n border-radius: 50%;\n }\n .fs-progress__step[aria-current='step'] {\n color: var(--fs-ink);\n }\n .fs-progress__step[aria-current='step']::before {\n border-color: var(--fs-accent);\n border-top-color: transparent;\n animation: fs-spin 0.7s linear infinite;\n }\n .fs-progress__step.fs-is-done {\n color: var(--fs-ink-2);\n }\n .fs-progress__step.fs-is-done::before {\n background: var(--fs-positive-fill);\n border-color: var(--fs-positive-fill);\n box-shadow: inset 0 0 0 3px var(--fs-bg-surface);\n }\n .fs-progress__step.fs-is-failed {\n color: var(--fs-danger-ink);\n }\n .fs-progress__step.fs-is-failed::before {\n background: var(--fs-danger-fill);\n border-color: var(--fs-danger-fill);\n }\n @media (prefers-reduced-motion: reduce) {\n .fs-progress__step[aria-current='step']::before {\n animation: none;\n }\n }\n @keyframes fs-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n /* Forced colours draw a transparent border and erase fills and shadows, so every step would be a\n plain ring: the current step's gap is painted in Canvas, done is a filled dot, failed a thick\n ring (T107). */\n @media (forced-colors: active) {\n .fs-progress__step[aria-current='step']::before {\n border-color: CanvasText;\n border-top-color: Canvas;\n }\n .fs-progress__step.fs-is-done::before {\n background-color: CanvasText;\n border-color: CanvasText;\n }\n .fs-progress__step.fs-is-failed::before {\n border: 4px solid CanvasText;\n }\n }\n}\n";
|
package/dist/css-text/reset.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* The opt-in reset (spec 02 G; CE H4). Usage: reset.md. Never part of kit.css: load it yourself,\n and only in an app the kit owns, never inside an embed on someone else's page. */\n@layer fs.reset {\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n }\n body {\n margin: 0;\n }\n :where(button, input, select, textarea) {\n font: inherit;\n color: inherit;\n }\n :where(img, svg, video, canvas) {\n max-width: 100%;\n }\n}\n";
|
|
1
|
+
export default "/* The opt-in reset (spec 02 G; CE H4). Usage: reset.md. Never part of kit.css: load it yourself,\n and only in an app the kit owns, never inside an embed on someone else's page. It starts with the\n kit's layer order, so it can load before or after kit.css (T102). */\n@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities;\n@layer fs.reset {\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n }\n body {\n margin: 0;\n }\n :where(button, input, select, textarea) {\n font: inherit;\n color: inherit;\n }\n :where(img, svg, video, canvas) {\n max-width: 100%;\n }\n}\n";
|
package/dist/css-text/table.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Table (spec 02 F): records, figures, statements. Usage: table.md. The kit styles what the product\n renders; it sorts, resizes and selects nothing. */\n@layer fs.components {\n .fs-table {\n width: 100%;\n border-collapse: separate;\n border-spacing: 0;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n font-variant-numeric: tabular-nums;\n color: var(--fs-ink);\n }\n .fs-table :is(th, td) {\n box-sizing: border-box;\n height: var(--fs-table-row-h);\n padding: 0 var(--fs-cell-pad-x);\n text-align: left;\n vertical-align: middle;\n border-bottom: var(--fs-line-width) solid var(--fs-line);\n }\n .fs-table thead th {\n height: var(--fs-table-head-h);\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n font-weight: var(--fs-weight-semibold);\n color: var(--fs-ink-2);\n white-space: nowrap;\n border-bottom-color: var(--fs-line-strong);\n }\n .fs-table tbody th {\n font-weight: var(--fs-weight-regular);\n }\n .fs-table .fs-num {\n text-align: right;\n white-space: nowrap;\n }\n .fs-table .fs-cell--muted {\n color: var(--fs-ink-muted);\n }\n .fs-table .fs-cell--quiet {\n color: var(--fs-ink-2);\n }\n\n .fs-table .fs-row--total > * {\n font-weight: var(--fs-weight-semibold);\n border-top: var(--fs-line-width) solid var(--fs-line-strong);\n }\n .fs-table .fs-row--emphasis > * {\n font-weight: var(--fs-weight-semibold);\n }\n .fs-table .fs-row--muted > * {\n font-style: italic;\n color: var(--fs-ink-muted);\n }\n .fs-table .fs-depth-1 {\n padding-left: calc(var(--fs-cell-pad-x) + 16px);\n }\n .fs-table .fs-depth-2 {\n padding-left: calc(var(--fs-cell-pad-x) + 32px);\n }\n .fs-table .fs-depth-3 {\n padding-left: calc(var(--fs-cell-pad-x) + 48px);\n }\n .fs-table .fs-depth-4 {\n padding-left: calc(var(--fs-cell-pad-x) + 64px);\n }\n .fs-table .fs-depth-5 {\n padding-left: calc(var(--fs-cell-pad-x) + 80px);\n }\n .fs-table .fs-depth-6 {\n padding-left: calc(var(--fs-cell-pad-x) + 96px);\n }\n .fs-table .fs-depth-7 {\n padding-left: calc(var(--fs-cell-pad-x) + 112px);\n }\n .fs-table .fs-depth-8 {\n padding-left: calc(var(--fs-cell-pad-x) + 128px);\n }\n .fs-table .fs-depth-9 {\n padding-left: calc(var(--fs-cell-pad-x) + 144px);\n }\n .fs-table .fs-depth-10 {\n padding-left: calc(var(--fs-cell-pad-x) + 160px);\n }\n /* Sort buttons in headers (aria-sort on the th) and expand toggles in rows. */\n .fs-table__sort,\n .fs-table__toggle {\n display: inline-flex;\n align-items: center;\n gap: var(--fs-space-1);\n margin: 0 calc(-1 * var(--fs-space-1));\n padding: 0 var(--fs-space-1);\n font: inherit;\n color: inherit;\n background: transparent;\n border: 0;\n border-radius: var(--fs-radius-sm);\n cursor: pointer;\n }\n .fs-table__sort > .fs-icon,\n .fs-table__toggle > .fs-icon {\n width: 14px;\n height: 14px;\n }\n .fs-table th:is([aria-sort='ascending'], [aria-sort='descending']) .fs-table__sort {\n color: var(--fs-ink);\n }\n .fs-table__toggle > .fs-icon {\n color: var(--fs-grid-chevron);\n transition: transform var(--fs-dur) var(--fs-ease);\n }\n .fs-table__toggle[aria-expanded='true'] > .fs-icon {\n transform: rotate(90deg);\n }\n @media (hover: hover) {\n .fs-table__sort:hover,\n .fs-table__toggle:hover {\n background-color: var(--fs-bg-hover);\n }\n .fs-table--clickable tbody tr:hover > * {\n box-shadow: inset 0 0 0 999px var(--fs-bg-hover);\n }\n }\n\n /* The ring recipe (D15): on sort and toggle buttons, and inside a clickable row. */\n .fs-table__sort:focus-visible,\n .fs-table__toggle: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 .fs-table--clickable tbody tr {\n cursor: pointer;\n }\n .fs-table--clickable tbody tr:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: calc(-1 * var(--fs-ring-width));\n box-shadow: inset 0 0 0 calc(var(--fs-ring-width) + var(--fs-ring-halo-width)) var(--fs-ring-halo);\n }\n .fs-table tbody tr[aria-selected='true'] > * {\n background-color: var(--fs-bg-selected);\n }\n\n .fs-table--sticky-header thead th {\n position: sticky;\n top: 0;\n z-index: var(--fs-z-sticky);\n background: var(--fs-bg-surface);\n }\n .fs-table--sticky-first :is(th, td):first-child {\n position: sticky;\n left: 0;\n z-index: 1;\n background: var(--fs-bg-surface);\n }\n .fs-table--sticky-first.fs-table--sticky-header thead th:first-child {\n z-index: calc(var(--fs-z-sticky) + 1);\n }\n\n /* BI App's record table: the header on the sunken surface. */\n .fs-table--records thead th {\n background: var(--fs-bg-sunken);\n }\n\n /* BI App's figure table (KEEP): grid lines, 12 px figures, labels on the grid label fill. */\n .fs-table--figures {\n border-collapse: collapse;\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n }\n .fs-table--figures :is(th, td) {\n min-width: 96px;\n border: var(--fs-line-width) solid var(--fs-grid-line);\n }\n .fs-table--figures :is(thead th, tbody th) {\n color: var(--fs-ink);\n background: var(--fs-grid-label-bg);\n }\n .fs-table--figures thead th {\n font-weight: var(--fs-weight-medium);\n text-align: center;\n }\n\n /* Print: the header repeats on every page and no row breaks (CE §4). */\n @media print {\n .fs-table thead {\n display: table-header-group;\n }\n .fs-table tr {\n break-inside: avoid;\n }\n }\n}\n";
|
|
1
|
+
export default "/* Table (spec 02 F): records, figures, statements. Usage: table.md. The kit styles what the product\n renders; it sorts, resizes and selects nothing. */\n@layer fs.components {\n .fs-table {\n width: 100%;\n border-collapse: separate;\n border-spacing: 0;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n font-variant-numeric: tabular-nums;\n color: var(--fs-ink);\n }\n .fs-table :is(th, td) {\n box-sizing: border-box;\n height: var(--fs-table-row-h);\n padding: 0 var(--fs-cell-pad-x);\n text-align: left;\n vertical-align: middle;\n border-bottom: var(--fs-line-width) solid var(--fs-line);\n }\n .fs-table thead th {\n height: var(--fs-table-head-h);\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n font-weight: var(--fs-weight-semibold);\n color: var(--fs-ink-2);\n white-space: nowrap;\n border-bottom-color: var(--fs-line-strong);\n }\n .fs-table tbody th {\n font-weight: var(--fs-weight-regular);\n }\n .fs-table .fs-num {\n text-align: right;\n white-space: nowrap;\n }\n .fs-table .fs-cell--muted {\n color: var(--fs-ink-muted);\n }\n .fs-table .fs-cell--quiet {\n color: var(--fs-ink-2);\n }\n\n .fs-table .fs-row--total > * {\n font-weight: var(--fs-weight-semibold);\n border-top: var(--fs-line-width) solid var(--fs-line-strong);\n }\n .fs-table .fs-row--emphasis > * {\n font-weight: var(--fs-weight-semibold);\n }\n .fs-table .fs-row--muted > * {\n font-style: italic;\n color: var(--fs-ink-muted);\n }\n .fs-table .fs-depth-1 {\n padding-left: calc(var(--fs-cell-pad-x) + 16px);\n }\n .fs-table .fs-depth-2 {\n padding-left: calc(var(--fs-cell-pad-x) + 32px);\n }\n .fs-table .fs-depth-3 {\n padding-left: calc(var(--fs-cell-pad-x) + 48px);\n }\n .fs-table .fs-depth-4 {\n padding-left: calc(var(--fs-cell-pad-x) + 64px);\n }\n .fs-table .fs-depth-5 {\n padding-left: calc(var(--fs-cell-pad-x) + 80px);\n }\n .fs-table .fs-depth-6 {\n padding-left: calc(var(--fs-cell-pad-x) + 96px);\n }\n .fs-table .fs-depth-7 {\n padding-left: calc(var(--fs-cell-pad-x) + 112px);\n }\n .fs-table .fs-depth-8 {\n padding-left: calc(var(--fs-cell-pad-x) + 128px);\n }\n .fs-table .fs-depth-9 {\n padding-left: calc(var(--fs-cell-pad-x) + 144px);\n }\n .fs-table .fs-depth-10 {\n padding-left: calc(var(--fs-cell-pad-x) + 160px);\n }\n /* Sort buttons in headers (aria-sort on the th) and expand toggles in rows. */\n .fs-table__sort,\n .fs-table__toggle {\n display: inline-flex;\n align-items: center;\n gap: var(--fs-space-1);\n margin: 0 calc(-1 * var(--fs-space-1));\n padding: 0 var(--fs-space-1);\n font: inherit;\n color: inherit;\n background: transparent;\n border: 0;\n border-radius: var(--fs-radius-sm);\n cursor: pointer;\n }\n .fs-table__sort > .fs-icon,\n .fs-table__toggle > .fs-icon {\n width: 14px;\n height: 14px;\n }\n .fs-table th:is([aria-sort='ascending'], [aria-sort='descending']) .fs-table__sort {\n color: var(--fs-ink);\n }\n .fs-table__toggle > .fs-icon {\n color: var(--fs-grid-chevron);\n transition: transform var(--fs-dur) var(--fs-ease);\n }\n .fs-table__toggle[aria-expanded='true'] > .fs-icon {\n transform: rotate(90deg);\n }\n @media (hover: hover) {\n .fs-table__sort:hover,\n .fs-table__toggle:hover {\n background-color: var(--fs-bg-hover);\n }\n .fs-table--clickable tbody tr:hover > * {\n box-shadow: inset 0 0 0 999px var(--fs-bg-hover);\n }\n }\n\n /* The ring recipe (D15): on sort and toggle buttons, and inside a clickable row. */\n .fs-table__sort:focus-visible,\n .fs-table__toggle: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 .fs-table--clickable tbody tr {\n cursor: pointer;\n }\n .fs-table--clickable tbody tr:focus-visible {\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: calc(-1 * var(--fs-ring-width));\n box-shadow: inset 0 0 0 calc(var(--fs-ring-width) + var(--fs-ring-halo-width)) var(--fs-ring-halo);\n }\n .fs-table tbody tr[aria-selected='true'] > * {\n background-color: var(--fs-bg-selected);\n }\n\n .fs-table--sticky-header thead th {\n position: sticky;\n top: 0;\n z-index: var(--fs-z-sticky);\n background: var(--fs-bg-surface);\n }\n .fs-table--sticky-first :is(th, td):first-child {\n position: sticky;\n left: 0;\n z-index: 1;\n background: var(--fs-bg-surface);\n }\n .fs-table--sticky-first.fs-table--sticky-header thead th:first-child {\n z-index: calc(var(--fs-z-sticky) + 1);\n }\n\n /* BI App's record table: the header on the sunken surface. */\n .fs-table--records thead th {\n background: var(--fs-bg-sunken);\n }\n\n /* BI App's figure table (KEEP): grid lines, 12 px figures, labels on the grid label fill. */\n .fs-table--figures {\n border-collapse: collapse;\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n }\n .fs-table--figures :is(th, td) {\n min-width: 96px;\n border: var(--fs-line-width) solid var(--fs-grid-line);\n }\n .fs-table--figures :is(thead th, tbody th) {\n color: var(--fs-ink);\n background: var(--fs-grid-label-bg);\n }\n .fs-table--figures thead th {\n font-weight: var(--fs-weight-medium);\n text-align: center;\n }\n\n /* Print: the header repeats on every page and no row breaks (CE §4). */\n @media print {\n .fs-table thead {\n display: table-header-group;\n }\n .fs-table tr {\n break-inside: avoid;\n }\n }\n\n /* Forced colours erase the selected row's fill: the system's selection colours instead (T107). */\n @media (forced-colors: active) {\n .fs-table tbody tr[aria-selected='true'] > * {\n color: HighlightText;\n background-color: Highlight;\n }\n }\n}\n";
|
package/dist/css-text/tabs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Tabs, choice tabs and page tabs (spec 02 C). Usage: tabs.md. Behaviour: createTabs. */\n@layer fs.components {\n .fs-tabs {\n display: flex;\n flex-direction: column;\n min-width: 0;\n }\n .fs-tabs__list {\n display: flex;\n align-items: flex-end;\n gap: var(--fs-space-1);\n overflow-x: auto;\n /* The bottom line is an inset shadow in a strip of padding, not a border: a border lies outside\n the scroll box's clip, and the selected edge (which reaches one line width below its tab)\n would be clipped there. In the strip, the edge covers the line. */\n padding-bottom: var(--fs-line-width);\n box-shadow: inset 0 calc(-1 * var(--fs-line-width)) 0 var(--fs-line);\n }\n /* Forced colours remove shadows, and a gradient strip is dropped too: draw the line as a border\n again. The border clips what lies below the tab, so on a plain list the selected edge stands on\n the line (bottom 0) instead of covering it, and takes a system colour, as the accent is\n replaced there (T41). */\n @media (forced-colors: active) {\n .fs-tabs__list {\n padding-bottom: 0;\n border-bottom: var(--fs-line-width) solid CanvasText;\n }\n .fs-tabs > .fs-tabs__list > .fs-tabs__tab[aria-selected='true']::after {\n bottom: 0;\n background-color: CanvasText;\n }\n }\n .fs-tabs__tab {\n position: relative;\n display: inline-flex;\n flex: none;\n align-items: center;\n gap: var(--fs-space-2);\n box-sizing: border-box;\n height: var(--fs-row-h);\n margin: 0;\n padding: 0 calc(var(--fs-pad-x) * 1.25);\n font: inherit;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n color: var(--fs-ink-2);\n white-space: nowrap;\n background: transparent;\n border: 0;\n border-radius: var(--fs-radius-lg);\n cursor: pointer;\n }\n .fs-tabs__tab > .fs-icon {\n width: var(--fs-icon-size);\n height: var(--fs-icon-size);\n }\n /* The selected edge: an underline here, a top edge on page tabs. */\n .fs-tabs__tab::after {\n content: '';\n position: absolute;\n right: var(--fs-space-2);\n bottom: calc(-1 * var(--fs-line-width));\n left: var(--fs-space-2);\n height: 2px;\n border-radius: 0;\n }\n\n @media (hover: hover) {\n .fs-tabs__tab:hover {\n color: var(--fs-ink);\n background-color: var(--fs-bg-hover);\n }\n }\n\n .fs-tabs__tab[aria-selected='true'] {\n color: var(--fs-ink);\n font-weight: var(--fs-weight-semibold);\n }\n .fs-tabs__tab[aria-selected='true']::after {\n background: var(--fs-accent);\n }\n\n /* The ring recipe (D15). Inside the tab: the list scrolls, so it clips anything outside. */\n .fs-tabs__tab:focus-visible {\n z-index: 1;\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: calc(-1 * var(--fs-ring-width));\n box-shadow: inset 0 0 0 calc(var(--fs-ring-width) + var(--fs-ring-halo-width)) var(--fs-ring-halo);\n }\n .fs-tabs__panel: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-tabs__panel {\n padding-top: var(--fs-space-4);\n }\n\n /* Page tabs (Grizzbi): a bottom bar, the current tab on the surface with a 3 px top edge. */\n .fs-tabs--bottom .fs-tabs__list {\n align-items: stretch;\n gap: 0;\n height: var(--fs-size-pagetabs);\n background: var(--fs-bg-chrome);\n border-top: var(--fs-line-width) solid var(--fs-line-strong);\n border-bottom: 0;\n padding-bottom: 0;\n box-shadow: none;\n }\n .fs-tabs--bottom .fs-tabs__tab {\n height: 100%;\n border-radius: 0;\n }\n .fs-tabs--bottom .fs-tabs__tab::after {\n top: calc(-1 * var(--fs-line-width));\n right: 0;\n bottom: auto;\n left: 0;\n height: 3px;\n border-radius: 0;\n }\n .fs-tabs--bottom .fs-tabs__tab[aria-selected='true'] {\n background-color: var(--fs-bg-surface);\n }\n\n /* Object tabs (T74, the canvas's Definíció / Jogosultságok / Tulajdonságok): 32 px tabs side by side under a hairline,\n padding 0 12, the selected one semibold in ink with a 2 px accent underline across the whole tab. They keep the\n blue underline (the owner's round 2); only the page tab bar (T70) lost its blue. The default tabs stay as they were. */\n .fs-tabs--object .fs-tabs__list {\n align-items: stretch;\n gap: 0;\n }\n .fs-tabs--object .fs-tabs__tab {\n height: 32px;\n padding: 0 var(--fs-space-3);\n }\n .fs-tabs--object .fs-tabs__tab::after {\n right: 0;\n left: 0;\n }\n\n /* Tabs with actions (CE Studio): a row holds the tablist and an actions group as siblings, so\n the buttons stay outside role=\"tablist\". The row draws the one bottom line; the list overlaps\n it by a line width so the selected edge sits on the line instead of being clipped by the\n list's scroll box. The tabs leave that strip unpainted, so hover never hides the line. Top\n tabs only (default and choice), not --bottom. */\n .fs-tabs__row {\n display: flex;\n align-items: flex-end;\n gap: var(--fs-space-2);\n min-width: 0;\n border-bottom: var(--fs-line-width) solid var(--fs-line);\n }\n .fs-tabs__row > .fs-tabs__list {\n flex: 1 1 auto;\n min-width: 0;\n margin-bottom: calc(-1 * var(--fs-line-width));\n padding-bottom: 0;\n border-bottom: 0;\n box-shadow: none;\n }\n .fs-tabs__row .fs-tabs__tab {\n border-bottom: var(--fs-line-width) solid transparent;\n background-clip: padding-box;\n }\n .fs-tabs__actions {\n display: flex;\n flex: none;\n align-items: center;\n align-self: center;\n gap: var(--fs-space-1);\n }\n\n .fs-tabs__tab:disabled,\n .fs-tabs__tab[aria-disabled='true'] {\n color: var(--fs-ink-disabled);\n background-color: transparent;\n cursor: not-allowed;\n }\n}\n";
|
|
1
|
+
export default "/* Tabs, choice tabs and page tabs (spec 02 C). Usage: tabs.md. Behaviour: createTabs. */\n@layer fs.components {\n .fs-tabs {\n display: flex;\n flex-direction: column;\n min-width: 0;\n }\n .fs-tabs__list {\n display: flex;\n align-items: flex-end;\n gap: var(--fs-space-1);\n overflow-x: auto;\n /* The bottom line is an inset shadow in a strip of padding, not a border: a border lies outside\n the scroll box's clip, and the selected edge (which reaches one line width below its tab)\n would be clipped there. In the strip, the edge covers the line. */\n padding-bottom: var(--fs-line-width);\n box-shadow: inset 0 calc(-1 * var(--fs-line-width)) 0 var(--fs-line);\n }\n /* Forced colours remove shadows, and a gradient strip is dropped too: draw the line as a border\n again. The border clips what lies below the tab, so on a plain list the selected edge stands on\n the line (bottom 0) instead of covering it, and takes a system colour, as the accent is\n replaced there (T41). */\n @media (forced-colors: active) {\n .fs-tabs__list {\n padding-bottom: 0;\n border-bottom: var(--fs-line-width) solid CanvasText;\n }\n .fs-tabs > .fs-tabs__list > .fs-tabs__tab[aria-selected='true']::after {\n bottom: 0;\n background-color: CanvasText;\n }\n }\n .fs-tabs__tab {\n position: relative;\n display: inline-flex;\n flex: none;\n align-items: center;\n gap: var(--fs-space-2);\n box-sizing: border-box;\n height: var(--fs-row-h);\n margin: 0;\n padding: 0 calc(var(--fs-pad-x) * 1.25);\n font: inherit;\n font-size: var(--fs-text-body-size);\n line-height: var(--fs-text-body-line);\n color: var(--fs-ink-2);\n white-space: nowrap;\n background: transparent;\n border: 0;\n border-radius: var(--fs-radius-lg);\n cursor: pointer;\n }\n .fs-tabs__tab > .fs-icon {\n width: var(--fs-icon-size);\n height: var(--fs-icon-size);\n }\n /* The selected edge: an underline here, a top edge on page tabs. */\n .fs-tabs__tab::after {\n content: '';\n position: absolute;\n right: var(--fs-space-2);\n bottom: calc(-1 * var(--fs-line-width));\n left: var(--fs-space-2);\n height: 2px;\n border-radius: 0;\n }\n\n @media (hover: hover) {\n .fs-tabs__tab:hover {\n color: var(--fs-ink);\n background-color: var(--fs-bg-hover);\n }\n }\n\n .fs-tabs__tab[aria-selected='true'] {\n color: var(--fs-ink);\n font-weight: var(--fs-weight-semibold);\n }\n .fs-tabs__tab[aria-selected='true']::after {\n background: var(--fs-accent);\n }\n\n /* The ring recipe (D15). Inside the tab: the list scrolls, so it clips anything outside. */\n .fs-tabs__tab:focus-visible {\n z-index: 1;\n outline: var(--fs-ring-width) solid var(--fs-ring);\n outline-offset: calc(-1 * var(--fs-ring-width));\n box-shadow: inset 0 0 0 calc(var(--fs-ring-width) + var(--fs-ring-halo-width)) var(--fs-ring-halo);\n }\n .fs-tabs__panel: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-tabs__panel {\n padding-top: var(--fs-space-4);\n }\n\n /* Page tabs (Grizzbi): a bottom bar, the current tab on the surface with a 3 px top edge. */\n .fs-tabs--bottom .fs-tabs__list {\n align-items: stretch;\n gap: 0;\n height: var(--fs-size-pagetabs);\n background: var(--fs-bg-chrome);\n border-top: var(--fs-line-width) solid var(--fs-line-strong);\n border-bottom: 0;\n padding-bottom: 0;\n box-shadow: none;\n }\n .fs-tabs--bottom .fs-tabs__tab {\n height: 100%;\n border-radius: 0;\n }\n .fs-tabs--bottom .fs-tabs__tab::after {\n top: calc(-1 * var(--fs-line-width));\n right: 0;\n bottom: auto;\n left: 0;\n height: 3px;\n border-radius: 0;\n }\n .fs-tabs--bottom .fs-tabs__tab[aria-selected='true'] {\n background-color: var(--fs-bg-surface);\n }\n\n /* Object tabs (T74, the canvas's Definíció / Jogosultságok / Tulajdonságok): 32 px tabs side by side under a hairline,\n padding 0 12, the selected one semibold in ink with a 2 px accent underline across the whole tab. They keep the\n blue underline (the owner's round 2); only the page tab bar (T70) lost its blue. The default tabs stay as they were. */\n .fs-tabs--object .fs-tabs__list {\n align-items: stretch;\n gap: 0;\n }\n .fs-tabs--object .fs-tabs__tab {\n height: 32px;\n padding: 0 var(--fs-space-3);\n }\n .fs-tabs--object .fs-tabs__tab::after {\n right: 0;\n left: 0;\n }\n\n /* Tabs with actions (CE Studio): a row holds the tablist and an actions group as siblings, so\n the buttons stay outside role=\"tablist\". The row draws the one bottom line; the list overlaps\n it by a line width so the selected edge sits on the line instead of being clipped by the\n list's scroll box. The tabs leave that strip unpainted, so hover never hides the line. Top\n tabs only (default and choice), not --bottom. */\n .fs-tabs__row {\n display: flex;\n align-items: flex-end;\n gap: var(--fs-space-2);\n min-width: 0;\n border-bottom: var(--fs-line-width) solid var(--fs-line);\n }\n .fs-tabs__row > .fs-tabs__list {\n flex: 1 1 auto;\n min-width: 0;\n margin-bottom: calc(-1 * var(--fs-line-width));\n padding-bottom: 0;\n border-bottom: 0;\n box-shadow: none;\n }\n .fs-tabs__row .fs-tabs__tab {\n border-bottom: var(--fs-line-width) solid transparent;\n background-clip: padding-box;\n }\n .fs-tabs__actions {\n display: flex;\n flex: none;\n align-items: center;\n align-self: center;\n gap: var(--fs-space-1);\n }\n\n .fs-tabs__tab:disabled,\n .fs-tabs__tab[aria-disabled='true'] {\n color: var(--fs-ink-disabled);\n background-color: transparent;\n cursor: not-allowed;\n }\n\n /* After the disabled rule above, which it overrides: forced colours turn the disabled ink into\n the plain text colour, so a disabled tab is greyed with GrayText (T107). */\n @media (forced-colors: active) {\n .fs-tabs__tab:disabled,\n .fs-tabs__tab[aria-disabled='true'] {\n color: GrayText;\n }\n }\n}\n";
|