@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/dist/css-text/field.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Field (spec 02 B). Usage: field.md. */\n@layer fs.components {\n /* Stacked (default): label above, the control's own edge, message below. */\n .fs-field {\n display: flex;\n flex-direction: column;\n gap: var(--fs-space-1);\n min-width: 0;\n }\n .fs-field__label {\n min-width: 0;\n overflow: hidden;\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-ink);\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .fs-field--wrap .fs-field__label {\n white-space: normal;\n }\n .fs-field__required {\n margin-left: 2px;\n color: var(--fs-ink-muted);\n }\n\n .fs-field__message {\n display: flex;\n align-items: flex-start;\n gap: var(--fs-space-1);\n margin: 0;\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n color: var(--fs-neutral-ink);\n }\n .fs-field__message > .fs-icon {\n flex: none;\n width: 14px;\n height: 14px;\n margin-top: 1px;\n }\n .fs-field__message.fs-tone-caution {\n color: var(--fs-caution-ink);\n }\n .fs-field__message.fs-tone-danger {\n color: var(--fs-danger-ink);\n }\n .fs-field__message.fs-tone-warning {\n color: var(--fs-warning-ink);\n }\n .fs-field__message.fs-tone-warning > .fs-icon {\n color: var(--fs-warning-icon);\n }\n\n .fs-field__count {\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n font-variant-numeric: tabular-nums;\n color: var(--fs-ink-muted);\n text-align: right;\n }\n\n /* Inline (BI §9.1): a box with a label column and a value; the message sits beside it. */\n .fs-field--inline {\n flex-direction: row;\n align-items: center;\n gap: var(--fs-space-3);\n }\n .fs-field__box {\n position: relative;\n display: flex;\n flex: none;\n box-sizing: border-box;\n height: var(--fs-control-h);\n background: var(--fs-bg-sunken);\n border: var(--fs-line-width) solid var(--fs-line-control);\n }\n .fs-field--full {\n width: 100%;\n }\n .fs-field--full .fs-field__box {\n flex: 1 1 auto;\n }\n .fs-field__box > .fs-field__label {\n display: flex;\n flex: 0 0 190px;\n align-items: center;\n box-sizing: border-box;\n padding: 0 var(--fs-pad-x);\n font-weight: var(--fs-weight-regular);\n color: var(--fs-ink-2);\n background: var(--fs-bg-sunken);\n border-right: var(--fs-line-width) solid var(--fs-line);\n }\n .fs-field__box > .fs-field__label > span {\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .fs-field__box > .fs-field__control {\n flex: 0 0 240px;\n box-sizing: border-box;\n height: 100%;\n }\n .fs-field--full .fs-field__box > .fs-field__control {\n flex: 1 1 auto;\n }\n /* The box draws the edge, the ring and the states, so the control inside draws none of them.\n Specificity (0,3,0) beats the controls' own hover, invalid and focus rules (0,2,0). */\n .fs-field .fs-field__box :is(.fs-input, .fs-select__control, .fs-value--computed) {\n height: 100%;\n border-color: transparent;\n border-radius: 0;\n background-color: transparent;\n }\n .fs-field .fs-field__box :is(.fs-input, .fs-select__control, .fs-field__control):focus-visible {\n outline: none;\n box-shadow: none;\n }\n .fs-field__mark {\n position: absolute;\n top: 0;\n right: var(--fs-pad-x);\n bottom: 0;\n display: flex;\n align-items: center;\n color: var(--fs-ink-muted);\n pointer-events: none;\n }\n .fs-field__mark > .fs-icon {\n width: 16px;\n height: 16px;\n }\n .fs-field__box:has(.fs-field__mark) .fs-field__control {\n padding-right: calc(var(--fs-pad-x) * 2 + 16px);\n }\n\n @media (hover: hover) {\n .fs-field__box:hover {\n border-color: var(--fs-ink-2);\n }\n }\n\n /* The ring recipe (D15), on the box. */\n .fs-field__box:has(:focus-visible) {\n z-index: 1;\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-field__box:has([aria-invalid='true']) {\n border-color: var(--fs-danger-fill);\n }\n .fs-field__box:has(:disabled) {\n background: var(--fs-bg-disabled);\n border-color: var(--fs-line);\n }\n .fs-field__box:has(:disabled) > .fs-field__mark {\n color: var(--fs-ink-disabled);\n }\n\n /* Stacked inline fields share their borders. */\n .fs-field-stack {\n display: flex;\n flex-direction: column;\n }\n .fs-field-stack > .fs-field--inline + .fs-field--inline .fs-field__box {\n margin-top: calc(-1 * var(--fs-line-width));\n }\n\n /* Headless: inside a table cell, no label and no edge; the ring sits inside the cell. */\n .fs-field--headless .fs-field__box {\n height: 100%;\n border-color: transparent;\n background: transparent;\n }\n .fs-field--headless .fs-field__box > .fs-field__control {\n flex: 1 1 auto;\n }\n .fs-field--headless .fs-field__box:has(:focus-visible) {\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";
|
|
1
|
+
export default "/* Field (spec 02 B). Usage: field.md. */\n@layer fs.components {\n /* Stacked (default): label above, the control's own edge, message below. */\n .fs-field {\n display: flex;\n flex-direction: column;\n gap: var(--fs-space-1);\n min-width: 0;\n }\n .fs-field__label {\n min-width: 0;\n overflow: hidden;\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-ink);\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n .fs-field--wrap .fs-field__label {\n white-space: normal;\n }\n .fs-field__required {\n margin-left: 2px;\n color: var(--fs-ink-muted);\n }\n\n .fs-field__message {\n display: flex;\n align-items: flex-start;\n gap: var(--fs-space-1);\n margin: 0;\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n color: var(--fs-neutral-ink);\n }\n .fs-field__message > .fs-icon {\n flex: none;\n width: 14px;\n height: 14px;\n margin-top: 1px;\n }\n .fs-field__message.fs-tone-caution {\n color: var(--fs-caution-ink);\n }\n .fs-field__message.fs-tone-danger {\n color: var(--fs-danger-ink);\n }\n .fs-field__message.fs-tone-warning {\n color: var(--fs-warning-ink);\n }\n .fs-field__message.fs-tone-warning > .fs-icon {\n color: var(--fs-warning-icon);\n }\n\n .fs-field__count {\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n font-variant-numeric: tabular-nums;\n color: var(--fs-ink-muted);\n text-align: right;\n }\n\n /* Inline (BI §9.1): a box with a label column and a value; the message sits beside it. */\n .fs-field--inline {\n flex-direction: row;\n align-items: center;\n gap: var(--fs-space-3);\n }\n .fs-field__box {\n position: relative;\n display: flex;\n flex: none;\n box-sizing: border-box;\n height: var(--fs-control-h);\n background: var(--fs-bg-sunken);\n border: var(--fs-line-width) solid var(--fs-line-control);\n }\n .fs-field--full {\n width: 100%;\n }\n .fs-field--full .fs-field__box {\n flex: 1 1 auto;\n }\n .fs-field__box > .fs-field__label {\n display: flex;\n flex: 0 0 190px;\n align-items: center;\n box-sizing: border-box;\n padding: 0 var(--fs-pad-x);\n font-weight: var(--fs-weight-regular);\n color: var(--fs-ink-2);\n background: var(--fs-bg-sunken);\n border-right: var(--fs-line-width) solid var(--fs-line);\n }\n .fs-field__box > .fs-field__label > span {\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .fs-field__box > .fs-field__control {\n flex: 0 0 240px;\n box-sizing: border-box;\n height: 100%;\n }\n .fs-field--full .fs-field__box > .fs-field__control {\n flex: 1 1 auto;\n }\n /* The box draws the edge, the ring and the states, so the control inside draws none of them.\n Specificity (0,3,0) beats the controls' own hover, invalid and focus rules (0,2,0). */\n .fs-field .fs-field__box :is(.fs-input, .fs-select__control, .fs-value--computed) {\n height: 100%;\n border-color: transparent;\n border-radius: 0;\n background-color: transparent;\n }\n .fs-field .fs-field__box :is(.fs-input, .fs-select__control, .fs-field__control):focus-visible {\n outline: none;\n box-shadow: none;\n }\n .fs-field__mark {\n position: absolute;\n top: 0;\n right: var(--fs-pad-x);\n bottom: 0;\n display: flex;\n align-items: center;\n color: var(--fs-ink-muted);\n pointer-events: none;\n }\n .fs-field__mark > .fs-icon {\n width: 16px;\n height: 16px;\n }\n .fs-field__box:has(.fs-field__mark) .fs-field__control {\n padding-right: calc(var(--fs-pad-x) * 2 + 16px);\n }\n\n @media (hover: hover) {\n .fs-field__box:hover {\n border-color: var(--fs-ink-2);\n }\n }\n\n /* The ring recipe (D15), on the box. */\n .fs-field__box:has(:focus-visible) {\n z-index: 1;\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-field__box:has([aria-invalid='true']) {\n border-color: var(--fs-danger-fill);\n }\n .fs-field__box:has(:disabled) {\n background: var(--fs-bg-disabled);\n border-color: var(--fs-line);\n }\n .fs-field__box:has(:disabled) > .fs-field__mark {\n color: var(--fs-ink-disabled);\n }\n\n /* Stacked inline fields share their borders. */\n .fs-field-stack {\n display: flex;\n flex-direction: column;\n }\n .fs-field-stack > .fs-field--inline + .fs-field--inline .fs-field__box {\n margin-top: calc(-1 * var(--fs-line-width));\n }\n\n /* Headless: inside a table cell, no label and no edge; the ring sits inside the cell. */\n .fs-field--headless .fs-field__box {\n height: 100%;\n border-color: transparent;\n background: transparent;\n }\n .fs-field--headless .fs-field__box > .fs-field__control {\n flex: 1 1 auto;\n }\n .fs-field--headless .fs-field__box:has(:focus-visible) {\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 /* Forced colours turn the invalid box's red edge into the plain one, so a second, inner line\n marks it (the focus ring takes the outline while focused); a disabled box greys its edge and\n text (T107). */\n @media (forced-colors: active) {\n .fs-field__box:has([aria-invalid='true']):not(:has(:focus-visible)) {\n outline: var(--fs-line-width) solid CanvasText;\n outline-offset: calc(-2 * var(--fs-line-width) - 1px);\n }\n .fs-field__box:has(:disabled) {\n color: GrayText;\n border-color: GrayText;\n }\n .fs-field__box:has(:disabled) :is(.fs-input, .fs-select__control, .fs-field__control) {\n color: GrayText;\n -webkit-text-fill-color: GrayText;\n }\n }\n}\n";
|
package/dist/css-text/grid.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* BI App's slice grid (spec 02 F; KEEP, D7): CSS over BI App's own table. Usage: grid.md.\n Every value is a --fs-grid-* token (01-tokens §3.10). Put the grid in a .fs-dense subtree. */\n@layer fs.components {\n .fs-grid {\n table-layout: fixed;\n border-collapse: collapse;\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n font-weight: var(--fs-weight-regular);\n font-variant-numeric: tabular-nums;\n color: var(--fs-ink);\n background: var(--fs-bg-surface);\n }\n .fs-grid + .fs-grid {\n margin-top: var(--fs-row-h);\n }\n .fs-grid :is(th, td) {\n position: relative;\n box-sizing: border-box;\n width: 96px;\n height: var(--fs-row-h);\n padding: 0 var(--fs-cell-pad-x);\n overflow: hidden;\n text-align: right;\n white-space: nowrap;\n border: var(--fs-line-width) solid var(--fs-grid-line);\n }\n .fs-grid tbody tr:hover > * {\n box-shadow: inset 0 0 0 999px var(--fs-grid-row-hover);\n }\n\n /* A member's title: indented 12 px a level, with a chevron. */\n .fs-grid .fs-grid__member {\n width: 180px;\n min-width: 180px;\n text-align: left;\n }\n .fs-grid .fs-level-1 {\n padding-left: calc(var(--fs-cell-pad-x) + 0px);\n }\n .fs-grid .fs-level-2 {\n padding-left: calc(var(--fs-cell-pad-x) + 12px);\n }\n .fs-grid .fs-level-3 {\n padding-left: calc(var(--fs-cell-pad-x) + 24px);\n }\n .fs-grid .fs-level-4 {\n padding-left: calc(var(--fs-cell-pad-x) + 36px);\n }\n .fs-grid .fs-level-5 {\n padding-left: calc(var(--fs-cell-pad-x) + 48px);\n }\n .fs-grid .fs-level-6 {\n padding-left: calc(var(--fs-cell-pad-x) + 60px);\n }\n .fs-grid .fs-level-7 {\n padding-left: calc(var(--fs-cell-pad-x) + 72px);\n }\n .fs-grid .fs-level-8 {\n padding-left: calc(var(--fs-cell-pad-x) + 84px);\n }\n .fs-grid .fs-level-9 {\n padding-left: calc(var(--fs-cell-pad-x) + 96px);\n }\n .fs-grid .fs-level-10 {\n padding-left: calc(var(--fs-cell-pad-x) + 108px);\n }\n .fs-grid__chevron {\n display: inline-grid;\n place-items: center;\n width: 16px;\n height: 16px;\n margin: 0 2px 0 -2px;\n padding: 0;\n color: var(--fs-grid-chevron);\n vertical-align: -4px;\n background: transparent;\n border: 0;\n transition: transform var(--fs-dur) var(--fs-ease);\n }\n .fs-grid__chevron > .fs-icon {\n width: 16px;\n height: 16px;\n }\n .fs-grid__chevron[aria-expanded='true'] {\n transform: rotate(90deg);\n }\n\n /* The input sits under a cover that shows the formatted value (BI §5.1). */\n .fs-grid__input,\n .fs-grid__cover {\n position: absolute;\n inset: 0;\n box-sizing: border-box;\n padding: 0 var(--fs-cell-pad-x);\n }\n /* Out of editing the input's text is hidden, not covered: a cover with the cell's fill would\n paint a translucent fill twice (T16). */\n .fs-grid__input {\n width: 100%;\n margin: 0;\n font: inherit;\n color: transparent;\n caret-color: transparent;\n text-align: right;\n background: transparent;\n border: 0;\n outline: none;\n }\n .fs-grid__cover {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n pointer-events: none;\n }\n\n /* Roles, in BI App's precedence: when two set the same property, the later one wins. */\n .fs-grid .fs-cell--header {\n font-weight: var(--fs-weight-medium);\n text-align: center;\n background-color: var(--fs-grid-header-bg);\n }\n .fs-grid .fs-cell--member {\n text-align: left;\n }\n .fs-grid .fs-cell--subtotal {\n font-weight: var(--fs-weight-medium);\n background-color: var(--fs-grid-subtotal-bg);\n }\n .fs-grid .fs-cell--input {\n background-color: var(--fs-grid-input-bg);\n }\n .fs-grid .fs-cell--locked {\n color: var(--fs-grid-locked-ink);\n background-color: var(--fs-grid-locked-bg);\n }\n .fs-grid .fs-cell--error {\n color: var(--fs-grid-error-ink);\n background-color: var(--fs-grid-error-bg);\n }\n .fs-grid .fs-cell--stale {\n font-style: italic;\n color: var(--fs-grid-stale-ink);\n }\n /* The top-left corner is the stale dot's; the top-right the note's. Nothing else goes there. */\n .fs-grid .fs-cell--stale::before {\n content: '';\n position: absolute;\n top: 2px;\n left: 2px;\n z-index: 1;\n width: 5px;\n height: 5px;\n background: var(--fs-grid-stale-dot);\n border-radius: 50%;\n }\n .fs-grid .fs-cell--negative {\n color: var(--fs-grid-negative-ink);\n }\n\n /* Editing states. */\n .fs-grid .fs-cell--dirty {\n color: var(--fs-grid-dirty-ink);\n }\n .fs-grid .fs-cell--invalid {\n color: var(--fs-grid-invalid-ink);\n }\n .fs-grid .fs-cell--nodata {\n background-color: var(--fs-grid-nodata-bg);\n }\n .fs-grid .fs-cell--editing {\n background-color: var(--fs-grid-editing-bg);\n }\n .fs-grid .fs-cell--editing .fs-grid__cover {\n visibility: hidden;\n }\n .fs-grid .fs-cell--editing .fs-grid__input {\n color: inherit;\n caret-color: auto;\n }\n /* The selected cell is the grid's cursor and its focus indicator (06-accessibility §3). */\n .fs-grid .fs-is-selected {\n outline: 2px solid var(--fs-grid-selected);\n outline-offset: -2px;\n }\n .fs-grid .fs-is-selected.fs-cell--invalid {\n background-color: var(--fs-grid-selected-invalid-bg);\n }\n .fs-grid__note {\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n width: 0;\n height: 0;\n border-top: 6px solid var(--fs-accent);\n border-left: 6px solid transparent;\n }\n}\n";
|
|
1
|
+
export default "/* BI App's slice grid (spec 02 F; KEEP, D7): CSS over BI App's own table. Usage: grid.md.\n Every value is a --fs-grid-* token (01-tokens §3.10). Put the grid in a .fs-dense subtree. */\n@layer fs.components {\n .fs-grid {\n table-layout: fixed;\n border-collapse: collapse;\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n font-weight: var(--fs-weight-regular);\n font-variant-numeric: tabular-nums;\n color: var(--fs-ink);\n background: var(--fs-bg-surface);\n }\n .fs-grid + .fs-grid {\n margin-top: var(--fs-row-h);\n }\n .fs-grid :is(th, td) {\n position: relative;\n box-sizing: border-box;\n width: 96px;\n height: var(--fs-row-h);\n padding: 0 var(--fs-cell-pad-x);\n overflow: hidden;\n text-align: right;\n white-space: nowrap;\n border: var(--fs-line-width) solid var(--fs-grid-line);\n }\n .fs-grid tbody tr:hover > * {\n box-shadow: inset 0 0 0 999px var(--fs-grid-row-hover);\n }\n\n /* A member's title: indented 12 px a level, with a chevron. */\n .fs-grid .fs-grid__member {\n width: 180px;\n min-width: 180px;\n text-align: left;\n }\n .fs-grid .fs-level-1 {\n padding-left: calc(var(--fs-cell-pad-x) + 0px);\n }\n .fs-grid .fs-level-2 {\n padding-left: calc(var(--fs-cell-pad-x) + 12px);\n }\n .fs-grid .fs-level-3 {\n padding-left: calc(var(--fs-cell-pad-x) + 24px);\n }\n .fs-grid .fs-level-4 {\n padding-left: calc(var(--fs-cell-pad-x) + 36px);\n }\n .fs-grid .fs-level-5 {\n padding-left: calc(var(--fs-cell-pad-x) + 48px);\n }\n .fs-grid .fs-level-6 {\n padding-left: calc(var(--fs-cell-pad-x) + 60px);\n }\n .fs-grid .fs-level-7 {\n padding-left: calc(var(--fs-cell-pad-x) + 72px);\n }\n .fs-grid .fs-level-8 {\n padding-left: calc(var(--fs-cell-pad-x) + 84px);\n }\n .fs-grid .fs-level-9 {\n padding-left: calc(var(--fs-cell-pad-x) + 96px);\n }\n .fs-grid .fs-level-10 {\n padding-left: calc(var(--fs-cell-pad-x) + 108px);\n }\n .fs-grid__chevron {\n display: inline-grid;\n place-items: center;\n width: 16px;\n height: 16px;\n margin: 0 2px 0 -2px;\n padding: 0;\n color: var(--fs-grid-chevron);\n vertical-align: -4px;\n background: transparent;\n border: 0;\n transition: transform var(--fs-dur) var(--fs-ease);\n }\n .fs-grid__chevron > .fs-icon {\n width: 16px;\n height: 16px;\n }\n .fs-grid__chevron[aria-expanded='true'] {\n transform: rotate(90deg);\n }\n\n /* The input sits under a cover that shows the formatted value (BI §5.1). */\n .fs-grid__input,\n .fs-grid__cover {\n position: absolute;\n inset: 0;\n box-sizing: border-box;\n padding: 0 var(--fs-cell-pad-x);\n }\n /* Out of editing the input's text is hidden, not covered: a cover with the cell's fill would\n paint a translucent fill twice (T16). */\n .fs-grid__input {\n width: 100%;\n margin: 0;\n font: inherit;\n color: transparent;\n caret-color: transparent;\n text-align: right;\n background: transparent;\n border: 0;\n outline: none;\n }\n .fs-grid__cover {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n pointer-events: none;\n }\n\n /* Roles, in BI App's precedence: when two set the same property, the later one wins. */\n .fs-grid .fs-cell--header {\n font-weight: var(--fs-weight-medium);\n text-align: center;\n background-color: var(--fs-grid-header-bg);\n }\n .fs-grid .fs-cell--member {\n text-align: left;\n }\n .fs-grid .fs-cell--subtotal {\n font-weight: var(--fs-weight-medium);\n background-color: var(--fs-grid-subtotal-bg);\n }\n .fs-grid .fs-cell--input {\n background-color: var(--fs-grid-input-bg);\n }\n .fs-grid .fs-cell--locked {\n color: var(--fs-grid-locked-ink);\n background-color: var(--fs-grid-locked-bg);\n }\n .fs-grid .fs-cell--error {\n color: var(--fs-grid-error-ink);\n background-color: var(--fs-grid-error-bg);\n }\n .fs-grid .fs-cell--stale {\n font-style: italic;\n color: var(--fs-grid-stale-ink);\n }\n /* The top-left corner is the stale dot's; the top-right the note's. Nothing else goes there. */\n .fs-grid .fs-cell--stale::before {\n content: '';\n position: absolute;\n top: 2px;\n left: 2px;\n z-index: 1;\n width: 5px;\n height: 5px;\n background: var(--fs-grid-stale-dot);\n border-radius: 50%;\n }\n .fs-grid .fs-cell--negative {\n color: var(--fs-grid-negative-ink);\n }\n\n /* Editing states. */\n .fs-grid .fs-cell--dirty {\n color: var(--fs-grid-dirty-ink);\n }\n .fs-grid .fs-cell--invalid {\n color: var(--fs-grid-invalid-ink);\n }\n .fs-grid .fs-cell--nodata {\n background-color: var(--fs-grid-nodata-bg);\n }\n .fs-grid .fs-cell--editing {\n background-color: var(--fs-grid-editing-bg);\n }\n /* Red ink on the editing fill: a darker red in light (T108), the same red as before in dark. */\n .fs-grid .fs-cell--editing.fs-cell--negative,\n .fs-grid .fs-cell--editing.fs-cell--error,\n .fs-grid .fs-cell--editing.fs-cell--invalid {\n color: var(--fs-grid-editing-danger-ink);\n }\n .fs-grid .fs-cell--editing .fs-grid__cover {\n visibility: hidden;\n }\n .fs-grid .fs-cell--editing .fs-grid__input {\n color: inherit;\n caret-color: auto;\n }\n /* The selected cell is the grid's cursor and its focus indicator (06-accessibility §3). */\n .fs-grid .fs-is-selected {\n outline: 2px solid var(--fs-grid-selected);\n outline-offset: -2px;\n }\n .fs-grid .fs-is-selected.fs-cell--invalid {\n background-color: var(--fs-grid-selected-invalid-bg);\n }\n .fs-grid__note {\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n width: 0;\n height: 0;\n border-top: 6px solid var(--fs-accent);\n border-left: 6px solid transparent;\n }\n\n /* Forced colours erase the danger ink and the error fill: a wavy underline marks the value (on the\n cover, which is positioned, so the cell's own underline doesn't reach it), as .fs-diag--error\n does, and an error cell also gets a dashed inner edge (T107). */\n @media (forced-colors: active) {\n .fs-grid :is(.fs-cell--invalid, .fs-cell--error) > .fs-grid__cover {\n text-decoration: underline wavy CanvasText;\n text-decoration-skip-ink: none;\n text-underline-offset: 3px;\n }\n .fs-grid .fs-cell--error:not(.fs-is-selected) {\n outline: var(--fs-line-width) dashed CanvasText;\n outline-offset: -3px;\n }\n /* A fill becomes Canvas here, so the stale dot would vanish (I23). */\n .fs-grid .fs-cell--stale::before {\n background: CanvasText;\n }\n }\n}\n";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Icon button (spec 02 A). Usage: icon-button.md. */\n@layer fs.components {\n .fs-icon-button {\n --fs-icon-button-box: var(--fs-control-h);\n --fs-icon-button-icon: var(--fs-icon-size);\n display: inline-grid;\n place-items: center;\n box-sizing: border-box;\n width: var(--fs-icon-button-box);\n height: var(--fs-icon-button-box);\n margin: 0;\n padding: 0;\n color: var(--fs-ink-2);\n background: transparent;\n border: var(--fs-line-width) solid transparent;\n border-radius: var(--fs-radius-md);\n cursor: pointer;\n transition: background-color var(--fs-dur-fast) var(--fs-ease);\n }\n .fs-icon-button > .fs-icon {\n width: var(--fs-icon-button-icon);\n height: var(--fs-icon-button-icon);\n }\n\n .fs-icon-button--tool {\n --fs-icon-button-box: 28px;\n --fs-icon-button-icon: 20px;\n }\n .fs-icon-button--row {\n --fs-icon-button-box: var(--fs-size-touch);\n --fs-icon-button-icon: 16px;\n }\n .fs-icon-button--tone-accent {\n color: var(--fs-accent);\n }\n\n @media (hover: hover) {\n .fs-icon-button:hover {\n color: var(--fs-ink);\n background-color: var(--fs-bg-hover);\n }\n }\n .fs-icon-button:active {\n background-color: var(--fs-bg-active);\n }\n\n /* The ring recipe (D15). */\n .fs-icon-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-icon-button[aria-pressed='true'] {\n color: var(--fs-accent);\n background-color: var(--fs-bg-selected);\n border-color: var(--fs-accent);\n }\n\n /* aria-disabled keeps it focusable, so its tooltip still works (BI §4). */\n .fs-icon-button:disabled,\n .fs-icon-button[aria-disabled='true'] {\n color: var(--fs-ink-disabled);\n background-color: transparent;\n border-color: transparent;\n cursor: not-allowed;\n }\n}\n";
|
|
1
|
+
export default "/* Icon button (spec 02 A). Usage: icon-button.md. */\n@layer fs.components {\n .fs-icon-button {\n --fs-icon-button-box: var(--fs-control-h);\n --fs-icon-button-icon: var(--fs-icon-size);\n display: inline-grid;\n place-items: center;\n box-sizing: border-box;\n width: var(--fs-icon-button-box);\n height: var(--fs-icon-button-box);\n margin: 0;\n padding: 0;\n color: var(--fs-ink-2);\n background: transparent;\n border: var(--fs-line-width) solid transparent;\n border-radius: var(--fs-radius-md);\n cursor: pointer;\n transition: background-color var(--fs-dur-fast) var(--fs-ease);\n }\n .fs-icon-button > .fs-icon {\n width: var(--fs-icon-button-icon);\n height: var(--fs-icon-button-icon);\n }\n\n .fs-icon-button--tool {\n --fs-icon-button-box: 28px;\n --fs-icon-button-icon: 20px;\n }\n .fs-icon-button--row {\n --fs-icon-button-box: var(--fs-size-touch);\n --fs-icon-button-icon: 16px;\n }\n .fs-icon-button--tone-accent {\n color: var(--fs-accent);\n }\n\n @media (hover: hover) {\n .fs-icon-button:hover {\n color: var(--fs-ink);\n background-color: var(--fs-bg-hover);\n }\n }\n .fs-icon-button:active {\n background-color: var(--fs-bg-active);\n }\n\n /* The ring recipe (D15). */\n .fs-icon-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-icon-button[aria-pressed='true'] {\n color: var(--fs-accent);\n background-color: var(--fs-bg-selected);\n border-color: var(--fs-accent);\n }\n\n /* aria-disabled keeps it focusable, so its tooltip still works (BI §4). */\n .fs-icon-button:disabled,\n .fs-icon-button[aria-disabled='true'] {\n color: var(--fs-ink-disabled);\n background-color: transparent;\n border-color: transparent;\n cursor: not-allowed;\n }\n\n /* Forced colours erase the pressed fill and edge, so pressed takes the system's selection\n colours (T107). */\n @media (forced-colors: active) {\n .fs-icon-button[aria-pressed='true'] {\n color: HighlightText;\n background-color: Highlight;\n border-color: Highlight;\n }\n }\n}\n";
|
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
|
@@ -165,12 +165,13 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
165
165
|
--fs-grid-error-bg: #fdecea;
|
|
166
166
|
--fs-grid-negative-ink: #c62828;
|
|
167
167
|
--fs-grid-stale-ink: #5f5e5a;
|
|
168
|
-
--fs-grid-stale-dot: #
|
|
168
|
+
--fs-grid-stale-dot: #c27c00;
|
|
169
169
|
--fs-grid-dirty-ink: #3d3db4;
|
|
170
170
|
--fs-grid-invalid-ink: #c62828;
|
|
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;
|
|
@@ -702,12 +705,13 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
702
705
|
--fs-grid-error-bg: #fdecea;
|
|
703
706
|
--fs-grid-negative-ink: #c62828;
|
|
704
707
|
--fs-grid-stale-ink: #5f5e5a;
|
|
705
|
-
--fs-grid-stale-dot: #
|
|
708
|
+
--fs-grid-stale-dot: #c27c00;
|
|
706
709
|
--fs-grid-dirty-ink: #3d3db4;
|
|
707
710
|
--fs-grid-invalid-ink: #c62828;
|
|
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;
|
|
@@ -1075,12 +1080,13 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
1075
1080
|
--fs-grid-error-bg: #fdecea;
|
|
1076
1081
|
--fs-grid-negative-ink: #c62828;
|
|
1077
1082
|
--fs-grid-stale-ink: #5f5e5a;
|
|
1078
|
-
--fs-grid-stale-dot: #
|
|
1083
|
+
--fs-grid-stale-dot: #c27c00;
|
|
1079
1084
|
--fs-grid-dirty-ink: #3d3db4;
|
|
1080
1085
|
--fs-grid-invalid-ink: #c62828;
|
|
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.
|
|
@@ -1822,7 +1849,9 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
1822
1849
|
content: '';
|
|
1823
1850
|
position: absolute;
|
|
1824
1851
|
inset: 0;
|
|
1825
|
-
|
|
1852
|
+
/* The mark is the surface colour on the accent (I21): white in light as before; in dark the navy surface,
|
|
1853
|
+
8.1:1 on the light-blue accent where white was 2.0:1. Not ink-on-accent, which products read for text. */
|
|
1854
|
+
background: var(--fs-bg-surface);
|
|
1826
1855
|
visibility: hidden;
|
|
1827
1856
|
}
|
|
1828
1857
|
.fs-checkbox__input::before {
|
|
@@ -2626,6 +2655,13 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
2626
2655
|
background: var(--fs-gap-wash);
|
|
2627
2656
|
border-color: var(--fs-gap-edge);
|
|
2628
2657
|
}
|
|
2658
|
+
|
|
2659
|
+
/* Forced colours erase a fill, so the chevron's mask is drawn in CanvasText (T105, as node.css does). */
|
|
2660
|
+
@media (forced-colors: active) {
|
|
2661
|
+
.fs-disclosure__summary::before {
|
|
2662
|
+
background-color: CanvasText;
|
|
2663
|
+
}
|
|
2664
|
+
}
|
|
2629
2665
|
}
|
|
2630
2666
|
|
|
2631
2667
|
/* Drag markers (spec 02 F): the kit styles them; BI App's own engine runs the drag (BI §9.6).
|
|
@@ -2725,6 +2761,13 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
2725
2761
|
background: var(--fs-danger-wash);
|
|
2726
2762
|
outline-color: var(--fs-danger-fill);
|
|
2727
2763
|
}
|
|
2764
|
+
/* Forced colours drops the wash and paints both outlines in the text colour: refused is a thicker dashed outline. */
|
|
2765
|
+
@media (forced-colors: active) {
|
|
2766
|
+
.fs-drag-ghost.fs-is-refused {
|
|
2767
|
+
outline: 4px dashed CanvasText;
|
|
2768
|
+
outline-offset: -4px;
|
|
2769
|
+
}
|
|
2770
|
+
}
|
|
2728
2771
|
|
|
2729
2772
|
.fs-add-cell {
|
|
2730
2773
|
display: grid;
|
|
@@ -2886,6 +2929,15 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
2886
2929
|
background: var(--fs-accent-wash);
|
|
2887
2930
|
border-color: var(--fs-accent);
|
|
2888
2931
|
}
|
|
2932
|
+
|
|
2933
|
+
/* Forced colours erase the wash and the accent edge: the slot being dropped on gets a Highlight
|
|
2934
|
+
ring just outside its edge, on Canvas (T107). */
|
|
2935
|
+
@media (forced-colors: active) {
|
|
2936
|
+
.fs-slot.fs-is-dragover {
|
|
2937
|
+
outline: 2px solid Highlight;
|
|
2938
|
+
outline-offset: 2px;
|
|
2939
|
+
}
|
|
2940
|
+
}
|
|
2889
2941
|
}
|
|
2890
2942
|
|
|
2891
2943
|
/* Empty state (spec 02 E). Usage: empty.md. */
|
|
@@ -3150,6 +3202,24 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
3150
3202
|
outline-offset: calc(-1 * var(--fs-ring-width));
|
|
3151
3203
|
box-shadow: inset 0 0 0 calc(var(--fs-ring-width) + var(--fs-ring-halo-width)) var(--fs-ring-halo);
|
|
3152
3204
|
}
|
|
3205
|
+
|
|
3206
|
+
/* Forced colours turn the invalid box's red edge into the plain one, so a second, inner line
|
|
3207
|
+
marks it (the focus ring takes the outline while focused); a disabled box greys its edge and
|
|
3208
|
+
text (T107). */
|
|
3209
|
+
@media (forced-colors: active) {
|
|
3210
|
+
.fs-field__box:has([aria-invalid='true']):not(:has(:focus-visible)) {
|
|
3211
|
+
outline: var(--fs-line-width) solid CanvasText;
|
|
3212
|
+
outline-offset: calc(-2 * var(--fs-line-width) - 1px);
|
|
3213
|
+
}
|
|
3214
|
+
.fs-field__box:has(:disabled) {
|
|
3215
|
+
color: GrayText;
|
|
3216
|
+
border-color: GrayText;
|
|
3217
|
+
}
|
|
3218
|
+
.fs-field__box:has(:disabled) :is(.fs-input, .fs-select__control, .fs-field__control) {
|
|
3219
|
+
color: GrayText;
|
|
3220
|
+
-webkit-text-fill-color: GrayText;
|
|
3221
|
+
}
|
|
3222
|
+
}
|
|
3153
3223
|
}
|
|
3154
3224
|
|
|
3155
3225
|
/* "Not computed" markers (spec 02 F; GZ §6.1). Usage: gap.md. Every marker brings its own surface
|
|
@@ -3555,6 +3625,12 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
3555
3625
|
.fs-grid .fs-cell--editing {
|
|
3556
3626
|
background-color: var(--fs-grid-editing-bg);
|
|
3557
3627
|
}
|
|
3628
|
+
/* Red ink on the editing fill: a darker red in light (T108), the same red as before in dark. */
|
|
3629
|
+
.fs-grid .fs-cell--editing.fs-cell--negative,
|
|
3630
|
+
.fs-grid .fs-cell--editing.fs-cell--error,
|
|
3631
|
+
.fs-grid .fs-cell--editing.fs-cell--invalid {
|
|
3632
|
+
color: var(--fs-grid-editing-danger-ink);
|
|
3633
|
+
}
|
|
3558
3634
|
.fs-grid .fs-cell--editing .fs-grid__cover {
|
|
3559
3635
|
visibility: hidden;
|
|
3560
3636
|
}
|
|
@@ -3580,6 +3656,25 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
3580
3656
|
border-top: 6px solid var(--fs-accent);
|
|
3581
3657
|
border-left: 6px solid transparent;
|
|
3582
3658
|
}
|
|
3659
|
+
|
|
3660
|
+
/* Forced colours erase the danger ink and the error fill: a wavy underline marks the value (on the
|
|
3661
|
+
cover, which is positioned, so the cell's own underline doesn't reach it), as .fs-diag--error
|
|
3662
|
+
does, and an error cell also gets a dashed inner edge (T107). */
|
|
3663
|
+
@media (forced-colors: active) {
|
|
3664
|
+
.fs-grid :is(.fs-cell--invalid, .fs-cell--error) > .fs-grid__cover {
|
|
3665
|
+
text-decoration: underline wavy CanvasText;
|
|
3666
|
+
text-decoration-skip-ink: none;
|
|
3667
|
+
text-underline-offset: 3px;
|
|
3668
|
+
}
|
|
3669
|
+
.fs-grid .fs-cell--error:not(.fs-is-selected) {
|
|
3670
|
+
outline: var(--fs-line-width) dashed CanvasText;
|
|
3671
|
+
outline-offset: -3px;
|
|
3672
|
+
}
|
|
3673
|
+
/* A fill becomes Canvas here, so the stale dot would vanish (I23). */
|
|
3674
|
+
.fs-grid .fs-cell--stale::before {
|
|
3675
|
+
background: CanvasText;
|
|
3676
|
+
}
|
|
3677
|
+
}
|
|
3583
3678
|
}
|
|
3584
3679
|
|
|
3585
3680
|
/* Gutter mark (spec 02 H). Usage: gutter-mark.md.
|
|
@@ -3688,6 +3783,16 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
3688
3783
|
border-color: transparent;
|
|
3689
3784
|
cursor: not-allowed;
|
|
3690
3785
|
}
|
|
3786
|
+
|
|
3787
|
+
/* Forced colours erase the pressed fill and edge, so pressed takes the system's selection
|
|
3788
|
+
colours (T107). */
|
|
3789
|
+
@media (forced-colors: active) {
|
|
3790
|
+
.fs-icon-button[aria-pressed='true'] {
|
|
3791
|
+
color: HighlightText;
|
|
3792
|
+
background-color: Highlight;
|
|
3793
|
+
border-color: Highlight;
|
|
3794
|
+
}
|
|
3795
|
+
}
|
|
3691
3796
|
}
|
|
3692
3797
|
|
|
3693
3798
|
/* Icons drawn by createIcon and iconSvg (spec 05 §1). */
|
|
@@ -3825,6 +3930,30 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
3825
3930
|
.fs-select:has(:disabled) {
|
|
3826
3931
|
color: var(--fs-ink-disabled);
|
|
3827
3932
|
}
|
|
3933
|
+
|
|
3934
|
+
/* Forced colours erase a fill, so the select's arrow is drawn in a system colour (T105). */
|
|
3935
|
+
@media (forced-colors: active) {
|
|
3936
|
+
.fs-select::after {
|
|
3937
|
+
background-color: CanvasText;
|
|
3938
|
+
}
|
|
3939
|
+
.fs-select:has(:disabled)::after {
|
|
3940
|
+
background-color: GrayText;
|
|
3941
|
+
}
|
|
3942
|
+
/* An invalid control's red edge becomes the plain one: a second, inner line marks it (T107). */
|
|
3943
|
+
.fs-input[aria-invalid='true'],
|
|
3944
|
+
.fs-textarea[aria-invalid='true'],
|
|
3945
|
+
.fs-select__control[aria-invalid='true'] {
|
|
3946
|
+
outline: var(--fs-line-width) solid CanvasText;
|
|
3947
|
+
outline-offset: calc(-2 * var(--fs-line-width) - 1px);
|
|
3948
|
+
}
|
|
3949
|
+
.fs-input:disabled,
|
|
3950
|
+
.fs-textarea:disabled,
|
|
3951
|
+
.fs-select__control:disabled {
|
|
3952
|
+
color: GrayText;
|
|
3953
|
+
-webkit-text-fill-color: GrayText;
|
|
3954
|
+
border-color: GrayText;
|
|
3955
|
+
}
|
|
3956
|
+
}
|
|
3828
3957
|
}
|
|
3829
3958
|
|
|
3830
3959
|
/* Kicker and section label (spec 02 E). Usage: kicker.md. */
|
|
@@ -4353,6 +4482,26 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
4353
4482
|
.fs-menu__item[aria-disabled='true'] > .fs-icon {
|
|
4354
4483
|
color: var(--fs-ink-disabled);
|
|
4355
4484
|
}
|
|
4485
|
+
|
|
4486
|
+
/* Forced colours erase a fill, so the check mark is drawn in a system colour (T105). */
|
|
4487
|
+
@media (forced-colors: active) {
|
|
4488
|
+
.fs-menu__item:is([role='menuitemcheckbox'], [role='menuitemradio'])[aria-checked='true']::before {
|
|
4489
|
+
background-color: CanvasText;
|
|
4490
|
+
}
|
|
4491
|
+
.fs-menu__item:is([role='menuitemcheckbox'], [role='menuitemradio'])[aria-checked='true']:is(
|
|
4492
|
+
[aria-disabled='true'],
|
|
4493
|
+
:disabled
|
|
4494
|
+
)::before {
|
|
4495
|
+
background-color: GrayText;
|
|
4496
|
+
}
|
|
4497
|
+
/* A disabled item's ink is forced to the plain text colour, so it is greyed with GrayText. Firefox
|
|
4498
|
+
showed no difference without this; Chromium did, for a reason not traced (T109). */
|
|
4499
|
+
.fs-menu__item[aria-disabled='true'],
|
|
4500
|
+
.fs-menu__item:disabled,
|
|
4501
|
+
.fs-menu__item[aria-disabled='true'] > .fs-icon {
|
|
4502
|
+
color: GrayText;
|
|
4503
|
+
}
|
|
4504
|
+
}
|
|
4356
4505
|
}
|
|
4357
4506
|
|
|
4358
4507
|
/* Meter (spec 02 E; Grizzbi's score meter). Usage: meter.md. */
|
|
@@ -4971,6 +5120,13 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
4971
5120
|
--fs-pill-wash: var(--fs-mark-none-wash);
|
|
4972
5121
|
--fs-pill-dot: var(--fs-mark-none-fill);
|
|
4973
5122
|
}
|
|
5123
|
+
|
|
5124
|
+
/* A fill becomes Canvas here, so the dot would vanish (I23); the word carries the tone. */
|
|
5125
|
+
@media (forced-colors: active) {
|
|
5126
|
+
.fs-pill--dot::before {
|
|
5127
|
+
background: CanvasText;
|
|
5128
|
+
}
|
|
5129
|
+
}
|
|
4974
5130
|
}
|
|
4975
5131
|
|
|
4976
5132
|
/* Popover (spec 02 D). Usage: popover.md. Behaviour: createPopover. */
|
|
@@ -5181,6 +5337,23 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
5181
5337
|
transform: rotate(360deg);
|
|
5182
5338
|
}
|
|
5183
5339
|
}
|
|
5340
|
+
|
|
5341
|
+
/* Forced colours draw a transparent border and erase fills and shadows, so every step would be a
|
|
5342
|
+
plain ring: the current step's gap is painted in Canvas, done is a filled dot, failed a thick
|
|
5343
|
+
ring (T107). */
|
|
5344
|
+
@media (forced-colors: active) {
|
|
5345
|
+
.fs-progress__step[aria-current='step']::before {
|
|
5346
|
+
border-color: CanvasText;
|
|
5347
|
+
border-top-color: Canvas;
|
|
5348
|
+
}
|
|
5349
|
+
.fs-progress__step.fs-is-done::before {
|
|
5350
|
+
background-color: CanvasText;
|
|
5351
|
+
border-color: CanvasText;
|
|
5352
|
+
}
|
|
5353
|
+
.fs-progress__step.fs-is-failed::before {
|
|
5354
|
+
border: 4px solid CanvasText;
|
|
5355
|
+
}
|
|
5356
|
+
}
|
|
5184
5357
|
}
|
|
5185
5358
|
|
|
5186
5359
|
/* Segmented control (spec 02 A). Usage: segmented.md. Behaviour: createRovingGroup, mode 'radio'.
|
|
@@ -5583,6 +5756,22 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
5583
5756
|
font-variant-numeric: tabular-nums;
|
|
5584
5757
|
color: var(--fs-ink);
|
|
5585
5758
|
}
|
|
5759
|
+
|
|
5760
|
+
/* A fill becomes Canvas here, so the legend dots would vanish (I23). They take the mark dot's shapes:
|
|
5761
|
+
exact solid, approximate half filled, not converted a ring; the words and counts still name them. */
|
|
5762
|
+
@media (forced-colors: active) {
|
|
5763
|
+
.fs-legend__dot {
|
|
5764
|
+
box-sizing: border-box;
|
|
5765
|
+
background: CanvasText;
|
|
5766
|
+
border: 1.5px solid CanvasText;
|
|
5767
|
+
}
|
|
5768
|
+
.fs-legend__dot--approximate {
|
|
5769
|
+
background: linear-gradient(90deg, CanvasText 50%, transparent 50%);
|
|
5770
|
+
}
|
|
5771
|
+
.fs-legend__dot--not-converted {
|
|
5772
|
+
background: transparent;
|
|
5773
|
+
}
|
|
5774
|
+
}
|
|
5586
5775
|
}
|
|
5587
5776
|
|
|
5588
5777
|
/* Steps: a numbered how-to, or lifecycle steps with status marks (spec 02 E). Usage: steps.md. */
|
|
@@ -5957,6 +6146,14 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
5957
6146
|
break-inside: avoid;
|
|
5958
6147
|
}
|
|
5959
6148
|
}
|
|
6149
|
+
|
|
6150
|
+
/* Forced colours erase the selected row's fill: the system's selection colours instead (T107). */
|
|
6151
|
+
@media (forced-colors: active) {
|
|
6152
|
+
.fs-table tbody tr[aria-selected='true'] > * {
|
|
6153
|
+
color: HighlightText;
|
|
6154
|
+
background-color: Highlight;
|
|
6155
|
+
}
|
|
6156
|
+
}
|
|
5960
6157
|
}
|
|
5961
6158
|
|
|
5962
6159
|
/* Tabs, choice tabs and page tabs (spec 02 C). Usage: tabs.md. Behaviour: createTabs. */
|
|
@@ -6139,6 +6336,15 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
6139
6336
|
background-color: transparent;
|
|
6140
6337
|
cursor: not-allowed;
|
|
6141
6338
|
}
|
|
6339
|
+
|
|
6340
|
+
/* After the disabled rule above, which it overrides: forced colours turn the disabled ink into
|
|
6341
|
+
the plain text colour, so a disabled tab is greyed with GrayText (T107). */
|
|
6342
|
+
@media (forced-colors: active) {
|
|
6343
|
+
.fs-tabs__tab:disabled,
|
|
6344
|
+
.fs-tabs__tab[aria-disabled='true'] {
|
|
6345
|
+
color: GrayText;
|
|
6346
|
+
}
|
|
6347
|
+
}
|
|
6142
6348
|
}
|
|
6143
6349
|
|
|
6144
6350
|
/* Page and section titles (spec 01 §4, T68, D39). Usage: title.md. */
|
|
@@ -6536,6 +6742,14 @@ export default `@layer fs.tokens, fs.reset, fs.base, fs.components, fs.utilities
|
|
|
6536
6742
|
.fs-tree__status.fs-tone-danger {
|
|
6537
6743
|
color: var(--fs-danger-ink);
|
|
6538
6744
|
}
|
|
6745
|
+
|
|
6746
|
+
/* Forced colours erase the selected row's fill: the system's selection colours instead (T107). */
|
|
6747
|
+
@media (forced-colors: active) {
|
|
6748
|
+
.fs-tree__item[aria-selected='true'] > .fs-tree__row {
|
|
6749
|
+
color: HighlightText;
|
|
6750
|
+
background-color: Highlight;
|
|
6751
|
+
}
|
|
6752
|
+
}
|
|
6539
6753
|
}
|
|
6540
6754
|
|
|
6541
6755
|
/* 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/pill.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Pill: status pill, conversion marks, lock badge (spec 02 E). Usage: pill.md. */\n@layer fs.components {\n .fs-pill {\n --fs-pill-ink: var(--fs-neutral-ink);\n --fs-pill-wash: var(--fs-neutral-wash);\n --fs-pill-dot: var(--fs-neutral-fill);\n display: inline-flex;\n align-items: center;\n gap: 5px;\n box-sizing: border-box;\n padding: 1px 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 font-variant-numeric: tabular-nums;\n color: var(--fs-pill-ink);\n white-space: nowrap;\n background: var(--fs-pill-wash);\n border-radius: var(--fs-radius-pill);\n }\n .fs-pill--dot::before {\n content: '';\n flex: none;\n width: 7px;\n height: 7px;\n background: var(--fs-pill-dot);\n border-radius: 50%;\n }\n .fs-pill__count {\n font-weight: var(--fs-weight-regular);\n }\n .fs-pill > .fs-icon {\n flex: none;\n width: 14px;\n height: 14px;\n }\n /* Lock badge (BI §5.5): 24 px, a lock icon and a word. */\n .fs-pill--lock {\n height: 24px;\n padding: 0 var(--fs-space-2);\n gap: var(--fs-space-1);\n }\n\n .fs-pill.fs-tone-info {\n --fs-pill-ink: var(--fs-info-ink);\n --fs-pill-wash: var(--fs-info-wash);\n --fs-pill-dot: var(--fs-info-fill);\n }\n .fs-pill.fs-tone-positive {\n --fs-pill-ink: var(--fs-positive-ink);\n --fs-pill-wash: var(--fs-positive-wash);\n --fs-pill-dot: var(--fs-positive-fill);\n }\n .fs-pill.fs-tone-caution {\n --fs-pill-ink: var(--fs-caution-ink);\n --fs-pill-wash: var(--fs-caution-wash);\n --fs-pill-dot: var(--fs-caution-fill);\n }\n .fs-pill.fs-tone-warning {\n --fs-pill-ink: var(--fs-warning-ink);\n --fs-pill-wash: var(--fs-warning-wash);\n --fs-pill-dot: var(--fs-warning-fill);\n box-shadow: inset 0 0 0 var(--fs-line-width) var(--fs-warning-edge);\n }\n .fs-pill.fs-tone-danger {\n --fs-pill-ink: var(--fs-danger-ink);\n --fs-pill-wash: var(--fs-danger-wash);\n --fs-pill-dot: var(--fs-danger-fill);\n }\n .fs-pill.fs-tone-gap {\n --fs-pill-ink: var(--fs-gap-ink);\n --fs-pill-wash: var(--fs-gap-wash);\n --fs-pill-dot: var(--fs-gap-fill);\n }\n\n /* Conversion marks (GZ §6.2): dot pills in the mark tones. */\n .fs-mark--exact {\n --fs-pill-ink: var(--fs-mark-exact-ink);\n --fs-pill-wash: var(--fs-mark-exact-wash);\n --fs-pill-dot: var(--fs-mark-exact-fill);\n }\n .fs-mark--approximate {\n --fs-pill-ink: var(--fs-mark-approx-ink);\n --fs-pill-wash: var(--fs-mark-approx-wash);\n --fs-pill-dot: var(--fs-mark-approx-fill);\n }\n .fs-mark--not-converted {\n --fs-pill-ink: var(--fs-mark-none-ink);\n --fs-pill-wash: var(--fs-mark-none-wash);\n --fs-pill-dot: var(--fs-mark-none-fill);\n }\n}\n";
|
|
1
|
+
export default "/* Pill: status pill, conversion marks, lock badge (spec 02 E). Usage: pill.md. */\n@layer fs.components {\n .fs-pill {\n --fs-pill-ink: var(--fs-neutral-ink);\n --fs-pill-wash: var(--fs-neutral-wash);\n --fs-pill-dot: var(--fs-neutral-fill);\n display: inline-flex;\n align-items: center;\n gap: 5px;\n box-sizing: border-box;\n padding: 1px 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 font-variant-numeric: tabular-nums;\n color: var(--fs-pill-ink);\n white-space: nowrap;\n background: var(--fs-pill-wash);\n border-radius: var(--fs-radius-pill);\n }\n .fs-pill--dot::before {\n content: '';\n flex: none;\n width: 7px;\n height: 7px;\n background: var(--fs-pill-dot);\n border-radius: 50%;\n }\n .fs-pill__count {\n font-weight: var(--fs-weight-regular);\n }\n .fs-pill > .fs-icon {\n flex: none;\n width: 14px;\n height: 14px;\n }\n /* Lock badge (BI §5.5): 24 px, a lock icon and a word. */\n .fs-pill--lock {\n height: 24px;\n padding: 0 var(--fs-space-2);\n gap: var(--fs-space-1);\n }\n\n .fs-pill.fs-tone-info {\n --fs-pill-ink: var(--fs-info-ink);\n --fs-pill-wash: var(--fs-info-wash);\n --fs-pill-dot: var(--fs-info-fill);\n }\n .fs-pill.fs-tone-positive {\n --fs-pill-ink: var(--fs-positive-ink);\n --fs-pill-wash: var(--fs-positive-wash);\n --fs-pill-dot: var(--fs-positive-fill);\n }\n .fs-pill.fs-tone-caution {\n --fs-pill-ink: var(--fs-caution-ink);\n --fs-pill-wash: var(--fs-caution-wash);\n --fs-pill-dot: var(--fs-caution-fill);\n }\n .fs-pill.fs-tone-warning {\n --fs-pill-ink: var(--fs-warning-ink);\n --fs-pill-wash: var(--fs-warning-wash);\n --fs-pill-dot: var(--fs-warning-fill);\n box-shadow: inset 0 0 0 var(--fs-line-width) var(--fs-warning-edge);\n }\n .fs-pill.fs-tone-danger {\n --fs-pill-ink: var(--fs-danger-ink);\n --fs-pill-wash: var(--fs-danger-wash);\n --fs-pill-dot: var(--fs-danger-fill);\n }\n .fs-pill.fs-tone-gap {\n --fs-pill-ink: var(--fs-gap-ink);\n --fs-pill-wash: var(--fs-gap-wash);\n --fs-pill-dot: var(--fs-gap-fill);\n }\n\n /* Conversion marks (GZ §6.2): dot pills in the mark tones. */\n .fs-mark--exact {\n --fs-pill-ink: var(--fs-mark-exact-ink);\n --fs-pill-wash: var(--fs-mark-exact-wash);\n --fs-pill-dot: var(--fs-mark-exact-fill);\n }\n .fs-mark--approximate {\n --fs-pill-ink: var(--fs-mark-approx-ink);\n --fs-pill-wash: var(--fs-mark-approx-wash);\n --fs-pill-dot: var(--fs-mark-approx-fill);\n }\n .fs-mark--not-converted {\n --fs-pill-ink: var(--fs-mark-none-ink);\n --fs-pill-wash: var(--fs-mark-none-wash);\n --fs-pill-dot: var(--fs-mark-none-fill);\n }\n\n /* A fill becomes Canvas here, so the dot would vanish (I23); the word carries the tone. */\n @media (forced-colors: active) {\n .fs-pill--dot::before {\n background: 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";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "/* Stacked bar and its legend (spec 02 E; Grizzbi's score). Usage: stacked-bar.md. */\n@layer fs.components {\n /* 2 px gaps show the surface between segments, so neighbours never need to differ in contrast. */\n .fs-stacked-bar {\n display: flex;\n gap: 2px;\n height: 10px;\n overflow: hidden;\n border-radius: var(--fs-radius-sm);\n }\n .fs-stacked-bar__segment {\n min-width: 2px;\n height: 100%;\n background: var(--fs-line);\n }\n .fs-stacked-bar__segment--exact {\n background: var(--fs-mark-exact-fill);\n }\n .fs-stacked-bar__segment--approximate {\n background: var(--fs-mark-approx-fill);\n }\n .fs-stacked-bar__segment--not-converted {\n background: var(--fs-mark-none-fill);\n }\n\n .fs-legend {\n display: flex;\n flex-wrap: wrap;\n gap: var(--fs-space-1) var(--fs-space-4);\n margin: 0;\n padding: 0;\n list-style: none;\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n }\n .fs-legend__item {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n color: var(--fs-ink-2);\n }\n .fs-legend__dot {\n flex: none;\n width: 9px;\n height: 9px;\n background: var(--fs-line-control-strong);\n border-radius: 50%;\n }\n .fs-legend__dot--exact {\n background: var(--fs-mark-exact-fill);\n }\n .fs-legend__dot--approximate {\n background: var(--fs-mark-approx-fill);\n }\n .fs-legend__dot--not-converted {\n background: var(--fs-mark-none-fill);\n }\n .fs-legend__count {\n font-weight: var(--fs-weight-semibold);\n font-variant-numeric: tabular-nums;\n color: var(--fs-ink);\n }\n}\n";
|
|
1
|
+
export default "/* Stacked bar and its legend (spec 02 E; Grizzbi's score). Usage: stacked-bar.md. */\n@layer fs.components {\n /* 2 px gaps show the surface between segments, so neighbours never need to differ in contrast. */\n .fs-stacked-bar {\n display: flex;\n gap: 2px;\n height: 10px;\n overflow: hidden;\n border-radius: var(--fs-radius-sm);\n }\n .fs-stacked-bar__segment {\n min-width: 2px;\n height: 100%;\n background: var(--fs-line);\n }\n .fs-stacked-bar__segment--exact {\n background: var(--fs-mark-exact-fill);\n }\n .fs-stacked-bar__segment--approximate {\n background: var(--fs-mark-approx-fill);\n }\n .fs-stacked-bar__segment--not-converted {\n background: var(--fs-mark-none-fill);\n }\n\n .fs-legend {\n display: flex;\n flex-wrap: wrap;\n gap: var(--fs-space-1) var(--fs-space-4);\n margin: 0;\n padding: 0;\n list-style: none;\n font-size: var(--fs-text-xs-size);\n line-height: var(--fs-text-xs-line);\n }\n .fs-legend__item {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n color: var(--fs-ink-2);\n }\n .fs-legend__dot {\n flex: none;\n width: 9px;\n height: 9px;\n background: var(--fs-line-control-strong);\n border-radius: 50%;\n }\n .fs-legend__dot--exact {\n background: var(--fs-mark-exact-fill);\n }\n .fs-legend__dot--approximate {\n background: var(--fs-mark-approx-fill);\n }\n .fs-legend__dot--not-converted {\n background: var(--fs-mark-none-fill);\n }\n .fs-legend__count {\n font-weight: var(--fs-weight-semibold);\n font-variant-numeric: tabular-nums;\n color: var(--fs-ink);\n }\n\n /* A fill becomes Canvas here, so the legend dots would vanish (I23). They take the mark dot's shapes:\n exact solid, approximate half filled, not converted a ring; the words and counts still name them. */\n @media (forced-colors: active) {\n .fs-legend__dot {\n box-sizing: border-box;\n background: CanvasText;\n border: 1.5px solid CanvasText;\n }\n .fs-legend__dot--approximate {\n background: linear-gradient(90deg, CanvasText 50%, transparent 50%);\n }\n .fs-legend__dot--not-converted {\n background: transparent;\n }\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";
|