viewkitjs 0.22.0 → 0.24.0
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 +38 -0
- package/package.json +2 -4
- package/views/dist/contract.d.ts +6 -289
- package/views/dist/contract.js +1 -96
- package/views/dist/controls/atoms.d.ts +8 -0
- package/views/dist/controls/atoms.js +8 -0
- package/views/dist/controls/button/tokens.d.ts +351 -0
- package/views/dist/controls/button/tokens.js +90 -0
- package/views/dist/controls/checkbox/checkbox.d.ts +28 -0
- package/views/dist/controls/checkbox/checkbox.js +15 -0
- package/views/dist/controls/checkbox/looks.d.ts +3 -0
- package/views/dist/controls/checkbox/looks.js +8 -0
- package/views/dist/controls/checkbox/map-checkbox.d.ts +2 -0
- package/views/dist/controls/checkbox/map-checkbox.js +5 -0
- package/views/dist/controls/checkbox/tokens.d.ts +131 -0
- package/views/dist/controls/checkbox/tokens.js +35 -0
- package/views/dist/controls/checkbox.css +133 -0
- package/views/dist/controls/controls.d.ts +12 -3
- package/views/dist/controls/controls.js +13 -1
- package/views/dist/controls/field/field.d.ts +94 -0
- package/views/dist/controls/field/field.js +46 -0
- package/views/dist/controls/field/looks.d.ts +13 -0
- package/views/dist/controls/field/looks.js +22 -0
- package/views/dist/controls/field/tokens.d.ts +75 -0
- package/views/dist/controls/field/tokens.js +21 -0
- package/views/dist/controls/field.css +98 -0
- package/views/dist/controls/glass-button/glass-button.d.ts +40 -0
- package/views/dist/controls/glass-button/glass-button.js +16 -0
- package/views/dist/controls/glass-button/looks.d.ts +4 -0
- package/views/dist/controls/glass-button/looks.js +4 -0
- package/views/dist/controls/glass-button/tokens.d.ts +127 -0
- package/views/dist/controls/glass-button/tokens.js +34 -0
- package/views/dist/controls/glass-button.css +111 -0
- package/views/dist/controls/grip/grip.d.ts +14 -0
- package/views/dist/controls/grip/grip.js +9 -0
- package/views/dist/controls/index.d.ts +32 -0
- package/views/dist/controls/index.js +31 -0
- package/views/dist/controls/inline-input/inline-input.d.ts +14 -0
- package/views/dist/controls/inline-input/inline-input.js +10 -0
- package/views/dist/controls/inline-input/looks.d.ts +3 -0
- package/views/dist/controls/inline-input/looks.js +16 -0
- package/views/dist/controls/inline-input/tokens.d.ts +79 -0
- package/views/dist/controls/inline-input/tokens.js +22 -0
- package/views/dist/controls/inline-input.css +78 -0
- package/views/dist/controls/input/autofill.d.ts +25 -0
- package/views/dist/controls/input/autofill.js +17 -0
- package/views/dist/controls/input/input.d.ts +119 -0
- package/views/dist/controls/input/input.js +127 -0
- package/views/dist/controls/input/looks.d.ts +41 -0
- package/views/dist/controls/input/looks.js +48 -0
- package/views/dist/controls/input/map-input.d.ts +2 -0
- package/views/dist/controls/input/map-input.js +5 -0
- package/views/dist/controls/input/tokens.d.ts +171 -0
- package/views/dist/controls/input/tokens.js +45 -0
- package/views/dist/controls/input.css +381 -0
- package/views/dist/controls/internal/anchor.d.ts +16 -0
- package/views/dist/controls/internal/anchor.js +8 -0
- package/views/dist/controls/internal/close-reason.d.ts +5 -0
- package/views/dist/controls/internal/close-reason.js +2 -0
- package/views/dist/controls/internal/hold.d.ts +25 -0
- package/views/dist/controls/internal/hold.js +81 -0
- package/views/dist/controls/internal/icons.d.ts +8 -0
- package/views/dist/controls/internal/icons.js +65 -0
- package/views/dist/controls/internal/popup-host.d.ts +7 -0
- package/views/dist/controls/internal/popup-host.js +10 -0
- package/views/dist/controls/internal/read-token.d.ts +6 -0
- package/views/dist/controls/internal/read-token.js +11 -0
- package/views/dist/controls/internal/reorder.d.ts +44 -0
- package/views/dist/controls/internal/reorder.js +83 -0
- package/views/dist/controls/internal/scroll.d.ts +11 -0
- package/views/dist/controls/internal/scroll.js +14 -0
- package/views/dist/controls/kbd/kbd.d.ts +13 -0
- package/views/dist/controls/kbd/kbd.js +10 -0
- package/views/dist/controls/kbd/looks.d.ts +4 -0
- package/views/dist/controls/kbd/looks.js +4 -0
- package/views/dist/controls/kbd/tokens.d.ts +47 -0
- package/views/dist/controls/kbd/tokens.js +14 -0
- package/views/dist/controls/kbd.css +46 -0
- package/views/dist/controls/list/tokens.d.ts +139 -0
- package/views/dist/controls/list/tokens.js +37 -0
- package/views/dist/controls/list.css +188 -0
- package/views/dist/controls/menu-list/keys.d.ts +7 -0
- package/views/dist/controls/menu-list/keys.js +29 -0
- package/views/dist/controls/menu-list/looks.d.ts +4 -0
- package/views/dist/controls/menu-list/looks.js +20 -0
- package/views/dist/controls/menu-list/menu-list.d.ts +196 -0
- package/views/dist/controls/menu-list/menu-list.js +346 -0
- package/views/dist/controls/menu-list/tokens.d.ts +187 -0
- package/views/dist/controls/menu-list/tokens.js +49 -0
- package/views/dist/controls/menu-list.css +259 -0
- package/views/dist/controls/number-field/number-field.d.ts +48 -0
- package/views/dist/controls/number-field/number-field.js +34 -0
- package/views/dist/controls/number-field/tokens.d.ts +47 -0
- package/views/dist/controls/number-field/tokens.js +14 -0
- package/views/dist/controls/number-field.css +54 -0
- package/views/dist/controls/option/atom-tag.d.ts +6 -0
- package/views/dist/controls/option/atom-tag.js +6 -0
- package/views/dist/controls/option/looks.d.ts +7 -0
- package/views/dist/controls/option/looks.js +21 -0
- package/views/dist/controls/option/option.d.ts +35 -0
- package/views/dist/controls/option/option.js +32 -0
- package/views/dist/controls/option/tokens.d.ts +223 -0
- package/views/dist/controls/option/tokens.js +58 -0
- package/views/dist/controls/option.css +92 -0
- package/views/dist/controls/phone-header/header-bar.d.ts +18 -0
- package/views/dist/controls/phone-header/header-bar.js +9 -0
- package/views/dist/controls/phone-header/looks.d.ts +4 -0
- package/views/dist/controls/phone-header/looks.js +4 -0
- package/views/dist/controls/phone-header/soft-edge.d.ts +5 -0
- package/views/dist/controls/phone-header/soft-edge.js +3 -0
- package/views/dist/controls/phone-header/tokens.d.ts +59 -0
- package/views/dist/controls/phone-header/tokens.js +17 -0
- package/views/dist/controls/phone-header.css +51 -0
- package/views/dist/controls/popover/looks.d.ts +4 -0
- package/views/dist/controls/popover/looks.js +10 -0
- package/views/dist/controls/popover/map-popover.d.ts +3 -0
- package/views/dist/controls/popover/map-popover.js +5 -0
- package/views/dist/controls/popover/popover.d.ts +74 -0
- package/views/dist/controls/popover/popover.js +106 -0
- package/views/dist/controls/popover/tokens.d.ts +83 -0
- package/views/dist/controls/popover/tokens.js +23 -0
- package/views/dist/controls/popover.css +94 -0
- package/views/dist/controls/scrollbar/scrollbar.d.ts +10 -0
- package/views/dist/controls/scrollbar/scrollbar.js +143 -0
- package/views/dist/controls/scrollbar/tokens.d.ts +43 -0
- package/views/dist/controls/scrollbar/tokens.js +13 -0
- package/views/dist/controls/scrollbar.css +47 -0
- package/views/dist/controls/sheet/bottom-sheet.d.ts +98 -0
- package/views/dist/controls/sheet/bottom-sheet.js +375 -0
- package/views/dist/controls/sheet/forms.d.ts +38 -0
- package/views/dist/controls/sheet/forms.js +26 -0
- package/views/dist/controls/sheet/looks.d.ts +4 -0
- package/views/dist/controls/sheet/looks.js +10 -0
- package/views/dist/controls/sheet/map-sheet.d.ts +3 -0
- package/views/dist/controls/sheet/map-sheet.js +12 -0
- package/views/dist/controls/sheet/spring.d.ts +22 -0
- package/views/dist/controls/sheet/spring.js +48 -0
- package/views/dist/controls/sheet/tokens.d.ts +143 -0
- package/views/dist/controls/sheet/tokens.js +38 -0
- package/views/dist/controls/sheet.css +223 -0
- package/views/dist/controls/spinner/tokens.d.ts +55 -0
- package/views/dist/controls/spinner/tokens.js +16 -0
- package/views/dist/controls/status/atom-status-badge.d.ts +10 -0
- package/views/dist/controls/status/atom-status-badge.js +13 -0
- package/views/dist/controls/status/looks.d.ts +4 -0
- package/views/dist/controls/status/looks.js +22 -0
- package/views/dist/controls/status/marks.d.ts +26 -0
- package/views/dist/controls/status/marks.js +73 -0
- package/views/dist/controls/status/status.d.ts +43 -0
- package/views/dist/controls/status/status.js +26 -0
- package/views/dist/controls/status/tokens.d.ts +407 -0
- package/views/dist/controls/status/tokens.js +104 -0
- package/views/dist/controls/status.css +164 -0
- package/views/dist/controls/switch/looks.d.ts +4 -0
- package/views/dist/controls/switch/looks.js +19 -0
- package/views/dist/controls/switch/switch.d.ts +15 -0
- package/views/dist/controls/switch/switch.js +11 -0
- package/views/dist/controls/switch/tokens.d.ts +139 -0
- package/views/dist/controls/switch/tokens.js +37 -0
- package/views/dist/controls/switch.css +169 -0
- package/views/dist/controls/tag/atom-cell-more.d.ts +3 -0
- package/views/dist/controls/tag/atom-cell-more.js +5 -0
- package/views/dist/controls/tag/looks.d.ts +4 -0
- package/views/dist/controls/tag/looks.js +4 -0
- package/views/dist/controls/tag/tag.d.ts +25 -0
- package/views/dist/controls/tag/tag.js +19 -0
- package/views/dist/controls/tag/tokens.d.ts +63 -0
- package/views/dist/controls/tag/tokens.js +18 -0
- package/views/dist/controls/tag.css +81 -0
- package/views/dist/controls/toggle/looks.d.ts +3 -0
- package/views/dist/controls/toggle/looks.js +12 -0
- package/views/dist/controls/toggle/toggle.d.ts +47 -0
- package/views/dist/controls/toggle/toggle.js +23 -0
- package/views/dist/controls/toggle/tokens.d.ts +55 -0
- package/views/dist/controls/toggle/tokens.js +16 -0
- package/views/dist/controls/toggle.css +67 -0
- package/views/dist/controls/tokens.d.ts +16 -0
- package/views/dist/controls/tokens.js +49 -0
- package/views/dist/controls/tooltip/looks.d.ts +4 -0
- package/views/dist/controls/tooltip/looks.js +4 -0
- package/views/dist/controls/tooltip/map-tooltip.d.ts +3 -0
- package/views/dist/controls/tooltip/map-tooltip.js +5 -0
- package/views/dist/controls/tooltip/tokens.d.ts +75 -0
- package/views/dist/controls/tooltip/tokens.js +21 -0
- package/views/dist/controls/tooltip/tooltip.d.ts +54 -0
- package/views/dist/controls/tooltip/tooltip.js +78 -0
- package/views/dist/controls/tooltip.css +94 -0
- package/views/dist/grid/chrome/GridTable.js +21 -19
- package/views/dist/grid/chrome/grid-caret-keys.d.ts +7 -0
- package/views/dist/grid/chrome/grid-caret-keys.js +22 -0
- package/views/dist/grid/chrome/grid-row-window.js +3 -0
- package/views/dist/grid/chrome/useGridColumnLayout.d.ts +4 -1
- package/views/dist/grid/chrome/useGridColumnLayout.js +17 -2
- package/views/dist/grid/chrome/useGridFittedWidths.d.ts +32 -0
- package/views/dist/grid/chrome/useGridFittedWidths.js +59 -0
- package/views/dist/grid/chrome/useGridKeyboard.js +3 -0
- package/views/dist/looks/index.d.ts +16 -0
- package/views/dist/looks/index.js +16 -0
- package/views/dist/looks/looks.d.ts +10 -9
- package/views/dist/looks/pieces.js +38 -2
- package/views/dist/model/column-schema.d.ts +3 -2
- package/views/dist/model/column-state.d.ts +11 -1
- package/views/dist/model/column-state.js +8 -2
- package/views/dist/styles.css +2362 -7
- package/views/dist/styles.unlayered.css +2362 -7
- package/views/docs/contract.md +5 -97
- package/views/docs/controls/button.md +93 -0
- package/views/docs/controls/checkbox.md +38 -0
- package/views/docs/controls/field.md +26 -0
- package/views/docs/controls/glass-button.md +37 -0
- package/views/docs/controls/inline-input.md +27 -0
- package/views/docs/controls/input.md +48 -0
- package/views/docs/controls/kbd.md +17 -0
- package/views/docs/controls/list.md +40 -0
- package/views/docs/controls/menu-list.md +52 -0
- package/views/docs/controls/number-field.md +17 -0
- package/views/docs/controls/option.md +61 -0
- package/views/docs/controls/phone-header.md +20 -0
- package/views/docs/controls/popover.md +26 -0
- package/views/docs/controls/scrollbar.md +16 -0
- package/views/docs/controls/sheet.md +41 -0
- package/views/docs/controls/spinner.md +19 -0
- package/views/docs/controls/status.md +107 -0
- package/views/docs/controls/switch.md +40 -0
- package/views/docs/controls/tag.md +21 -0
- package/views/docs/controls/toggle.md +19 -0
- package/views/docs/controls/tooltip.md +24 -0
- package/views/docs/getting-started.md +1 -1
- package/views/docs/reference/controls.md +213 -2
- package/views/docs/reference/looks.md +70 -3
- package/views/docs/reference/views.md +7 -2
package/views/dist/styles.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! viewkitjs 0.
|
|
1
|
+
/*! viewkitjs 0.24.0 · viewkitjs/views/styles.css: ViewKit's look, its defaults the Outright look */
|
|
2
2
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
3
3
|
@layer theme, base, components, utilities;
|
|
4
4
|
@layer base {
|
|
@@ -852,6 +852,1672 @@
|
|
|
852
852
|
.o-button[data-button-own]:is([data-button-turn="quarter"], [data-button-turn="back"]) > [data-slot="vk-button-icon"]:not(:has(~ [data-slot="vk-button-icon"])) > svg { transition: none; }
|
|
853
853
|
}
|
|
854
854
|
|
|
855
|
+
/* ── At rest: a 16px box, a soft-cornered edge, see-through; the label 10px to its right presses it. Its ground and edge are
|
|
856
|
+
variables, which every state below sets, so its cut draws them under Smooth: --check-ground, --check-edge ── */
|
|
857
|
+
.o-check { position: relative; display: inline-flex; align-items: flex-start; gap: calc(var(--vk-spacing) * 2.5); cursor: pointer; -webkit-tap-highlight-color: transparent; }
|
|
858
|
+
.o-check-box {
|
|
859
|
+
--check-ground: var(--vk-input); --check-edge: var(--vk-border-input); --check-rr: min(var(--vk-radius-sm), var(--vk-spacing) * 2);
|
|
860
|
+
flex: none; box-sizing: border-box; display: grid; place-items: center;
|
|
861
|
+
width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); margin-top: calc(var(--vk-spacing) * 0.5);
|
|
862
|
+
border: var(--vk-border-width) solid var(--check-edge); border-radius: var(--vk-radius-sm);
|
|
863
|
+
background-color: var(--check-ground); color: var(--vk-fg-inverse); outline: none;
|
|
864
|
+
transition: background-color var(--vk-duration-fast) var(--vk-ease-out), border-color var(--vk-duration-fast) var(--vk-ease-out);
|
|
865
|
+
}
|
|
866
|
+
.o-check-mark { display: grid; place-items: center; }
|
|
867
|
+
.o-check-mark svg { width: calc(var(--vk-spacing) * 3); height: calc(var(--vk-spacing) * 3); fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
|
|
868
|
+
/* The tick draws itself in when the box is ticked. */
|
|
869
|
+
/* Its ends are flat while it is hidden: WebKit draws a round end of a dash of no length as a dot, which showed in an unticked box
|
|
870
|
+
on an iPhone; ticked, they are round again. */
|
|
871
|
+
.o-check-tick { stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: butt; transition: stroke-dashoffset var(--vk-duration-base) var(--vk-ease-out); }
|
|
872
|
+
.o-check-dash { display: none; }
|
|
873
|
+
|
|
874
|
+
/* ── Under the pointer, on the box or its label: a louder edge; a ticked box a deeper brand ───────── */
|
|
875
|
+
/* A hover only on a screen with a pointer; a press and the forced state stay out. */
|
|
876
|
+
.o-check-box[data-force="hover"]:not([data-disabled]) { --check-edge: var(--vk-border-input-hovered); }
|
|
877
|
+
@media (hover: hover) { .o-check:hover > .o-check-box:not([data-disabled]) { --check-edge: var(--vk-border-input-hovered); } }
|
|
878
|
+
|
|
879
|
+
/* ── On: the brand, with the tick ──────────────────────────────────────────────────────────────────── */
|
|
880
|
+
.o-check-box[data-checked] { --check-edge: var(--vk-brand); --check-ground: var(--vk-brand); color: var(--vk-fg-on-brand); }
|
|
881
|
+
.o-check-box[data-force="hover"][data-checked]:not([data-disabled]) { --check-edge: var(--vk-brand-hovered); --check-ground: var(--vk-brand-hovered); }
|
|
882
|
+
@media (hover: hover) { .o-check:hover > .o-check-box[data-checked]:not([data-disabled]) { --check-edge: var(--vk-brand-hovered); --check-ground: var(--vk-brand-hovered); } }
|
|
883
|
+
.o-check-box[data-checked] .o-check-tick { stroke-dashoffset: 0; stroke-linecap: round; }
|
|
884
|
+
|
|
885
|
+
/* ── Partly: a box standing for several when only some are picked keeps its edge, a dash in place of
|
|
886
|
+
the tick; some and all read apart by the fill, not a colour ─────────────────────────────────────── */
|
|
887
|
+
.o-check-box[data-indeterminate] { color: var(--vk-fg-subtle); }
|
|
888
|
+
.o-check-box[data-indeterminate] .o-check-tick { display: none; }
|
|
889
|
+
.o-check-box[data-indeterminate] .o-check-dash { display: block; }
|
|
890
|
+
|
|
891
|
+
/* ── In error (aria-invalid, its Field's error, or a group in error around it): a red edge; ticked, the
|
|
892
|
+
danger colour fills it. The pointer never takes it away; focus rings it in red; disabled wins. ─── */
|
|
893
|
+
.o-check-box:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]),
|
|
894
|
+
.o-check-box[data-force="hover"]:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]) { --check-edge: var(--vk-border-danger); }
|
|
895
|
+
@media (hover: hover) { .o-check:hover > .o-check-box:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]) { --check-edge: var(--vk-border-danger); } }
|
|
896
|
+
.o-check-box[data-checked]:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]) { --check-edge: var(--vk-danger-bold); --check-ground: var(--vk-danger-bold); color: var(--vk-fg-inverse); }
|
|
897
|
+
.o-check-box[data-force="hover"][data-checked]:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]) { --check-edge: var(--vk-danger-bold-hovered); --check-ground: var(--vk-danger-bold-hovered); }
|
|
898
|
+
@media (hover: hover) { .o-check:hover > .o-check-box[data-checked]:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]) { --check-edge: var(--vk-danger-bold-hovered); --check-ground: var(--vk-danger-bold-hovered); } }
|
|
899
|
+
.o-check-box:is(:focus-visible, [data-force="focus"]):is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *) { outline-color: var(--vk-border-danger); }
|
|
900
|
+
|
|
901
|
+
/* ── Focus: the outline 2px outside the box ────────────────────────────────────────────────────────── */
|
|
902
|
+
.o-check-box:is(:focus-visible, [data-force="focus"]) { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: var(--vk-focus-offset); }
|
|
903
|
+
|
|
904
|
+
/* ── Disabled: a grey box, a softer edge, the tick and the label greyed ─────────────────────────────── */
|
|
905
|
+
.o-check-box[data-disabled] { --check-edge: var(--vk-border-subtle); --check-ground: var(--vk-neutral); color: var(--vk-fg-disabled); }
|
|
906
|
+
.o-check:has(> .o-check-box[data-disabled]) { cursor: not-allowed; }
|
|
907
|
+
.o-check:has(> .o-check-box[data-disabled]) .o-choice-label { color: var(--vk-fg-disabled); }
|
|
908
|
+
|
|
909
|
+
/* ── The box alone in a list's row (CheckboxMark): the row is pressed, so the box reads the row, ticked
|
|
910
|
+
when it is chosen and greyed when it is off ─────────────────────────────────────────────────────── */
|
|
911
|
+
.o-check-box.o-check-in-row { margin-top: 0; }
|
|
912
|
+
:is([data-selected], [aria-selected="true"], [data-checked], [aria-checked="true"]) > .o-check-in-row { --check-edge: var(--vk-brand); --check-ground: var(--vk-brand); color: var(--vk-fg-on-brand); }
|
|
913
|
+
:is([data-selected], [aria-selected="true"], [data-checked], [aria-checked="true"]) > .o-check-in-row .o-check-tick { stroke-dashoffset: 0; stroke-linecap: round; }
|
|
914
|
+
[data-disabled] > .o-check-in-row { --check-edge: var(--vk-border-subtle); --check-ground: var(--vk-neutral); color: var(--vk-fg-disabled); }
|
|
915
|
+
|
|
916
|
+
/* ── Corner smoothing: The app's, with nothing set, follows the token corner-smoothing (Round is the
|
|
917
|
+
token at 0), Smooth and Round set the box apart (data-checkbox-smoothing, looks.ts). Under Smooth or The app's the box is drawn
|
|
918
|
+
with the smooth outline (smooth.css), eased on its 16px side, in every browser that knows shape(); one that doesn't
|
|
919
|
+
keeps the corners above, and so does Round, which paints the box as before. The box is never clipped: its focus ring and its
|
|
920
|
+
pressing area (::after, the app's press styles) stand outside it. Its ground and edge are handed to its cut (.o-check-cut, its first
|
|
921
|
+
child), over its border box: the ground (::before) clipped by the outline, the edge (::after) a ring along it, each moving as the
|
|
922
|
+
box's colours do. The list's and the card's corners are the grouped choices' own. ──────────────────────────────── */
|
|
923
|
+
.o-check-cut { display: none; --smooth-amount: var(--vk-corner-smoothing); }
|
|
924
|
+
/* Its layers' colours move as the box's do, a rule light enough that reduced motion (at the file's end) stops it. */
|
|
925
|
+
.o-check-cut::before, .o-check-cut::after { transition: background-color var(--vk-duration-fast) var(--vk-ease-out); }
|
|
926
|
+
[data-checkbox-smoothing="smooth"] .o-check-box > .o-check-cut { --smooth-amount: initial; }
|
|
927
|
+
@supports (clip-path: shape(evenodd from 0 0, curve by 1px 1px with 1px 0 / 1px 0, close, move to 0 0, hline to 1px, close)) and (width: calc(tan(atan2(1px, 1px)) * 1px)) {
|
|
928
|
+
/* Its own corner is its ground's, so its focus ring stands on the fitted corner: worked from the token, or the full
|
|
929
|
+
0.7 under its own Smooth, never from the cut's amount, which stays on the cut. */
|
|
930
|
+
.o-check-box:not([data-checkbox-smoothing="round"] *):has(> .o-check-cut) {
|
|
931
|
+
--smooth-side: calc(var(--vk-spacing) * 4);
|
|
932
|
+
position: relative; isolation: isolate; border-color: transparent; background-color: transparent;
|
|
933
|
+
border-radius: min(var(--check-rr), var(--vk-spacing) * 4 / (2 + 2 * var(--vk-corner-smoothing)));
|
|
934
|
+
}
|
|
935
|
+
[data-checkbox-smoothing="smooth"] .o-check-box:not([data-checkbox-smoothing="round"] *):has(> .o-check-cut) {
|
|
936
|
+
border-radius: min(var(--check-rr), var(--vk-spacing) * 4 / 3.4);
|
|
937
|
+
}
|
|
938
|
+
.o-check-box:not([data-checkbox-smoothing="round"] *) > .o-check-cut {
|
|
939
|
+
--check-fit: min(var(--check-rr), var(--vk-spacing) * 4 / (2 + 2 * var(--smooth-amount, 0.7))); --smooth-t: var(--check-fit);
|
|
940
|
+
display: block; position: absolute; inset: calc(var(--vk-border-width) * -1); z-index: -1; pointer-events: none;
|
|
941
|
+
}
|
|
942
|
+
.o-check-box:not([data-checkbox-smoothing="round"] *) > .o-check-cut::before {
|
|
943
|
+
content: ""; position: absolute; inset: 0; background-color: var(--check-ground); clip-path: shape(var(--smooth-outline));
|
|
944
|
+
}
|
|
945
|
+
.o-check-box:not([data-checkbox-smoothing="round"] *) > .o-check-cut::after {
|
|
946
|
+
--smooth-t: max(0px, var(--check-fit) - var(--vk-border-width)); --smooth-in: var(--vk-border-width);
|
|
947
|
+
content: ""; position: absolute; inset: 0; background-color: var(--check-edge); clip-path: shape(var(--smooth-ring));
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
/* ── A list: rows in a bordered box, the first (pick all) on the sunken ground; every row takes its
|
|
952
|
+
ground's hover, a picked row its selected fill ──────────────────────────────────────────────────── */
|
|
953
|
+
.o-check-list { display: grid; border: var(--vk-border-width) solid var(--vk-border); border-radius: var(--vk-radius-lg); overflow: hidden; }
|
|
954
|
+
.o-check.o-check-row { display: flex; width: 100%; box-sizing: border-box; padding: calc(var(--vk-spacing) * 3) calc(var(--vk-spacing) * 3.5); border-top: var(--vk-border-width) solid var(--vk-border-subtle); transition: background-color var(--vk-duration-fast) var(--vk-ease-out); }
|
|
955
|
+
.o-check-row:first-child { border-top: 0; background-color: var(--vk-sunken); }
|
|
956
|
+
@media (hover: hover) { .o-check-row:hover { background-color: var(--vk-hovered); } }
|
|
957
|
+
@media (hover: hover) { .o-check-row:first-child:hover { background-color: var(--vk-sunken-hovered); } }
|
|
958
|
+
.o-check-row:has(> .o-check-box[data-checked]) { background-color: var(--vk-selected); }
|
|
959
|
+
|
|
960
|
+
/* ── The list's card smooth: following the token corner-smoothing, drawn with the smooth outline
|
|
961
|
+
(ViewKit's smooth.css) in every browser that knows shape(); one that doesn't keeps the corners above. Its round part is fitted to one
|
|
962
|
+
row, as a control's is. Nothing stands outside it (its rows were hidden past its edge), so it is clipped itself, its rows with it,
|
|
963
|
+
hiding nothing more; its edge is a ring along the curve over its rows (::after), as the Kbd's is. ── */
|
|
964
|
+
@supports (clip-path: shape(evenodd from 0 0, curve by 1px 1px with 1px 0 / 1px 0, close, move to 0 0, hline to 1px, close)) and (width: calc(tan(atan2(1px, 1px)) * 1px)) {
|
|
965
|
+
.o-check-list {
|
|
966
|
+
--smooth-amount: var(--vk-corner-smoothing); --list-card-side: calc(var(--vk-spacing) * 6 + var(--vk-font-size-sm) * var(--vk-line-height-sm));
|
|
967
|
+
--list-card-fit: min(var(--vk-radius-lg), var(--list-card-side) / (2 + 2 * var(--smooth-amount, 0.7)));
|
|
968
|
+
--smooth-t: var(--list-card-fit); --smooth-side: var(--list-card-side);
|
|
969
|
+
position: relative; overflow: visible; border-color: transparent; border-radius: var(--list-card-fit); clip-path: shape(var(--smooth-outline));
|
|
970
|
+
}
|
|
971
|
+
.o-check-list::after {
|
|
972
|
+
--smooth-t: max(0px, var(--list-card-fit) - var(--vk-border-width)); --smooth-in: var(--vk-border-width);
|
|
973
|
+
content: ""; position: absolute; inset: calc(var(--vk-border-width) * -1); z-index: 1; pointer-events: none;
|
|
974
|
+
background-color: var(--vk-border); clip-path: shape(var(--smooth-ring));
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
@media (prefers-reduced-motion: reduce) { .o-check-box, .o-check-tick, .o-check-row, .o-check-cut::before, .o-check-cut::after { transition: none; } }
|
|
979
|
+
|
|
980
|
+
/* ── A field: its label, then its control, then its note or its error ──────────────────────────────── */
|
|
981
|
+
/* Its one column never wider than the field: a control holding a long value (a Select's chosen country) ends in its "…",
|
|
982
|
+
never widening what holds it, as the field beside its label already does. */
|
|
983
|
+
.o-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(var(--vk-spacing) * 1.5); min-width: 0; }
|
|
984
|
+
.o-field-label { font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); font-weight: var(--vk-font-weight-medium); color: var(--vk-fg); }
|
|
985
|
+
/* A quiet label, as a body's parts wear it over their boxes: 12px, regular, subtle; 14px in the phone's form. */
|
|
986
|
+
.o-field[data-field-label="quiet"] > .o-field-label { font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs)); font-weight: var(--vk-font-weight-normal); color: var(--vk-fg-subtle); }
|
|
987
|
+
.o-field[data-field-label="quiet"][data-field-form="phone"] > .o-field-label { font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); }
|
|
988
|
+
/* A required field's asterisk, after its label. */
|
|
989
|
+
.o-field-req { margin-left: calc(var(--vk-spacing) * 0.5); color: var(--vk-danger); }
|
|
990
|
+
/* The note says what the field is for or why it is locked; an error takes its place and says the fix. */
|
|
991
|
+
.o-field-note, .o-field-error { margin: 0; font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs)); color: var(--vk-fg-subtle); }
|
|
992
|
+
.o-field-error { color: var(--vk-danger); }
|
|
993
|
+
|
|
994
|
+
/* ── A group: its legend, a note under it, the choices or fields, then its error ───────────────────── */
|
|
995
|
+
.o-fieldset { display: grid; gap: calc(var(--vk-spacing) * 3); min-width: 0; margin: 0; padding: 0; border: 0; }
|
|
996
|
+
/* The legend is drawn as a field's label (.o-field-label); with a note under it, the note sits as close as a
|
|
997
|
+
field's does. */
|
|
998
|
+
.o-fieldset-legend:has(+ .o-field-note) { margin-bottom: calc(var(--vk-spacing) * -1.5); }
|
|
999
|
+
.o-fieldset-body { display: grid; min-width: 0; }
|
|
1000
|
+
.o-fieldset[disabled] .o-fieldset-legend { color: var(--vk-fg-disabled); }
|
|
1001
|
+
/* A part of a form: the legend a heading over its fields, the fields 20px apart. */
|
|
1002
|
+
.o-fieldset-section .o-fieldset-legend { font-size: var(--vk-font-size-base); line-height: calc(var(--vk-font-size-base) * var(--vk-line-height-base)); }
|
|
1003
|
+
.o-fieldset-section > .o-fieldset-body { gap: calc(var(--vk-spacing) * 5); }
|
|
1004
|
+
|
|
1005
|
+
/* ── Several errors: a list, each on its own line ──────────────────────────────────────────────────── */
|
|
1006
|
+
.o-field-errors { display: grid; gap: calc(var(--vk-spacing) * 0.5); margin: 0; padding-left: calc(var(--vk-spacing) * 4); list-style: disc; }
|
|
1007
|
+
|
|
1008
|
+
/* ── A line between fields, its word in the middle ─────────────────────────────────────────────────── */
|
|
1009
|
+
.o-field-sep { display: flex; align-items: center; gap: calc(var(--vk-spacing) * 3); min-height: calc(var(--vk-spacing) * 5); }
|
|
1010
|
+
.o-field-sep-line { flex: 1; height: var(--vk-border-width); background-color: var(--vk-border-subtle); }
|
|
1011
|
+
.o-field-sep-words { font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs)); color: var(--vk-fg-subtle); }
|
|
1012
|
+
|
|
1013
|
+
/* ── A field beside its label: the label and its note on the left, the field and its error on the right,
|
|
1014
|
+
the label's words on the field's line. Responsive does so on a computer, and stands above the
|
|
1015
|
+
field on the phone (the phone switch). ───────────────────────────────────────────────────────────── */
|
|
1016
|
+
.o-field:is([data-orientation="horizontal"], [data-orientation="responsive"]) { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: baseline; column-gap: calc(var(--vk-spacing) * 4); }
|
|
1017
|
+
.o-field:is([data-orientation="horizontal"], [data-orientation="responsive"]) > * { grid-column: 2; }
|
|
1018
|
+
.o-field:is([data-orientation="horizontal"], [data-orientation="responsive"]) > :is(.o-field-label, .o-field-note) { grid-column: 1; }
|
|
1019
|
+
@media (width < 640px) {
|
|
1020
|
+
.o-field[data-orientation="responsive"]:where(:not([data-computer-host], [data-computer-host] *)) { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
|
|
1021
|
+
.o-field[data-orientation="responsive"] > :is(*, .o-field-label, .o-field-note):where(:not([data-computer-host], [data-computer-host] *)) { grid-column: 1; }
|
|
1022
|
+
}
|
|
1023
|
+
@container o-phone (width < 640px) {
|
|
1024
|
+
.o-field[data-orientation="responsive"] { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
|
|
1025
|
+
.o-field[data-orientation="responsive"] > :is(*, .o-field-label, .o-field-note) { grid-column: 1; }
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
/* ── Field rows: on a phone, fields as rows of a card ──────────────────────────────────────────
|
|
1029
|
+
Each option, on a frame or on the card itself (the look its place hands it, whole, which wins), sets the card's and
|
|
1030
|
+
its rows' variables; nothing set is Card: one card on the overlay's card ground, its edge, rows 52, the label 104, the line
|
|
1031
|
+
between rows from the words. What stands inside a row and where is its place's: a place may set a row's inset and gap. A row
|
|
1032
|
+
typed into shows the caret alone. */
|
|
1033
|
+
[data-field-rows-edge="on"] { --field-rows-edge: var(--vk-border-width) solid var(--vk-border-subtle); }
|
|
1034
|
+
[data-field-rows-edge="off"] { --field-rows-edge: 0 none; }
|
|
1035
|
+
[data-field-rows-cards="one"] {
|
|
1036
|
+
--field-rows-card-display: block; --field-rows-card-gap: 0px; --field-rows-card-overflow: hidden; --field-rows-card-edge: var(--field-rows-edge);
|
|
1037
|
+
--field-rows-card-corners: var(--vk-radius-xl); --field-rows-card-ground: var(--vk-overlay-card);
|
|
1038
|
+
--field-rows-row-edge: 0 none; --field-rows-row-corners: 0px; --field-rows-row-ground: transparent;
|
|
1039
|
+
}
|
|
1040
|
+
[data-field-rows-cards="each"] {
|
|
1041
|
+
--field-rows-card-display: grid; --field-rows-card-gap: calc(var(--vk-spacing) * 2.5); --field-rows-card-overflow: visible; --field-rows-card-edge: 0 none;
|
|
1042
|
+
--field-rows-card-corners: 0px; --field-rows-card-ground: transparent;
|
|
1043
|
+
--field-rows-row-edge: var(--field-rows-edge); --field-rows-row-corners: var(--vk-radius-xl); --field-rows-row-ground: var(--vk-overlay-card);
|
|
1044
|
+
}
|
|
1045
|
+
[data-field-rows-height="48"] { --field-rows-row: calc(var(--vk-spacing) * 12); }
|
|
1046
|
+
[data-field-rows-height="52"] { --field-rows-row: calc(var(--vk-spacing) * 13); }
|
|
1047
|
+
[data-field-rows-height="56"] { --field-rows-row: calc(var(--vk-spacing) * 14); }
|
|
1048
|
+
[data-field-rows-label="104"] { --field-rows-label: block; }
|
|
1049
|
+
[data-field-rows-label="none"] { --field-rows-label: none; }
|
|
1050
|
+
[data-field-rows-lines="words"] { --field-rows-line-image: linear-gradient(var(--vk-border-overlay-card), var(--vk-border-overlay-card)); --field-rows-line-shadow: none; }
|
|
1051
|
+
[data-field-rows-lines="across"] { --field-rows-line-image: none; --field-rows-line-shadow: inset 0 var(--vk-border-width) 0 var(--vk-border-overlay-card); }
|
|
1052
|
+
[data-field-rows-lines="none"] { --field-rows-line-image: none; --field-rows-line-shadow: none; }
|
|
1053
|
+
|
|
1054
|
+
.o-field-rows {
|
|
1055
|
+
display: var(--field-rows-card-display, block); grid-template-columns: minmax(0, 1fr); gap: var(--field-rows-card-gap, 0px); min-width: 0;
|
|
1056
|
+
font-size: var(--vk-font-size-base); line-height: calc(var(--vk-font-size-base) * var(--vk-line-height-base)); overflow: var(--field-rows-card-overflow, hidden); border: var(--field-rows-card-edge, var(--vk-border-width) solid var(--vk-border-subtle));
|
|
1057
|
+
border-radius: var(--field-rows-card-corners, var(--vk-radius-xl)); background-color: var(--field-rows-card-ground, var(--vk-overlay-card));
|
|
1058
|
+
}
|
|
1059
|
+
.o-field-row {
|
|
1060
|
+
display: flex; align-items: center; gap: calc(var(--vk-spacing) * 3); box-sizing: border-box; width: 100%; min-height: var(--field-rows-row, calc(var(--vk-spacing) * 13));
|
|
1061
|
+
margin: 0; padding: 0 calc(var(--vk-spacing) * 4); border: var(--field-rows-row-edge, 0 none); border-radius: var(--field-rows-row-corners, 0px);
|
|
1062
|
+
background-color: var(--field-rows-row-ground, transparent); color: var(--vk-fg); font: inherit; text-align: left;
|
|
1063
|
+
}
|
|
1064
|
+
button.o-field-row { cursor: pointer; }
|
|
1065
|
+
.o-field-row + .o-field-row {
|
|
1066
|
+
background-image: var(--field-rows-line-image, linear-gradient(var(--vk-border-overlay-card), var(--vk-border-overlay-card))); background-size: calc(100% - var(--vk-spacing) * 4) var(--vk-border-width);
|
|
1067
|
+
background-position: calc(var(--vk-spacing) * 4) 0; background-repeat: no-repeat; box-shadow: var(--field-rows-line-shadow, none);
|
|
1068
|
+
}
|
|
1069
|
+
.o-field-row-label { display: var(--field-rows-label, block); flex: none; width: calc(var(--vk-spacing) * 26); color: var(--vk-fg-subtle); }
|
|
1070
|
+
|
|
1071
|
+
/* ── Glass, written once: what a control floating over a page is made of. What wears it gives it its shape, and stands
|
|
1072
|
+
positioned, for its rim: the Glass button, and the glass pill. ── */
|
|
1073
|
+
.o-glass {
|
|
1074
|
+
background-color: var(--vk-glass); box-shadow: var(--vk-shadow-glass);
|
|
1075
|
+
-webkit-backdrop-filter: blur(var(--vk-blur-md)); backdrop-filter: blur(var(--vk-blur-md));
|
|
1076
|
+
}
|
|
1077
|
+
/* Its rim: a ring of its own, since a border can't change round a curve. Brightest top left and bottom right, fading at the other
|
|
1078
|
+
two corners, in light and dark, so it reads as light catching an edge and never as a border. */
|
|
1079
|
+
.o-glass::after {
|
|
1080
|
+
content: ""; position: absolute; inset: 0; box-sizing: border-box; border-radius: inherit; padding: var(--vk-border-width); pointer-events: none;
|
|
1081
|
+
background: conic-gradient(var(--vk-glass-rim-soft) 0deg, var(--vk-glass-rim-faint) 40deg, var(--vk-glass-rim-soft) 85deg, var(--vk-glass-rim) 140deg, var(--vk-glass-rim-soft) 180deg, var(--vk-glass-rim-faint) 220deg, var(--vk-glass-rim-soft) 265deg, var(--vk-glass-rim) 315deg, var(--vk-glass-rim-soft) 360deg);
|
|
1082
|
+
-webkit-mask: linear-gradient(black 0 0) content-box, linear-gradient(black 0 0); -webkit-mask-composite: xor;
|
|
1083
|
+
mask: linear-gradient(black 0 0) content-box exclude, linear-gradient(black 0 0);
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
|
|
1087
|
+
.o-glass-button {
|
|
1088
|
+
position: relative; flex: none; display: grid; place-items: center; box-sizing: border-box;
|
|
1089
|
+
width: calc(var(--vk-spacing) * 11); height: calc(var(--vk-spacing) * 11); margin: 0; padding: 0;
|
|
1090
|
+
border: 0; border-radius: var(--vk-radius-full); color: var(--vk-fg);
|
|
1091
|
+
cursor: pointer; outline: none; text-decoration: none; -webkit-tap-highlight-color: transparent;
|
|
1092
|
+
transition: scale var(--vk-duration-fast) var(--vk-ease-out);
|
|
1093
|
+
}
|
|
1094
|
+
/* Its icon, 28 with a line 2 thick, so an X stands 16 wide. */
|
|
1095
|
+
.o-glass-button svg { width: calc(var(--vk-spacing) * 7); height: calc(var(--vk-spacing) * 7); stroke-width: var(--vk-glass-icon-stroke); }
|
|
1096
|
+
|
|
1097
|
+
/* Primary: what confirms, Save or Apply. The same glass tinted with the brand, mixed as the soft edge mixes its ground, so it
|
|
1098
|
+
follows the brand picked; its icon in the inverse text. Disabled, it is plain glass again. */
|
|
1099
|
+
.o-glass.o-glass-button-primary { background-color: color-mix(in oklab, var(--vk-brand) 90%, transparent); color: var(--vk-fg-on-brand); }
|
|
1100
|
+
.o-glass.o-glass-button-primary:is(:disabled, [data-disabled]) { background-color: var(--vk-glass); color: var(--vk-fg-disabled); }
|
|
1101
|
+
|
|
1102
|
+
/* A dot in an icon is a small ring: filled, so the thinner line leaves no hole in it. */
|
|
1103
|
+
.o-glass-button path[d*="a1 1 0 1 0 2 0"] { fill: currentColor; }
|
|
1104
|
+
|
|
1105
|
+
/* Pressed, it settles. */
|
|
1106
|
+
.o-glass-button:is(:active, [data-force="press"]):not(:disabled, [data-disabled]) { scale: var(--vk-press-scale); }
|
|
1107
|
+
/* Focus: the outline 2px outside it. */
|
|
1108
|
+
.o-glass-button:is(:focus-visible, [data-force="focus"]) { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: var(--vk-focus-offset); }
|
|
1109
|
+
/* Disabled: its icon greyed, no shadow. */
|
|
1110
|
+
.o-glass-button:is(:disabled, [data-disabled]) { box-shadow: none; color: var(--vk-fg-disabled); cursor: not-allowed; }
|
|
1111
|
+
|
|
1112
|
+
@media (prefers-reduced-motion: reduce) { .o-glass-button { transition: none; } .o-glass-button:is(:active, [data-force="press"]) { scale: none; } }
|
|
1113
|
+
|
|
1114
|
+
/* ── What it can hold. A word, or a count: a
|
|
1115
|
+
capsule as wide as what it holds, 16 in from each end, its word text-base at medium weight; an icon before the word is 22 on
|
|
1116
|
+
a line 2 thick, 6 from it, and stands 14 in. An icon alone is as it was, 28 in its 44 round. ──────────────────────────── */
|
|
1117
|
+
.o-glass-button.o-glass-button-worded {
|
|
1118
|
+
display: inline-flex; align-items: center; justify-content: center; gap: calc(var(--vk-spacing) * 1.5);
|
|
1119
|
+
width: auto; min-width: calc(var(--vk-spacing) * 11); padding-inline: calc(var(--vk-spacing) * 4);
|
|
1120
|
+
font: inherit; font-size: var(--vk-font-size-base); line-height: 1; font-weight: var(--vk-font-weight-medium); white-space: nowrap;
|
|
1121
|
+
}
|
|
1122
|
+
.o-glass-button.o-glass-button-worded:has(svg) { padding-inline-start: calc(var(--vk-spacing) * 3.5); }
|
|
1123
|
+
.o-glass-button.o-glass-button-worded svg { flex: none; width: calc(var(--vk-spacing) * 5.5); height: calc(var(--vk-spacing) * 5.5); stroke-width: 2; }
|
|
1124
|
+
/* Its count: the filters in use, the rows picked, a step smaller and semibold, its figures of one width. */
|
|
1125
|
+
.o-glass-button-count { font-size: var(--vk-font-size-sm); font-weight: var(--vk-font-weight-semibold); font-variant-numeric: tabular-nums; }
|
|
1126
|
+
/* Its dot, something new: 8 in the brand, in its corner, ringed in the page's ground so it reads over the glass. */
|
|
1127
|
+
.o-glass-button-dot {
|
|
1128
|
+
position: absolute; top: calc(var(--vk-spacing) * 2.25); right: calc(var(--vk-spacing) * 2.25); width: calc(var(--vk-spacing) * 2); height: calc(var(--vk-spacing) * 2);
|
|
1129
|
+
border-radius: var(--vk-radius-full); background-color: var(--vk-brand); box-shadow: 0 0 0 calc(var(--vk-border-width) * 2) var(--vk-ground);
|
|
1130
|
+
}
|
|
1131
|
+
/* Danger: what takes something away, its word and icon in the danger text, on the same glass. */
|
|
1132
|
+
.o-glass-button.o-glass-button-danger:not(:disabled, [data-disabled]) { color: var(--vk-danger); }
|
|
1133
|
+
/* On: one that stays pressed. The glass tinted with the brand, lighter than a primary's, its word and icon the brand's text. */
|
|
1134
|
+
.o-glass.o-glass-button-on:not(:disabled, [data-disabled]) { background-color: color-mix(in oklab, var(--vk-brand) 18%, var(--vk-glass)); color: var(--vk-fg-accent); }
|
|
1135
|
+
/* sm: 36, for an island on a computer. Its icon 22 alone and 18 before a word, its word text-sm, 14 in from each end. */
|
|
1136
|
+
.o-glass-button.o-glass-button-sm { width: calc(var(--vk-spacing) * 9); height: calc(var(--vk-spacing) * 9); }
|
|
1137
|
+
.o-glass-button.o-glass-button-sm svg { width: calc(var(--vk-spacing) * 5.5); height: calc(var(--vk-spacing) * 5.5); }
|
|
1138
|
+
.o-glass-button.o-glass-button-worded.o-glass-button-sm { width: auto; min-width: calc(var(--vk-spacing) * 9); padding-inline: calc(var(--vk-spacing) * 3.5); font-size: var(--vk-font-size-sm); }
|
|
1139
|
+
.o-glass-button.o-glass-button-worded.o-glass-button-sm:has(svg) { padding-inline-start: calc(var(--vk-spacing) * 3); }
|
|
1140
|
+
.o-glass-button.o-glass-button-worded.o-glass-button-sm svg { width: calc(var(--vk-spacing) * 4.5); height: calc(var(--vk-spacing) * 4.5); }
|
|
1141
|
+
.o-glass-button-sm > .o-glass-button-dot { top: calc(var(--vk-spacing) * 1.5); right: calc(var(--vk-spacing) * 1.5); }
|
|
1142
|
+
.o-glass-button-sm > .o-glass-button-count { font-size: var(--vk-font-size-xs); }
|
|
1143
|
+
|
|
1144
|
+
/* ── The Glass button group: Glass buttons standing together, 8
|
|
1145
|
+
apart. Its own layout weighs nothing (:where), so a place that is the group (the phone header's right place) lays it out itself.
|
|
1146
|
+
How two stand is said by the group (data-pair), or else by the Glass button's own option, Two buttons, on the frame or the app
|
|
1147
|
+
around it (data-glass-button-pair, looks.ts; together unless it says separate), where the phone's surface is Glass (the phone header's Surface, which a
|
|
1148
|
+
sheet's head reads too): under Flat nothing shares glass. ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
1149
|
+
:where(.o-glass-group) { position: relative; display: inline-flex; align-items: center; gap: calc(var(--vk-spacing) * 2); }
|
|
1150
|
+
/* Two side by side: their shadows add up between them, so each is lighter, and the two read as strong as one. */
|
|
1151
|
+
:is(.o-glass-group:not([data-phone-header-surface="flat"] *), .o-glass-group[data-pair]):has(.o-glass-button ~ .o-glass-button) > .o-glass-button { box-shadow: var(--vk-shadow-glass-pair); }
|
|
1152
|
+
/* The glass pill: one piece of glass two buttons share. The group stands as wide as they do, and they touch, wearing no glass of
|
|
1153
|
+
their own, so it is never glass on glass. A primary stays in it, a solid brand disc in its slot, the pill's glass round it,
|
|
1154
|
+
darker pressed and under the pointer, as the Button's primary; disabled, the pill's plain glass and a greyed icon. */
|
|
1155
|
+
.o-glass.o-glass-pill { display: none; position: absolute; inset: 0; border-radius: var(--vk-radius-full); box-shadow: var(--vk-shadow-glass-pill); }
|
|
1156
|
+
:is(.o-glass-group:not([data-phone-header-surface="flat"] .o-glass-group):not([data-glass-button-pair="separate"] .o-glass-group, [data-pair="separate"]), .o-glass-group[data-pair="together"]):has(.o-glass-button ~ .o-glass-button) {
|
|
1157
|
+
gap: 0;
|
|
1158
|
+
> .o-glass.o-glass-pill { display: block; }
|
|
1159
|
+
> .o-glass-button { background-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
|
|
1160
|
+
> .o-glass-button::after { display: none; }
|
|
1161
|
+
> .o-glass-button.o-glass-button-primary:not(:disabled, [data-disabled]) { background-color: var(--vk-brand); background-clip: content-box; padding: calc(var(--vk-spacing) * 1); }
|
|
1162
|
+
> .o-glass-button.o-glass-button-primary:is(:active, [data-force="press"]):not(:disabled, [data-disabled]) { background-color: var(--vk-brand-hovered); }
|
|
1163
|
+
@media (hover: hover) { > .o-glass-button.o-glass-button-primary:hover:not(:disabled, [data-disabled]) { background-color: var(--vk-brand-hovered); } }
|
|
1164
|
+
/* A primary that holds a word is a brand capsule in its slot, 4 from the pill's edge, its word 12 in. One that is on
|
|
1165
|
+
keeps the brand's text and takes no glass of its own: the pill is the one piece of glass. */
|
|
1166
|
+
> .o-glass-button.o-glass-button-worded.o-glass-button-primary:not(:disabled, [data-disabled]) {
|
|
1167
|
+
background-clip: border-box; height: calc(var(--vk-spacing) * 9); min-width: calc(var(--vk-spacing) * 9); margin: calc(var(--vk-spacing) * 1); padding: 0 calc(var(--vk-spacing) * 3);
|
|
1168
|
+
}
|
|
1169
|
+
> .o-glass-button.o-glass-button-sm.o-glass-button-primary:not(:disabled, [data-disabled]) { padding: calc(var(--vk-spacing) * 0.75); }
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
/* ── Its options, from the nearest frame: its edge, its corners, its ground ───────────────────────────────────────────── */
|
|
1173
|
+
[data-inline-input-edge="line"] { --inline-input-edge: var(--vk-border-width); --inline-input-ring: 0px; }
|
|
1174
|
+
[data-inline-input-edge="ring"] { --inline-input-edge: 0px; --inline-input-ring: var(--vk-focus-width); }
|
|
1175
|
+
[data-inline-input-corners="none"] { --inline-input-r: 0px; }
|
|
1176
|
+
[data-inline-input-corners="xs"] { --inline-input-r: var(--vk-radius-xs); }
|
|
1177
|
+
[data-inline-input-corners="sm"] { --inline-input-r: var(--vk-radius-sm); }
|
|
1178
|
+
[data-inline-input-corners="md"] { --inline-input-r: var(--vk-radius-md); }
|
|
1179
|
+
[data-inline-input-corners="lg"] { --inline-input-r: var(--vk-radius-lg); }
|
|
1180
|
+
[data-inline-input-corners="xl"] { --inline-input-r: var(--vk-radius-xl); }
|
|
1181
|
+
[data-inline-input-corners="full"] { --inline-input-r: var(--vk-radius-full); }
|
|
1182
|
+
[data-inline-input-ground="plain"] { --inline-input-ground: var(--vk-overlay); }
|
|
1183
|
+
[data-inline-input-ground="tint"] { --inline-input-ground: color-mix(in oklab, var(--vk-brand-300) var(--inline-input-tint, 20%), var(--vk-overlay)); }
|
|
1184
|
+
/* How strong the tint is: how much of the brand's light step (brand-300) is mixed into the overlay's ground, 10% to 100%, a
|
|
1185
|
+
tenth at a time. The brand's palest (brand-100) is about 20%, its pale
|
|
1186
|
+
(brand-200) about 60%. The frame writes it beside the ground, so it resolves there. */
|
|
1187
|
+
[data-inline-input-tint="1"] { --inline-input-tint: 10%; }
|
|
1188
|
+
[data-inline-input-tint="2"] { --inline-input-tint: 20%; }
|
|
1189
|
+
[data-inline-input-tint="3"] { --inline-input-tint: 30%; }
|
|
1190
|
+
[data-inline-input-tint="4"] { --inline-input-tint: 40%; }
|
|
1191
|
+
[data-inline-input-tint="5"] { --inline-input-tint: 50%; }
|
|
1192
|
+
[data-inline-input-tint="6"] { --inline-input-tint: 60%; }
|
|
1193
|
+
[data-inline-input-tint="7"] { --inline-input-tint: 70%; }
|
|
1194
|
+
[data-inline-input-tint="8"] { --inline-input-tint: 80%; }
|
|
1195
|
+
[data-inline-input-tint="9"] { --inline-input-tint: 90%; }
|
|
1196
|
+
[data-inline-input-tint="10"] { --inline-input-tint: 100%; }
|
|
1197
|
+
[data-inline-input-ground="none"] { --inline-input-ground: var(--vk-input); }
|
|
1198
|
+
|
|
1199
|
+
/* ── The box ──────────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
1200
|
+
.o-inline-input.o-inline-input {
|
|
1201
|
+
--inline-input-at: var(--inline-input-row, calc(var(--vk-spacing) * 9));
|
|
1202
|
+
--inline-input-e: var(--inline-input-edge, var(--vk-border-width));
|
|
1203
|
+
--inline-input-colour: var(--vk-border-brand);
|
|
1204
|
+
/* Its words from its outer edge: 12, or 8 in a row under 32 (a list's 28). */
|
|
1205
|
+
--inline-input-words: clamp(calc(var(--vk-spacing) * 2), calc(var(--inline-input-at) - var(--vk-spacing) * 5), calc(var(--vk-spacing) * 3));
|
|
1206
|
+
box-sizing: border-box; width: 100%; min-width: 0; height: var(--inline-input-at); margin: 0;
|
|
1207
|
+
padding: max(0px, calc((var(--inline-input-at) - 1lh) / 2 - var(--inline-input-e))) calc(var(--inline-input-words) - var(--inline-input-e));
|
|
1208
|
+
border: var(--inline-input-e) solid var(--inline-input-colour); border-radius: var(--inline-input-r, var(--vk-radius-md));
|
|
1209
|
+
box-shadow: inset 0 0 0 var(--inline-input-ring, 0px) var(--inline-input-colour);
|
|
1210
|
+
background-color: var(--inline-input-ground, color-mix(in oklab, var(--vk-brand-300) var(--inline-input-tint, 20%), var(--vk-overlay))); color: var(--vk-fg); caret-color: var(--vk-border-brand);
|
|
1211
|
+
font: inherit; font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); outline: none;
|
|
1212
|
+
}
|
|
1213
|
+
/* Refused: its edge red, line or ring. */
|
|
1214
|
+
.o-inline-input.o-inline-input:is([aria-invalid="true"], :has(.o-input-control[aria-invalid="true"])) { --inline-input-colour: var(--vk-border-danger); }
|
|
1215
|
+
/* Long text: at the height its place gives it, its first line where a line's stands, wrapping. */
|
|
1216
|
+
textarea.o-inline-input.o-inline-input { resize: none; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
1217
|
+
/* Long text never turns into a pill: its corners stop at 2xl, the largest step that still reads as a box. */
|
|
1218
|
+
textarea.o-inline-input.o-inline-input { border-radius: min(var(--inline-input-r, var(--vk-radius-md)), var(--vk-radius-2xl)); }
|
|
1219
|
+
|
|
1220
|
+
/* ── With sides: one row, everything centred in it ────────────────────────────────────────────────────────────────────── */
|
|
1221
|
+
.o-inline-input.o-inline-input-group { display: flex; align-items: center; gap: var(--vk-spacing); padding-block: 0; cursor: text; }
|
|
1222
|
+
/* A button at its start or its end: 4 from its outer edge. */
|
|
1223
|
+
.o-inline-input.o-inline-input-group:has(> .o-input-addon[data-side="start"] > .o-button:first-child) { padding-left: calc(var(--vk-spacing) - var(--inline-input-e)); }
|
|
1224
|
+
.o-inline-input.o-inline-input-group:has(> .o-input-addon[data-side="end"] > .o-button:last-child) { padding-right: calc(var(--vk-spacing) - var(--inline-input-e)); }
|
|
1225
|
+
/* Its buttons' focus ring hugs them, inside its edge. */
|
|
1226
|
+
.o-inline-input-group > .o-input-addon > .o-button:is(:focus-visible, [data-force="focus"]) { outline-offset: 0; }
|
|
1227
|
+
|
|
1228
|
+
/* On a phone its words are 16px, so iOS never zooms in when it is tapped: its line is kept, and its padding, worked
|
|
1229
|
+
from 1lh, still centres that line in its row. */
|
|
1230
|
+
@media (width < 640px) { .o-inline-input.o-inline-input:where(:not([data-computer-host], [data-computer-host] *)) { font-size: var(--vk-font-size-base); } }
|
|
1231
|
+
@container o-phone (width < 640px) { .o-inline-input.o-inline-input { font-size: var(--vk-font-size-base); } }
|
|
1232
|
+
|
|
1233
|
+
/* ── At rest: an edge, no fill (the surface shows through), and a 1px lift that is part of the field ── */
|
|
1234
|
+
.o-input {
|
|
1235
|
+
--input-edge: var(--vk-border-input); --input-ground: var(--vk-input); --input-r: var(--vk-radius-lg); --input-side: calc(var(--vk-spacing) * 9);
|
|
1236
|
+
--input-edge-in: var(--vk-border-width); --input-inset: none;
|
|
1237
|
+
box-sizing: border-box; width: 100%; min-width: 0; height: calc(var(--vk-spacing) * 9); margin: 0;
|
|
1238
|
+
--input-pad-block: 0px; --input-pad-inline: calc(var(--vk-spacing) * 3); padding: var(--input-pad-block) var(--input-pad-inline);
|
|
1239
|
+
--input-box-r: var(--input-r); --input-inner: var(--input-r);
|
|
1240
|
+
border: var(--vk-border-width) solid var(--input-edge); border-radius: var(--input-box-r); corner-shape: squircle;
|
|
1241
|
+
background: var(--input-ground); box-shadow: var(--vk-shadow-field);
|
|
1242
|
+
color: var(--vk-fg); font: inherit; font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm));
|
|
1243
|
+
outline: none;
|
|
1244
|
+
transition: border-color var(--vk-duration-fast) var(--vk-ease-out), box-shadow var(--vk-duration-fast) var(--vk-ease-out), background-color var(--vk-duration-fast) var(--vk-ease-out);
|
|
1245
|
+
}
|
|
1246
|
+
.o-input::placeholder { color: var(--vk-fg-subtlest); opacity: 1; }
|
|
1247
|
+
/* Numbers line up. */
|
|
1248
|
+
.o-input-num { font-variant-numeric: tabular-nums; }
|
|
1249
|
+
/* Long text: the same field as a textarea, at least 84px (minLines sets another start), resized only up and down. */
|
|
1250
|
+
.o-input-long { --input-side: calc(2lh + var(--vk-spacing) * 4 + var(--vk-border-width) * 2); height: auto; min-height: calc(var(--vk-spacing) * 21); --input-pad-block: calc(var(--vk-spacing) * 2); --input-pad-inline: calc(var(--vk-spacing) * 3); resize: vertical; }
|
|
1251
|
+
/* Long text of a set number of lines: its height theirs, no floor, never dragged taller; past them it
|
|
1252
|
+
scrolls. Its control is fixed at its lines and its box, a group's or a lone Input's, loses the floor. */
|
|
1253
|
+
.o-input.o-input-long:has(> .o-input-lines) { height: auto; min-height: 0; --input-side: calc(1lh + var(--vk-spacing) * 4 + var(--vk-border-width) * 2); }
|
|
1254
|
+
/* The phone's size: 44px and 16px text, so iOS never zooms in when it is tapped. Every field takes it
|
|
1255
|
+
on a phone (the phone switch); size="lg" asks for it anywhere. Long text keeps its own height and padding, at lg's words, as
|
|
1256
|
+
it does on a phone. */
|
|
1257
|
+
.o-input-lg:not(.o-input-long) { height: calc(var(--vk-spacing) * 11); --input-side: calc(var(--vk-spacing) * 11); --input-pad-block: 0px; --input-pad-inline: calc(var(--vk-spacing) * 3.5); }
|
|
1258
|
+
.o-input-lg { font-size: var(--vk-font-size-base); line-height: calc(var(--vk-font-size-base) * var(--vk-line-height-base)); }
|
|
1259
|
+
/* The smaller sizes, as the Button's, for a field beside buttons of its size: 32px in toolbars, 28 and 24 in
|
|
1260
|
+
dense rows, 24 with 12px words. Long text keeps its own height. */
|
|
1261
|
+
.o-input-sm:not(.o-input-long) { height: calc(var(--vk-spacing) * 8); --input-side: calc(var(--vk-spacing) * 8); }
|
|
1262
|
+
.o-input-xs:not(.o-input-long) { height: calc(var(--vk-spacing) * 7); --input-side: calc(var(--vk-spacing) * 7); --input-pad-block: 0px; --input-pad-inline: calc(var(--vk-spacing) * 2.5); }
|
|
1263
|
+
.o-input-2xs:not(.o-input-long) { height: calc(var(--vk-spacing) * 6); --input-side: calc(var(--vk-spacing) * 6); --input-pad-block: 0px; --input-pad-inline: calc(var(--vk-spacing) * 2); }
|
|
1264
|
+
.o-input-2xs { font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs)); }
|
|
1265
|
+
@media (width < 640px) {
|
|
1266
|
+
.o-input:not(.o-input-long):where(:not([data-computer-host], [data-computer-host] *)) { height: calc(var(--vk-spacing) * 11); --input-side: calc(var(--vk-spacing) * 11); --input-pad-block: 0px; --input-pad-inline: calc(var(--vk-spacing) * 3.5); }
|
|
1267
|
+
.o-input:where(:not([data-computer-host], [data-computer-host] *)) { font-size: var(--vk-font-size-base); line-height: calc(var(--vk-font-size-base) * var(--vk-line-height-base)); }
|
|
1268
|
+
}
|
|
1269
|
+
@container o-phone (width < 640px) {
|
|
1270
|
+
.o-input:not(.o-input-long) { height: calc(var(--vk-spacing) * 11); --input-side: calc(var(--vk-spacing) * 11); --input-pad-block: 0px; --input-pad-inline: calc(var(--vk-spacing) * 3.5); }
|
|
1271
|
+
.o-input { font-size: var(--vk-font-size-base); line-height: calc(var(--vk-font-size-base) * var(--vk-line-height-base)); }
|
|
1272
|
+
}
|
|
1273
|
+
/* In a computer host every part is the computer's but a box a finger
|
|
1274
|
+
can type in, which keeps 16px words, so iOS never zooms the page into it. A
|
|
1275
|
+
read-only or disabled box keeps its own size. */
|
|
1276
|
+
[data-computer-host] :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="hidden"], [type="button"], [type="submit"], [type="reset"], [type="color"], [type="file"], [type="image"]), textarea, select, [contenteditable=""], [contenteditable="true"]):not([readonly], :disabled) { font-size: var(--vk-font-size-base); }
|
|
1277
|
+
|
|
1278
|
+
/* ── Under the pointer, a louder edge and a deeper lift; in focus, the edge turns blue and glows ──────
|
|
1279
|
+
The states come in the card's order, each as specific as the last, so a later one wins: the pointer
|
|
1280
|
+
never takes a field's focus or its error away (only its lift deepens on an error). The pointer's
|
|
1281
|
+
rule leaves out a disabled field inside :where, which adds nothing to its weight. A browser counts the
|
|
1282
|
+
pointer on a label as the pointer on its field (a click on the label focuses the field), so the
|
|
1283
|
+
pointer's rule also leaves out a field whose label the pointer is on: only the field itself shows it. */
|
|
1284
|
+
@media (hover: hover) { .o-input:is(:where(:hover:not(.o-field:has(> .o-field-label:hover) *)), [data-force="hover"]):where(:not(:disabled, [data-disabled], [data-input-hover="fill"] *:not([data-input-own], [data-input-hover="fill"] [data-input-hover]:not([data-input-hover="fill"]) *), [data-input-own][data-input-hover="fill"], [data-input-hover="none"] *:not([data-input-own], [data-input-hover="none"] [data-input-hover]:not([data-input-hover="none"]) *), [data-input-own][data-input-hover="none"], :has(.o-input-control:is(:disabled, [data-disabled])))) { --input-edge: var(--vk-border-input-hovered); box-shadow: var(--vk-shadow-field-hover); } }
|
|
1285
|
+
.o-input:is(:focus-visible, [data-force="focus"], [data-popup-open], :where(:has(:is(.o-input-control:focus-visible, .o-input-segment:focus)))) { --input-edge: var(--vk-border-brand); box-shadow: var(--vk-shadow-field-focus); }
|
|
1286
|
+
/* In error, the edge is red, and red glows in focus. */
|
|
1287
|
+
.o-input:is([aria-invalid="true"], :where(:has(.o-input-control[aria-invalid="true"]))) { --input-edge: var(--vk-border-danger); }
|
|
1288
|
+
.o-input:is([aria-invalid="true"], :where(:has(.o-input-control[aria-invalid="true"]))):is(:focus-visible, [data-force="focus"], [data-popup-open], :where(:has(:is(.o-input-control:focus-visible, .o-input-segment:focus)))) { box-shadow: var(--vk-shadow-field-focus-danger); }
|
|
1289
|
+
/* Disabled: a softer edge, a grey fill, no lift. */
|
|
1290
|
+
.o-input:is(:disabled, [data-disabled], :where(:has(.o-input-control:is(:disabled, [data-disabled])))) { --input-edge: var(--vk-border-subtle); --input-ground: var(--vk-neutral); box-shadow: none; color: var(--vk-fg-disabled); cursor: not-allowed; }
|
|
1291
|
+
|
|
1292
|
+
/* Read-only: what it holds can be read, chosen and copied, not changed: a soft edge and no lift; it still
|
|
1293
|
+
takes the focus, and the pointer changes nothing. One that opens something is a
|
|
1294
|
+
box to press, not words to copy, and keeps a resting field's edge and lift. */
|
|
1295
|
+
.o-input:is([readonly], :where(:has(.o-input-control[readonly]))) { cursor: default; }
|
|
1296
|
+
.o-input:is([readonly], :where(:has(.o-input-control[readonly]))):where(:not(:focus-visible, [data-force="focus"], [data-popup-open], [aria-haspopup], :has(:is(.o-input-control:focus-visible, .o-input-segment:focus, .o-input-control[aria-haspopup])))) { --input-edge: var(--vk-border-subtle); box-shadow: none; }
|
|
1297
|
+
|
|
1298
|
+
/* ── The options a design picks (input/looks.ts) ─────────────────────────────────────────────────────
|
|
1299
|
+
Data attributes on the frame or the app around the Input; each value only chooses other tokens:
|
|
1300
|
+
|
|
1301
|
+
data-input-radius xs · sm · md · lg · xl · 2xl · full which radius step its corners take
|
|
1302
|
+
data-input-style outlined · filled · underline an edge all round, a fill, or one line under it
|
|
1303
|
+
data-input-depth lift · flat · sunken the 1px lift, none, or a shadow inside it
|
|
1304
|
+
data-input-hover edge · fill · strong what the pointer changes
|
|
1305
|
+
data-input-focus glow · line · thick the blue edge with its glow, alone, or doubled
|
|
1306
|
+
data-input-error edge · tint a red edge, or a red edge on a red tint
|
|
1307
|
+
|
|
1308
|
+
Nothing set is Classic, the card. An option restates every state it touches, in the order above, so the
|
|
1309
|
+
pointer never takes focus or an error away. Set them on one element. Set again on a frame inside it, an
|
|
1310
|
+
option replaces the outer one's: the nearest frame wins, option by option. Each frame read
|
|
1311
|
+
carries a guard inside its :where(), so its weight never moves: <frame> [data-input-X]:not(<its test on X>) *,
|
|
1312
|
+
or for a :not() test <frame> [data-input-X="V"] *, for each option X the frame names (every rule holds to it, so a new rule writes it
|
|
1313
|
+
too). Two limits, which no page shows: a value set back two frames down is not read
|
|
1314
|
+
(A, then B inside it, then A again: a field inside the second A takes the default; nest frames only with
|
|
1315
|
+
different values); and a rule that reads two options together (the filled style's hover, the pill's ends
|
|
1316
|
+
without an underline, the underline's tint) holds only when both come from one frame: inputAttrs writes every option a picker
|
|
1317
|
+
offers and inputFrameAttrs every option a box's own look takes, so a frame either writes holds whole for the options it
|
|
1318
|
+
writes.
|
|
1319
|
+
|
|
1320
|
+
A box's own look is the same attributes on the field's own element,
|
|
1321
|
+
marked data-input-own, every option at once: it wins over its frame's, whole. Each rule reads either, as
|
|
1322
|
+
:is(<frame> :where(.o-input:not([data-input-own])), :where(.o-input[data-input-own]<frame>)), whose weight is
|
|
1323
|
+
the frame's alone, so every rule weighs what it weighed before a box could carry its own look. A box's own
|
|
1324
|
+
look also takes four values a picker never offers: the ground (data-input-ground: input, none, the surface
|
|
1325
|
+
showing through; overlay, the overlay's), Under the pointer none (nothing changes: the hover rules leave it
|
|
1326
|
+
out), the inset (data-input-pad="edge": its words 12px from its outer edge) and its corners round
|
|
1327
|
+
(data-input-corner="round"). A frame takes them too, written whole by inputFrameAttrs. */
|
|
1328
|
+
|
|
1329
|
+
/* ── Corners: a step of the radius; full is round at its ends ──────────────────────────────────────── */
|
|
1330
|
+
:is([data-input-radius="xs"] :where(.o-input:not([data-input-own], [data-input-radius="xs"] [data-input-radius]:not([data-input-radius="xs"]) *)), :where(.o-input[data-input-own][data-input-radius="xs"])).o-input { --input-r: var(--vk-radius-xs); }
|
|
1331
|
+
:is([data-input-radius="sm"] :where(.o-input:not([data-input-own], [data-input-radius="sm"] [data-input-radius]:not([data-input-radius="sm"]) *)), :where(.o-input[data-input-own][data-input-radius="sm"])).o-input { --input-r: var(--vk-radius-sm); }
|
|
1332
|
+
:is([data-input-radius="md"] :where(.o-input:not([data-input-own], [data-input-radius="md"] [data-input-radius]:not([data-input-radius="md"]) *)), :where(.o-input[data-input-own][data-input-radius="md"])).o-input { --input-r: var(--vk-radius-md); }
|
|
1333
|
+
:is([data-input-radius="lg"] :where(.o-input:not([data-input-own], [data-input-radius="lg"] [data-input-radius]:not([data-input-radius="lg"]) *)), :where(.o-input[data-input-own][data-input-radius="lg"])).o-input { --input-r: var(--vk-radius-lg); }
|
|
1334
|
+
:is([data-input-radius="xl"] :where(.o-input:not([data-input-own], [data-input-radius="xl"] [data-input-radius]:not([data-input-radius="xl"]) *)), :where(.o-input[data-input-own][data-input-radius="xl"])).o-input { --input-r: var(--vk-radius-xl); }
|
|
1335
|
+
:is([data-input-radius="2xl"] :where(.o-input:not([data-input-own], [data-input-radius="2xl"] [data-input-radius]:not([data-input-radius="2xl"]) *)), :where(.o-input[data-input-own][data-input-radius="2xl"])).o-input { --input-r: var(--vk-radius-2xl); }
|
|
1336
|
+
:is([data-input-radius="full"]:not([data-input-style="underline"]) :where(.o-input:not([data-input-own], [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-radius]:not([data-input-radius="full"]) *, [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-style="underline"] *)), :where(.o-input[data-input-own][data-input-radius="full"]:not([data-input-style="underline"]))).o-input:not(.o-input-long) { --input-r: var(--vk-radius-full); corner-shape: round; --input-cut: none; --input-shown-edge: var(--input-edge); --input-shown-ground: var(--input-ground); --input-shown-thick: var(--vk-border-width); --input-shown-sunk: var(--vk-shadow-key-pressed); --input-pad-inline: calc(var(--vk-spacing) * 4); }
|
|
1337
|
+
/* The two smallest round ones keep their ends in proportion, as the Button's do. */
|
|
1338
|
+
:is([data-input-radius="full"]:not([data-input-style="underline"]) :where(.o-input:not([data-input-own], [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-radius]:not([data-input-radius="full"]) *, [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-style="underline"] *)), :where(.o-input[data-input-own][data-input-radius="full"]:not([data-input-style="underline"]))).o-input-xs:not(.o-input-long) { --input-pad-inline: calc(var(--vk-spacing) * 3); }
|
|
1339
|
+
:is([data-input-radius="full"]:not([data-input-style="underline"]) :where(.o-input:not([data-input-own], [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-radius]:not([data-input-radius="full"]) *, [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-style="underline"] *)), :where(.o-input[data-input-own][data-input-radius="full"]:not([data-input-style="underline"]))).o-input-2xs:not(.o-input-long) { --input-pad-inline: calc(var(--vk-spacing) * 2.5); }
|
|
1340
|
+
@media (width < 640px) { :is([data-input-radius="full"]:not([data-input-style="underline"]) :where(.o-input:not([data-input-own], [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-radius]:not([data-input-radius="full"]) *, [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-style="underline"] *)), :where(.o-input[data-input-own][data-input-radius="full"]:not([data-input-style="underline"]))).o-input:is(.o-input-xs, .o-input-2xs):not(.o-input-long):where(:not([data-computer-host], [data-computer-host] *)) { --input-pad-inline: calc(var(--vk-spacing) * 4); } }
|
|
1341
|
+
@container o-phone (width < 640px) { :is([data-input-radius="full"]:not([data-input-style="underline"]) :where(.o-input:not([data-input-own], [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-radius]:not([data-input-radius="full"]) *, [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-style="underline"] *)), :where(.o-input[data-input-own][data-input-radius="full"]:not([data-input-style="underline"]))).o-input:is(.o-input-xs, .o-input-2xs):not(.o-input-long) { --input-pad-inline: calc(var(--vk-spacing) * 4); } }
|
|
1342
|
+
/* Long text can't be a pill: it takes the largest step that still reads as a box. */
|
|
1343
|
+
:is([data-input-radius="full"]:not([data-input-style="underline"]) :where(.o-input:not([data-input-own], [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-radius]:not([data-input-radius="full"]) *, [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-style="underline"] *)), :where(.o-input[data-input-own][data-input-radius="full"]:not([data-input-style="underline"]))).o-input-long { --input-r: var(--vk-radius-2xl); }
|
|
1344
|
+
|
|
1345
|
+
/* ── Ground: none (the surface shows through), or the overlay's, for a box over a cell, in a Popover or a Sheet. Filled
|
|
1346
|
+
keeps its fill and an underline its line; disabled keeps its grey. ──────────────────────────────────────────────── */
|
|
1347
|
+
:is([data-input-ground="overlay"] :where(.o-input:not([data-input-own], [data-input-ground="overlay"] [data-input-ground]:not([data-input-ground="overlay"]) *)), :where(.o-input[data-input-own][data-input-ground="overlay"])).o-input:where(:not(:disabled, [data-disabled], :has(.o-input-control:is(:disabled, [data-disabled])))) { --input-ground: var(--vk-overlay); }
|
|
1348
|
+
|
|
1349
|
+
/* ── Filled: a grey fill and no edge until focus or an error gives it one. It stays a filled field in
|
|
1350
|
+
every state: the pointer moves the fill a step (darker in light, lighter in dark), focus keeps that
|
|
1351
|
+
step and draws the blue edge on it, so a click under the pointer only adds the edge, and disabled
|
|
1352
|
+
takes the fainter, sunken fill. ────────────────────────────────────────────────────────────────── */
|
|
1353
|
+
:is([data-input-style="filled"] :where(.o-input:not([data-input-own], [data-input-style="filled"] [data-input-style]:not([data-input-style="filled"]) *)), :where(.o-input[data-input-own][data-input-style="filled"])).o-input { --input-edge: transparent; --input-ground: var(--vk-neutral); }
|
|
1354
|
+
@media (hover: hover) { :is([data-input-style="filled"] :where(.o-input:not([data-input-own], [data-input-style="filled"] [data-input-style]:not([data-input-style="filled"]) *)), :where(.o-input[data-input-own][data-input-style="filled"])).o-input:is(:where(:hover:not(.o-field:has(> .o-field-label:hover) *)), [data-force="hover"]):where(:not(:disabled, [data-disabled], [data-input-hover="edge"] *:not([data-input-own], [data-input-hover="edge"] [data-input-hover]:not([data-input-hover="edge"]) *), [data-input-own][data-input-hover="edge"], [data-input-hover="none"] *:not([data-input-own], [data-input-hover="none"] [data-input-hover]:not([data-input-hover="none"]) *), [data-input-own][data-input-hover="none"], :has(.o-input-control:is(:disabled, [data-disabled])))) { --input-edge: transparent; --input-ground: var(--vk-neutral-hovered); } }
|
|
1355
|
+
:is([data-input-style="filled"] :where(.o-input:not([data-input-own], [data-input-style="filled"] [data-input-style]:not([data-input-style="filled"]) *)), :where(.o-input[data-input-own][data-input-style="filled"])).o-input:is(:focus-visible, [data-force="focus"], [data-popup-open], :where(:has(:is(.o-input-control:focus-visible, .o-input-segment:focus)))) { --input-edge: var(--vk-border-brand); --input-ground: var(--vk-neutral-hovered); }
|
|
1356
|
+
:is([data-input-style="filled"] :where(.o-input:not([data-input-own], [data-input-style="filled"] [data-input-style]:not([data-input-style="filled"]) *)), :where(.o-input[data-input-own][data-input-style="filled"])).o-input:is([aria-invalid="true"], :where(:has(.o-input-control[aria-invalid="true"]))) { --input-edge: var(--vk-border-danger); }
|
|
1357
|
+
:is([data-input-style="filled"] :where(.o-input:not([data-input-own], [data-input-style="filled"] [data-input-style]:not([data-input-style="filled"]) *)), :where(.o-input[data-input-own][data-input-style="filled"])).o-input:is(:disabled, [data-disabled], :where(:has(.o-input-control:is(:disabled, [data-disabled])))) { --input-edge: transparent; --input-ground: var(--vk-sunken); }
|
|
1358
|
+
|
|
1359
|
+
/* ── Depth: flat, no lift; sunken, a shadow along its top inside it. Focus keeps its own. ─────────── */
|
|
1360
|
+
:is([data-input-depth="flat"] :where(.o-input:not([data-input-own], [data-input-depth="flat"] [data-input-depth]:not([data-input-depth="flat"]) *)), :where(.o-input[data-input-own][data-input-depth="flat"])).o-input:where(:not(:focus-visible, [data-force="focus"], [data-popup-open], :has(:is(.o-input-control:focus-visible, .o-input-segment:focus)))) { box-shadow: none; }
|
|
1361
|
+
:is([data-input-depth="sunken"] :where(.o-input:not([data-input-own], [data-input-depth="sunken"] [data-input-depth]:not([data-input-depth="sunken"]) *)), :where(.o-input[data-input-own][data-input-depth="sunken"])).o-input:where(:not(:focus-visible, [data-force="focus"], [data-popup-open], :disabled, [data-disabled], :has(:is(.o-input-control:is(:focus-visible, :disabled, [data-disabled]), .o-input-segment:focus)))) { box-shadow: var(--input-sunk, var(--vk-shadow-key-pressed)); --input-inset: var(--vk-shadow-key-pressed); }
|
|
1362
|
+
|
|
1363
|
+
/* ── Under the pointer: the edge (the rules above, the lift deepening with it), the fill alone, or both
|
|
1364
|
+
with the edge a step darker. Never over focus, an error or a disabled field, which keep their
|
|
1365
|
+
own. A filled field's Edge keeps its fill and shows an edge; its Strong takes the fill's step too. ── */
|
|
1366
|
+
@media (hover: hover) { :is([data-input-hover="fill"]:not([data-input-style="filled"]) :where(.o-input:not([data-input-own], [data-input-hover="fill"]:not([data-input-style="filled"]) [data-input-hover]:not([data-input-hover="fill"]) *, [data-input-hover="fill"]:not([data-input-style="filled"]) [data-input-style="filled"] *)), :where(.o-input[data-input-own][data-input-hover="fill"]:not([data-input-style="filled"]))).o-input:is(:where(:hover:not(.o-field:has(> .o-field-label:hover) *)), [data-force="hover"]):where(:not(:focus-visible, [data-force="focus"], [data-popup-open], [aria-invalid="true"], :disabled, [data-disabled], :has(:is(.o-input-control:is(:focus-visible, [aria-invalid="true"], :disabled, [data-disabled]), .o-input-segment:focus)))) { --input-ground: var(--vk-hovered); } }
|
|
1367
|
+
@media (hover: hover) { :is([data-input-hover="strong"]:not([data-input-style="filled"]) :where(.o-input:not([data-input-own], [data-input-hover="strong"]:not([data-input-style="filled"]) [data-input-hover]:not([data-input-hover="strong"]) *, [data-input-hover="strong"]:not([data-input-style="filled"]) [data-input-style="filled"] *)), :where(.o-input[data-input-own][data-input-hover="strong"]:not([data-input-style="filled"]))).o-input:is(:where(:hover:not(.o-field:has(> .o-field-label:hover) *)), [data-force="hover"]):where(:not(:focus-visible, [data-force="focus"], [data-popup-open], [aria-invalid="true"], :disabled, [data-disabled], :has(:is(.o-input-control:is(:focus-visible, [aria-invalid="true"], :disabled, [data-disabled]), .o-input-segment:focus)))) { --input-edge: var(--vk-border-input-strong); } }
|
|
1368
|
+
@media (hover: hover) { :is([data-input-hover="strong"][data-input-style="outlined"] :where(.o-input:not([data-input-own], [data-input-hover="strong"][data-input-style="outlined"] [data-input-hover]:not([data-input-hover="strong"]) *, [data-input-hover="strong"][data-input-style="outlined"] [data-input-style]:not([data-input-style="outlined"]) *)), :where(.o-input[data-input-own][data-input-hover="strong"][data-input-style="outlined"])).o-input:is(:where(:hover:not(.o-field:has(> .o-field-label:hover) *)), [data-force="hover"]):where(:not(:focus-visible, [data-force="focus"], [data-popup-open], [aria-invalid="true"], :disabled, [data-disabled], :has(:is(.o-input-control:is(:focus-visible, [aria-invalid="true"], :disabled, [data-disabled]), .o-input-segment:focus)))) { --input-ground: var(--vk-hovered); } }
|
|
1369
|
+
@media (hover: hover) { :is([data-input-style="filled"]:is([data-input-hover="edge"], [data-input-hover="strong"]) :where(.o-input:not([data-input-own], [data-input-style="filled"]:is([data-input-hover="edge"], [data-input-hover="strong"]) [data-input-style]:not([data-input-style="filled"]) *, [data-input-style="filled"]:is([data-input-hover="edge"], [data-input-hover="strong"]) [data-input-hover]:not([data-input-hover="edge"], [data-input-hover="strong"]) *)), :where(.o-input[data-input-own][data-input-style="filled"]:is([data-input-hover="edge"], [data-input-hover="strong"]))).o-input:is(:where(:hover:not(.o-field:has(> .o-field-label:hover) *)), [data-force="hover"]):where(:not(:focus-visible, [data-force="focus"], [data-popup-open], [aria-invalid="true"], :disabled, [data-disabled], :has(:is(.o-input-control:is(:focus-visible, [aria-invalid="true"], :disabled, [data-disabled]), .o-input-segment:focus)))) { --input-edge: var(--vk-border-input-hovered); } }
|
|
1370
|
+
|
|
1371
|
+
/* ── Focus: the edge alone, or the edge doubled inside it; in error, in red ───────────────────────── */
|
|
1372
|
+
:is([data-input-focus="line"] :where(.o-input:not([data-input-own], [data-input-focus="line"] [data-input-focus]:not([data-input-focus="line"]) *)), :where(.o-input[data-input-own][data-input-focus="line"])).o-input:is(:focus-visible, [data-force="focus"], [data-popup-open], :where(:has(:is(.o-input-control:focus-visible, .o-input-segment:focus)))) { box-shadow: none; }
|
|
1373
|
+
/* Focus within: the edge alone, as Edge only, and the edge also while anything inside it has the focus,
|
|
1374
|
+
a Button in its side too. */
|
|
1375
|
+
:where(.o-input[data-input-own][data-input-focus="within"]).o-input:is(:focus-visible, [data-force="focus"], [data-popup-open], :where(:has(:is(.o-input-control:focus-visible, .o-input-segment:focus)))) { box-shadow: none; }
|
|
1376
|
+
.o-input.o-input-group[data-input-own][data-input-focus="within"]:focus-within { --input-edge: var(--vk-border-brand); }
|
|
1377
|
+
:is([data-input-focus="thick"] :where(.o-input:not([data-input-own], [data-input-focus="thick"] [data-input-focus]:not([data-input-focus="thick"]) *)), :where(.o-input[data-input-own][data-input-focus="thick"])).o-input:is(:focus-visible, [data-force="focus"], [data-popup-open], :where(:has(:is(.o-input-control:focus-visible, .o-input-segment:focus)))) { box-shadow: inset 0 0 0 var(--input-thick, var(--vk-border-width)) var(--vk-border-brand); --input-edge-in: calc(var(--vk-border-width) * 2); }
|
|
1378
|
+
:is([data-input-focus="thick"] :where(.o-input:not([data-input-own], [data-input-focus="thick"] [data-input-focus]:not([data-input-focus="thick"]) *)), :where(.o-input[data-input-own][data-input-focus="thick"])).o-input:is([aria-invalid="true"], :where(:has(.o-input-control[aria-invalid="true"]))):is(:focus-visible, [data-force="focus"], [data-popup-open], :where(:has(:is(.o-input-control:focus-visible, .o-input-segment:focus)))) { box-shadow: inset 0 0 0 var(--input-thick, var(--vk-border-width)) var(--vk-border-danger); --input-edge-in: calc(var(--vk-border-width) * 2); }
|
|
1379
|
+
|
|
1380
|
+
/* ── Error: the red edge on a red tint ─────────────────────────────────────────────────────────────── */
|
|
1381
|
+
:is([data-input-error="tint"] :where(.o-input:not([data-input-own], [data-input-error="tint"] [data-input-error]:not([data-input-error="tint"]) *)), :where(.o-input[data-input-own][data-input-error="tint"])).o-input:is([aria-invalid="true"], :where(:has(.o-input-control[aria-invalid="true"]))) { --input-ground: var(--vk-danger-subtlest); }
|
|
1382
|
+
|
|
1383
|
+
/* ── Underline: one line under the words, no corners, no lift; focus thickens the line, whatever the
|
|
1384
|
+
focus option says, since a glow round a box you can't see draws a box. ──────────────────────────── */
|
|
1385
|
+
:is([data-input-style="underline"] :where(.o-input:not([data-input-own], [data-input-style="underline"] [data-input-style]:not([data-input-style="underline"]) *)), :where(.o-input[data-input-own][data-input-style="underline"])).o-input {
|
|
1386
|
+
border-width: 0 0 var(--vk-border-width); --input-r: 0px; corner-shape: round; --input-pad-inline: 0px;
|
|
1387
|
+
--input-ground: var(--vk-input); box-shadow: none; --input-cut: none; --input-shown-edge: var(--input-edge); --input-shown-ground: var(--input-ground); --input-shown-thick: var(--vk-border-width); --input-shown-sunk: var(--vk-shadow-key-pressed);
|
|
1388
|
+
}
|
|
1389
|
+
:is([data-input-style="underline"] :where(.o-input:not([data-input-own], [data-input-style="underline"] [data-input-style]:not([data-input-style="underline"]) *)), :where(.o-input[data-input-own][data-input-style="underline"])).o-input:is(:focus-visible, [data-force="focus"], [data-popup-open], :where(:has(:is(.o-input-control:focus-visible, .o-input-segment:focus)))) { box-shadow: inset 0 calc(var(--vk-border-width) * -1) 0 var(--vk-border-brand); }
|
|
1390
|
+
:is([data-input-style="underline"] :where(.o-input:not([data-input-own], [data-input-style="underline"] [data-input-style]:not([data-input-style="underline"]) *)), :where(.o-input[data-input-own][data-input-style="underline"])).o-input:is([aria-invalid="true"], :where(:has(.o-input-control[aria-invalid="true"]))):is(:focus-visible, [data-force="focus"], [data-popup-open], :where(:has(:is(.o-input-control:focus-visible, .o-input-segment:focus)))) { box-shadow: inset 0 calc(var(--vk-border-width) * -1) 0 var(--vk-border-danger); }
|
|
1391
|
+
:is([data-input-style="underline"][data-input-error="tint"] :where(.o-input:not([data-input-own], [data-input-style="underline"][data-input-error="tint"] [data-input-style]:not([data-input-style="underline"]) *, [data-input-style="underline"][data-input-error="tint"] [data-input-error]:not([data-input-error="tint"]) *)), :where(.o-input[data-input-own][data-input-style="underline"][data-input-error="tint"])).o-input:is([aria-invalid="true"], :where(:has(.o-input-control[aria-invalid="true"]))) { --input-ground: var(--vk-danger-subtlest); --input-pad-inline: calc(var(--vk-spacing) * 2); }
|
|
1392
|
+
|
|
1393
|
+
/* ── The inset (a box's own look): its words 12px from its outer edge at every size, the hairline inside that; long
|
|
1394
|
+
text 6px from its top and bottom (10px at the phone's size), as labelled boxes are. It outweighs the sizes and the phone's padding, and an own Underline's none; an own look at
|
|
1395
|
+
radius full keeps the pill's ends. A frame sets it too, as it sets every option. ───────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
1396
|
+
/* On a frame too. Each keeps the weight it had as an own look's rule, (0,3,0) and up: .o-input twice. */
|
|
1397
|
+
:is([data-input-pad="edge"] :where(.o-input:not([data-input-own], [data-input-pad="edge"] [data-input-pad]:not([data-input-pad="edge"]) *)), :where(.o-input[data-input-own][data-input-pad="edge"])).o-input.o-input { --input-pad-inline: calc(var(--vk-spacing) * 3 - var(--vk-border-width)); }
|
|
1398
|
+
:is([data-input-pad="edge"] :where(.o-input:not([data-input-own], [data-input-pad="edge"] [data-input-pad]:not([data-input-pad="edge"]) *)), :where(.o-input[data-input-own][data-input-pad="edge"])).o-input.o-input.o-input-long { --input-pad-block: calc(var(--vk-spacing) * 1.5 - var(--vk-border-width)); }
|
|
1399
|
+
:is([data-input-pad="edge"] :where(.o-input:not([data-input-own], [data-input-pad="edge"] [data-input-pad]:not([data-input-pad="edge"]) *)), :where(.o-input[data-input-own][data-input-pad="edge"])).o-input.o-input.o-input-long.o-input-lg { --input-pad-block: calc(var(--vk-spacing) * 2.5 - var(--vk-border-width)); }
|
|
1400
|
+
/* A box's own look's corners, round where said; the smooth outline unless. On a frame too. */
|
|
1401
|
+
:is([data-input-corner="round"] :where(.o-input:not([data-input-own], [data-input-corner="round"] [data-input-corner]:not([data-input-corner="round"]) *)), :where(.o-input[data-input-own][data-input-corner="round"])).o-input.o-input { corner-shape: round; --input-cut: none; --input-shown-edge: var(--input-edge); --input-shown-ground: var(--input-ground); --input-shown-thick: var(--vk-border-width); --input-shown-sunk: var(--vk-shadow-key-pressed); }
|
|
1402
|
+
/* A box's own look in code words: the monospace typeface at xs, for long text that is code. Never a size:
|
|
1403
|
+
its height and its line stay its size's. An own look only; it outweighs the sizes. On a phone a box that can be typed into keeps
|
|
1404
|
+
the phone's 16px, so the phone never zooms in on it; a read-only one keeps xs there too. */
|
|
1405
|
+
.o-input[data-input-own][data-input-words="code"] { font-family: var(--vk-font-mono); font-size: var(--vk-font-size-xs); }
|
|
1406
|
+
@media (width < 640px) { .o-input[data-input-own][data-input-words="code"]:not([readonly], :has(> .o-input-control[readonly])):where(:not([data-computer-host], [data-computer-host] *)) { font-size: var(--vk-font-size-base); } }
|
|
1407
|
+
@container o-phone (width < 640px) { .o-input[data-input-own][data-input-words="code"]:not([readonly], :has(> .o-input-control[readonly])) { font-size: var(--vk-font-size-base); } }
|
|
1408
|
+
|
|
1409
|
+
/* ── A group: the field drawn around an Input and its addons ───────────────────────────────────────────
|
|
1410
|
+
The group is the field itself (it carries .o-input), so its edge, lift, size, corners and every look
|
|
1411
|
+
are the Input's own; each state above also reads the Input inside it (its focus, its error, disabled),
|
|
1412
|
+
at the same weight, so a group's states fall in the same order. The Input inside is bare. */
|
|
1413
|
+
/* The room between its parts is --input-group-gap where a place sets it (a body that lays its parts closer), 6px unless said. */
|
|
1414
|
+
.o-input-group { display: flex; align-items: center; gap: var(--input-group-gap, calc(var(--vk-spacing) * 1.5)); cursor: text; }
|
|
1415
|
+
/* The bare control (alone, or a group's): a value wider than it ends in "…" at rest, so a cut address never reads as a wrong one
|
|
1416
|
+
; typed into, the browser scrolls it whole. */
|
|
1417
|
+
.o-input-control {
|
|
1418
|
+
flex: 1; align-self: stretch; box-sizing: border-box; width: 100%; min-width: 0; margin: 0; padding: 0;
|
|
1419
|
+
border: 0; border-radius: 0; background: transparent; box-shadow: none; color: inherit; font: inherit; outline: none; text-overflow: ellipsis;
|
|
1420
|
+
}
|
|
1421
|
+
/* A bare box told not to fill its line (fills={false}) stands at the width and height its place gives it. */
|
|
1422
|
+
.o-input-control[data-fills="off"] { flex: initial; align-self: auto; }
|
|
1423
|
+
.o-input-control::placeholder { color: var(--vk-fg-subtlest); opacity: 1; }
|
|
1424
|
+
/* A segment of a value typed in parts (InputGroupSegment) draws no outline of its own: its group shows the focus. */
|
|
1425
|
+
.o-input-segment { outline: none; }
|
|
1426
|
+
.o-input-control:is(:disabled, [data-disabled]) { cursor: not-allowed; }
|
|
1427
|
+
/* Numbers line up inside a group too: the control's font: inherit, just above, would take .o-input-num's tabular digits away
|
|
1428
|
+
(in DM Sans no pixel moves, its digits already one width). */
|
|
1429
|
+
.o-input-control.o-input-num { font-variant-numeric: tabular-nums; }
|
|
1430
|
+
/* Bare, a box that can be typed into keeps the phone's 16px words on a phone whatever its place's, so iOS never zooms in on it: the Input's, the Number field's, any place's. A field gives the control inside it its words, so this reads only a
|
|
1431
|
+
control no field draws round; a read-only or disabled one keeps its place's. (0,1,0), after the control's font: inherit; a place's
|
|
1432
|
+
own rule for its box still wins (a picker's, a links editor's, each 16 on a phone too). */
|
|
1433
|
+
@media (width < 640px) { .o-input-control:where(:not(.o-input *, [readonly], :disabled, [data-disabled])):where(:not([data-computer-host], [data-computer-host] *)) { font-size: var(--vk-font-size-base); } }
|
|
1434
|
+
@container o-phone (width < 640px) { .o-input-control:where(:not(.o-input *, [readonly], :disabled, [data-disabled])) { font-size: var(--vk-font-size-base); } }
|
|
1435
|
+
|
|
1436
|
+
/* ── A lone Input in its field: a box round its control, a group of one, so its corner can wear the smooth outline
|
|
1437
|
+
(the end of this file) in every browser. Inline-level, as the <input> was, so no line it stands on moves. Its padding is its
|
|
1438
|
+
control's (the field form's two variables), so the control fills the box inside its edge: its resize handle, its scrollbar and
|
|
1439
|
+
the browser's autofill fill stand where they stood, every press lands in it (its edge hands one on), and its corners are the
|
|
1440
|
+
box's inside its edge (--input-inner), a quarter circle within the smooth outline.
|
|
1441
|
+
Its value wider than it is cut off at rest, with no "…". Long text keeps its own height, dragged taller by
|
|
1442
|
+
its control's handle; growing, its control grows to ten lines, then scrolls. ──────────────────────────────────────────────── */
|
|
1443
|
+
.o-input.o-input-lone { display: inline-flex; padding: 0; }
|
|
1444
|
+
/* Its edge shows the I-beam, as the <input>'s did; read-only and disabled keep theirs (this weighs nothing). */
|
|
1445
|
+
:where(.o-input.o-input-lone) { cursor: text; }
|
|
1446
|
+
/* Standing on a line (inline, never as a flex or grid item, where it lends its first line), each engine stood the <textarea> where
|
|
1447
|
+
it stands the box only after a nudge, measured at 14 and 16px words and every height in each engine: WebKit
|
|
1448
|
+
on its bottom edge, as the box; Chromium on the textarea's bottom margin edge, its edge's width inside the box, so the box is
|
|
1449
|
+
raised by it; Firefox 3px above its bottom edge. Each engine is known by what it supports (corner-shape: Chromium alone;
|
|
1450
|
+
-moz-appearance: Firefox alone), so an engine that ships the other's moves this 1-3px, and no page yet stands a lone long text on a line to
|
|
1451
|
+
catch it. The measurements left with the proofs: a change here is measured again,
|
|
1452
|
+
by hand, in Chromium, WebKit and Firefox. */
|
|
1453
|
+
.o-input.o-input-lone.o-input-long { display: inline-block; }
|
|
1454
|
+
@supports (corner-shape: round) { .o-input.o-input-lone.o-input-long { vertical-align: var(--vk-border-width); } }
|
|
1455
|
+
@supports (-moz-appearance: none) { .o-input.o-input-lone.o-input-long { vertical-align: -3px; } }
|
|
1456
|
+
.o-input-lone > .o-input-control {
|
|
1457
|
+
padding: var(--input-pad-block) var(--input-pad-inline); border-radius: max(0px, calc(var(--input-inner) - var(--vk-border-width)));
|
|
1458
|
+
text-overflow: clip;
|
|
1459
|
+
}
|
|
1460
|
+
/* Read-only, the arrow, as the box shows it (its own I-beam unless; disabled, not-allowed, above). */
|
|
1461
|
+
.o-input-lone > .o-input-control[readonly] { cursor: default; }
|
|
1462
|
+
/* One line: the box's full height, set, as the <input>'s was (a stretched input sets its words a pixel higher in Chromium). */
|
|
1463
|
+
.o-input-lone > input.o-input-control { height: 100%; }
|
|
1464
|
+
/* Long text: the <textarea> it was, to the pixel. It fills the box to its outer edge, its own edge there transparent, so the box's
|
|
1465
|
+
edge shows through it, and takes the box's floor (min-height: inherit); a block in an inline block. */
|
|
1466
|
+
.o-input-lone > textarea.o-input-control {
|
|
1467
|
+
display: block; box-sizing: border-box; width: calc(100% + var(--vk-border-width) * 2); margin: calc(var(--vk-border-width) * -1);
|
|
1468
|
+
border: var(--vk-border-width) solid transparent; border-radius: var(--input-inner); background-clip: padding-box;
|
|
1469
|
+
min-height: inherit; max-height: none; field-sizing: fixed; resize: vertical;
|
|
1470
|
+
}
|
|
1471
|
+
.o-input-lone > textarea.o-input-control.o-input-lines { resize: none; }
|
|
1472
|
+
|
|
1473
|
+
/* Long text, or a row above or below it: a column, the rows full width, the long text between them
|
|
1474
|
+
growing with its words from two lines to ten, then scrolling (maxLines sets another stop). */
|
|
1475
|
+
.o-input-group.o-input-long { flex-direction: column; align-items: stretch; gap: calc(var(--vk-spacing) * 2); }
|
|
1476
|
+
textarea.o-input-control { flex: 1 0 auto; min-height: calc(1lh * 2); max-height: calc(1lh * 10); resize: none; field-sizing: content; }
|
|
1477
|
+
textarea.o-input-control.o-input-lines { flex: none; min-height: 0; max-height: none; field-sizing: fixed; }
|
|
1478
|
+
|
|
1479
|
+
/* ── An addon: what sits beside the words, in the order its side says, whatever the order it's written
|
|
1480
|
+
in. Its words quieter than the words typed, its icon 16px and quieter still. ──────────────────────── */
|
|
1481
|
+
.o-input-addon { flex: none; display: flex; align-items: center; gap: calc(var(--vk-spacing) * 1.5); color: var(--vk-fg-subtle); white-space: nowrap; user-select: none; }
|
|
1482
|
+
.o-input-addon:is([data-side="start"], [data-side="top"]) { order: -1; }
|
|
1483
|
+
.o-input-addon:is([data-side="end"], [data-side="bottom"]) { order: 1; }
|
|
1484
|
+
.o-input-addon > svg { flex: none; width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); color: var(--vk-fg-subtlest); }
|
|
1485
|
+
.o-input-2xs > .o-input-addon > svg { width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); }
|
|
1486
|
+
@media (width < 640px) { .o-input-2xs > .o-input-addon > svg:where(:not([data-computer-host], [data-computer-host] *)) { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); } }
|
|
1487
|
+
@container o-phone (width < 640px) { .o-input-2xs > .o-input-addon > svg { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); } }
|
|
1488
|
+
.o-input-group:has(.o-input-control:is(:disabled, [data-disabled])) .o-input-addon { color: var(--vk-fg-disabled); }
|
|
1489
|
+
.o-input-group:has(.o-input-control:is(:disabled, [data-disabled])) .o-input-addon > svg { color: inherit; }
|
|
1490
|
+
|
|
1491
|
+
/* A row above or below long text: its buttons 4px apart, as a toolbar's, the first and the last as far
|
|
1492
|
+
in from the side as from the top or the bottom (8px), the long text's words where they always are. */
|
|
1493
|
+
.o-input-addon:is([data-side="top"], [data-side="bottom"]) { gap: calc(var(--vk-spacing) * 1); margin-inline: calc(var(--vk-spacing) * -1); }
|
|
1494
|
+
:is([data-input-style="underline"] :where(.o-input:not([data-input-own], [data-input-style="underline"] [data-input-style]:not([data-input-style="underline"]) *)), :where(.o-input[data-input-own][data-input-style="underline"])) .o-input-addon:is([data-side="top"], [data-side="bottom"]) { margin-inline: 0; }
|
|
1495
|
+
|
|
1496
|
+
/* A button at the field's start or end sits as far in from the side as from the top and bottom: 3px inside
|
|
1497
|
+
the edge of a 36px field round a 28px button and of a 32px one round a 24px button, 7px in a 44px one. Its corners are a step smaller than the
|
|
1498
|
+
field's, so the two curves run alike; in a round field it is round. */
|
|
1499
|
+
.o-input.o-input-group:has(> .o-input-addon[data-side="end"]:not(:where([data-flush])) > .o-button:last-child) { padding-right: calc(var(--vk-spacing) * 3 / 4); }
|
|
1500
|
+
.o-input.o-input-group:has(> .o-input-addon[data-side="start"]:not(:where([data-flush])) > .o-button:first-child) { padding-left: calc(var(--vk-spacing) * 3 / 4); }
|
|
1501
|
+
.o-input.o-input-group.o-input-lg:has(> .o-input-addon[data-side="end"]:not(:where([data-flush])) > .o-button:last-child) { padding-right: calc(var(--vk-spacing) * 7 / 4); }
|
|
1502
|
+
.o-input.o-input-group.o-input-lg:has(> .o-input-addon[data-side="start"]:not(:where([data-flush])) > .o-button:first-child) { padding-left: calc(var(--vk-spacing) * 7 / 4); }
|
|
1503
|
+
/* An lg group is the phone's form asked for anywhere, so its button beside the value takes the value's 16px words at any width
|
|
1504
|
+
, as the phone's rule below gives every group's; the same weight, (0,2,0). */
|
|
1505
|
+
:where(.o-input.o-input-group.o-input-lg > .o-input-addon:is([data-side="start"], [data-side="end"]):not(:where([data-flush]))) > .o-button.o-button { font-size: var(--vk-font-size-base); }
|
|
1506
|
+
@media (width < 640px) {
|
|
1507
|
+
.o-input.o-input-group:not(.o-input-long):has(> .o-input-addon[data-side="end"]:not(:where([data-flush])) > .o-button:last-child):where(:not([data-computer-host], [data-computer-host] *)) { padding-right: calc(var(--vk-spacing) * 7 / 4); }
|
|
1508
|
+
.o-input.o-input-group:not(.o-input-long):has(> .o-input-addon[data-side="start"]:not(:where([data-flush])) > .o-button:first-child):where(:not([data-computer-host], [data-computer-host] *)) { padding-left: calc(var(--vk-spacing) * 7 / 4); }
|
|
1509
|
+
/* A 32px field's 24px button, in the phone's 44px field. */
|
|
1510
|
+
.o-input.o-input-group:not(.o-input-long):has(> .o-input-addon[data-side="end"]:not(:where([data-flush])) > .o-button-2xs:last-child):where(:not([data-computer-host], [data-computer-host] *)) { padding-right: calc(var(--vk-spacing) * 9 / 4); }
|
|
1511
|
+
.o-input.o-input-group:not(.o-input-long):has(> .o-input-addon[data-side="start"]:not(:where([data-flush])) > .o-button-2xs:first-child):where(:not([data-computer-host], [data-computer-host] *)) { padding-left: calc(var(--vk-spacing) * 9 / 4); }
|
|
1512
|
+
/* A button beside the value takes the value's 16px words; a row above or below long text keeps the Button's sizes.
|
|
1513
|
+
(0,2,0): over the Button's sizes, under a Button's own words look (0,3,0); the editors' own phone rules are unlayered. */
|
|
1514
|
+
:where(.o-input.o-input-group > .o-input-addon:is([data-side="start"], [data-side="end"]):not(:where([data-flush]))) > .o-button.o-button:where(:not([data-computer-host], [data-computer-host] *)) { font-size: var(--vk-font-size-base); }
|
|
1515
|
+
}
|
|
1516
|
+
@container o-phone (width < 640px) {
|
|
1517
|
+
.o-input.o-input-group:not(.o-input-long):has(> .o-input-addon[data-side="end"]:not(:where([data-flush])) > .o-button:last-child) { padding-right: calc(var(--vk-spacing) * 7 / 4); }
|
|
1518
|
+
.o-input.o-input-group:not(.o-input-long):has(> .o-input-addon[data-side="start"]:not(:where([data-flush])) > .o-button:first-child) { padding-left: calc(var(--vk-spacing) * 7 / 4); }
|
|
1519
|
+
/* A 32px field's 24px button, in the phone's 44px field. */
|
|
1520
|
+
.o-input.o-input-group:not(.o-input-long):has(> .o-input-addon[data-side="end"]:not(:where([data-flush])) > .o-button-2xs:last-child) { padding-right: calc(var(--vk-spacing) * 9 / 4); }
|
|
1521
|
+
.o-input.o-input-group:not(.o-input-long):has(> .o-input-addon[data-side="start"]:not(:where([data-flush])) > .o-button-2xs:first-child) { padding-left: calc(var(--vk-spacing) * 9 / 4); }
|
|
1522
|
+
/* A button beside the value takes the value's 16px words; a row above or below long text keeps the Button's sizes.
|
|
1523
|
+
(0,2,0): over the Button's sizes, under a Button's own words look (0,3,0); the editors' own phone rules are unlayered. */
|
|
1524
|
+
:where(.o-input.o-input-group > .o-input-addon:is([data-side="start"], [data-side="end"]):not(:where([data-flush]))) > .o-button.o-button { font-size: var(--vk-font-size-base); }
|
|
1525
|
+
}
|
|
1526
|
+
/* Its focus ring hugs it, so the ring stays inside the field's edge. */
|
|
1527
|
+
.o-input.o-input-group > .o-input-addon:not(:where([data-flush])) > .o-button:is(:focus-visible, [data-force="focus"]) { outline-offset: 0; }
|
|
1528
|
+
.o-input.o-input-group > .o-input-addon:not(:where([data-flush])) > .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-md); }
|
|
1529
|
+
:is([data-input-radius="xs"] :where(.o-input:not([data-input-own], [data-input-radius="xs"] [data-input-radius]:not([data-input-radius="xs"]) *)), :where(.o-input[data-input-own][data-input-radius="xs"])).o-input.o-input-group > .o-input-addon:not(:where([data-flush])) > .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])),
|
|
1530
|
+
:is([data-input-radius="sm"] :where(.o-input:not([data-input-own], [data-input-radius="sm"] [data-input-radius]:not([data-input-radius="sm"]) *)), :where(.o-input[data-input-own][data-input-radius="sm"])).o-input.o-input-group > .o-input-addon:not(:where([data-flush])) > .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-xs); }
|
|
1531
|
+
:is([data-input-radius="md"] :where(.o-input:not([data-input-own], [data-input-radius="md"] [data-input-radius]:not([data-input-radius="md"]) *)), :where(.o-input[data-input-own][data-input-radius="md"])).o-input.o-input-group > .o-input-addon:not(:where([data-flush])) > .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-sm); }
|
|
1532
|
+
:is([data-input-radius="xl"] :where(.o-input:not([data-input-own], [data-input-radius="xl"] [data-input-radius]:not([data-input-radius="xl"]) *)), :where(.o-input[data-input-own][data-input-radius="xl"])).o-input.o-input-group > .o-input-addon:not(:where([data-flush])) > .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-lg); }
|
|
1533
|
+
:is([data-input-radius="2xl"] :where(.o-input:not([data-input-own], [data-input-radius="2xl"] [data-input-radius]:not([data-input-radius="2xl"]) *)), :where(.o-input[data-input-own][data-input-radius="2xl"])).o-input.o-input-group > .o-input-addon:not(:where([data-flush])) > .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-xl); }
|
|
1534
|
+
:is([data-input-radius="full"]:not([data-input-style="underline"]) :where(.o-input:not([data-input-own], [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-radius]:not([data-input-radius="full"]) *, [data-input-radius="full"]:not([data-input-style="underline"]) [data-input-style="underline"] *)), :where(.o-input[data-input-own][data-input-radius="full"]:not([data-input-style="underline"]))).o-input.o-input-group:not(.o-input-long) > .o-input-addon:not(:where([data-flush])) > .o-button:not(.o-button-round, :where([data-button-own][data-button-radius])) { --button-r: var(--vk-radius-full); }
|
|
1535
|
+
|
|
1536
|
+
/* ── Long text that grows with its words, and is dragged taller too, as shadcn's Textarea,
|
|
1537
|
+
to ten lines (its padding and edge on top), then scrolls; maxLines sets another stop ─────────────────────────────────── */
|
|
1538
|
+
.o-input-lone.o-input-grow > textarea.o-input-control { field-sizing: content; max-height: calc(1lh * 10 + var(--vk-spacing) * 4 + var(--vk-border-width) * 2); }
|
|
1539
|
+
|
|
1540
|
+
/* Kept at its size: under the phone switch a box whose look or frame says so keeps 32 high and a line of 20, a Select's
|
|
1541
|
+
words 14, as the computer's form of a labelled box is shown on a phone's screen; what is typed stays 16 (its place's rule). */
|
|
1542
|
+
@media (width < 640px) {
|
|
1543
|
+
:is([data-input-keep="size"] .o-input, .o-input[data-input-keep="size"]).o-input.o-input:where(:not([data-computer-host], [data-computer-host] *)) { line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); }
|
|
1544
|
+
:is([data-input-keep="size"] .o-input, .o-input[data-input-keep="size"]).o-input.o-input:not(.o-input-long):where(:not([data-computer-host], [data-computer-host] *)) { height: calc(var(--vk-spacing) * 8); --input-side: calc(var(--vk-spacing) * 8); }
|
|
1545
|
+
:is([data-input-keep="size"] .o-input, .o-input[data-input-keep="size"]).o-input.o-select-field:where(:not([data-computer-host], [data-computer-host] *)) { font-size: var(--vk-font-size-sm); }
|
|
1546
|
+
}
|
|
1547
|
+
@container o-phone (width < 640px) {
|
|
1548
|
+
:is([data-input-keep="size"] .o-input, .o-input[data-input-keep="size"]).o-input.o-input { line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); }
|
|
1549
|
+
:is([data-input-keep="size"] .o-input, .o-input[data-input-keep="size"]).o-input.o-input:not(.o-input-long) { height: calc(var(--vk-spacing) * 8); --input-side: calc(var(--vk-spacing) * 8); }
|
|
1550
|
+
:is([data-input-keep="size"] .o-input, .o-input[data-input-keep="size"]).o-input.o-select-field { font-size: var(--vk-font-size-sm); }
|
|
1551
|
+
}
|
|
1552
|
+
/* A segment its owner says has the focus, or one a page shows typed into: the brand's tint. */
|
|
1553
|
+
.o-input-segment[data-on] { background-color: var(--vk-brand-subtler); }
|
|
1554
|
+
|
|
1555
|
+
/* ── Corner smoothing: following the token corner-smoothing (Round is the token at 0), a box that can
|
|
1556
|
+
hold a layer (o-smooth: an InputGroup in its field, the Number field's among them, and the Select's box) is drawn with the
|
|
1557
|
+
smooth outline (ViewKit's smooth.css) in every browser that knows shape(); one that doesn't keeps the corners above. The box is never
|
|
1558
|
+
clipped, since its lift, its focus glow and its error's glow stand outside it: every state and look above sets its paint as
|
|
1559
|
+
variables (--input-edge, --input-ground, its corner --input-r, its side --input-side: the least it stands at, long text
|
|
1560
|
+
two lines or its set lines, a Toolbar's line its own, so the outline never crosses itself), which its own ::before (the ground, clipped
|
|
1561
|
+
by the outline, Sunken's shadow inside it) and ::after (the edge, a ring along it, Thick's two lines) draw, its round part fitted
|
|
1562
|
+
to its side, min(r, side / (2 + 2 × amount)), so the whole smoothing stays. An underline, a box at Full and a box's own round
|
|
1563
|
+
corner draw themselves as before (--input-cut: none gives the box its paint back). A lone Input is a box round its control
|
|
1564
|
+
, and smooths as a group does. ─────────────── */
|
|
1565
|
+
.o-input.o-smooth { --smooth-amount: var(--vk-corner-smoothing); }
|
|
1566
|
+
/* The Input's own Corner smoothing: The app's, with nothing set, follows the token; Round paints every box as it
|
|
1567
|
+
stood before , a quarter circle, its layers off; Smooth smooths them at Apple's 70% (the outline's own amount) whatever the
|
|
1568
|
+
token says. */
|
|
1569
|
+
:is([data-input-smoothing="round"] :where(.o-input:not([data-input-own], [data-input-smoothing="round"] [data-input-smoothing]:not([data-input-smoothing="round"]) *)), :where(.o-input[data-input-own][data-input-smoothing="round"])).o-input { corner-shape: round; --input-cut: none; --input-shown-edge: var(--input-edge); --input-shown-ground: var(--input-ground); --input-shown-thick: var(--vk-border-width); --input-shown-sunk: var(--vk-shadow-key-pressed); }
|
|
1570
|
+
:is([data-input-smoothing="smooth"] :where(.o-input:not([data-input-own], [data-input-smoothing="smooth"] [data-input-smoothing]:not([data-input-smoothing="smooth"]) *)), :where(.o-input[data-input-own][data-input-smoothing="smooth"])).o-input.o-smooth { --smooth-amount: initial; }
|
|
1571
|
+
@supports (clip-path: shape(evenodd from 0 0, curve by 1px 1px with 1px 0 / 1px 0, close, move to 0 0, hline to 1px, close)) and (width: calc(tan(atan2(1px, 1px)) * 1px)) {
|
|
1572
|
+
/* Its own corner is its ground's: the fitted corner, --smooth-t, worked out once on the box (ViewKit's smooth.css), so its lift and
|
|
1573
|
+
its focus or error glow, box-shadows on the box, stand on its ground, a quarter circle in Chromium too (the squircle above would
|
|
1574
|
+
square its shadows past the outline). A lone Input's control (its autofill fill, its scrollbar) is a quarter circle inside the
|
|
1575
|
+
outline's edge: one as small as the fitted corner crosses the hairline where the bend starts, so its round part takes half the
|
|
1576
|
+
smoothing more (--input-inner; the outline itself at Round). Where the box paints itself (--input-given, from --input-thick a
|
|
1577
|
+
width: an underline, Full, a box's own round corner, the Input's own Round), both are its radius, as before. */
|
|
1578
|
+
.o-input.o-smooth {
|
|
1579
|
+
--input-fit: min(var(--input-r), var(--input-side) / (2 + 2 * var(--smooth-amount, 0.7))); --smooth-t: var(--input-fit); --smooth-side: var(--input-side);
|
|
1580
|
+
--input-thick: var(--input-shown-thick, 0px); --input-sunk: var(--input-shown-sunk, none);
|
|
1581
|
+
--input-given: clamp(0, tan(atan2(var(--input-thick) * 1000, 1px)), 1);
|
|
1582
|
+
--input-box-r: calc(var(--smooth-t) + (var(--input-r) - var(--smooth-t)) * var(--input-given));
|
|
1583
|
+
--input-inner: calc(var(--smooth-t) * (1 + var(--smooth-amount, 0.7) / 2) + (var(--input-r) - var(--smooth-t) * (1 + var(--smooth-amount, 0.7) / 2)) * var(--input-given));
|
|
1584
|
+
position: relative; isolation: isolate; border-color: var(--input-shown-edge, transparent); background-color: var(--input-shown-ground, transparent);
|
|
1585
|
+
corner-shape: round;
|
|
1586
|
+
}
|
|
1587
|
+
.o-input.o-smooth::before, .o-input.o-smooth::after {
|
|
1588
|
+
content: var(--input-cut, ""); position: absolute; inset: calc(var(--vk-border-width) * -1); z-index: -1; pointer-events: none;
|
|
1589
|
+
transition: background-color var(--vk-duration-fast) var(--vk-ease-out);
|
|
1590
|
+
}
|
|
1591
|
+
.o-input.o-smooth::before { border-radius: var(--input-fit); background-color: var(--input-ground); box-shadow: var(--input-inset); clip-path: shape(var(--smooth-outline)); }
|
|
1592
|
+
.o-input.o-smooth::after {
|
|
1593
|
+
--smooth-t: max(0px, var(--input-fit) - var(--input-edge-in)); --smooth-in: var(--input-edge-in);
|
|
1594
|
+
background-color: var(--input-edge); clip-path: shape(var(--smooth-ring));
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
@media (prefers-reduced-motion: reduce) { .o-input { transition: none; } .o-input.o-smooth::before, .o-input.o-smooth::after { transition: none; } }
|
|
1599
|
+
|
|
1600
|
+
/* ── A key: a 20px cap on the raised ground, half the radius's corners, its bottom edge twice as heavy so
|
|
1601
|
+
it reads as a key; its label in the quieter text colour ───────────────────────────────────────────── */
|
|
1602
|
+
.o-kbd {
|
|
1603
|
+
--kbd-edge: var(--vk-border-bold); --kbd-rr: min(var(--vk-radius-sm), var(--vk-spacing) * 2.5);
|
|
1604
|
+
display: inline-grid; place-items: center; box-sizing: border-box;
|
|
1605
|
+
min-width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 5); padding: 0 calc(var(--vk-spacing) * 1.25);
|
|
1606
|
+
border: var(--vk-border-width) solid var(--kbd-edge); border-bottom-width: calc(var(--vk-border-width) * 2);
|
|
1607
|
+
border-radius: var(--vk-radius-sm);
|
|
1608
|
+
background-color: var(--vk-raised); color: var(--vk-fg-subtle);
|
|
1609
|
+
font-family: var(--vk-font-sans); font-size: var(--vk-font-size-xs); line-height: 1; font-weight: var(--vk-font-weight-medium); font-variant-numeric: tabular-nums;
|
|
1610
|
+
vertical-align: calc(var(--vk-spacing) * 0.25);
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
/* ── Corner smoothing: The app's, with nothing set, follows --vk-corner-smoothing (Round is 0), Smooth and Round set the key
|
|
1614
|
+
apart. Under Smooth or The app's the key is drawn with the smooth outline (smooth.css), eased on its 20px side, in every
|
|
1615
|
+
browser that knows shape(); one that doesn't keeps the corners above, and so does Round. Nothing stands outside a key (no
|
|
1616
|
+
ring, no shadow, no pressing area), so it is clipped itself, and its edge, which the outline would cut, is a ring of its own
|
|
1617
|
+
along the curve (::before), over its border box, its foot twice as heavy. The Tooltip draws its own small key
|
|
1618
|
+
(tooltip.css), which stays as it draws: at 16px with a 3px corner a smooth one can't be told from a round one. ─── */
|
|
1619
|
+
.o-kbd { --smooth-amount: var(--vk-corner-smoothing); }
|
|
1620
|
+
[data-kbd-smoothing="smooth"] .o-kbd { --smooth-amount: initial; }
|
|
1621
|
+
@supports (clip-path: shape(evenodd from 0 0, curve by 1px 1px with 1px 0 / 1px 0, close, move to 0 0, hline to 1px, close)) and (width: calc(tan(atan2(1px, 1px)) * 1px)) {
|
|
1622
|
+
.o-kbd:not([data-kbd-smoothing="round"] *, .o-tooltip *) {
|
|
1623
|
+
--kbd-fit: min(var(--kbd-rr), var(--vk-spacing) * 5 / (2 + 2 * var(--smooth-amount, 0.7))); --smooth-t: var(--kbd-fit); --smooth-side: calc(var(--vk-spacing) * 5);
|
|
1624
|
+
position: relative; isolation: isolate; border-color: transparent; clip-path: shape(var(--smooth-outline));
|
|
1625
|
+
}
|
|
1626
|
+
.o-kbd:not([data-kbd-smoothing="round"] *, .o-tooltip *)::before {
|
|
1627
|
+
--smooth-t: max(0px, var(--kbd-fit) - var(--vk-border-width)); --smooth-b: max(0px, var(--kbd-fit) - var(--vk-border-width) * 2);
|
|
1628
|
+
--smooth-in: var(--vk-border-width); --smooth-foot: calc(100% - var(--vk-border-width));
|
|
1629
|
+
content: ""; position: absolute; inset: calc(var(--vk-border-width) * -1) calc(var(--vk-border-width) * -1) calc(var(--vk-border-width) * -2);
|
|
1630
|
+
z-index: -1; pointer-events: none; background-color: var(--kbd-edge); clip-path: shape(var(--smooth-ring));
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
/* ── Pressed together, side by side 3px apart; one after the other, "then" between them ──────────────── */
|
|
1635
|
+
.o-keys { display: inline-flex; align-items: center; gap: calc(var(--vk-spacing) * 0.75); font: inherit; }
|
|
1636
|
+
.o-keys-then { margin: 0 calc(var(--vk-spacing) * 1); font-size: var(--vk-font-size-xs); color: var(--vk-fg-subtlest); }
|
|
1637
|
+
|
|
1638
|
+
/* ── The list's options (a select's options, which name them): set on the
|
|
1639
|
+
frame around a list as custom properties, which every list inside it reads, the Select's list and the Menu's panel whole, and
|
|
1640
|
+
the Picker on a computer whole, its rows and its Popover's panel. Each value chooses a token. Unset, a list draws as built.
|
|
1641
|
+
data-list-smoothing smooth · round the smooth outline, or round
|
|
1642
|
+
data-list-edge subtle · outline · none border-subtle, border, or none; the dividers wear its colour,
|
|
1643
|
+
border-subtle with none (Mihai, 14 Nov 2026)
|
|
1644
|
+
data-list-shadow none · xs · sm · md · lg · xl the shadow tokens' steps
|
|
1645
|
+
data-list-padding 0 · 2 · 4 · 6 · 8 its rows' inset; at 0 they run edge to edge, square
|
|
1646
|
+
data-list-rows 28 · 30 · … · 40, by 2 a row's height on a computer; the phone's stays 44
|
|
1647
|
+
data-list-highlight fill · brand the overlay's hover, or the brand's tint
|
|
1648
|
+
data-list-row-corners input · 0 · xs … xl · full a row's corners: the Input box's, or a step of their own, the rows alone
|
|
1649
|
+
data-list-intensity 1 · 2 · 3 how strong the highlight is
|
|
1650
|
+
data-list-dividers words · rows · full a line between groups: inset (the default) from
|
|
1651
|
+
where a row's content starts (its mark, or its words), as far in at the end,
|
|
1652
|
+
as wide as the rows, or edge to edge; every line inside a floating surface
|
|
1653
|
+
alike, the popup line's, the Date editor's and the Values editor's
|
|
1654
|
+
Its corners follow the Input's (Mihai, 14 Nov 2026): a row takes the Input box's corners whatever the padding, and the panel the
|
|
1655
|
+
box's plus its padding, so the two curves run alike; a Pill box's rows are round at their ends, its panel 2xl and the padding.
|
|
1656
|
+
Row corners moves the rows alone: the panel keeps the box's corners and its padding (Mihai, 14 Nov 2026). ── */
|
|
1657
|
+
[data-input-radius="xs"] { --list-box-r: var(--vk-radius-xs); --list-box-pill: 0; }
|
|
1658
|
+
[data-input-radius="sm"] { --list-box-r: var(--vk-radius-sm); --list-box-pill: 0; }
|
|
1659
|
+
[data-input-radius="md"] { --list-box-r: var(--vk-radius-md); --list-box-pill: 0; }
|
|
1660
|
+
[data-input-radius="lg"] { --list-box-r: var(--vk-radius-lg); --list-box-pill: 0; }
|
|
1661
|
+
[data-input-radius="xl"] { --list-box-r: var(--vk-radius-xl); --list-box-pill: 0; }
|
|
1662
|
+
[data-input-radius="2xl"] { --list-box-r: var(--vk-radius-2xl); --list-box-pill: 0; }
|
|
1663
|
+
/* A Pill box's rows are pills, and its panel keeps its 2xl (--list-box-pill says so, under the list's Smooth). */
|
|
1664
|
+
[data-input-radius="full"] { --list-box-r: var(--vk-radius-2xl); --list-box-pill: 1; }
|
|
1665
|
+
[data-list-edge="outline"] { --list-edge: var(--vk-border); --list-sep-colour: var(--vk-border); }
|
|
1666
|
+
[data-list-edge="none"] { --list-edge: transparent; }
|
|
1667
|
+
[data-list-shadow="none"] { --list-shadow: none; }
|
|
1668
|
+
[data-list-shadow="xs"] { --list-shadow: var(--vk-shadow-xs); }
|
|
1669
|
+
[data-list-shadow="sm"] { --list-shadow: var(--vk-shadow-sm); }
|
|
1670
|
+
[data-list-shadow="lg"] { --list-shadow: var(--vk-shadow-lg); }
|
|
1671
|
+
[data-list-shadow="xl"] { --list-shadow: var(--vk-shadow-xl); }
|
|
1672
|
+
[data-list-padding="0"] { --list-pad: 0px; --list-row-corners: 0px; --list-row-corners-pill: 0; }
|
|
1673
|
+
[data-list-padding="2"] { --list-pad: calc(var(--vk-spacing) * 0.5); }
|
|
1674
|
+
[data-list-padding="6"] { --list-pad: calc(var(--vk-spacing) * 1.5); }
|
|
1675
|
+
[data-list-padding="8"] { --list-pad: calc(var(--vk-spacing) * 2); }
|
|
1676
|
+
[data-list-rows="28"] { --list-row-h: calc(var(--vk-spacing) * 7); --list-row-pad: var(--vk-spacing); }
|
|
1677
|
+
[data-list-rows="30"] { --list-row-h: calc(var(--vk-spacing) * 7.5); }
|
|
1678
|
+
[data-list-rows="34"] { --list-row-h: calc(var(--vk-spacing) * 8.5); }
|
|
1679
|
+
[data-list-rows="36"] { --list-row-h: calc(var(--vk-spacing) * 9); }
|
|
1680
|
+
[data-list-rows="38"] { --list-row-h: calc(var(--vk-spacing) * 9.5); }
|
|
1681
|
+
[data-list-rows="40"] { --list-row-h: calc(var(--vk-spacing) * 10); }
|
|
1682
|
+
[data-list-highlight="brand"] { --list-highlight: var(--list-hl-brand, var(--vk-brand-subtlest)); }
|
|
1683
|
+
/* The Dividers as two numbers on the frame, so the nearest frame's pick wins, for every line that reaches by them:
|
|
1684
|
+
--dividers-words 1 where a line stands in by a row's 8 (Inset), --dividers-rows 1 where it stands in by what its holder pads. */
|
|
1685
|
+
[data-list-dividers="words"] { --dividers-words: 1; --dividers-rows: 1; }
|
|
1686
|
+
[data-list-dividers="rows"] { --list-sep-inset: 0px; --dividers-words: 0; --dividers-rows: 1; }
|
|
1687
|
+
[data-list-dividers="full"] { --list-sep-inset: calc(-1 * var(--list-pad, var(--vk-spacing))); --dividers-words: 0; --dividers-rows: 0; }
|
|
1688
|
+
[data-list-row-corners="0"] { --list-row-r: 0px; --list-row-pill: 0; }
|
|
1689
|
+
[data-list-row-corners="xs"] { --list-row-r: var(--vk-radius-xs); --list-row-pill: 0; }
|
|
1690
|
+
[data-list-row-corners="sm"] { --list-row-r: var(--vk-radius-sm); --list-row-pill: 0; }
|
|
1691
|
+
[data-list-row-corners="md"] { --list-row-r: var(--vk-radius-md); --list-row-pill: 0; }
|
|
1692
|
+
[data-list-row-corners="lg"] { --list-row-r: var(--vk-radius-lg); --list-row-pill: 0; }
|
|
1693
|
+
[data-list-row-corners="xl"] { --list-row-r: var(--vk-radius-xl); --list-row-pill: 0; }
|
|
1694
|
+
[data-list-row-corners="full"] { --list-row-r: var(--vk-radius-full); --list-row-pill: 1; }
|
|
1695
|
+
[data-list-intensity="2"] { --list-hl-grey: var(--vk-overlay-pressed); --list-hl-brand: var(--vk-brand-subtler); }
|
|
1696
|
+
[data-list-intensity="3"] { --list-hl-grey: var(--vk-overlay-selected); --list-hl-brand: var(--vk-brand-subtler-hovered); }
|
|
1697
|
+
|
|
1698
|
+
/* ── The panel: on the overlay's ground, a soft edge, the Input box's corners and its padding round them, 4px in; it fades in and drops 4px ─ */
|
|
1699
|
+
/* Its lines' colour, --divider-colour, its Edge's (border-subtle with none): what it holds draws its lines in it. */
|
|
1700
|
+
.o-list {
|
|
1701
|
+
--list-row-corners-in: var(--list-row-corners, var(--list-row-r, var(--list-box-r, var(--vk-radius-lg))));
|
|
1702
|
+
--divider-colour: var(--list-sep-colour, var(--vk-border-subtle));
|
|
1703
|
+
box-sizing: border-box; display: grid; padding: var(--list-pad, var(--vk-spacing));
|
|
1704
|
+
border: var(--vk-border-width) solid var(--list-edge, var(--vk-border-subtle)); border-radius: calc(min(var(--list-box-r, var(--vk-radius-lg)), var(--vk-radius-2xl)) + var(--list-pad, var(--vk-spacing)));
|
|
1705
|
+
background-color: var(--vk-overlay); box-shadow: var(--list-shadow, var(--vk-shadow-md)); color: var(--vk-fg); outline: none;
|
|
1706
|
+
transition: opacity var(--vk-duration-fast) var(--vk-ease-out), translate var(--vk-duration-fast) var(--vk-ease-out);
|
|
1707
|
+
}
|
|
1708
|
+
.o-list:is([data-starting-style], [data-ending-style]) { opacity: 0; translate: 0 calc(var(--vk-spacing) * -1); }
|
|
1709
|
+
.o-list-positioner { z-index: var(--vk-layer-popup); outline: none; }
|
|
1710
|
+
|
|
1711
|
+
/* ── A row: 32px, the radius's corners, text-sm; under the pointer or the keyboard the overlay's hover ─ */
|
|
1712
|
+
.o-list-row {
|
|
1713
|
+
display: flex; align-items: center; gap: calc(var(--vk-spacing) * 2); box-sizing: border-box; width: 100%; min-height: var(--list-row-h, calc(var(--vk-spacing) * 8));
|
|
1714
|
+
margin: 0; padding: var(--list-row-pad, calc(var(--vk-spacing) * 1.25)) calc(var(--vk-spacing) * 2); border: 0; border-radius: var(--list-row-rad, var(--vk-radius-lg));
|
|
1715
|
+
background-color: transparent; color: var(--vk-fg); font: inherit; font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm));
|
|
1716
|
+
text-align: left; cursor: pointer; outline: none; user-select: none; -webkit-tap-highlight-color: transparent;
|
|
1717
|
+
}
|
|
1718
|
+
/* Inside a list's panel its corners are the Input box's (square at padding 0); elsewhere (the Picker's, in its shell) the radius's. */
|
|
1719
|
+
.o-list .o-list-row { --list-row-rad: var(--list-row-corners-in); --list-row-pill-in: var(--list-row-corners-pill, var(--list-row-pill, var(--list-box-pill, 0))); }
|
|
1720
|
+
.o-list-row:is([data-highlighted], [data-popup-open], [data-force="hover"]) { background-color: var(--list-highlight, var(--list-hl-grey, var(--vk-overlay-hovered))); }
|
|
1721
|
+
/* A row that can't be picked: greyed, no fill under the pointer. */
|
|
1722
|
+
.o-list-row[data-disabled] { color: var(--vk-fg-disabled); cursor: not-allowed; }
|
|
1723
|
+
.o-list-row[data-disabled] :is(.o-list-line, .o-list-you) { color: var(--vk-fg-disabled); }
|
|
1724
|
+
.o-list-row[data-disabled]:is([data-highlighted], [data-force="hover"]) { background-color: transparent; }
|
|
1725
|
+
.o-list-text { flex: 1; min-width: 0; display: grid; gap: var(--vk-border-width); }
|
|
1726
|
+
.o-list-main { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1727
|
+
.o-list-line { font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs)); color: var(--vk-fg-subtle); }
|
|
1728
|
+
.o-list-you { margin-left: calc(var(--vk-spacing) * 1); font-size: var(--vk-font-size-xs); color: var(--vk-fg-subtle); }
|
|
1729
|
+
/* The chosen row's tick, at the end. */
|
|
1730
|
+
.o-list-tick { flex: none; width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); fill: none; stroke: var(--vk-fg); stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
|
|
1731
|
+
.o-list-row:is([data-selected], [data-checked], [aria-selected="true"], [aria-checked="true"]) .o-list-tick { visibility: visible; }
|
|
1732
|
+
/* Several at once: the Checkbox's own box before each row (CheckboxMark, checkbox.css). */
|
|
1733
|
+
/* A row that only clears, and one that creates: their icon and words quieter. */
|
|
1734
|
+
.o-list-row.o-list-clear .o-list-main { color: var(--vk-fg-subtle); }
|
|
1735
|
+
.o-list-plus { flex: none; width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); fill: none; stroke: var(--vk-fg-subtle); stroke-linecap: round; }
|
|
1736
|
+
|
|
1737
|
+
/* ── A heading over a group, and a line between groups, in the colour of the surface it stands in ───────────────────────────────────────────── */
|
|
1738
|
+
.o-list-heading { margin: 0; padding: calc(var(--vk-spacing) * 2) calc(var(--vk-spacing) * 2) calc(var(--vk-spacing) * 1); font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs)); font-weight: var(--vk-font-weight-medium); color: var(--vk-fg-subtle); }
|
|
1739
|
+
/* In a Popover it stands in from the Popover's padding, which may not be the list's: Full width reaches its edge, inside it. */
|
|
1740
|
+
.o-popover .o-list-sep { margin-inline: calc(var(--vk-spacing) * 2 * var(--dividers-words, 1) - (1 - var(--dividers-rows, 1)) * var(--divider-reach, 0px)); }
|
|
1741
|
+
.o-list-sep { height: var(--vk-border-width); margin: calc(var(--vk-spacing) * 1) var(--list-sep-inset, calc(var(--vk-spacing) * 2)); border: 0; background-color: var(--divider-colour, var(--list-sep-colour, var(--vk-border-subtle))); }
|
|
1742
|
+
|
|
1743
|
+
/* ── On the phone a row is 44px, so a finger finds it ──────────────────────────────────────────────── */
|
|
1744
|
+
@media (width < 640px) {
|
|
1745
|
+
.o-list-row:where(:not([data-computer-host], [data-computer-host] *)) { min-height: calc(var(--vk-spacing) * 11); }
|
|
1746
|
+
}
|
|
1747
|
+
@container o-phone (width < 640px) {
|
|
1748
|
+
.o-list-row { min-height: calc(var(--vk-spacing) * 11); }
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
/* ── Corner smoothing: the list's own (data-list-smoothing; Smooth, with nothing set, or Round), never the token. Under
|
|
1752
|
+
Smooth the panel and each row are drawn with the smooth outline (smooth.css) in every browser that knows shape(); one
|
|
1753
|
+
that doesn't keeps the corners above, and Round paints them as before. A row's side is its height (32, or the list's Row height;
|
|
1754
|
+
44 on a phone), its round part fitted to it as a control's is (side / 3.4, Mihai, 16 Nov 2026), so the whole bend fits; a row
|
|
1755
|
+
of a Pill box or at Row corners Full is a pill, drawn at no smoothing (--list-row-pill-in, set beside the corners it
|
|
1756
|
+
follows, as its corners are). Nothing stands outside a
|
|
1757
|
+
row, so it is clipped itself, its highlight with it. The panel casts a shadow, so its edge (::before, over its border box) and
|
|
1758
|
+
ground (::after, over its padding box, its corner a line smaller) are layers inside it, clipped as the Popover's are, its shadow on itself; its corners follow its rows' (outer follows inner): the
|
|
1759
|
+
Input box's corners fitted to a row, plus the padding, so the two curves run alike (13.4 at the defaults), eased on its own
|
|
1760
|
+
shortest side, one row; a Pill box's panel keeps its 2xl and the padding, held to half that side. The amount is set on what
|
|
1761
|
+
draws the outline (the panel, a row), never declared as the token. ── */
|
|
1762
|
+
@supports (clip-path: shape(evenodd from 0 0, curve by 1px 1px with 1px 0 / 1px 0, close, move to 0 0, hline to 1px, close)) and (width: calc(tan(atan2(1px, 1px)) * 1px)) {
|
|
1763
|
+
.o-list, .o-list-row, .o-popover { --list-row-side: var(--list-row-h, calc(var(--vk-spacing) * 8)); }
|
|
1764
|
+
@media (width < 640px) { .o-list:where(:not([data-computer-host], [data-computer-host] *)), .o-list-row:where(:not([data-computer-host], [data-computer-host] *)), .o-popover:where(:not([data-computer-host], [data-computer-host] *)) { --list-row-side: calc(var(--vk-spacing) * 11); } }
|
|
1765
|
+
@container o-phone (width < 640px) { .o-list, .o-list-row, .o-popover { --list-row-side: calc(var(--vk-spacing) * 11); } }
|
|
1766
|
+
.o-list:not([data-list-smoothing="round"], [data-list-smoothing="round"] *),
|
|
1767
|
+
.o-popover:has(.o-picker[data-picker-form="computer"]):not(:has([data-kit$="-editor"]), [data-list-smoothing="round"] *) {
|
|
1768
|
+
--list-box-cap: min(var(--list-box-r, var(--vk-radius-lg)), var(--vk-radius-2xl));
|
|
1769
|
+
--list-k: calc(1 - var(--list-box-pill, 0));
|
|
1770
|
+
--list-box-fit: min(var(--list-box-cap), var(--list-row-side) / 3.4);
|
|
1771
|
+
--list-panel-r: calc(var(--list-box-cap) + (var(--list-box-fit) - var(--list-box-cap)) * var(--list-k) + var(--list-pad, var(--vk-spacing)));
|
|
1772
|
+
--list-panel-side: calc(var(--list-row-side) + var(--list-pad, var(--vk-spacing)) * 2 + var(--vk-border-width) * 2);
|
|
1773
|
+
}
|
|
1774
|
+
/* The panel itself; the Picker's in its Popover draws the same panel from the same numbers. */
|
|
1775
|
+
.o-list:not([data-list-smoothing="round"], [data-list-smoothing="round"] *) {
|
|
1776
|
+
--smooth-amount: initial; --smooth-t: min(var(--list-panel-r), var(--list-panel-side) / 2); --smooth-side: var(--list-panel-side);
|
|
1777
|
+
position: relative; isolation: isolate; border-radius: var(--smooth-t); border-color: transparent; background-color: transparent;
|
|
1778
|
+
}
|
|
1779
|
+
.o-list:not([data-list-smoothing="round"], [data-list-smoothing="round"] *)::before,
|
|
1780
|
+
.o-list:not([data-list-smoothing="round"], [data-list-smoothing="round"] *)::after {
|
|
1781
|
+
content: ""; position: absolute; inset: calc(var(--vk-border-width) * -1); z-index: -1; pointer-events: none; border-radius: inherit;
|
|
1782
|
+
}
|
|
1783
|
+
.o-list:not([data-list-smoothing="round"], [data-list-smoothing="round"] *)::before { background-color: var(--vk-overlay); background-image: linear-gradient(var(--list-edge, var(--vk-border-subtle)), var(--list-edge, var(--vk-border-subtle))); clip-path: shape(var(--smooth-outline)); }
|
|
1784
|
+
.o-list:not([data-list-smoothing="round"], [data-list-smoothing="round"] *)::after {
|
|
1785
|
+
--smooth-t: max(0px, min(var(--list-panel-r), var(--list-panel-side) / 2) - var(--vk-border-width));
|
|
1786
|
+
inset: 0; border-radius: calc(min(var(--list-panel-r), var(--list-panel-side) / 2) - var(--vk-border-width)); background-color: var(--vk-overlay); clip-path: shape(var(--smooth-outline));
|
|
1787
|
+
}
|
|
1788
|
+
/* At padding 0 its rows run to its edge, square: the first and the last row it holds take its corner a line in on their outer
|
|
1789
|
+
side, and what the Select's list holds (the Picker, its rows scrolling) is cut by its outline a line in, as hiding what
|
|
1790
|
+
overflows cut it at its round corner before. */
|
|
1791
|
+
[data-list-padding="0"] .o-list:not([data-list-smoothing="round"], [data-list-smoothing="round"] *) > .o-list-row:first-child:not(:last-child),
|
|
1792
|
+
[data-list-padding="0"] .o-list:not([data-list-smoothing="round"], [data-list-smoothing="round"] *) > .o-menu-list-scroll > .o-list-row:first-child:not(:last-child) {
|
|
1793
|
+
--smooth-t: max(0px, min(var(--list-panel-r), var(--list-panel-side) / 2) - var(--vk-border-width)); --smooth-b: var(--list-row-fit);
|
|
1794
|
+
}
|
|
1795
|
+
[data-list-padding="0"] .o-list:not([data-list-smoothing="round"], [data-list-smoothing="round"] *) > .o-list-row:last-child:not(:first-child),
|
|
1796
|
+
[data-list-padding="0"] .o-list:not([data-list-smoothing="round"], [data-list-smoothing="round"] *) > .o-menu-list-scroll > .o-list-row:last-child:not(:first-child) {
|
|
1797
|
+
--smooth-b: max(0px, min(var(--list-panel-r), var(--list-panel-side) / 2) - var(--vk-border-width));
|
|
1798
|
+
}
|
|
1799
|
+
[data-list-padding="0"] .o-list:not([data-list-smoothing="round"], [data-list-smoothing="round"] *) > .o-list-row:only-child,
|
|
1800
|
+
[data-list-padding="0"] .o-list:not([data-list-smoothing="round"], [data-list-smoothing="round"] *) > .o-menu-list-scroll > .o-list-row:only-child {
|
|
1801
|
+
--smooth-t: max(0px, min(var(--list-panel-r), var(--list-panel-side) / 2) - var(--vk-border-width));
|
|
1802
|
+
}
|
|
1803
|
+
[data-list-padding="0"] .o-list:not([data-list-smoothing="round"], [data-list-smoothing="round"] *) > .o-picker {
|
|
1804
|
+
--smooth-amount: initial; --smooth-t: max(0px, min(var(--list-panel-r), var(--list-panel-side) / 2) - var(--vk-border-width));
|
|
1805
|
+
--smooth-side: calc(var(--list-panel-side) - var(--vk-border-width) * 2); clip-path: shape(var(--smooth-outline));
|
|
1806
|
+
}
|
|
1807
|
+
.o-list-row:not([data-list-smoothing="round"] *) {
|
|
1808
|
+
--smooth-amount: calc(0.7 * (1 - var(--list-row-pill-in, 0)));
|
|
1809
|
+
--list-row-fit: min(var(--list-row-rad, var(--vk-radius-lg)) + var(--list-row-pill-in, 0) * 1000px, var(--list-row-side) / (2 + 2 * var(--smooth-amount)));
|
|
1810
|
+
--smooth-t: var(--list-row-fit); --smooth-side: var(--list-row-side);
|
|
1811
|
+
clip-path: shape(var(--smooth-outline));
|
|
1812
|
+
}
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
@media (prefers-reduced-motion: reduce) { .o-list { transition: none; } }
|
|
1816
|
+
|
|
1817
|
+
.o-menu-list {
|
|
1818
|
+
--menu-list-row: calc(var(--vk-spacing) * 13); --menu-list-corners: var(--vk-radius-xl); --menu-list-inset: calc(var(--vk-spacing) * 4);
|
|
1819
|
+
display: grid; gap: calc(var(--vk-spacing) * 3); min-width: 0;
|
|
1820
|
+
}
|
|
1821
|
+
[data-menu-list-height="48"] .o-menu-list { --menu-list-row: calc(var(--vk-spacing) * 12); }
|
|
1822
|
+
[data-menu-list-height="56"] .o-menu-list { --menu-list-row: calc(var(--vk-spacing) * 14); }
|
|
1823
|
+
[data-menu-list-corners="lg"] .o-menu-list { --menu-list-corners: var(--vk-radius-lg); }
|
|
1824
|
+
[data-menu-list-corners="2xl"] .o-menu-list { --menu-list-corners: var(--vk-radius-2xl); }
|
|
1825
|
+
|
|
1826
|
+
/* ── A section: rows that belong together, on a card ─────────────────────────────────────────────────────────────── */
|
|
1827
|
+
.o-menu-list-section { display: grid; min-width: 0; overflow: hidden; border-radius: var(--menu-list-corners); background-color: var(--vk-overlay-card); }
|
|
1828
|
+
|
|
1829
|
+
/* ── A group or a pick under its heading: the list's heading over its card, as on a computer, at a phone's size: 14, 4 in
|
|
1830
|
+
from the card's edge, 6 over the card. Under Plain, where nothing marks the card's edge, it stands where its
|
|
1831
|
+
rows' icons start. Under Words the card floats on the dim, so its heading stands on the card's own ground, over its rows, centred
|
|
1832
|
+
as they are, a line under it, as a phone's action sheet holds its title. ─────────────────────────────────────────────────── */
|
|
1833
|
+
.o-menu-list-group { display: grid; gap: calc(var(--vk-spacing) * 1.5); min-width: 0; }
|
|
1834
|
+
.o-menu-list-group > .o-list-heading { padding: 0 calc(var(--vk-spacing) * 1); font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); }
|
|
1835
|
+
[data-menu-list-rows="plain"] .o-menu-list-group > .o-list-heading { padding-inline: calc(var(--vk-spacing) * 2); }
|
|
1836
|
+
[data-menu-list-rows="words"] .o-menu-list-group { gap: 0; overflow: hidden; border-radius: var(--vk-radius-2xl); background-color: var(--vk-overlay); box-shadow: var(--vk-shadow-2xl); }
|
|
1837
|
+
[data-menu-list-rows="words"] .o-menu-list-group > .o-list-heading { padding: calc(var(--vk-spacing) * 3) calc(var(--vk-spacing) * 4); border-bottom: var(--vk-border-width) solid var(--vk-border); text-align: center; }
|
|
1838
|
+
[data-menu-list-rows="words"] .o-menu-list-group > .o-menu-list-section { border-radius: 0; box-shadow: none; }
|
|
1839
|
+
|
|
1840
|
+
/* ── A row: an icon, its name, and on its right a value, an arrow, a tick or a switch ────────────────────────────── */
|
|
1841
|
+
.o-menu-list-row {
|
|
1842
|
+
--menu-list-line: var(--menu-list-inset, calc(var(--vk-spacing) * 4));
|
|
1843
|
+
position: relative; display: flex; align-items: center; gap: calc(var(--vk-spacing) * 3); box-sizing: border-box; width: 100%; min-width: 0; min-height: var(--menu-list-row, calc(var(--vk-spacing) * 13));
|
|
1844
|
+
margin: 0; padding: calc(var(--vk-spacing) * 1.5) var(--menu-list-inset, calc(var(--vk-spacing) * 4)); border: 0; background: none; color: var(--vk-fg);
|
|
1845
|
+
font: inherit; font-size: var(--vk-font-size-base); line-height: calc(var(--vk-font-size-base) * var(--vk-line-height-base)); text-align: start; text-decoration: none;
|
|
1846
|
+
cursor: pointer; outline: none; user-select: none; -webkit-tap-highlight-color: transparent;
|
|
1847
|
+
}
|
|
1848
|
+
.o-menu-list-row:has(> .o-menu-list-mark) { --menu-list-line: calc(var(--menu-list-inset) + var(--vk-spacing) * 8.5); }
|
|
1849
|
+
/* A list holding a person's 32px face (the Avatar stack's people on a phone): every row's mark is 32 wide, the face whole
|
|
1850
|
+
in it and an icon centred at its own 22, so every name stands 12px after it and the line starts at the words. The list sits in
|
|
1851
|
+
:where(), so each rule weighs what it overrides and Full lines, below, still wins. */
|
|
1852
|
+
:where(.o-menu-list:has(.o-menu-list-row > .o-menu-list-mark > :is(.o-avatar:not(.o-avatar-xs, .o-avatar-sm, .o-avatar-lg, .o-avatar-xl), .o-avatar-badged[data-size="32"]))) .o-menu-list-row:has(> .o-menu-list-mark) { --menu-list-line: calc(var(--menu-list-inset) + var(--vk-spacing) * 11); }
|
|
1853
|
+
:where(.o-menu-list:has(.o-menu-list-row > .o-menu-list-mark > :is(.o-avatar:not(.o-avatar-xs, .o-avatar-sm, .o-avatar-lg, .o-avatar-xl), .o-avatar-badged[data-size="32"]))) .o-menu-list-row > .o-menu-list-mark { width: calc(var(--vk-spacing) * 8); }
|
|
1854
|
+
:where(.o-menu-list:has(.o-menu-list-row > .o-menu-list-mark > :is(.o-avatar:not(.o-avatar-xs, .o-avatar-sm, .o-avatar-lg, .o-avatar-xl), .o-avatar-badged[data-size="32"]))) .o-menu-list-row > .o-menu-list-mark:has(> :is(.o-avatar:not(.o-avatar-xs, .o-avatar-sm, .o-avatar-lg, .o-avatar-xl), .o-avatar-badged[data-size="32"])) { height: calc(var(--vk-spacing) * 8); }
|
|
1855
|
+
:where(.o-menu-list:has(.o-menu-list-row > .o-menu-list-mark > :is(.o-avatar:not(.o-avatar-xs, .o-avatar-sm, .o-avatar-lg, .o-avatar-xl), .o-avatar-badged[data-size="32"]))) .o-menu-list-row > .o-menu-list-mark > svg { width: calc(var(--vk-spacing) * 5.5); }
|
|
1856
|
+
.o-menu-list-row:focus-visible { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: calc(-1 * var(--vk-focus-width)); }
|
|
1857
|
+
.o-menu-list-row:active:not(:disabled, [data-disabled]) { background-color: var(--vk-overlay-card-pressed); }
|
|
1858
|
+
.o-menu-list-row.o-menu-list-danger { color: var(--vk-danger); }
|
|
1859
|
+
.o-menu-list-row:is(:disabled, [data-disabled]) { color: var(--vk-fg-disabled); cursor: not-allowed; }
|
|
1860
|
+
|
|
1861
|
+
.o-menu-list-mark { flex: none; display: grid; place-items: center; width: calc(var(--vk-spacing) * 5.5); height: calc(var(--vk-spacing) * 5.5); }
|
|
1862
|
+
.o-menu-list-mark > svg { width: 100%; height: 100%; }
|
|
1863
|
+
.o-menu-list-name { flex: 1; display: grid; min-width: 0; }
|
|
1864
|
+
.o-menu-list-name > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1865
|
+
.o-menu-list-name > .o-menu-list-note { font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); white-space: normal; color: var(--vk-fg-subtle); }
|
|
1866
|
+
.o-menu-list-row:is(:disabled, [data-disabled]) .o-menu-list-note { color: var(--vk-fg-disabled); }
|
|
1867
|
+
.o-menu-list-value { flex: none; max-width: calc(var(--vk-spacing) * 38); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); color: var(--vk-fg-subtle); }
|
|
1868
|
+
/* What stands on its right, a count or a Tag: a phone's value size, the Menu's count's colour and figures. */
|
|
1869
|
+
.o-menu-list-end { flex: none; font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); color: var(--vk-fg-subtlest); font-variant-numeric: tabular-nums; }
|
|
1870
|
+
/* A level's detail in force: in the brand. */
|
|
1871
|
+
.o-menu-list-end[data-on] { color: var(--vk-fg-accent); }
|
|
1872
|
+
/* A tick as an eye, at its end: 20, open while on, crossed and quieter while off, greyed on a row that can't be used. */
|
|
1873
|
+
.o-menu-list-eye { flex: none; display: grid; place-items: center; color: var(--vk-fg-subtle); }
|
|
1874
|
+
.o-menu-list-eye > svg { width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 5); }
|
|
1875
|
+
.o-menu-list-eye:not([data-on]) { color: var(--vk-fg-subtlest); }
|
|
1876
|
+
.o-menu-list-row:is(:disabled, [data-disabled]) > .o-menu-list-eye { color: var(--vk-fg-disabled); }
|
|
1877
|
+
.o-menu-list-more { flex: none; width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); margin-right: calc(var(--vk-spacing) * -0.5); fill: none; stroke: var(--vk-fg-subtlest); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
|
|
1878
|
+
.o-menu-list-tick { flex: none; width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 5); fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
|
|
1879
|
+
|
|
1880
|
+
/* A row with a grip: the grip's dots at its start, 16, faint, as the grip draws them; the line starts at the words,
|
|
1881
|
+
after the grip's 16 and the gap's 12, and with a mark after its 22 and 12 more. A row is held, then dragged ("Hold, then drag",
|
|
1882
|
+
Mihai, 18 Nov 2026): nothing stops a swipe from scrolling before it is held, and a long press never opens the phone's own
|
|
1883
|
+
callout on it. Held, it stands over the others on the overlay's ground with the shadow, as the sort editor's held rule does. */
|
|
1884
|
+
.o-menu-list-grip { flex: none; width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--vk-fg-subtlest); }
|
|
1885
|
+
.o-menu-list [data-drag-start] { -webkit-touch-callout: none; }
|
|
1886
|
+
/* How long a finger rests on a row before it lifts, read by the script that lifts it. */
|
|
1887
|
+
.o-menu-list-row { --menu-list-hold: var(--vk-hold-delay); }
|
|
1888
|
+
.o-menu-list-grip[data-room] { visibility: hidden; }
|
|
1889
|
+
.o-menu-list-row:has(> .o-menu-list-grip) { --menu-list-line: calc(var(--menu-list-inset) + var(--vk-spacing) * 7); }
|
|
1890
|
+
.o-menu-list-row:has(> .o-menu-list-grip):has(> .o-menu-list-mark) { --menu-list-line: calc(var(--menu-list-inset) + var(--vk-spacing) * 15.5); }
|
|
1891
|
+
.o-menu-list-row[data-lifted] { z-index: var(--vk-layer-popup); background-color: var(--vk-overlay); box-shadow: var(--vk-shadow-lg); }
|
|
1892
|
+
.o-menu-list-row[data-lifted]::before, .o-menu-list-row[data-lifted] + .o-menu-list-row::before { opacity: 0; }
|
|
1893
|
+
|
|
1894
|
+
/* The line between two rows, starting at the words, which goes under a press, so a pressed row reads as one block. */
|
|
1895
|
+
.o-menu-list-row + .o-menu-list-row::before { content: ""; position: absolute; top: 0; right: 0; left: var(--menu-list-line); height: var(--vk-border-width); background-color: var(--vk-border-overlay-card); }
|
|
1896
|
+
.o-menu-list-row:active:not(:disabled, [data-disabled])::before, .o-menu-list-row:active:not(:disabled, [data-disabled]) + .o-menu-list-row::before { opacity: 0; }
|
|
1897
|
+
|
|
1898
|
+
/* Its lines the card's whole width, or none. */
|
|
1899
|
+
[data-menu-list-lines="none"] .o-menu-list-row::before { display: none; }
|
|
1900
|
+
|
|
1901
|
+
/* Plain: on the sheet, no ground. A row keeps its own padding, and its press reaches a little past the page's line. */
|
|
1902
|
+
[data-menu-list-rows="plain"] .o-menu-list-section { margin-inline: calc(var(--vk-spacing) * -2); overflow: visible; border-radius: 0; background-color: transparent; }
|
|
1903
|
+
[data-menu-list-rows="plain"] :where(.o-menu-list) .o-menu-list-row { border-radius: var(--vk-radius-lg); }
|
|
1904
|
+
[data-menu-list-rows="plain"] :where(.o-menu-list) .o-menu-list-row:active:not(:disabled, [data-disabled]) { background-color: var(--vk-overlay-pressed); }
|
|
1905
|
+
|
|
1906
|
+
/* Joined: each row a tile, a hair apart, its section's two ends rounded. */
|
|
1907
|
+
[data-menu-list-rows="joined"] .o-menu-list-section { gap: calc(var(--vk-spacing) * 0.75); overflow: visible; border-radius: 0; background-color: transparent; }
|
|
1908
|
+
[data-menu-list-rows="joined"] :where(.o-menu-list) .o-menu-list-row { border-radius: var(--vk-radius-sm); background-color: var(--vk-overlay-card); }
|
|
1909
|
+
[data-menu-list-rows="joined"] :where(.o-menu-list) .o-menu-list-row:first-child { border-start-start-radius: var(--menu-list-corners); border-start-end-radius: var(--menu-list-corners); }
|
|
1910
|
+
[data-menu-list-rows="joined"] :where(.o-menu-list) .o-menu-list-row:last-child { border-end-start-radius: var(--menu-list-corners); border-end-end-radius: var(--menu-list-corners); }
|
|
1911
|
+
[data-menu-list-rows="joined"] :where(.o-menu-list) .o-menu-list-row::before { display: none; }
|
|
1912
|
+
[data-menu-list-rows="joined"] :where(.o-menu-list) .o-menu-list-row:active:not(:disabled, [data-disabled]) { background-color: var(--vk-overlay-card-pressed); }
|
|
1913
|
+
|
|
1914
|
+
/* Words: centred, no icons, each section a card of its own on the sheet's ground. It stands on nothing, clear of the home bar: the
|
|
1915
|
+
sheet round it gives up its ground, its shadow and its handle. */
|
|
1916
|
+
[data-menu-list-rows="words"] .o-menu-list { gap: calc(var(--vk-spacing) * 2); }
|
|
1917
|
+
[data-menu-list-rows="words"] .o-menu-list-section { border-radius: var(--vk-radius-2xl); background-color: var(--vk-overlay); box-shadow: var(--vk-shadow-2xl); }
|
|
1918
|
+
[data-menu-list-rows="words"] :where(.o-menu-list) .o-menu-list-row { justify-content: center; text-align: center; font-weight: var(--vk-font-weight-medium); }
|
|
1919
|
+
[data-menu-list-rows="words"] :where(.o-menu-list) .o-menu-list-row::before { background-color: var(--vk-border); }
|
|
1920
|
+
[data-menu-list-rows="words"] :where(.o-menu-list) .o-menu-list-row:active:not(:disabled, [data-disabled]) { background-color: var(--vk-overlay-pressed); }
|
|
1921
|
+
[data-menu-list-rows="words"] :where(.o-menu-list) :is(.o-menu-list-mark, .o-menu-list-more, .o-menu-list-value, .o-menu-list-end) { display: none; }
|
|
1922
|
+
[data-menu-list-rows="words"] :where(.o-menu-list) .o-menu-list-name { flex: none; }
|
|
1923
|
+
[data-menu-list-rows="words"] .o-sheet.o-sheet:has(.o-menu-list) { background-color: transparent; box-shadow: none; }
|
|
1924
|
+
[data-menu-list-rows="words"] .o-sheet.o-sheet:has(.o-menu-list) > .o-sheet-cut { background-color: transparent; clip-path: none; overflow: visible; }
|
|
1925
|
+
[data-menu-list-rows="words"] .o-sheet:has(.o-menu-list) .o-sheet-handle { display: none; }
|
|
1926
|
+
[data-menu-list-rows="words"] .o-sheet:has(.o-menu-list) .o-sheet-body { padding: 0 0 max(calc(var(--vk-spacing) * 2), var(--sheet-home)); overflow: visible; }
|
|
1927
|
+
|
|
1928
|
+
[data-menu-list-lines="full"] .o-menu-list-row { --menu-list-line: 0px; }
|
|
1929
|
+
|
|
1930
|
+
/* ── The tiles: the few done most, side by side over its rows ────────────────────────────────────────────────────── */
|
|
1931
|
+
.o-menu-list-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: calc(var(--vk-spacing) * 2); min-width: 0; }
|
|
1932
|
+
.o-menu-list-tile {
|
|
1933
|
+
display: grid; justify-items: center; align-content: center; gap: calc(var(--vk-spacing) * 1); box-sizing: border-box; min-width: 0; min-height: calc(var(--vk-spacing) * 19);
|
|
1934
|
+
margin: 0; padding: calc(var(--vk-spacing) * 1); border: 0; border-radius: var(--menu-list-corners); background-color: var(--vk-overlay-card); color: var(--vk-fg);
|
|
1935
|
+
font: inherit; font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-spacing) * 4); text-align: center; cursor: pointer; outline: none; user-select: none; -webkit-tap-highlight-color: transparent;
|
|
1936
|
+
}
|
|
1937
|
+
.o-menu-list-tile:focus-visible { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: calc(-1 * var(--vk-focus-width)); }
|
|
1938
|
+
.o-menu-list-tile:active:not(:disabled, [data-disabled]) { background-color: var(--vk-overlay-card-pressed); }
|
|
1939
|
+
.o-menu-list-tile:is(:disabled, [data-disabled]) { color: var(--vk-fg-disabled); cursor: not-allowed; }
|
|
1940
|
+
/* Its other three ways (Mihai's picks, 16 Nov 2026): the tile stands clear and its mark
|
|
1941
|
+
is its ground, the icon alone in it, the name 6 under it, two lines at most. Wide, after ClickUp: a grey tile 56 tall, as wide as its
|
|
1942
|
+
column, at the Corners. Circle, after Google Maps: a grey circle 52. Colour, after WhatsApp's attach sheet: a circle 56 in a label colour
|
|
1943
|
+
by place, blue, amber, purple and green, the icon in text-inverse. A press shows on the mark, each colour's own pressed shade; a tile that
|
|
1944
|
+
can't be used stands on the neutral ground in the disabled ink. */
|
|
1945
|
+
:is([data-menu-list-tiles="wide"], [data-menu-list-tiles="circle"], [data-menu-list-tiles="colour"]) .o-menu-list-tile {
|
|
1946
|
+
align-content: start; gap: calc(var(--vk-spacing) * 1.5); min-height: 0; padding: 0; border-radius: 0; background-color: transparent;
|
|
1947
|
+
}
|
|
1948
|
+
:is([data-menu-list-tiles="wide"], [data-menu-list-tiles="circle"], [data-menu-list-tiles="colour"]) .o-menu-list-tile:active:not(:disabled, [data-disabled]) { background-color: transparent; }
|
|
1949
|
+
:is([data-menu-list-tiles="wide"], [data-menu-list-tiles="circle"], [data-menu-list-tiles="colour"]) .o-menu-list-tile:focus-visible { outline: none; }
|
|
1950
|
+
:is([data-menu-list-tiles="wide"], [data-menu-list-tiles="circle"], [data-menu-list-tiles="colour"]) .o-menu-list-tile:focus-visible > .o-menu-list-mark { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: calc(-1 * var(--vk-focus-width)); }
|
|
1951
|
+
:is([data-menu-list-tiles="wide"], [data-menu-list-tiles="circle"], [data-menu-list-tiles="colour"]) .o-menu-list-tile > .o-menu-list-mark { box-sizing: border-box; background-color: var(--vk-overlay-card); }
|
|
1952
|
+
:is([data-menu-list-tiles="wide"], [data-menu-list-tiles="circle"], [data-menu-list-tiles="colour"]) .o-menu-list-tile > .o-menu-list-mark > svg { width: calc(var(--vk-spacing) * 6); height: calc(var(--vk-spacing) * 6); }
|
|
1953
|
+
:is([data-menu-list-tiles="wide"], [data-menu-list-tiles="circle"], [data-menu-list-tiles="colour"]) .o-menu-list-tile:active:not(:disabled, [data-disabled]) > .o-menu-list-mark { background-color: var(--vk-overlay-card-pressed); }
|
|
1954
|
+
:is([data-menu-list-tiles="wide"], [data-menu-list-tiles="circle"], [data-menu-list-tiles="colour"]) .o-menu-list-tile-name {
|
|
1955
|
+
display: -webkit-box; max-width: 100%; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
|
|
1956
|
+
}
|
|
1957
|
+
[data-menu-list-tiles="wide"] .o-menu-list-tile > .o-menu-list-mark { width: 100%; height: calc(var(--vk-spacing) * 14); border-radius: var(--menu-list-corners); }
|
|
1958
|
+
[data-menu-list-tiles="circle"] .o-menu-list-tile > .o-menu-list-mark { width: calc(var(--vk-spacing) * 13); height: calc(var(--vk-spacing) * 13); border-radius: var(--vk-radius-full); }
|
|
1959
|
+
[data-menu-list-tiles="circle"] .o-menu-list-tile > .o-menu-list-mark > svg { width: calc(var(--vk-spacing) * 5.5); height: calc(var(--vk-spacing) * 5.5); }
|
|
1960
|
+
[data-menu-list-tiles="colour"] .o-menu-list-tile > .o-menu-list-mark { width: calc(var(--vk-spacing) * 14); height: calc(var(--vk-spacing) * 14); border-radius: var(--vk-radius-full); color: var(--vk-fg-inverse); }
|
|
1961
|
+
[data-menu-list-tiles="colour"] .o-menu-list-tile:nth-child(1) > .o-menu-list-mark { background-color: var(--vk-label-blue); }
|
|
1962
|
+
[data-menu-list-tiles="colour"] .o-menu-list-tile:nth-child(2) > .o-menu-list-mark { background-color: var(--vk-label-amber); }
|
|
1963
|
+
[data-menu-list-tiles="colour"] .o-menu-list-tile:nth-child(3) > .o-menu-list-mark { background-color: var(--vk-label-purple); }
|
|
1964
|
+
[data-menu-list-tiles="colour"] .o-menu-list-tile:nth-child(4) > .o-menu-list-mark { background-color: var(--vk-label-green); }
|
|
1965
|
+
[data-menu-list-tiles="colour"] .o-menu-list-tile:nth-child(1):active:not(:disabled, [data-disabled]) > .o-menu-list-mark { background-color: var(--vk-label-blue-pressed); }
|
|
1966
|
+
[data-menu-list-tiles="colour"] .o-menu-list-tile:nth-child(2):active:not(:disabled, [data-disabled]) > .o-menu-list-mark { background-color: var(--vk-label-amber-pressed); }
|
|
1967
|
+
[data-menu-list-tiles="colour"] .o-menu-list-tile:nth-child(3):active:not(:disabled, [data-disabled]) > .o-menu-list-mark { background-color: var(--vk-label-purple-pressed); }
|
|
1968
|
+
[data-menu-list-tiles="colour"] .o-menu-list-tile:nth-child(4):active:not(:disabled, [data-disabled]) > .o-menu-list-mark { background-color: var(--vk-label-green-pressed); }
|
|
1969
|
+
:is([data-menu-list-tiles="wide"], [data-menu-list-tiles="circle"], [data-menu-list-tiles="colour"]) .o-menu-list-tile:is(:disabled, [data-disabled]) > .o-menu-list-mark { background-color: var(--vk-neutral); color: var(--vk-fg-disabled); }
|
|
1970
|
+
|
|
1971
|
+
/* ── On a computer: a menu's rows, inside a menu's panel or standing on a page. Base UI marks a row data-highlighted
|
|
1972
|
+
under the pointer or the keyboard, a choice data-checked, a row that can't be used data-disabled, and a row whose choices are
|
|
1973
|
+
open data-popup-open; list.css draws the row itself, this file its parts. ───────────────────── */
|
|
1974
|
+
/* How long the pointer rests on a row one level in before its panel opens, read by the script that opens it. */
|
|
1975
|
+
.o-menu-row { --menu-sub-wait: var(--vk-submenu-delay); }
|
|
1976
|
+
/* ── A row: its 16px icon 8px before its name, then its keys, its value or its way further in ──────── */
|
|
1977
|
+
.o-menu-row { white-space: nowrap; text-decoration: none; }
|
|
1978
|
+
.o-menu-row > svg:first-child { flex: none; width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); fill: none; stroke: var(--vk-fg-subtle); stroke-linecap: round; stroke-linejoin: round; }
|
|
1979
|
+
.o-menu-row:is([data-highlighted], [data-popup-open], [data-force="hover"]) > svg:first-child { stroke: var(--vk-fg); }
|
|
1980
|
+
.o-menu-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
1981
|
+
.o-menu-keys { flex: none; display: flex; gap: calc(var(--vk-spacing) * 0.75); margin-left: calc(var(--vk-spacing) * 6); font-size: var(--vk-font-size-xs); color: var(--vk-fg-subtlest); }
|
|
1982
|
+
.o-menu-keys kbd { font: inherit; }
|
|
1983
|
+
/* How many it holds, at its end in the quietest colour; a Spinner while that loads. */
|
|
1984
|
+
.o-menu-count { flex: none; display: flex; margin-left: auto; padding-left: calc(var(--vk-spacing) * 4); font-size: var(--vk-font-size-xs); color: var(--vk-fg-subtlest); font-variant-numeric: tabular-nums; }
|
|
1985
|
+
.o-menu-value { flex: none; max-width: calc(var(--vk-spacing) * 30); margin-left: calc(var(--vk-spacing) * 4); overflow: hidden; text-overflow: ellipsis; font-size: var(--vk-font-size-xs); color: var(--vk-fg-subtle); }
|
|
1986
|
+
/* A choice's detail: what it reads as (a date style's sample), quiet, before its tick. */
|
|
1987
|
+
.o-menu-detail { flex: none; margin-left: calc(var(--vk-spacing) * 4); font-size: var(--vk-font-size-xs); color: var(--vk-fg-subtlest); font-variant-numeric: tabular-nums; }
|
|
1988
|
+
.o-menu-more { flex: none; width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); margin-right: calc(var(--vk-spacing) * -0.5); fill: none; stroke: var(--vk-fg-subtlest); stroke-linecap: round; stroke-linejoin: round; }
|
|
1989
|
+
.o-menu-row .o-list-tick { margin-left: calc(var(--vk-spacing) * 4); }
|
|
1990
|
+
|
|
1991
|
+
/* ── Takes something away: in the danger colour, washed under the pointer so it warns before the click ─ */
|
|
1992
|
+
.o-menu-row.o-menu-danger { color: var(--vk-danger); }
|
|
1993
|
+
.o-menu-danger > svg:first-child, .o-menu-danger:is([data-highlighted], [data-force="hover"]) > svg:first-child { stroke: var(--vk-danger); }
|
|
1994
|
+
.o-menu-danger .o-menu-keys { color: var(--vk-danger); }
|
|
1995
|
+
.o-menu-row.o-menu-danger:is([data-highlighted], [data-force="hover"]) { background-color: var(--vk-danger-subtlest); }
|
|
1996
|
+
|
|
1997
|
+
/* ── Can't be used: greyed, no fill under the pointer; its tooltip says why ─────────────────────────── */
|
|
1998
|
+
.o-menu-row[data-disabled] { color: var(--vk-fg-disabled); cursor: not-allowed; }
|
|
1999
|
+
.o-menu-row[data-disabled] > svg:first-child { stroke: var(--vk-fg-disabled); }
|
|
2000
|
+
.o-menu-row[data-disabled]:is([data-highlighted], [data-force="hover"]) { background-color: transparent; }
|
|
2001
|
+
|
|
2002
|
+
/* A tick: the Checkbox's own box before its name (CheckboxMark, checkbox.css), ticked and greyed by its row. */
|
|
2003
|
+
/* A link that leaves the app: an arrow after its name. */
|
|
2004
|
+
.o-menu-away { flex: none; width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); margin-left: calc(var(--vk-spacing) * 4); fill: none; stroke: var(--vk-fg-subtlest); stroke-linecap: round; stroke-linejoin: round; }
|
|
2005
|
+
|
|
2006
|
+
/* A row alone, shown in one of its states. */
|
|
2007
|
+
.o-list.o-menu.o-menu-state { min-width: calc(var(--vk-spacing) * 46); box-shadow: none; }
|
|
2008
|
+
|
|
2009
|
+
/* ── Shown open in the page: a choice row's choices beside it, their edges on one line, their first row
|
|
2010
|
+
level with it; room kept for them. A computer's cases: on a phone the page's On the phone stands the Sheet at its step (sheet.tsx) ─ */
|
|
2011
|
+
.o-menu-pair { padding-right: calc(var(--vk-spacing) * 52); }
|
|
2012
|
+
.o-menu-subwrap { position: relative; }
|
|
2013
|
+
.o-menu-subwrap > .o-menu-sub { position: absolute; z-index: 2; top: calc(-1 * var(--list-pad, var(--vk-spacing)) - var(--vk-border-width)); left: calc(100% + var(--vk-spacing)); }
|
|
2014
|
+
|
|
2015
|
+
/* ── What scrolls in a menu's panel (MenuScroll): its rows, alone, when the panel is taller than the room on screen. ── */
|
|
2016
|
+
.o-menu-list-scroll { display: grid; min-height: 0; overflow-y: auto; overscroll-behavior: contain; outline: none; }
|
|
2017
|
+
|
|
2018
|
+
/* ── In a panel that is no menu: its rows stand in their holder's panel (the Pane, a Popover), as a menu's in its: a
|
|
2019
|
+
row's corners as the list's (list.css's .o-list .o-list-row), no panel of its own. ─────────────────────────────────── */
|
|
2020
|
+
.o-menu-rows { --list-row-corners-in: var(--list-row-corners, var(--list-row-r, var(--list-box-r, var(--vk-radius-lg)))); display: grid; min-width: 0; outline: none; }
|
|
2021
|
+
.o-menu-rows .o-list-row { --list-row-rad: var(--list-row-corners-in); --list-row-pill-in: var(--list-row-corners-pill, var(--list-row-pill, var(--list-box-pill, 0))); }
|
|
2022
|
+
/* A tick as the Switch, at its end. */
|
|
2023
|
+
.o-menu-switch > .o-switch { flex: none; margin-left: calc(var(--vk-spacing) * 4); }
|
|
2024
|
+
/* A value in force (a filter's "1", a sort's "Amount +1"): in the brand. */
|
|
2025
|
+
.o-menu-value[data-on] { color: var(--vk-fg-accent); }
|
|
2026
|
+
/* A tick as an eye, at its end: open while it is on, crossed while off, quieter; greyed on a row that can't be used. */
|
|
2027
|
+
.o-menu-eye { flex: none; display: grid; place-items: center; margin-left: calc(var(--vk-spacing) * 4); color: var(--vk-fg-subtle); }
|
|
2028
|
+
.o-menu-eye > svg { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); }
|
|
2029
|
+
.o-menu-eye:not([data-on]) { color: var(--vk-fg-subtlest); }
|
|
2030
|
+
.o-menu-row[data-disabled] > .o-menu-eye { color: var(--vk-fg-disabled); }
|
|
2031
|
+
|
|
2032
|
+
/* The eye's change, a phone's and a panel's alike: its outline stays; its slash, a path one long, is drawn across from its
|
|
2033
|
+
top as it is crossed (arriving, ease-out) and drawn back away as it opens (leaving, ease-in, so its last dot goes at once), on
|
|
2034
|
+
duration-fast, the band cut from the outline beside it drawn with it, the pupil's half above the slash fading, and its colour
|
|
2035
|
+
easing. The slash is hidden only once drawn away, so no dot stands at its top. */
|
|
2036
|
+
:is(.o-menu-eye, .o-menu-list-eye) { transition: color var(--vk-duration-fast) var(--vk-ease-out); }
|
|
2037
|
+
:is(.o-eye-slash, .o-eye-cut) { stroke-dasharray: 1 1; stroke-dashoffset: 1; visibility: hidden;
|
|
2038
|
+
transition: stroke-dashoffset var(--vk-duration-fast) var(--vk-ease-in), visibility var(--vk-duration-fast); }
|
|
2039
|
+
.o-eye-upper { transition: opacity var(--vk-duration-fast) var(--vk-ease-out); }
|
|
2040
|
+
:not([data-on]) > svg > .o-eye-slash, :not([data-on]) > svg > mask > .o-eye-cut { stroke-dashoffset: 0; visibility: visible; transition-timing-function: var(--vk-ease-out); }
|
|
2041
|
+
:not([data-on]) > svg > .o-eye-upper { opacity: 0; }
|
|
2042
|
+
@media (prefers-reduced-motion: reduce) { :is(.o-menu-eye, .o-menu-list-eye, .o-eye-slash, .o-eye-cut, .o-eye-upper) { transition: none; } }
|
|
2043
|
+
/* A row with a grip: the grip at its start; held, it stands over the others on the overlay's ground, as the sort
|
|
2044
|
+
editor's held rule does, its smooth clip let go so its shadow shows. */
|
|
2045
|
+
.o-menu-row > .o-menu-grip { flex: none; margin-left: calc(var(--vk-spacing) * -1); touch-action: none; }
|
|
2046
|
+
/* A row with no grip among rows that carry one keeps the grip's room (Mihai, 19 Nov 2026: "Keep the room"): the grip itself, out of
|
|
2047
|
+
sight, standing where a grip stands, so every row's mark is in one line. */
|
|
2048
|
+
.o-menu-grip-room { display: contents; visibility: hidden; }
|
|
2049
|
+
.o-menu-grip-room > .o-button { flex: none; margin-left: calc(var(--vk-spacing) * -1); }
|
|
2050
|
+
.o-menu-row[data-lifted] { position: relative; z-index: var(--vk-layer-popup); clip-path: none; background-color: var(--vk-overlay); box-shadow: var(--vk-shadow-lg); cursor: grabbing; }
|
|
2051
|
+
.o-menu-row[data-lifted] > .o-menu-grip { cursor: grabbing; }
|
|
2052
|
+
.o-menu-said { position: absolute; width: var(--vk-border-width); height: var(--vk-border-width); overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
2053
|
+
|
|
2054
|
+
.o-number { min-width: 0; }
|
|
2055
|
+
/* Bare: the control alone, Base UI's root standing aside, so the input is its place's own child, as the Input's bare form. */
|
|
2056
|
+
.o-number-bare { display: contents; }
|
|
2057
|
+
|
|
2058
|
+
/* ── Its steppers, Decrease then Increase, at its end. On the phone each keeps the Input's 28px button and takes a
|
|
2059
|
+
44px target round it, the two set apart so their targets never meet. ─────────────────────────────────────── */
|
|
2060
|
+
/* Named with the addon it is, so its gap wins over the addon's own wherever the stylesheets stand in the page. */
|
|
2061
|
+
.o-input-addon.o-number-steps { gap: calc(var(--vk-spacing) * 0.5); }
|
|
2062
|
+
.o-number-steps > .o-button { position: relative; }
|
|
2063
|
+
@media (width < 640px) {
|
|
2064
|
+
.o-input-addon.o-number-steps:where(:not([data-computer-host], [data-computer-host] *)) { gap: calc(var(--vk-spacing) * 4); }
|
|
2065
|
+
.o-number-steps > .o-button:where(:not([data-computer-host], [data-computer-host] *))::before { content: ""; position: absolute; top: 50%; left: 50%; width: calc(var(--vk-spacing) * 11); height: calc(var(--vk-spacing) * 11); translate: -50% -50%; }
|
|
2066
|
+
}
|
|
2067
|
+
@container o-phone (width < 640px) {
|
|
2068
|
+
.o-input-addon.o-number-steps { gap: calc(var(--vk-spacing) * 4); }
|
|
2069
|
+
.o-number-steps > .o-button::before { content: ""; position: absolute; top: 50%; left: 50%; width: calc(var(--vk-spacing) * 11); height: calc(var(--vk-spacing) * 11); translate: -50% -50%; }
|
|
2070
|
+
}
|
|
2071
|
+
|
|
2072
|
+
/* ── Its arrows, up over down at its end, as the Number editor's: 12 × 20 on the overlay's pressed fill, which stays seen in
|
|
2073
|
+
dark, --number-arrows-room from what stands before them, 2px unless said, whatever the group's gap (--input-group-gap).
|
|
2074
|
+
Each fills its row (the side centres what it holds
|
|
2075
|
+
otherwise). Hidden until the field is edited, their room kept so the value never moves; a group in a cell is never .o-input,
|
|
2076
|
+
so there they always show, the box standing only while it is edited. ───────────────────────────────────────────────────── */
|
|
2077
|
+
.o-input-addon.o-number-arrows {
|
|
2078
|
+
display: grid; grid-template-rows: 1fr 1fr; align-items: stretch; gap: 0; width: calc(var(--vk-spacing) * 3); height: calc(var(--vk-spacing) * 5);
|
|
2079
|
+
margin-inline-start: calc(var(--number-arrows-room, calc(var(--vk-spacing) / 2)) - var(--input-group-gap, calc(var(--vk-spacing) * 1.5))); border-radius: var(--vk-radius-xs); overflow: hidden; background-color: var(--vk-overlay-pressed); cursor: default;
|
|
2080
|
+
}
|
|
2081
|
+
.o-input:not(:focus-within) > .o-number-arrows { visibility: hidden; }
|
|
2082
|
+
/* In the Inline input the arrows stand as everything beside the value does, its gap from it, in the box's own colour,
|
|
2083
|
+
always shown: the box stands only while it is edited. */
|
|
2084
|
+
.o-inline-input-group > .o-input-addon.o-number-arrows { margin-inline-start: 0; color: inherit; }
|
|
2085
|
+
.o-number-arrow {
|
|
2086
|
+
display: grid; place-items: center; margin: 0; padding: 0; border: 0; background-color: transparent; color: var(--vk-fg-subtle); cursor: default;
|
|
2087
|
+
transition: background-color var(--vk-duration-fast) var(--vk-ease-out), color var(--vk-duration-fast) var(--vk-ease-out);
|
|
2088
|
+
}
|
|
2089
|
+
@media (hover: hover) { .o-number-arrow:hover { background-color: var(--vk-overlay-selected); color: var(--vk-fg); } }
|
|
2090
|
+
.o-number-arrow[data-disabled] { background-color: transparent; color: var(--vk-fg-disabled); }
|
|
2091
|
+
.o-number-arrow > svg { width: calc(var(--vk-spacing) * 2); height: calc(var(--vk-spacing) * 1.25); fill: currentColor; }
|
|
2092
|
+
|
|
2093
|
+
/* ── Its value at its end, as a number in a table's column; its digits line up either way (.o-input-num). ──────────── */
|
|
2094
|
+
.o-input-control.o-number-end { text-align: end; }
|
|
2095
|
+
|
|
2096
|
+
/* ── A unit that is dragged to change it: the pointer says so, and while it drags, the cursor Base UI draws. ─── */
|
|
2097
|
+
.o-number-scrub { cursor: ew-resize; touch-action: none; }
|
|
2098
|
+
.o-number-cursor { display: flex; color: var(--vk-fg); filter: drop-shadow(0 0 var(--vk-border-width) var(--vk-ground)); pointer-events: none; }
|
|
2099
|
+
.o-number-cursor > svg { width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 5); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
|
|
2100
|
+
|
|
2101
|
+
/* ── Several side by side, 6px apart; none, a dash ─────────────────────────────────────────────────── */
|
|
2102
|
+
.o-options { display: inline-flex; flex-wrap: wrap; align-items: center; gap: calc(var(--vk-spacing) * 1.5); }
|
|
2103
|
+
.o-option-none { color: var(--vk-fg-subtlest); font-size: var(--vk-font-size-sm); }
|
|
2104
|
+
|
|
2105
|
+
/* ── lg: 28 high, for a phone's row, its words text-sm (the Picker's on a phone, rounds 2 to 4 of its sketch) ──────── */
|
|
2106
|
+
.o-tag.o-option.o-option-lg { --tag-h: calc(var(--vk-spacing) * 7); padding: 0 calc(var(--vk-spacing) * 2.5); font-size: var(--vk-font-size-sm); }
|
|
2107
|
+
|
|
2108
|
+
/* ── A colour: an Option given one (data-colour, its value's own) draws it only in a colour look, worn by the frame or
|
|
2109
|
+
the app around it (data-option-colour, looks.ts); with nothing picked it is Attio's pill, the Outright look's pick; in No colour, or
|
|
2110
|
+
given none, it draws as above. Each colour's tokens once: a label hue's, or grey's neutrals. ──────────────────────────────────────────────────────────────────────────── */
|
|
2111
|
+
.o-option[data-colour="blue"] { --o-option-dot: var(--vk-label-blue); --o-option-soft: var(--vk-label-blue-soft); --o-option-soft-words: var(--vk-label-blue); --o-option-fill: var(--vk-label-blue-fill); --o-option-edge: var(--vk-label-blue-edge); --o-option-strong: var(--vk-label-blue-strong); }
|
|
2112
|
+
.o-option[data-colour="green"] { --o-option-dot: var(--vk-label-green); --o-option-soft: var(--vk-label-green-soft); --o-option-soft-words: var(--vk-label-green); --o-option-fill: var(--vk-label-green-fill); --o-option-edge: var(--vk-label-green-edge); --o-option-strong: var(--vk-label-green-strong); }
|
|
2113
|
+
.o-option[data-colour="amber"] { --o-option-dot: var(--vk-label-amber); --o-option-soft: var(--vk-label-amber-soft); --o-option-soft-words: var(--vk-label-amber); --o-option-fill: var(--vk-label-amber-fill); --o-option-edge: var(--vk-label-amber-edge); --o-option-strong: var(--vk-label-amber-strong); }
|
|
2114
|
+
.o-option[data-colour="red"] { --o-option-dot: var(--vk-label-red); --o-option-soft: var(--vk-label-red-soft); --o-option-soft-words: var(--vk-label-red); --o-option-fill: var(--vk-label-red-fill); --o-option-edge: var(--vk-label-red-edge); --o-option-strong: var(--vk-label-red-strong); }
|
|
2115
|
+
.o-option[data-colour="purple"] { --o-option-dot: var(--vk-label-purple); --o-option-soft: var(--vk-label-purple-soft); --o-option-soft-words: var(--vk-label-purple); --o-option-fill: var(--vk-label-purple-fill); --o-option-edge: var(--vk-label-purple-edge); --o-option-strong: var(--vk-label-purple-strong); }
|
|
2116
|
+
.o-option[data-colour="pink"] { --o-option-dot: var(--vk-label-pink); --o-option-soft: var(--vk-label-pink-soft); --o-option-soft-words: var(--vk-label-pink); --o-option-fill: var(--vk-label-pink-fill); --o-option-edge: var(--vk-label-pink-edge); --o-option-strong: var(--vk-label-pink-strong); }
|
|
2117
|
+
.o-option[data-colour="teal"] { --o-option-dot: var(--vk-label-teal); --o-option-soft: var(--vk-label-teal-soft); --o-option-soft-words: var(--vk-label-teal); --o-option-fill: var(--vk-label-teal-fill); --o-option-edge: var(--vk-label-teal-edge); --o-option-strong: var(--vk-label-teal-strong); }
|
|
2118
|
+
.o-option[data-colour="grey"] { --o-option-dot: var(--vk-fg-subtlest); --o-option-soft: var(--vk-neutral); --o-option-soft-words: var(--vk-fg-subtle); --o-option-fill: var(--vk-neutral); --o-option-edge: var(--vk-border); --o-option-strong: var(--vk-fg-subtle); }
|
|
2119
|
+
|
|
2120
|
+
/* Linear's dot: the Option as it is, a dot of its colour before its word, 8 across (9 in a phone's row). */
|
|
2121
|
+
[data-option-colour="dot"] .o-option[data-colour]::before {
|
|
2122
|
+
content: ""; flex: none; width: calc(var(--vk-spacing) * 2); height: calc(var(--vk-spacing) * 2); margin-left: calc(var(--vk-spacing) * -0.25);
|
|
2123
|
+
border-radius: var(--vk-radius-full); background-color: var(--o-option-dot);
|
|
2124
|
+
}
|
|
2125
|
+
[data-option-colour="dot"] .o-option.o-option-lg[data-colour]::before { width: calc(var(--vk-spacing) * 2.25); height: calc(var(--vk-spacing) * 2.25); }
|
|
2126
|
+
/* Attio's pill: its colour's fill, an edge of its hue drawn inside, its words a strong step. */
|
|
2127
|
+
[data-option-colour="pill"] .o-option[data-colour], .o-option[data-colour]:not([data-option-colour] *) { --tag-ground: var(--o-option-fill); --tag-edge: var(--o-option-edge); --tag-shadow: initial; color: var(--o-option-strong); }
|
|
2128
|
+
/* Notion's flat fill: its colour's soft step, no edge, its words the hue. */
|
|
2129
|
+
[data-option-colour="flat"] .o-option[data-colour] { --tag-ground: var(--o-option-soft); --tag-edge: transparent; --tag-shadow: none; color: var(--o-option-soft-words); }
|
|
2130
|
+
/* On a fill the remove button's × takes the Option's words, under the pointer too (this outweighs the Tag's hover colour on
|
|
2131
|
+
purpose), on the Tag's own hover fill; its focus ring stays the Tag's. */
|
|
2132
|
+
:is([data-option-colour="pill"], [data-option-colour="flat"]) .o-option[data-colour] .o-tag-remove, .o-option[data-colour]:not([data-option-colour] *) .o-tag-remove { color: inherit; }
|
|
2133
|
+
|
|
2134
|
+
/* ── Its icon (after Linear): at its start the value's own mark, quiet (the Tag's icon's colour and its 1px
|
|
2135
|
+
nudge), in its colour where a colour look draws one, and in Linear's dot in place of the dot, one mark and never two; at its
|
|
2136
|
+
end what a press does, quieter still, on a fill the Option's words. 12px, 14 in a phone's row. While editing the end one is
|
|
2137
|
+
left out, the × in its place. ─────────────────────────────────────────────────────────────────────────────── */
|
|
2138
|
+
.o-option-icon { flex: none; display: inline-grid; place-items: center; width: calc(var(--vk-spacing) * 3); height: calc(var(--vk-spacing) * 3); color: var(--vk-fg-subtle); }
|
|
2139
|
+
.o-option-icon > svg { width: 100%; height: 100%; }
|
|
2140
|
+
.o-option-lg > .o-option-icon { width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); }
|
|
2141
|
+
.o-option-icon[data-side="start"] { margin-left: calc(var(--vk-spacing) * -0.25); }
|
|
2142
|
+
.o-option-icon[data-side="end"] { margin-right: calc(var(--vk-spacing) * -0.25); color: var(--vk-fg-subtlest); }
|
|
2143
|
+
:is([data-option-colour="dot"], [data-option-colour="pill"], [data-option-colour="flat"]) .o-option[data-colour] > .o-option-icon[data-side="start"], .o-option[data-colour]:not([data-option-colour] *) > .o-option-icon[data-side="start"] { color: var(--o-option-dot); }
|
|
2144
|
+
:is([data-option-colour="pill"], [data-option-colour="flat"]) .o-option[data-colour] > .o-option-icon[data-side="end"], .o-option[data-colour]:not([data-option-colour] *) > .o-option-icon[data-side="end"] { color: inherit; }
|
|
2145
|
+
[data-option-colour="dot"] .o-option[data-colour]:has(> .o-option-icon[data-side="start"])::before { content: none; }
|
|
2146
|
+
/* A person's or a company's Avatar at its start (a typed Select's chip): the icon takes the Avatar's 16, 4px from the
|
|
2147
|
+
chip's edge, the words 4px after it; a mark that wraps its svg once (a stage's glyph) fills the 12px icon as a bare svg does. */
|
|
2148
|
+
.o-option > .o-option-icon:has(> .o-avatar) { width: auto; height: auto; margin-left: calc(var(--vk-spacing) * -1); }
|
|
2149
|
+
.o-option > .o-option-icon > * > svg { width: 100%; height: 100%; }
|
|
2150
|
+
|
|
2151
|
+
/* ── Its shape, worn by the frame or the app around it (looks.ts), each of the kit's defaults drawing nothing of its own,
|
|
2152
|
+
and Corners at lg where nothing is picked, the Outright look's pick. Height: a
|
|
2153
|
+
phone's row keeps its 28, a typed Select's chips their 22 (a field 24 high holds them). Corners: Full truly round, painted as
|
|
2154
|
+
before whatever its Corner smoothing (tag.css). Edge: Subtle the light edge, Grey fill a grey ground and none; a coloured Option
|
|
2155
|
+
in Attio's pill or Notion's flat fill keeps its colour's own, whose rules weigh more. Each sets the Tag's variables (--tag-h,
|
|
2156
|
+
--tag-r, --tag-ground, --tag-edge, --tag-shadow), which the chip and its cut draw.──────────────────────────────────────────────────────────────────────────── */
|
|
2157
|
+
[data-option-height="20"] .o-option:not(.o-option-lg, .o-select-chips > *) { --tag-h: calc(var(--vk-spacing) * 5); }
|
|
2158
|
+
[data-option-height="24"] .o-option:not(.o-option-lg, .o-select-chips > *) { --tag-h: calc(var(--vk-spacing) * 6); }
|
|
2159
|
+
[data-option-radius="xs"] .o-option { --tag-r: var(--vk-radius-xs); }
|
|
2160
|
+
[data-option-radius="sm"] .o-option { --tag-r: var(--vk-radius-sm); }
|
|
2161
|
+
[data-option-radius="lg"] .o-option, .o-option:not([data-option-radius] *) { --tag-r: var(--vk-radius-lg); }
|
|
2162
|
+
[data-option-radius="full"] .o-option { --tag-r: var(--vk-radius-full); }
|
|
2163
|
+
[data-option-edge="subtle"] .o-option { --tag-edge: var(--vk-border); }
|
|
2164
|
+
[data-option-edge="fill"] .o-option { --tag-ground: var(--vk-neutral); --tag-edge: transparent; --tag-shadow: none; }
|
|
2165
|
+
|
|
2166
|
+
/* ── A link (after Attio's record chips): at rest the chip as it is, its words the Option's and never
|
|
2167
|
+
underlined; under the pointer the hover fill (under Grey fill a step darker; a coloured pill or flat fill its colour's fill, a
|
|
2168
|
+
pill's edge its hue), pressed the pressed fill (Grey fill and a coloured fill keep their hover's) at 98%; from the keys the focus
|
|
2169
|
+
ring. The states weigh (0,4,0) and more, over the colour looks' grounds. On the phone it takes taps from 44 (the pressing area the app gives it). ── */
|
|
2170
|
+
.o-option[data-link] {
|
|
2171
|
+
--o-option-hover: var(--vk-hovered); --o-option-pressed: var(--vk-pressed);
|
|
2172
|
+
cursor: pointer; text-decoration: none; outline: none; -webkit-tap-highlight-color: transparent;
|
|
2173
|
+
transition: background-color var(--vk-duration-fast) var(--vk-ease-out), box-shadow var(--vk-duration-fast) var(--vk-ease-out), scale var(--vk-duration-instant) var(--vk-ease-out);
|
|
2174
|
+
}
|
|
2175
|
+
[data-option-edge="fill"] .o-option[data-link] { --o-option-hover: var(--vk-neutral-hovered); --o-option-pressed: var(--vk-neutral-hovered); }
|
|
2176
|
+
:is([data-option-colour="pill"], [data-option-colour="flat"]) .o-option[data-link][data-colour], .o-option[data-link][data-colour]:not([data-option-colour] *) { --o-option-hover: var(--o-option-fill); --o-option-pressed: var(--o-option-fill); }
|
|
2177
|
+
.o-tag.o-option[data-link][data-force="hover"] { --tag-ground: var(--o-option-hover); }
|
|
2178
|
+
@media (hover: hover) { .o-tag.o-option[data-link]:hover { --tag-ground: var(--o-option-hover); } }
|
|
2179
|
+
.o-tag.o-option[data-link]:is(:active, [data-force="press"]) { --tag-ground: var(--o-option-pressed); scale: var(--vk-press-scale); }
|
|
2180
|
+
[data-option-colour="pill"] .o-tag.o-option[data-link][data-colour]:is(:active, [data-force="hover"], [data-force="press"]), .o-tag.o-option[data-link][data-colour]:not([data-option-colour] *):is(:active, [data-force="hover"], [data-force="press"]) { --tag-edge: var(--o-option-dot); }
|
|
2181
|
+
@media (hover: hover) { [data-option-colour="pill"] .o-tag.o-option[data-link][data-colour]:hover, .o-tag.o-option[data-link][data-colour]:not([data-option-colour] *):hover { --tag-edge: var(--o-option-dot); } }
|
|
2182
|
+
.o-option[data-link]:is(:focus-visible, [data-force="focus"]) { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: var(--vk-focus-offset); }
|
|
2183
|
+
@media (prefers-reduced-motion: reduce) { .o-option[data-link] { transition: none; } }
|
|
2184
|
+
|
|
2185
|
+
/* ── The soft edge: three blurs of what passes under a floating head, each fading out lower down, so the blur is strongest at
|
|
2186
|
+
the top and melts into the page with no line, and over them the ground it stands on, fading to nothing. What it stands in
|
|
2187
|
+
gives it its height and, in --soft-edge-ground, its ground. ── */
|
|
2188
|
+
.o-soft-edge { position: absolute; inset: 0 0 auto; pointer-events: none; }
|
|
2189
|
+
.o-soft-edge > i { position: absolute; inset: 0; border-radius: inherit; -webkit-mask-image: linear-gradient(to bottom, #000 var(--soft-edge-from), transparent var(--soft-edge-to)); mask-image: linear-gradient(to bottom, #000 var(--soft-edge-from), transparent var(--soft-edge-to)); }
|
|
2190
|
+
.o-soft-edge > i:nth-child(1) { --soft-edge-from: 75%; --soft-edge-to: 100%; -webkit-backdrop-filter: blur(var(--vk-blur-xs)); backdrop-filter: blur(var(--vk-blur-xs)); }
|
|
2191
|
+
.o-soft-edge > i:nth-child(2) { --soft-edge-from: 55%; --soft-edge-to: 85%; -webkit-backdrop-filter: blur(var(--vk-blur-sm)); backdrop-filter: blur(var(--vk-blur-sm)); }
|
|
2192
|
+
.o-soft-edge > i:nth-child(3) { --soft-edge-from: 30%; --soft-edge-to: 65%; -webkit-backdrop-filter: blur(var(--vk-blur-md)); backdrop-filter: blur(var(--vk-blur-md)); }
|
|
2193
|
+
.o-soft-edge > i:nth-child(4) { --soft-edge-from: 40%; --soft-edge-to: 100%; background: linear-gradient(to bottom, color-mix(in oklab, var(--soft-edge-ground, var(--vk-header)) 85%, transparent), transparent); }
|
|
2194
|
+
|
|
2195
|
+
.o-hd-bar {
|
|
2196
|
+
position: relative; box-sizing: border-box; display: grid; align-items: center; gap: calc(var(--vk-spacing) * 2); min-width: 0;
|
|
2197
|
+
grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr);
|
|
2198
|
+
height: calc(var(--vk-spacing) * 11); padding-inline: var(--page-padding, calc(var(--vk-spacing) * 6));
|
|
2199
|
+
}
|
|
2200
|
+
.o-hd-bar > .o-hd-bar-edge { top: calc(-1 * var(--hd-bar-room, 0px)); height: calc(var(--hd-bar-room, 0px) + 100% + var(--vk-spacing) * 1); }
|
|
2201
|
+
/* Its places stand over the soft edge. A place stands as wide as the Glass button, so the title keeps clear of an empty one. */
|
|
2202
|
+
.o-hd-bar-side { position: relative; display: flex; align-items: center; gap: calc(var(--vk-spacing) * 2); min-width: calc(var(--vk-spacing) * 11); }
|
|
2203
|
+
.o-hd-bar-side:last-child { justify-content: flex-end; }
|
|
2204
|
+
.o-hd-bar-title {
|
|
2205
|
+
position: relative; display: grid; min-width: 0; text-align: center; color: var(--vk-fg);
|
|
2206
|
+
font-size: var(--vk-font-size-base); line-height: calc(var(--vk-font-size-base) * var(--vk-line-height-base)); font-weight: var(--vk-font-weight-semibold);
|
|
2207
|
+
}
|
|
2208
|
+
:where(.o-hd-bar-title) > * { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; }
|
|
2209
|
+
/* Its description, a quieter second line. With one, the two together stand as tall as the buttons beside them. */
|
|
2210
|
+
.o-hd-bar-description { font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-spacing) * 4); font-weight: var(--vk-font-weight-normal); color: var(--vk-fg-subtle); }
|
|
2211
|
+
.o-hd-bar-title > :has(+ .o-hd-bar-description) { line-height: calc(var(--vk-spacing) * 5); }
|
|
2212
|
+
/* Its right place is the Glass button group (glass-button.css draws how two stand together, apart or on the glass pill). On
|
|
2213
|
+
Together (the Glass button's Two buttons, its default) the place stands as wide as its two, so the pill is theirs alone; under
|
|
2214
|
+
Glass, the surface's default. */
|
|
2215
|
+
.o-hd-bar-side:last-child:not([data-phone-header-surface="flat"] *):not([data-glass-button-pair="separate"] *):has(.o-glass-button ~ .o-glass-button) { justify-self: end; }
|
|
2216
|
+
/* Its title at the left: after what stands on its left, taking the room there is. */
|
|
2217
|
+
.o-hd-bar[data-title-at="left"] { grid-template-columns: auto minmax(0, 1fr) auto; }
|
|
2218
|
+
.o-hd-bar[data-title-at="left"] > .o-hd-bar-title { text-align: start; }
|
|
2219
|
+
/* Flat: no soft edge, and a smaller title. What it stands on is its place's: the page's header on a page, the Sheet's in a sheet. */
|
|
2220
|
+
[data-phone-header-surface="flat"] .o-hd-bar > .o-hd-bar-edge { display: none; }
|
|
2221
|
+
[data-phone-header-surface="flat"] .o-hd-bar > .o-hd-bar-title { font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); }
|
|
2222
|
+
[data-phone-header-surface="flat"] .o-hd-bar > .o-hd-bar-side { gap: calc(var(--vk-spacing) * 0.5); }
|
|
2223
|
+
|
|
2224
|
+
/* ── Where it stands: on the popup layer, over the Modal, the drawer and the sheet; one opened later stands
|
|
2225
|
+
over the one it opened from, being later on the page ─────────────────────────────────────────────────────────── */
|
|
2226
|
+
.o-popover-positioner { z-index: var(--vk-layer-popup); outline: none; }
|
|
2227
|
+
/* What opened it has scrolled fully out of view: it closes (popover/popover.tsx), and goes at once, so no exit plays over nothing. */
|
|
2228
|
+
.o-popover-positioner[data-anchor-hidden] { visibility: hidden; }
|
|
2229
|
+
|
|
2230
|
+
/* ── The shell: the overlay's ground, corners and a shadow; 288 wide unless it is handed a width, as shadcn's, and at
|
|
2231
|
+
least as wide as what opened it. Its edge and what it holds are inside it (.o-popover-cut) ─────────────────── */
|
|
2232
|
+
.o-popover {
|
|
2233
|
+
--popover-corners: var(--vk-radius-xl); --popover-shadow: var(--vk-shadow-md); --popover-pad: calc(var(--vk-spacing) * 2);
|
|
2234
|
+
--popover-gap: var(--vk-spacing); --popover-edge: var(--vk-border); --divider-colour: var(--vk-border);
|
|
2235
|
+
--divider-reach: max(0px, calc(var(--popover-pad) - var(--vk-border-width)));
|
|
2236
|
+
box-sizing: border-box; display: flex; flex-direction: column;
|
|
2237
|
+
width: calc(var(--vk-spacing) * 72); min-width: var(--anchor-width, auto); max-width: var(--available-width, 100%); max-height: var(--available-height, none);
|
|
2238
|
+
border-radius: var(--popover-corners); background-color: var(--vk-overlay); box-shadow: var(--popover-shadow); color: var(--vk-fg);
|
|
2239
|
+
font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); outline: none;
|
|
2240
|
+
transition: opacity var(--vk-duration-fast) var(--vk-ease-out), translate var(--vk-duration-fast) var(--vk-ease-out);
|
|
2241
|
+
}
|
|
2242
|
+
|
|
2243
|
+
/* What it holds, inside its edge, scrolling there when the screen is shorter. The edge is drawn as two shapes, never a
|
|
2244
|
+
border, as the Modal's is: its colour (::before), and the ground just inside it (::after), one line narrower. Each
|
|
2245
|
+
takes its own corner, its inset less, so the edge follows the corners exactly, round or smooth. */
|
|
2246
|
+
.o-popover-cut { position: relative; isolation: isolate; box-sizing: border-box; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: auto; padding: var(--popover-pad); border-radius: inherit; }
|
|
2247
|
+
.o-popover-cut::before, .o-popover-cut::after { content: ""; position: absolute; z-index: -1; border-radius: var(--popover-c); pointer-events: none; }
|
|
2248
|
+
.o-popover-cut::before { --popover-c: var(--popover-corners); inset: 0; background-color: var(--popover-edge); }
|
|
2249
|
+
.o-popover-cut::after { --popover-c: calc(var(--popover-corners) - var(--vk-border-width)); inset: var(--vk-border-width); background-color: var(--vk-overlay); }
|
|
2250
|
+
|
|
2251
|
+
/* The gap, on the side it stands on. */
|
|
2252
|
+
.o-popover[data-side="bottom"] { margin-top: var(--popover-gap); }
|
|
2253
|
+
.o-popover[data-side="top"] { margin-bottom: var(--popover-gap); }
|
|
2254
|
+
.o-popover[data-side="left"] { margin-right: var(--popover-gap); }
|
|
2255
|
+
.o-popover[data-side="right"] { margin-left: var(--popover-gap); }
|
|
2256
|
+
/* Laid over what opens it (a negative sideOffset), it stands on it: no gap. */
|
|
2257
|
+
.o-popover[data-over] { margin: 0; }
|
|
2258
|
+
|
|
2259
|
+
/* It fades in and moves 4px out from what opened it; it leaves faster than it came. */
|
|
2260
|
+
.o-popover[data-ending-style] { transition-timing-function: var(--vk-ease-in); }
|
|
2261
|
+
.o-popover:is([data-starting-style], [data-ending-style]) { opacity: 0; translate: 0 calc(var(--vk-spacing) * -1); }
|
|
2262
|
+
.o-popover[data-side="top"]:is([data-starting-style], [data-ending-style]) { translate: 0 var(--vk-spacing); }
|
|
2263
|
+
.o-popover[data-side="left"]:is([data-starting-style], [data-ending-style]) { translate: var(--vk-spacing) 0; }
|
|
2264
|
+
.o-popover[data-side="right"]:is([data-starting-style], [data-ending-style]) { translate: calc(var(--vk-spacing) * -1) 0; }
|
|
2265
|
+
|
|
2266
|
+
/* ── What an app sets once ───────────────────────────────────────────────────────────────────────────────────── */
|
|
2267
|
+
[data-popover-corners="lg"] .o-popover { --popover-corners: var(--vk-radius-lg); }
|
|
2268
|
+
[data-popover-corners="2xl"] .o-popover { --popover-corners: var(--vk-radius-2xl); }
|
|
2269
|
+
[data-popover-shadow="none"] .o-popover { --popover-shadow: none; }
|
|
2270
|
+
[data-popover-shadow="lg"] .o-popover { --popover-shadow: var(--vk-shadow-lg); }
|
|
2271
|
+
[data-popover-shadow="xl"] .o-popover { --popover-shadow: var(--vk-shadow-xl); }
|
|
2272
|
+
[data-popover-edge="subtle"] .o-popover { --popover-edge: var(--vk-border-subtle); --divider-colour: var(--vk-border-subtle); }
|
|
2273
|
+
[data-popover-edge="none"] .o-popover { --popover-edge: var(--vk-overlay); --divider-colour: var(--vk-border-subtle); }
|
|
2274
|
+
[data-popover-padding="0"] .o-popover { --popover-pad: 0px; }
|
|
2275
|
+
[data-popover-padding="4"] .o-popover { --popover-pad: var(--vk-spacing); }
|
|
2276
|
+
[data-popover-padding="12"] .o-popover { --popover-pad: calc(var(--vk-spacing) * 3); }
|
|
2277
|
+
[data-popover-padding="16"] .o-popover { --popover-pad: calc(var(--vk-spacing) * 4); }
|
|
2278
|
+
[data-popover-gap="0"] .o-popover { --popover-gap: 0px; }
|
|
2279
|
+
[data-popover-gap="8"] .o-popover { --popover-gap: calc(var(--vk-spacing) * 2); }
|
|
2280
|
+
|
|
2281
|
+
/* ── Its corners smooth: the smooth outline (smooth.css), Apple's curve as measured, so every browser that knows
|
|
2282
|
+
shape() shows it; one that doesn't keeps the corners above. The shell keeps its shadow, which a cut would take with
|
|
2283
|
+
it, so .o-popover-cut inside it is cut instead, and the edge's two shapes each by the same outline at its own corner,
|
|
2284
|
+
so the edge stays the corners' curve ─────────────────────────────────────────────────────────────────────────── */
|
|
2285
|
+
@supports (clip-path: shape(from 0 0, curve by 1px 1px with 1px 0 / 1px 0, close)) {
|
|
2286
|
+
[data-popover-smoothing="smooth"] .o-popover { background-color: transparent; }
|
|
2287
|
+
[data-popover-smoothing="smooth"] .o-popover-cut { --popover-c: var(--popover-corners); background-color: var(--vk-overlay); }
|
|
2288
|
+
[data-popover-smoothing="smooth"] .o-popover-cut::before, [data-popover-smoothing="smooth"] .o-popover-cut::after { border-radius: 0; }
|
|
2289
|
+
[data-popover-smoothing="smooth"] .o-popover-cut, [data-popover-smoothing="smooth"] .o-popover-cut::before, [data-popover-smoothing="smooth"] .o-popover-cut::after {
|
|
2290
|
+
--smooth-t: var(--popover-c); clip-path: shape(var(--smooth-outline));
|
|
2291
|
+
}
|
|
2292
|
+
}
|
|
2293
|
+
|
|
2294
|
+
/* ── Its title and what it says, when it has them: the title text-sm at medium weight, the words quieter ──────── */
|
|
2295
|
+
.o-popover-title { margin: 0; font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); font-weight: var(--vk-font-weight-medium); color: var(--vk-fg); }
|
|
2296
|
+
.o-popover-description { margin: 0; font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); color: var(--vk-fg-subtle); }
|
|
2297
|
+
|
|
2298
|
+
/* Under reduced motion it just appears. */
|
|
2299
|
+
@media (prefers-reduced-motion: reduce) { .o-popover { transition: none; } }
|
|
2300
|
+
|
|
2301
|
+
/* Doubled, so a component's own overflow: auto in the same layer never brings the sideways scroll back. */
|
|
2302
|
+
[data-scrollbar][data-scrollbar] { overflow-x: hidden; }
|
|
2303
|
+
|
|
2304
|
+
.o-scrollbar { display: none; --sb-hold: var(--vk-scrollbar-hold); --sb-inset: var(--vk-scrollbar-inset); }
|
|
2305
|
+
|
|
2306
|
+
/* The browser's bar hidden from the first style, read by what stands right before the bar, not by the mark the script sets: WebKit
|
|
2307
|
+
never lays out again what a list holds when its bar goes after the first layout, so a mark set then left the rows 15 short. With
|
|
2308
|
+
no bar, on every screen; drawn, on a computer only. */
|
|
2309
|
+
:has(+ .o-scrollbar:not([data-drawn])) { scrollbar-width: none; }
|
|
2310
|
+
:has(+ .o-scrollbar:not([data-drawn]))::-webkit-scrollbar { display: none; }
|
|
2311
|
+
|
|
2312
|
+
@media (hover: hover) and (pointer: fine) {
|
|
2313
|
+
:has(+ .o-scrollbar[data-drawn]) { scrollbar-width: none; }
|
|
2314
|
+
:has(+ .o-scrollbar[data-drawn])::-webkit-scrollbar { display: none; }
|
|
2315
|
+
|
|
2316
|
+
.o-scrollbar[data-drawn] {
|
|
2317
|
+
--sb-in: calc(var(--sb-track, 0px) - var(--sb-end-t, 0px) - var(--sb-end-b, 0px));
|
|
2318
|
+
--sb-h: max(calc(var(--vk-spacing) * 6), calc(var(--sb-in) * var(--sb-len, 1)));
|
|
2319
|
+
display: block; position: absolute; z-index: 1; box-sizing: border-box;
|
|
2320
|
+
top: calc(var(--sb-top, 0px) + var(--sb-end-t, 0px)); left: calc(var(--sb-right, 0px) - var(--vk-scrollbar-size) - var(--vk-scrollbar-inset));
|
|
2321
|
+
width: var(--vk-scrollbar-size); height: var(--sb-h); translate: 0 calc((var(--sb-in) - var(--sb-h)) * var(--sb-at, 0));
|
|
2322
|
+
border-radius: var(--vk-radius-full); background-color: var(--vk-scrollbar-thumb);
|
|
2323
|
+
opacity: 0; pointer-events: none; touch-action: none;
|
|
2324
|
+
transition: opacity var(--vk-duration-slow) var(--vk-ease-out), background-color var(--vk-duration-fast) var(--vk-ease-out);
|
|
2325
|
+
}
|
|
2326
|
+
.o-scrollbar[data-scrolling] { opacity: 1; pointer-events: auto; transition-duration: var(--vk-duration-fast); }
|
|
2327
|
+
.o-scrollbar:is(:hover, [data-dragging]) { background-color: var(--vk-scrollbar-thumb-hovered); }
|
|
2328
|
+
}
|
|
2329
|
+
|
|
2330
|
+
@media (prefers-reduced-motion: reduce) { .o-scrollbar { transition: none; } }
|
|
2331
|
+
|
|
2332
|
+
.o-sheet, .o-sheet-backdrop, .o-sheet-below {
|
|
2333
|
+
--sheet-spring: var(--vk-spring-quick); --sheet-spring-ease: var(--vk-ease-spring-quick); --sheet-spring-time: var(--vk-duration-spring-quick);
|
|
2334
|
+
}
|
|
2335
|
+
[data-sheet-spring="smooth"] :is(.o-sheet, .o-sheet-backdrop) { --sheet-spring: var(--vk-spring-smooth); --sheet-spring-ease: var(--vk-ease-spring-smooth); --sheet-spring-time: var(--vk-duration-spring-smooth); }
|
|
2336
|
+
[data-sheet-spring="lively"] :is(.o-sheet, .o-sheet-backdrop) { --sheet-spring: var(--vk-spring-lively); --sheet-spring-ease: var(--vk-ease-spring-lively); --sheet-spring-time: var(--vk-duration-spring-lively); }
|
|
2337
|
+
.o-sheet { --sheet-radius: var(--vk-radius-2xl); --sheet-padding: var(--phone-padding, var(--page-padding, calc(var(--vk-spacing) * 6))); }
|
|
2338
|
+
.o-sheet { --sheet-exit: var(--vk-spring-exit); --sheet-past: var(--vk-spring-past); }
|
|
2339
|
+
[data-sheet-padding="12"] .o-sheet { --sheet-padding: calc(var(--vk-spacing) * 3); }
|
|
2340
|
+
[data-sheet-padding="16"] .o-sheet { --sheet-padding: calc(var(--vk-spacing) * 4); }
|
|
2341
|
+
[data-sheet-padding="20"] .o-sheet { --sheet-padding: calc(var(--vk-spacing) * 5); }
|
|
2342
|
+
[data-sheet-padding="24"] .o-sheet { --sheet-padding: calc(var(--vk-spacing) * 6); }
|
|
2343
|
+
[data-sheet-corners="lg"] .o-sheet { --sheet-radius: var(--vk-radius-lg); }
|
|
2344
|
+
[data-sheet-corners="xl"] .o-sheet { --sheet-radius: var(--vk-radius-xl); }
|
|
2345
|
+
[data-sheet-corners="3xl"] .o-sheet { --sheet-radius: var(--vk-radius-3xl); }
|
|
2346
|
+
[data-sheet-corners="4xl"] .o-sheet { --sheet-radius: var(--vk-radius-4xl); }
|
|
2347
|
+
[data-sheet-corners="5xl"] .o-sheet { --sheet-radius: var(--vk-radius-5xl); }
|
|
2348
|
+
|
|
2349
|
+
/* ── Its dim: whole at any stop, fading only below the lowest; dim and blocked travel together. It moves as the sheet
|
|
2350
|
+
does. A sheet on a sheet has a lighter one of its own ──────────────────────────────────────────────────────────── */
|
|
2351
|
+
.o-sheet-backdrop {
|
|
2352
|
+
position: fixed; inset: 0; z-index: var(--vk-layer-drawer); background-color: var(--vk-backdrop-sheet-light); opacity: calc(1 - var(--sheet-gone, 0));
|
|
2353
|
+
transition: opacity var(--sheet-time, var(--sheet-spring-time)) var(--sheet-ease, var(--sheet-spring-ease));
|
|
2354
|
+
}
|
|
2355
|
+
[data-sheet-dim="deep"] .o-sheet-backdrop { background-color: var(--vk-backdrop-sheet); }
|
|
2356
|
+
.o-sheet-backdrop[data-stacked] { background-color: var(--vk-backdrop-stacked); }
|
|
2357
|
+
.o-sheet-backdrop:is([data-starting-style], [data-ending-style]) { opacity: 0; }
|
|
2358
|
+
.o-sheet-backdrop[data-swiping] { transition: none; }
|
|
2359
|
+
|
|
2360
|
+
/* ── What goes on under Safari's floating toolbar, in the page, where nothing fixed paints (bottom-sheet.tsx). Under full
|
|
2361
|
+
it goes on as the sheet does until the sheet has gone; under floating it goes on as the dim does ────────────────── */
|
|
2362
|
+
.o-sheet-below { position: absolute; left: 0; right: 0; height: calc(var(--vk-spacing) * 40); z-index: var(--vk-layer-drawer); pointer-events: none; }
|
|
2363
|
+
.o-sheet-below:is([data-sheet-form="floating"], [data-sheet-form="blend"]) {
|
|
2364
|
+
opacity: calc(1 - var(--sheet-gone, 0)); transition: opacity var(--sheet-time, var(--sheet-spring-time)) var(--sheet-ease, var(--sheet-spring-ease));
|
|
2365
|
+
@starting-style { opacity: 0; }
|
|
2366
|
+
}
|
|
2367
|
+
|
|
2368
|
+
/* ── Where it sits: from the bottom, the gesture its own from the first touch ────────────────────────────────────── */
|
|
2369
|
+
.o-sheet-viewport { position: fixed; inset: 0; z-index: var(--vk-layer-drawer); display: flex; align-items: flex-end; justify-content: center; touch-action: none; }
|
|
2370
|
+
.o-sheet-viewport { --sheet-gap: calc(var(--vk-spacing) * 2); }
|
|
2371
|
+
[data-sheet-margin="4"] .o-sheet-viewport { --sheet-gap: calc(var(--vk-spacing) * 1); }
|
|
2372
|
+
[data-sheet-margin="6"] .o-sheet-viewport { --sheet-gap: calc(var(--vk-spacing) * 1.5); }
|
|
2373
|
+
[data-sheet-margin="10"] .o-sheet-viewport { --sheet-gap: calc(var(--vk-spacing) * 2.5); }
|
|
2374
|
+
[data-sheet-margin="12"] .o-sheet-viewport { --sheet-gap: calc(var(--vk-spacing) * 3); }
|
|
2375
|
+
.o-sheet-viewport[data-sheet-form="floating"] {
|
|
2376
|
+
padding: 0 calc(var(--sheet-gap) + var(--safe-area-right, env(safe-area-inset-right, 0px))) var(--sheet-gap) calc(var(--sheet-gap) + var(--safe-area-left, env(safe-area-inset-left, 0px)));
|
|
2377
|
+
}
|
|
2378
|
+
/* Coming in, over all of it, the sheet and its dim: a press lands here and nothing in it is pressed. After the sheet in
|
|
2379
|
+
the page, so it is drawn and pressed over it. */
|
|
2380
|
+
.o-sheet-shield { position: absolute; inset: 0; }
|
|
2381
|
+
|
|
2382
|
+
/* ── It: moved only by transform, from its stop and the finger; on a spring whenever no finger holds it. Base UI holds
|
|
2383
|
+
transition: none on it through a drag, inline, and takes that away itself at the release: a rule of ours would outlive
|
|
2384
|
+
that by a moment, in which Base UI reads its height, and a sheet let go to close would jump to its end ──────────── */
|
|
2385
|
+
.o-sheet {
|
|
2386
|
+
position: relative; box-sizing: border-box; display: flex; flex-direction: column; width: 100%; min-height: 0;
|
|
2387
|
+
background-color: var(--vk-overlay); color: var(--vk-fg); box-shadow: var(--vk-shadow-2xl); outline: none;
|
|
2388
|
+
touch-action: none; will-change: transform; transform-origin: 50% 0;
|
|
2389
|
+
transform: translateY(calc(var(--drawer-snap-point-offset, 0px) + var(--drawer-swipe-movement-y, 0px) + var(--sheet-catch, 0px)));
|
|
2390
|
+
transition: transform var(--sheet-time, var(--sheet-spring-time)) var(--sheet-ease, var(--sheet-spring-ease)), clip-path var(--sheet-time, var(--sheet-spring-time)) var(--sheet-ease, var(--sheet-spring-ease)), transform-origin var(--sheet-time, var(--sheet-spring-time)) var(--sheet-ease, var(--sheet-spring-ease)), scale var(--sheet-time, var(--sheet-spring-time)) var(--sheet-ease, var(--sheet-spring-ease)), height var(--sheet-spring-time) var(--sheet-spring-ease);
|
|
2391
|
+
}
|
|
2392
|
+
.o-sheet:is([data-starting-style], [data-ending-style]) { transform: translateY(calc(100% + var(--sheet-margin, 0px))); }
|
|
2393
|
+
.o-sheet[data-swiping] { user-select: none; }
|
|
2394
|
+
/* Under a finger where it can drag, a floating sheet or a blend below full grows a little, ready to be moved, and goes back on its spring. It is
|
|
2395
|
+
scale and an animation, since from the touch Base UI writes transform and transition: none inline. */
|
|
2396
|
+
@keyframes o-sheet-press { from { scale: var(--sheet-scale, 1); } }
|
|
2397
|
+
.o-sheet[data-sheet-pressed]:is([data-sheet-form="floating"], [data-sheet-form="blend"]:not([data-expanded])) { scale: calc(var(--sheet-scale, 1) * var(--vk-sheet-press-scale)); animation: o-sheet-press var(--vk-duration-slow) var(--vk-ease-out); }
|
|
2398
|
+
|
|
2399
|
+
/* Full: edge to edge, rounded on top, just under the status bar. Under it, the sheet goes on past its foot, so nothing
|
|
2400
|
+
shows when it is pulled above its top stop or swings past it. */
|
|
2401
|
+
.o-sheet:is([data-sheet-form="full"], [data-sheet-form="blend"]) {
|
|
2402
|
+
height: calc(100% - var(--safe-area-top, env(safe-area-inset-top, 0px)) - var(--vk-spacing) * 2.5); border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
|
|
2403
|
+
}
|
|
2404
|
+
.o-sheet:is([data-sheet-form="full"], [data-sheet-form="blend"], [data-sheet-form="edge"])::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 100%; background-color: inherit; }
|
|
2405
|
+
/* Edge: full's shape, as tall as what it holds, as floating is. Its body clears the home bar and no more. */
|
|
2406
|
+
.o-sheet[data-sheet-form="edge"] { height: var(--sheet-fit, auto); max-height: calc(100% - var(--safe-area-top, env(safe-area-inset-top, 0px)) - var(--vk-spacing) * 12); border-radius: var(--sheet-radius) var(--sheet-radius) 0 0; }
|
|
2407
|
+
.o-sheet[data-sheet-form="edge"] .o-sheet-body { padding-bottom: calc(var(--vk-spacing) * 3 + var(--safe-area-bottom, env(safe-area-inset-bottom, 0px))); }
|
|
2408
|
+
/* Floating: the same margin from the screen's left, right and bottom, past the home bar, which what it holds clears instead.
|
|
2409
|
+
Its bottom corners follow the phone's own: the screen's curve less the margin, or Corners on a screen no token knows. Its
|
|
2410
|
+
top corners, which stand on no screen's edge, take Corners.
|
|
2411
|
+
As tall as what is in it; past its most, its body scrolls. */
|
|
2412
|
+
.o-sheet[data-sheet-form="floating"] {
|
|
2413
|
+
--sheet-margin: var(--sheet-gap); --sheet-curve: calc(var(--sheet-screen) - var(--sheet-gap));
|
|
2414
|
+
--sheet-home: calc(var(--safe-area-bottom, env(safe-area-inset-bottom, 0px)) - var(--sheet-gap));
|
|
2415
|
+
transform-origin: 50% 100%; height: var(--sheet-fit, auto); max-height: calc(100% - var(--safe-area-top, env(safe-area-inset-top, 0px)) - var(--vk-spacing) * 12); border-radius: var(--sheet-radius) var(--sheet-radius) var(--sheet-curve, var(--sheet-radius)) var(--sheet-curve, var(--sheet-radius)); overflow: clip;
|
|
2416
|
+
}
|
|
2417
|
+
|
|
2418
|
+
/* Blend: the two forms as one. It is laid out once, at full's width and height, and at its lower stops the whole of it is scaled
|
|
2419
|
+
down to floating's width, its head, buttons, text and padding together, and cut to floating's foot and bottom corners. From
|
|
2420
|
+
the stop under full it grows to edge to edge with the sheet, as one piece: nothing is laid out again, so no line wraps
|
|
2421
|
+
differently. It cuts its own foot, so it casts no shadow. It scales from where it stands, so its stops stay where they are. */
|
|
2422
|
+
.o-sheet[data-sheet-form="blend"] {
|
|
2423
|
+
--sheet-margin: var(--sheet-gap); --sheet-curve: calc(var(--sheet-screen) - var(--sheet-gap));
|
|
2424
|
+
--sheet-round: calc(var(--sheet-curve, var(--sheet-radius)) * (1 - var(--sheet-rise, 0)) / var(--sheet-scale, 1));
|
|
2425
|
+
scroll-margin-left: var(--sheet-gap); scale: var(--sheet-scale, 1);
|
|
2426
|
+
transform-origin: 50% calc(var(--drawer-snap-point-offset, 0px) + var(--drawer-swipe-movement-y, 0px));
|
|
2427
|
+
clip-path: inset(0 0 var(--sheet-cut, 0px) round var(--sheet-radius) var(--sheet-radius) var(--sheet-round) var(--sheet-round));
|
|
2428
|
+
}
|
|
2429
|
+
|
|
2430
|
+
/* Its corners smooth: the same corners, drawn as an outline, so every browser that knows shape() shows them; one that doesn't
|
|
2431
|
+
keeps the quarter circles above. Each corner is three curves, Apple's own sheet as measured (smoothing 70%): the bend starts
|
|
2432
|
+
1.7 radii from the corner and meets the quarter circle at the tip, so a corner stands as large as a round one and only comes
|
|
2433
|
+
in softer. It is the one smooth outline (smooth.css): --smooth-t the top corners' radius, --smooth-b the bottom ones',
|
|
2434
|
+
--smooth-foot where it ends. A blend cuts itself. Full and floating cast a shadow, which a cut would take with it, so they keep it
|
|
2435
|
+
and .o-sheet-cut, inside them, is cut and carries their ground instead. */
|
|
2436
|
+
/* What it holds is cut along its corners, whichever way they bend, so nothing in it, a Glass button's wide shadow, reaches past
|
|
2437
|
+
the curve. It is a cut of its own, not a clip-path: under one, Firefox loses a sticky header's blur and squares what it cuts. */
|
|
2438
|
+
.o-sheet-cut { display: flex; flex-direction: column; flex: 1; width: 100%; min-height: 0; background-color: inherit; border-radius: inherit; overflow: clip; }
|
|
2439
|
+
@supports (clip-path: shape(from 0 0, curve by 1px 1px with 1px 0 / 1px 0, close)) {
|
|
2440
|
+
.o-sheet:not([data-sheet-smoothing="round"] *) { --smooth-t: var(--sheet-radius); --smooth-b: 0px; --smooth-foot: 100%; --sheet-outline: shape(var(--smooth-outline)); }
|
|
2441
|
+
.o-sheet[data-sheet-form="floating"]:not([data-sheet-smoothing="round"] *) { --smooth-b: var(--sheet-curve, var(--sheet-radius)); }
|
|
2442
|
+
.o-sheet[data-sheet-form="blend"]:not([data-sheet-smoothing="round"] *) { --smooth-b: var(--sheet-round); --smooth-foot: calc(100% - var(--sheet-cut, 0px)); clip-path: var(--sheet-outline); }
|
|
2443
|
+
.o-sheet:is([data-sheet-form="full"], [data-sheet-form="floating"], [data-sheet-form="edge"]):not([data-sheet-smoothing="round"] *) { background-color: transparent; }
|
|
2444
|
+
.o-sheet:is([data-sheet-form="full"], [data-sheet-form="floating"], [data-sheet-form="edge"]):not([data-sheet-smoothing="round"] *)::after { background-color: var(--vk-overlay); }
|
|
2445
|
+
.o-sheet:is([data-sheet-form="full"], [data-sheet-form="floating"], [data-sheet-form="edge"]):not([data-sheet-smoothing="round"] *) > .o-sheet-cut { background-color: var(--vk-overlay); clip-path: var(--sheet-outline); }
|
|
2446
|
+
/* Its outline's bottom and foot are its own: they inherit, so what it holds (an Input, a Tag, each drawing the same outline)
|
|
2447
|
+
would take its square bottom. --sheet-outline was worked out on the sheet, so the cut keeps it. */
|
|
2448
|
+
.o-sheet:not([data-sheet-smoothing="round"] *) > .o-sheet-cut { --smooth-b: initial; --smooth-foot: initial; }
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
/* A sheet on a sheet: the one below steps back and stays still; only the top one is live. */
|
|
2452
|
+
.o-sheet[data-nested-drawer-open] { scale: var(--vk-push-scale); }
|
|
2453
|
+
|
|
2454
|
+
/* ── Its handle, then its head, the drag's own ground. Its head is the one header (phone-header.css), standing under the
|
|
2455
|
+
handle; the phone header's options reach it here too. With no head the handle stands alone, its drag a little taller ───────── */
|
|
2456
|
+
.o-sheet-handle { flex: none; align-self: center; width: calc(var(--vk-spacing) * 9); height: calc(var(--vk-spacing) * 1.25); margin-block: calc(var(--vk-spacing) * 1) calc(var(--vk-spacing) * 0.5); border-radius: var(--vk-radius-full); background-color: var(--vk-sheet-handle); }
|
|
2457
|
+
.o-sheet-handle:has(+ .o-sheet-body) { margin-bottom: calc(var(--vk-spacing) * 3); }
|
|
2458
|
+
.o-sheet-head { flex: none; box-sizing: border-box; min-width: 0; user-select: none; }
|
|
2459
|
+
/* The buttons in its corners stand as far from the top as from the sides: the row starts under the handle's 11. */
|
|
2460
|
+
.o-sheet-row { margin: calc(var(--sheet-padding) - var(--vk-spacing) * 2.75) 0 calc(var(--vk-spacing) * 2); }
|
|
2461
|
+
/* Its buttons: Its head says which of the two shows (bottom-sheet.tsx). */
|
|
2462
|
+
[data-phone-header-surface="flat"] .o-sheet-row .o-sheet-glass, .o-sheet-row .o-sheet-plain:not([data-phone-header-surface="flat"] *) { display: none; }
|
|
2463
|
+
.o-sheet-row .o-sheet-glass:not([data-phone-header-surface="flat"] *) { display: grid; }
|
|
2464
|
+
/* One that holds a word lays its icon and its word out in a line, as the Glass button does. */
|
|
2465
|
+
.o-sheet-row .o-sheet-glass.o-glass-button-worded:not([data-phone-header-surface="flat"] *) { display: inline-flex; }
|
|
2466
|
+
/* Glass: its head floats. The soft edge starts at the sheet's top, on the sheet's ground, and the body runs up under it and the
|
|
2467
|
+
handle, by as much as they stand tall, so what scrolls passes under the buttons and what it holds still starts where it did. */
|
|
2468
|
+
.o-sheet-handle:not([data-phone-header-surface="flat"] *) { position: relative; z-index: 2; }
|
|
2469
|
+
.o-sheet-head:not([data-phone-header-surface="flat"] *) { position: relative; z-index: 1; --hd-bar-room: var(--sheet-padding); --soft-edge-ground: var(--vk-overlay); }
|
|
2470
|
+
.o-sheet-head + .o-sheet-body:not([data-phone-header-surface="flat"] *) { --sheet-under: calc(var(--sheet-padding) + var(--vk-spacing) * 13); }
|
|
2471
|
+
/* Its head stands on the sheet's padding, not the page's, which phone-header.css reads; flat's own, below, still wins. */
|
|
2472
|
+
.o-sheet-head > .o-sheet-row { padding-inline: var(--sheet-padding); }
|
|
2473
|
+
.o-sheet-row > .o-hd-bar-edge { border-radius: var(--sheet-radius) var(--sheet-radius) 0 0; }
|
|
2474
|
+
/* Flat, in a sheet: quiet Buttons in a shorter row. A plain button is a glyph in a 36px target, 12
|
|
2475
|
+
inside it, so the target's edge stands 12 short of the padding. With nothing on its left, a title at the left stands on the
|
|
2476
|
+
padding, and Back's arrow does. */
|
|
2477
|
+
[data-phone-header-surface="flat"] .o-sheet-row { gap: 0; height: calc(var(--vk-spacing) * 9); margin: calc(var(--sheet-padding) - var(--vk-spacing) * 5.75) 0 calc(var(--vk-spacing) * 1); padding-inline: calc(var(--sheet-padding) - var(--vk-spacing) * 3); }
|
|
2478
|
+
[data-phone-header-surface="flat"] .o-sheet-row > .o-hd-bar-side { min-width: 0; }
|
|
2479
|
+
[data-phone-header-surface="flat"] .o-sheet-row[data-title-at="left"]:not([data-sides]) { padding-left: var(--sheet-padding); }
|
|
2480
|
+
[data-phone-header-surface="flat"] .o-sheet-row[data-title-at="left"] .o-sheet-back { margin: 0 calc(var(--vk-spacing) * 1) 0 calc(var(--vk-spacing) * -3); }
|
|
2481
|
+
|
|
2482
|
+
/* ── Its body scrolls only at full height; lower, a drag up raises the sheet. Its foot clears the home bar ─────────── */
|
|
2483
|
+
.o-sheet-body {
|
|
2484
|
+
flex: 1; min-height: 0; overflow-y: auto; outline: none; touch-action: pan-y; overscroll-behavior: contain;
|
|
2485
|
+
margin-top: calc(-1 * var(--sheet-under, 0px));
|
|
2486
|
+
padding: calc(var(--vk-spacing) * 2 + var(--sheet-under, 0px)) var(--sheet-padding) max(calc(var(--vk-spacing) * 8 + var(--safe-area-bottom, env(safe-area-inset-bottom, 0px))), var(--sheet-keyboard, 0px));
|
|
2487
|
+
}
|
|
2488
|
+
.o-sheet:is([data-sheet-form="full"], [data-sheet-form="blend"]):not([data-expanded]) .o-sheet-body { overflow-y: hidden; }
|
|
2489
|
+
.o-sheet[data-sheet-form="floating"] .o-sheet-body { padding: calc(var(--vk-spacing) * 1 + var(--sheet-under, 0px)) calc(var(--sheet-padding) - var(--vk-spacing) * 2) max(calc(var(--vk-spacing) * 2), var(--sheet-home)); }
|
|
2490
|
+
|
|
2491
|
+
/* ── Its foot: over the body, on the sheet's ground, a line above it; it stays at the screen's foot at every stop, moved up
|
|
2492
|
+
by as much as the sheet is moved down, on the same spring, and leaves with the sheet below its lowest ──────────── */
|
|
2493
|
+
.o-sheet-foot {
|
|
2494
|
+
flex: none; position: relative; z-index: 1; background-color: var(--vk-overlay); border-top: var(--vk-border-width) solid var(--vk-border-subtle);
|
|
2495
|
+
padding: calc(var(--vk-spacing) * 3) var(--sheet-padding) calc(var(--vk-spacing) * 3 + var(--safe-area-bottom, env(safe-area-inset-bottom, 0px)));
|
|
2496
|
+
transform: translateY(calc(-1 * var(--sheet-lift, 0px)));
|
|
2497
|
+
transition: transform var(--sheet-time, var(--sheet-spring-time)) var(--sheet-ease, var(--sheet-spring-ease));
|
|
2498
|
+
}
|
|
2499
|
+
.o-sheet[data-sheet-form="blend"] .o-sheet-foot { transform: translateY(calc(-1 * var(--sheet-cut, 0px))); }
|
|
2500
|
+
.o-sheet[data-swiping] .o-sheet-foot { transition: none; }
|
|
2501
|
+
.o-sheet[data-sheet-form="floating"] .o-sheet-foot { padding-bottom: max(calc(var(--vk-spacing) * 3), var(--sheet-home)); }
|
|
2502
|
+
|
|
2503
|
+
/* A step coming into a floating sheet, from the right, or from the left going back; the sheet resizes on its spring. */
|
|
2504
|
+
@keyframes o-sheet-step { from { opacity: 0; translate: var(--step-from) 0; } }
|
|
2505
|
+
.o-sheet-step { --step-from: calc(var(--vk-spacing) * 6); animation: o-sheet-step var(--vk-duration-slow) var(--vk-ease-out); }
|
|
2506
|
+
.o-sheet-step[data-back] { --step-from: calc(var(--vk-spacing) * -6); }
|
|
2507
|
+
/* A step takes the focus as it comes, with no ring: what it holds is what is pressed next. While it slides, the body never scrolls
|
|
2508
|
+
sideways (a full Sheet's body scrolls, and a step's slide would otherwise widen it). */
|
|
2509
|
+
.o-sheet-step { outline: none; }
|
|
2510
|
+
.o-sheet-body:has(.o-sheet-step) { overflow-x: hidden; }
|
|
2511
|
+
|
|
2512
|
+
/* Less motion: a fade, no scale. */
|
|
2513
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2514
|
+
.o-sheet { transition: transform var(--vk-duration-fast) var(--vk-ease-out), opacity var(--vk-duration-base) var(--vk-ease-out); }
|
|
2515
|
+
.o-sheet:is([data-starting-style], [data-ending-style]) { opacity: 0; transform: translateY(var(--drawer-snap-point-offset, 0px)); }
|
|
2516
|
+
.o-sheet[data-nested-drawer-open] { scale: 1; }
|
|
2517
|
+
.o-sheet-backdrop { transition: opacity var(--vk-duration-base) var(--vk-ease-out); }
|
|
2518
|
+
.o-sheet-step { animation: none; }
|
|
2519
|
+
}
|
|
2520
|
+
|
|
855
2521
|
/* ── The arc, as a frame that names a kind other than the tail draws it (nothing picked is the tail, below) ─────────────────────────────────────────────────────────────────────── */
|
|
856
2522
|
.o-spinner {
|
|
857
2523
|
--o-spinner-turn: var(--vk-spinner-turn); --o-spinner-breath: var(--vk-spinner-breath); --o-spinner-weight: 1;
|
|
@@ -982,6 +2648,530 @@
|
|
|
982
2648
|
@keyframes vk-spin-ring { from { r: 8.33px; } to { r: 21.88px; } }
|
|
983
2649
|
@keyframes vk-spin-fade { from { opacity: 0.7; } to { opacity: 0; } }
|
|
984
2650
|
@keyframes vk-loading-slide { from { transform: translateX(-100%); } to { transform: translateX(calc(100% / var(--o-loading-share))); } }
|
|
2651
|
+
|
|
2652
|
+
/* ── The Status, as nothing picked draws it ───────────────────────────────────────────────────────────── */
|
|
2653
|
+
.o-status {
|
|
2654
|
+
--st-g0: calc(var(--vk-spacing) * 3.5); --st-g: var(--st-g0); --st-h: calc(var(--vk-spacing) * 5.5); --st-px: calc(var(--vk-spacing) * 2);
|
|
2655
|
+
--st-cut: var(--vk-ground);
|
|
2656
|
+
position: relative; flex: none; display: inline-flex; align-items: center; gap: calc(var(--vk-spacing) * 1.5); height: var(--st-h);
|
|
2657
|
+
color: var(--vk-fg); font-size: var(--vk-font-size-xs); line-height: 1; font-weight: var(--vk-font-weight-medium); white-space: nowrap;
|
|
2658
|
+
}
|
|
2659
|
+
.o-status-svg { display: none; flex: none; height: var(--st-g); width: calc(var(--st-g) * var(--st-w, 1)); overflow: visible; fill: none; stroke: currentColor; stroke-linecap: round; color: var(--st-hue); }
|
|
2660
|
+
.o-status-fill, .o-status-num { fill: currentColor; stroke: none; }
|
|
2661
|
+
.o-status-mark { stroke: var(--st-cut); }
|
|
2662
|
+
.o-status-off { opacity: 0.22; }
|
|
2663
|
+
.o-status-spin { align-items: center; justify-content: center; width: var(--st-g); }
|
|
2664
|
+
.o-list .o-status { --st-cut: var(--vk-overlay); }
|
|
2665
|
+
|
|
2666
|
+
/* The glyph alone, as a mark in a list or a menu. */
|
|
2667
|
+
.o-status.o-status-glyph { height: auto; }
|
|
2668
|
+
|
|
2669
|
+
/* ── Sizes: sm in a dense row or a cell, md in a list, lg at the top of a record, xl a record's head on a phone ── */
|
|
2670
|
+
.o-status.o-status-sm { --st-g0: calc(var(--vk-spacing) * 3); --st-h: calc(var(--vk-spacing) * 5); --st-px: calc(var(--vk-spacing) * 1.75); gap: calc(var(--vk-spacing) * 1.25); }
|
|
2671
|
+
.o-status.o-status-lg { --st-g0: calc(var(--vk-spacing) * 4.25); --st-h: calc(var(--vk-spacing) * 7); --st-px: calc(var(--vk-spacing) * 2.5); gap: calc(var(--vk-spacing) * 2); font-size: var(--vk-font-size-sm); }
|
|
2672
|
+
.o-status.o-status-xl { --st-g0: calc(var(--vk-spacing) * 4.5); --st-h: calc(var(--vk-spacing) * 8); --st-px: calc(var(--vk-spacing) * 3); gap: calc(var(--vk-spacing) * 2); font-size: var(--vk-font-size-base); }
|
|
2673
|
+
|
|
2674
|
+
/* ── Mark: the dot where nothing is picked, the Outright look's pick, or the one picked; a kind's place shows its own unless None is ── */
|
|
2675
|
+
.o-status-svg[data-mark="dot"]:not([data-status-mark] *), .o-status-svg[data-mark="own"] { display: block; }
|
|
2676
|
+
.o-status-svg.o-status-spin[data-mark="own"] { display: inline-flex; }
|
|
2677
|
+
[data-status-mark] .o-status-svg[data-mark="quarters"] { display: none; }
|
|
2678
|
+
[data-status-mark="quarters"] .o-status-svg[data-mark="quarters"], [data-status-mark="linear"] .o-status-svg[data-mark="linear"],
|
|
2679
|
+
[data-status-mark="segments"] .o-status-svg[data-mark="segments"], [data-status-mark="progress"] .o-status-svg[data-mark="progress"],
|
|
2680
|
+
[data-status-mark="pie"] .o-status-svg[data-mark="pie"], [data-status-mark="square"] .o-status-svg[data-mark="square"],
|
|
2681
|
+
[data-status-mark="dot"] .o-status-svg[data-mark="dot"], [data-status-mark="dots"] .o-status-svg[data-mark="dots"],
|
|
2682
|
+
[data-status-mark="bar"] .o-status-svg[data-mark="bar"], [data-status-mark="signal"] .o-status-svg[data-mark="signal"],
|
|
2683
|
+
[data-status-mark="number"] .o-status-svg[data-mark="number"], [data-status-mark="stroke"] .o-status-svg[data-mark="stroke"] { display: block; }
|
|
2684
|
+
[data-status-mark="none"] .o-status-svg[data-mark="own"] { display: none; }
|
|
2685
|
+
/* A list's mark alone has nothing else to say where it stands: under None it is the dot. */
|
|
2686
|
+
[data-status-mark="none"] .o-status-glyph .o-status-svg[data-mark="dot"], [data-status-mark="none"] .o-status-glyph .o-status-svg[data-mark="own"] { display: block; }
|
|
2687
|
+
[data-status-mark="none"] .o-status-glyph .o-status-svg.o-status-spin[data-mark="own"] { display: inline-flex; }
|
|
2688
|
+
|
|
2689
|
+
/* ── Colour by meaning, every place's own: the start the brand, a step between information; then success, danger, warning,
|
|
2690
|
+
and the subtlest grey for what is put away; the rest of a run's, a health's and a publication's places grey ──── */
|
|
2691
|
+
.o-status[data-place="start"] {
|
|
2692
|
+
--st-hue: var(--vk-fg-accent); --st-soft: var(--vk-brand-subtlest); --st-fill: var(--vk-brand-subtler); --st-fg: var(--vk-fg-accent);
|
|
2693
|
+
--st-bold: var(--vk-brand); --st-on: var(--vk-fg-on-brand); --st-edge: var(--vk-border-accent);
|
|
2694
|
+
}
|
|
2695
|
+
.o-status:is([data-place="between"], [data-place="running"], [data-place="scheduled"]) {
|
|
2696
|
+
--st-hue: var(--vk-info); --st-soft: var(--vk-info-subtlest); --st-fill: var(--vk-info-subtler); --st-fg: var(--vk-info);
|
|
2697
|
+
--st-bold: var(--vk-info-bold); --st-on: var(--vk-fg-on-brand); --st-edge: var(--vk-border-info);
|
|
2698
|
+
}
|
|
2699
|
+
.o-status:is([data-place="won"], [data-place="succeeded"], [data-place="on-track"], [data-place="live"]) {
|
|
2700
|
+
--st-hue: var(--vk-success); --st-soft: var(--vk-success-subtlest); --st-fill: var(--vk-success-subtler); --st-fg: var(--vk-success);
|
|
2701
|
+
--st-bold: var(--vk-success-bold); --st-on: var(--vk-fg-inverse); --st-edge: var(--vk-border-success);
|
|
2702
|
+
}
|
|
2703
|
+
.o-status:is([data-place="lost"], [data-place="failed"], [data-place="off-track"]) {
|
|
2704
|
+
--st-hue: var(--vk-danger); --st-soft: var(--vk-danger-subtlest); --st-fill: var(--vk-danger-subtler); --st-fg: var(--vk-danger);
|
|
2705
|
+
--st-bold: var(--vk-danger-bold); --st-on: var(--vk-fg-inverse); --st-edge: var(--vk-border-danger);
|
|
2706
|
+
}
|
|
2707
|
+
.o-status:is([data-place="risk"], [data-place="at-risk"], [data-place="paused"]) {
|
|
2708
|
+
--st-hue: var(--vk-warning); --st-soft: var(--vk-warning-subtlest); --st-fill: var(--vk-warning-subtler); --st-fg: var(--vk-warning);
|
|
2709
|
+
--st-bold: var(--vk-warning-bold); --st-on: var(--vk-fg-warning-inverse); --st-edge: var(--vk-border-warning);
|
|
2710
|
+
}
|
|
2711
|
+
.o-status:is([data-place="archived"], [data-place="ended"]),
|
|
2712
|
+
[data-status-colour="quiet"] .o-status[data-place="lost"] {
|
|
2713
|
+
--st-hue: var(--vk-fg-subtlest); --st-soft: var(--vk-neutral); --st-fill: var(--vk-neutral-hovered); --st-fg: var(--vk-fg-subtle);
|
|
2714
|
+
--st-bold: var(--vk-neutral-hovered); --st-on: var(--vk-fg); --st-edge: var(--vk-border-bold);
|
|
2715
|
+
}
|
|
2716
|
+
.o-status:is([data-place="queued"], [data-place="cancelled"], [data-place="skipped"], [data-place="no-update"], [data-place="draft"]),
|
|
2717
|
+
:is([data-status-colour="quiet"], [data-status-colour="groups"]) .o-status[data-place="start"],
|
|
2718
|
+
[data-status-colour="quiet"] .o-status[data-place="between"] {
|
|
2719
|
+
--st-hue: var(--vk-fg-subtle); --st-soft: var(--vk-neutral); --st-fill: var(--vk-neutral-hovered); --st-fg: var(--vk-fg-subtle);
|
|
2720
|
+
--st-bold: var(--vk-neutral-hovered); --st-on: var(--vk-fg); --st-edge: var(--vk-border-bold);
|
|
2721
|
+
}
|
|
2722
|
+
|
|
2723
|
+
/* ── Colour › Each step its own: the step's own colour where it is given one (data-colour), else its place's on the canvas: the
|
|
2724
|
+
start blue, its steps teal, purple and pink, won green, lost red, at risk amber ──────────────────────── */
|
|
2725
|
+
[data-status-colour="step"] :is(.o-status[data-colour="blue"], .o-status:not([data-colour])[data-place="start"]) {
|
|
2726
|
+
--st-hue: var(--vk-label-blue); --st-soft: var(--vk-label-blue-soft); --st-fill: var(--vk-label-blue-fill); --st-fg: var(--vk-label-blue-strong); --st-bold: var(--vk-blue-700); --st-on: var(--vk-fg-inverse); --st-edge: var(--vk-label-blue-edge);
|
|
2727
|
+
}
|
|
2728
|
+
[data-status-colour="step"] :is(.o-status[data-colour="teal"], .o-status:not([data-colour])[data-place="between"][data-quarters="1"]) {
|
|
2729
|
+
--st-hue: var(--vk-label-teal); --st-soft: var(--vk-label-teal-soft); --st-fill: var(--vk-label-teal-fill); --st-fg: var(--vk-label-teal-strong); --st-bold: var(--vk-teal-700); --st-on: var(--vk-fg-inverse); --st-edge: var(--vk-label-teal-edge);
|
|
2730
|
+
}
|
|
2731
|
+
[data-status-colour="step"] :is(.o-status[data-colour="purple"], .o-status:not([data-colour])[data-place="between"][data-quarters="2"]) {
|
|
2732
|
+
--st-hue: var(--vk-label-purple); --st-soft: var(--vk-label-purple-soft); --st-fill: var(--vk-label-purple-fill); --st-fg: var(--vk-label-purple-strong); --st-bold: var(--vk-purple-700); --st-on: var(--vk-fg-inverse); --st-edge: var(--vk-label-purple-edge);
|
|
2733
|
+
}
|
|
2734
|
+
[data-status-colour="step"] :is(.o-status[data-colour="pink"], .o-status:not([data-colour])[data-place="between"][data-quarters="3"]) {
|
|
2735
|
+
--st-hue: var(--vk-label-pink); --st-soft: var(--vk-label-pink-soft); --st-fill: var(--vk-label-pink-fill); --st-fg: var(--vk-label-pink-strong); --st-bold: var(--vk-pink-700); --st-on: var(--vk-fg-inverse); --st-edge: var(--vk-label-pink-edge);
|
|
2736
|
+
}
|
|
2737
|
+
[data-status-colour="step"] :is(.o-status[data-colour="green"], .o-status:not([data-colour])[data-place="won"]) {
|
|
2738
|
+
--st-hue: var(--vk-label-green); --st-soft: var(--vk-label-green-soft); --st-fill: var(--vk-label-green-fill); --st-fg: var(--vk-label-green-strong); --st-bold: var(--vk-green-700); --st-on: var(--vk-fg-inverse); --st-edge: var(--vk-label-green-edge);
|
|
2739
|
+
}
|
|
2740
|
+
[data-status-colour="step"] :is(.o-status[data-colour="red"], .o-status:not([data-colour])[data-place="lost"]) {
|
|
2741
|
+
--st-hue: var(--vk-label-red); --st-soft: var(--vk-label-red-soft); --st-fill: var(--vk-label-red-fill); --st-fg: var(--vk-label-red-strong); --st-bold: var(--vk-red-700); --st-on: var(--vk-fg-inverse); --st-edge: var(--vk-label-red-edge);
|
|
2742
|
+
}
|
|
2743
|
+
[data-status-colour="step"] :is(.o-status[data-colour="amber"], .o-status:not([data-colour])[data-place="risk"]) {
|
|
2744
|
+
--st-hue: var(--vk-label-amber); --st-soft: var(--vk-label-amber-soft); --st-fill: var(--vk-label-amber-fill); --st-fg: var(--vk-label-amber-strong); --st-bold: var(--vk-amber-700); --st-on: var(--vk-fg-warning-inverse); --st-edge: var(--vk-label-amber-edge);
|
|
2745
|
+
}
|
|
2746
|
+
[data-status-colour="step"] .o-status[data-colour="grey"] {
|
|
2747
|
+
--st-hue: var(--vk-fg-subtle); --st-soft: var(--vk-neutral); --st-fill: var(--vk-neutral-hovered); --st-fg: var(--vk-fg-subtle); --st-bold: var(--vk-neutral-hovered); --st-on: var(--vk-fg); --st-edge: var(--vk-border-bold);
|
|
2748
|
+
}
|
|
2749
|
+
|
|
2750
|
+
/* ── Colour › Deeper as it goes: the brand from its 500 to its 800 along the path; the ends keep their meaning ── */
|
|
2751
|
+
[data-status-colour="deeper"] .o-status[data-place="start"] { --st-hue: var(--vk-brand-500); --st-soft: var(--vk-brand-100); --st-fill: var(--vk-brand-200); --st-fg: var(--vk-brand-700); --st-bold: var(--vk-brand-500); --st-on: var(--vk-brand-1000); --st-edge: var(--vk-brand-400); }
|
|
2752
|
+
[data-status-colour="deeper"] .o-status[data-place="between"][data-quarters="1"] { --st-hue: var(--vk-brand-600); --st-soft: var(--vk-brand-100); --st-fill: var(--vk-brand-200); --st-fg: var(--vk-brand-700); --st-bold: var(--vk-brand-600); --st-on: var(--vk-brand-1000); --st-edge: var(--vk-brand-500); }
|
|
2753
|
+
[data-status-colour="deeper"] .o-status[data-place="between"][data-quarters="2"] { --st-hue: var(--vk-brand-700); --st-soft: var(--vk-brand-100); --st-fill: var(--vk-brand-200); --st-fg: var(--vk-brand-700); --st-bold: var(--vk-brand-700); --st-on: var(--vk-fg-on-brand); --st-edge: var(--vk-brand-600); }
|
|
2754
|
+
[data-status-colour="deeper"] .o-status[data-place="between"][data-quarters="3"] { --st-hue: var(--vk-brand-800); --st-soft: var(--vk-brand-100); --st-fill: var(--vk-brand-200); --st-fg: var(--vk-brand-800); --st-bold: var(--vk-brand-800); --st-on: var(--vk-fg-on-brand); --st-edge: var(--vk-brand-700); }
|
|
2755
|
+
|
|
2756
|
+
/* ── Shape. Word in colour: the word takes the mark's colour. A pill (pale, edged, quiet, solid, a lozenge, a square tag) holds
|
|
2757
|
+
both on its ground, its mark half a step smaller and its cut-out in its ground. Mark alone: the word hidden from sight, still
|
|
2758
|
+
read ─────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
2759
|
+
[data-status-shape="coloured"] .o-status { color: var(--st-hue); }
|
|
2760
|
+
:is([data-status-shape="tint"], [data-status-shape="edged"], [data-status-shape="quiet"], [data-status-shape="solid"], [data-status-shape="lozenge"], [data-status-shape="tag"]) .o-status:not(.o-status-glyph),
|
|
2761
|
+
.o-status:not(.o-status-glyph):not([data-status-shape] *) {
|
|
2762
|
+
--st-g: calc(var(--st-g0) - var(--vk-spacing) * 0.5); --st-cut: var(--st-ground);
|
|
2763
|
+
padding: 0 var(--st-px) 0 calc(var(--st-px) - var(--vk-spacing) * 0.5); border-radius: var(--vk-radius-full); background-color: var(--st-ground); color: var(--st-fg);
|
|
2764
|
+
}
|
|
2765
|
+
:is([data-status-shape="tint"], [data-status-shape="edged"], [data-status-shape="lozenge"]) .o-status, .o-status:not([data-status-shape] *) { --st-ground: var(--st-soft); }
|
|
2766
|
+
[data-status-shape="edged"] .o-status:not(.o-status-glyph) { box-shadow: inset 0 0 0 var(--vk-border-width) var(--st-edge); }
|
|
2767
|
+
[data-status-shape="quiet"] .o-status { --st-ground: var(--vk-raised); }
|
|
2768
|
+
[data-status-shape="quiet"] .o-status:not(.o-status-glyph) { box-shadow: inset 0 0 0 var(--vk-border-width) var(--vk-border); color: var(--vk-fg); }
|
|
2769
|
+
[data-status-shape="solid"] .o-status { --st-ground: var(--st-bold); }
|
|
2770
|
+
[data-status-shape="solid"] .o-status:not(.o-status-glyph) { border-radius: var(--vk-radius-sm); color: var(--st-on); font-weight: var(--vk-font-weight-semibold); }
|
|
2771
|
+
[data-status-shape="solid"] .o-status:not(.o-status-glyph) .o-status-svg { color: var(--st-on); }
|
|
2772
|
+
[data-status-shape="lozenge"] .o-status:not(.o-status-glyph) {
|
|
2773
|
+
height: calc(var(--st-h) - var(--vk-spacing)); padding: 0 var(--vk-spacing); gap: var(--vk-spacing); border-radius: var(--vk-radius-xs);
|
|
2774
|
+
font-weight: var(--vk-font-weight-bold); text-transform: uppercase; letter-spacing: var(--vk-tracking-wide);
|
|
2775
|
+
}
|
|
2776
|
+
[data-status-shape="tag"] .o-status { --st-ground: var(--st-fill); }
|
|
2777
|
+
[data-status-shape="tag"] .o-status:not(.o-status-glyph) { height: calc(var(--st-h) - var(--vk-spacing) * 0.5); border-radius: var(--vk-radius-xs); padding: 0 calc(var(--st-px) - var(--vk-spacing) * 0.5); }
|
|
2778
|
+
[data-status-shape="alone"] .o-status-word { position: absolute; width: var(--vk-border-width); height: var(--vk-border-width); overflow: hidden; clip-path: inset(50%); }
|
|
2779
|
+
[data-status-shape="alone"] .o-status { --st-g: calc(var(--st-g0) + var(--vk-spacing) * 0.5); }
|
|
2780
|
+
|
|
2781
|
+
/* ── Along the path: what it says of the steps around it, where it is told. Steps under the word, five short bars; a small
|
|
2782
|
+
path, five chevrons before it; in words, its step of five or where it was lost; time there, how long it has stood there,
|
|
2783
|
+
in the warning colour once it has stood too long ─────────────────────────────────────────────────────── */
|
|
2784
|
+
.o-status-path, .o-status-more { display: none; }
|
|
2785
|
+
.o-status-path > span { flex: none; background-color: var(--vk-border); }
|
|
2786
|
+
.o-status-path > span[data-on] { background-color: var(--st-hue); }
|
|
2787
|
+
[data-status-path="before"] .o-status-path[data-form="before"] { display: inline-flex; gap: calc(var(--vk-spacing) * 0.25); order: -1; }
|
|
2788
|
+
[data-status-path="before"] .o-status-path[data-form="before"] > span { width: calc(var(--vk-spacing) * 1.75); height: calc(var(--vk-spacing) * 2.75); clip-path: polygon(0 0, 50% 0, 100% 50%, 50% 100%, 0 100%, 50% 50%); }
|
|
2789
|
+
/* Under the word: a grid, so the bars take a line of their own across the mark and the word and the status is as wide as the
|
|
2790
|
+
wider of the two, never as wide as all three side by side. */
|
|
2791
|
+
[data-status-path="under"] .o-status:not(.o-status-glyph) { display: inline-grid; grid-template-columns: repeat(3, auto); justify-content: start; height: auto; min-height: var(--st-h); row-gap: calc(var(--vk-spacing) * 1.25); }
|
|
2792
|
+
[data-status-path="under"] .o-status-path[data-form="under"] { display: flex; grid-row: 2; grid-column: 1 / -1; gap: calc(var(--vk-spacing) * 0.75); }
|
|
2793
|
+
[data-status-path="under"] .o-status-path[data-form="under"] > span { width: calc(var(--vk-spacing) * 3.25); height: var(--vk-spacing); border-radius: var(--vk-radius-full); }
|
|
2794
|
+
:is([data-status-path="words"] .o-status-more[data-form="words"], [data-status-path="time"] .o-status-more[data-form="time"]) {
|
|
2795
|
+
display: inline; margin-left: calc(var(--vk-spacing) * -0.5); color: var(--vk-fg-subtlest); font-weight: var(--vk-font-weight-normal);
|
|
2796
|
+
}
|
|
2797
|
+
[data-status-path="time"] .o-status-more[data-form="time"][data-stale] { color: var(--vk-warning); }
|
|
2798
|
+
|
|
2799
|
+
/* A status drawn as a field's value (the StatusBadge atom at size `row`): the size of the text around it, a cell's or a field
|
|
2800
|
+
row's, its mark and its height as above. */
|
|
2801
|
+
.o-status.vk-status-row { font-size: inherit; }
|
|
2802
|
+
|
|
2803
|
+
/* ── Slim (after shadcn), the shape the others start from: a track 18 × 32 barely larger than its 16 thumb, 1 from its edge, with no
|
|
2804
|
+
edge of its own; off, the field edge's grey; on, the brand ─────────────────────────────────────────────────────── */
|
|
2805
|
+
.o-switch {
|
|
2806
|
+
--sw-u: 1; --sw-more: 0px;
|
|
2807
|
+
--sw-h: calc(var(--vk-spacing) * 4.5 * var(--sw-u)); --sw-w0: calc(var(--vk-spacing) * 8 * var(--sw-u)); --sw-w: calc(var(--sw-w0) + var(--sw-more));
|
|
2808
|
+
--sw-tw: calc(var(--vk-spacing) * 4 * var(--sw-u)); --sw-th: var(--sw-tw); --sw-inset: calc(var(--vk-spacing) * 0.25 * var(--sw-u)); --sw-bar: 100%;
|
|
2809
|
+
--sw-rest: var(--vk-border-input); --sw-hover: var(--vk-border-input-hovered); --sw-edge-rest: transparent; --sw-edge-hover: transparent;
|
|
2810
|
+
--sw-thumb-rest: var(--vk-fg-inverse); --sw-thumb-on: var(--vk-fg-on-brand); --sw-thumb-shadow: var(--vk-shadow-xs);
|
|
2811
|
+
--sw-glyph-on: var(--sw-on); --sw-glyph-off: var(--vk-fg-subtle); --sw-ink: var(--vk-fg-on-brand);
|
|
2812
|
+
/* What it paints now: the states below choose. */
|
|
2813
|
+
--sw-off: var(--sw-rest); --sw-edge: var(--sw-edge-rest); --sw-on: var(--vk-brand); --sw-on-track: var(--sw-on);
|
|
2814
|
+
--sw-paint: var(--sw-off); --sw-ring: var(--sw-edge); --sw-knob: var(--sw-thumb-rest); --sw-knob-on: var(--sw-thumb-on); --sw-knob-shadow: var(--sw-thumb-shadow);
|
|
2815
|
+
/* Quick, the motion nothing picked draws: no stretch, duration-fast, fast at first. Lead is its front edge's time, trail its back's. */
|
|
2816
|
+
--sw-time: var(--vk-duration-fast); --sw-ease: var(--vk-ease-out); --sw-lead: var(--sw-time); --sw-trail: var(--sw-time);
|
|
2817
|
+
position: relative; isolation: isolate; flex: none; display: inline-block; box-sizing: border-box;
|
|
2818
|
+
width: var(--sw-w); height: var(--sw-h); border-radius: var(--vk-radius-full);
|
|
2819
|
+
cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent;
|
|
2820
|
+
}
|
|
2821
|
+
.o-switch::before {
|
|
2822
|
+
content: ""; position: absolute; inset: calc((100% - var(--sw-bar)) / 2) 0; border-radius: inherit;
|
|
2823
|
+
background-color: var(--sw-paint); box-shadow: inset 0 0 0 var(--vk-border-width) var(--sw-ring);
|
|
2824
|
+
transition: background-color var(--sw-time) var(--vk-ease-out), box-shadow var(--sw-time) var(--vk-ease-out);
|
|
2825
|
+
}
|
|
2826
|
+
.o-switch-thumb {
|
|
2827
|
+
position: absolute; z-index: 2; top: 50%; height: var(--sw-th); translate: 0 -50%;
|
|
2828
|
+
left: var(--sw-inset); right: calc(var(--sw-w) - var(--sw-inset) - var(--sw-tw));
|
|
2829
|
+
border-radius: var(--vk-radius-full); background-color: var(--sw-knob); box-shadow: var(--sw-knob-shadow);
|
|
2830
|
+
transition: left var(--sw-lead) var(--sw-ease), right var(--sw-trail) var(--sw-ease), background-color var(--sw-time) var(--vk-ease-out);
|
|
2831
|
+
}
|
|
2832
|
+
|
|
2833
|
+
/* ── The other shapes on a computer. Capsule (after iOS 26), what nothing picked draws, the Outright look's pick: a wider
|
|
2834
|
+
track 20 × 46 and a capsule for a thumb. Thin track: the
|
|
2835
|
+
thumb, 20, larger than its 14 track, which takes the brand's pale step when on while the thumb takes the brand. Hairline
|
|
2836
|
+
(after Fluent 2): an outlined, empty track 20 × 40 and a 14 thumb in the edge's grey. Classic, the kit's before these looks:
|
|
2837
|
+
20 × 34, an edge when off ──────────────────────────────────────────────────────────────────────────────────────── */
|
|
2838
|
+
[data-switch-shape="capsule"] .o-switch, .o-switch:not([data-switch-shape] *) {
|
|
2839
|
+
--sw-h: calc(var(--vk-spacing) * 5 * var(--sw-u)); --sw-w0: calc(var(--vk-spacing) * 11.5 * var(--sw-u)); --sw-tw: calc(var(--vk-spacing) * 6.75 * var(--sw-u)); --sw-th: calc(var(--vk-spacing) * 4 * var(--sw-u)); --sw-inset: calc(var(--vk-spacing) * 0.5 * var(--sw-u));
|
|
2840
|
+
--sw-rest: var(--vk-neutral); --sw-hover: var(--vk-neutral-hovered); --sw-thumb-shadow: var(--vk-shadow-sm);
|
|
2841
|
+
}
|
|
2842
|
+
[data-switch-shape="thin"] .o-switch {
|
|
2843
|
+
--sw-h: calc(var(--vk-spacing) * 5 * var(--sw-u)); --sw-w0: calc(var(--vk-spacing) * 8.5 * var(--sw-u)); --sw-tw: calc(var(--vk-spacing) * 5 * var(--sw-u)); --sw-inset: 0px; --sw-bar: 70%;
|
|
2844
|
+
--sw-on-track: var(--vk-brand-subtler); --sw-thumb-on: var(--sw-on); --sw-thumb-shadow: var(--vk-shadow-sm); --sw-glyph-on: var(--vk-fg-on-brand); --sw-ink: var(--vk-fg-accent);
|
|
2845
|
+
}
|
|
2846
|
+
[data-switch-shape="hairline"] .o-switch {
|
|
2847
|
+
--sw-h: calc(var(--vk-spacing) * 5 * var(--sw-u)); --sw-w0: calc(var(--vk-spacing) * 10 * var(--sw-u)); --sw-tw: calc(var(--vk-spacing) * 3.5 * var(--sw-u)); --sw-inset: calc(var(--vk-spacing) * 0.75 * var(--sw-u));
|
|
2848
|
+
--sw-rest: transparent; --sw-hover: transparent; --sw-edge-rest: var(--vk-border-bold); --sw-edge-hover: var(--vk-fg-subtle);
|
|
2849
|
+
--sw-thumb-rest: var(--vk-fg-subtle); --sw-thumb-shadow: none; --sw-glyph-off: var(--vk-ground);
|
|
2850
|
+
}
|
|
2851
|
+
[data-switch-shape="classic"] .o-switch {
|
|
2852
|
+
--sw-h: calc(var(--vk-spacing) * 5 * var(--sw-u)); --sw-w0: calc(var(--vk-spacing) * 8.5 * var(--sw-u)); --sw-inset: calc(var(--vk-spacing) * 0.5 * var(--sw-u));
|
|
2853
|
+
--sw-rest: var(--vk-neutral); --sw-hover: var(--vk-neutral-hovered); --sw-edge-rest: var(--vk-border-input); --sw-edge-hover: var(--vk-border-input-hovered); --sw-thumb-shadow: var(--vk-shadow-sm);
|
|
2854
|
+
}
|
|
2855
|
+
|
|
2856
|
+
/* ── Sizes: sm, four fifths of its shape, in dense rows. On a phone every switch but a small one draws the phone's shape, and
|
|
2857
|
+
lg draws it anywhere: Round (after iOS 18), 31 × 51 with a 27 thumb; or Capsule (after iOS 26), what nothing picked draws, 31 × 71, its thumb 27 × 41.
|
|
2858
|
+
Both on the neutral fill with no edge, whatever the computer's shape ─────────────────────────────────────────── */
|
|
2859
|
+
.o-switch.o-switch-sm { --sw-u: 0.8; }
|
|
2860
|
+
.o-switch.o-switch-lg {
|
|
2861
|
+
--sw-h: calc(var(--vk-spacing) * 7.75); --sw-w0: calc(var(--vk-spacing) * 12.75); --sw-tw: calc(var(--vk-spacing) * 6.75); --sw-th: calc(var(--vk-spacing) * 6.75); --sw-inset: calc(var(--vk-spacing) * 0.5); --sw-bar: 100%;
|
|
2862
|
+
--sw-rest: var(--vk-neutral); --sw-hover: var(--vk-neutral-hovered); --sw-edge-rest: transparent; --sw-edge-hover: transparent;
|
|
2863
|
+
--sw-on-track: var(--sw-on); --sw-thumb-rest: var(--vk-fg-inverse); --sw-thumb-on: var(--vk-fg-on-brand); --sw-thumb-shadow: var(--vk-shadow-md); --sw-glyph-on: var(--sw-on); --sw-glyph-off: var(--vk-fg-subtle); --sw-ink: var(--vk-fg-on-brand);
|
|
2864
|
+
}
|
|
2865
|
+
[data-switch-phone="capsule"] .o-switch.o-switch-lg, .o-switch.o-switch-lg:not([data-switch-phone] *) { --sw-w0: calc(var(--vk-spacing) * 17.75); --sw-tw: calc(var(--vk-spacing) * 10.25); }
|
|
2866
|
+
@media (width < 640px) {
|
|
2867
|
+
.o-switch:not(.o-switch-sm):where(:not([data-computer-host], [data-computer-host] *)) {
|
|
2868
|
+
--sw-h: calc(var(--vk-spacing) * 7.75); --sw-w0: calc(var(--vk-spacing) * 12.75); --sw-tw: calc(var(--vk-spacing) * 6.75); --sw-th: calc(var(--vk-spacing) * 6.75); --sw-inset: calc(var(--vk-spacing) * 0.5); --sw-bar: 100%;
|
|
2869
|
+
--sw-rest: var(--vk-neutral); --sw-hover: var(--vk-neutral-hovered); --sw-edge-rest: transparent; --sw-edge-hover: transparent;
|
|
2870
|
+
--sw-on-track: var(--sw-on); --sw-thumb-rest: var(--vk-fg-inverse); --sw-thumb-on: var(--vk-fg-on-brand); --sw-thumb-shadow: var(--vk-shadow-md); --sw-glyph-on: var(--sw-on); --sw-glyph-off: var(--vk-fg-subtle); --sw-ink: var(--vk-fg-on-brand);
|
|
2871
|
+
}
|
|
2872
|
+
[data-switch-phone="capsule"] .o-switch:not(.o-switch-sm):where(:not([data-computer-host], [data-computer-host] *)), .o-switch:not(.o-switch-sm):not([data-switch-phone] *):where(:not([data-computer-host], [data-computer-host] *)) { --sw-w0: calc(var(--vk-spacing) * 17.75); --sw-tw: calc(var(--vk-spacing) * 10.25); }
|
|
2873
|
+
}
|
|
2874
|
+
@container o-phone (width < 640px) {
|
|
2875
|
+
.o-switch:not(.o-switch-sm) {
|
|
2876
|
+
--sw-h: calc(var(--vk-spacing) * 7.75); --sw-w0: calc(var(--vk-spacing) * 12.75); --sw-tw: calc(var(--vk-spacing) * 6.75); --sw-th: calc(var(--vk-spacing) * 6.75); --sw-inset: calc(var(--vk-spacing) * 0.5); --sw-bar: 100%;
|
|
2877
|
+
--sw-rest: var(--vk-neutral); --sw-hover: var(--vk-neutral-hovered); --sw-edge-rest: transparent; --sw-edge-hover: transparent;
|
|
2878
|
+
--sw-on-track: var(--sw-on); --sw-thumb-rest: var(--vk-fg-inverse); --sw-thumb-on: var(--vk-fg-on-brand); --sw-thumb-shadow: var(--vk-shadow-md); --sw-glyph-on: var(--sw-on); --sw-glyph-off: var(--vk-fg-subtle); --sw-ink: var(--vk-fg-on-brand);
|
|
2879
|
+
}
|
|
2880
|
+
[data-switch-phone="capsule"] .o-switch:not(.o-switch-sm), .o-switch:not(.o-switch-sm):not([data-switch-phone] *) { --sw-w0: calc(var(--vk-spacing) * 17.75); --sw-tw: calc(var(--vk-spacing) * 10.25); }
|
|
2881
|
+
}
|
|
2882
|
+
|
|
2883
|
+
/* ── Motion. Stretch while held, the kit's until duration-base on ease-in-out, the thumb a spacing step longer toward
|
|
2884
|
+
where it is going while pressed. Spring: it runs a little past and settles. Stretch as it goes: its front edge leaves first
|
|
2885
|
+
and its back catches up. Colour follows: the track keeps its off paint and the brand fills in behind the thumb ─────── */
|
|
2886
|
+
[data-switch-motion="held"] .o-switch { --sw-time: var(--vk-duration-base); --sw-ease: var(--vk-ease-in-out); }
|
|
2887
|
+
[data-switch-motion="spring"] .o-switch { --sw-time: calc(var(--vk-duration-slow) * 1.5); --sw-ease: var(--vk-ease-spring); }
|
|
2888
|
+
[data-switch-motion="stretch"] .o-switch { --sw-time: var(--vk-duration-base); --sw-ease: var(--vk-ease-in-out); --sw-lead: var(--vk-duration-fast); --sw-trail: var(--vk-duration-slow); }
|
|
2889
|
+
[data-switch-motion="follow"] .o-switch { --sw-time: calc(var(--vk-duration-base) * 1.2); --sw-ease: var(--vk-ease-in-out); }
|
|
2890
|
+
|
|
2891
|
+
/* ── Under the pointer, on the track or its row: its shape's deeper paint; on, a deeper brand ─────────────────────────── */
|
|
2892
|
+
/* A hover only on a screen with a pointer (iOS keeps :hover on what was last tapped); a press and the forced state stay out. */
|
|
2893
|
+
.o-switch[data-force="hover"]:not([data-disabled]) { --sw-off: var(--sw-hover); --sw-edge: var(--sw-edge-hover); --sw-on: var(--vk-brand-hovered); }
|
|
2894
|
+
@media (hover: hover) { :is(.o-switch:hover, .o-switch-row:hover .o-switch):not([data-disabled]) { --sw-off: var(--sw-hover); --sw-edge: var(--sw-edge-hover); --sw-on: var(--vk-brand-hovered); } }
|
|
2895
|
+
|
|
2896
|
+
/* ── On: the brand fills the track, the thumb crosses, its front edge in lead and its back in trail ───────────────────── */
|
|
2897
|
+
.o-switch[data-checked] { --sw-paint: var(--sw-on-track); --sw-ring: var(--sw-on-track); }
|
|
2898
|
+
.o-switch[data-checked] > .o-switch-thumb {
|
|
2899
|
+
left: calc(var(--sw-w) - var(--sw-inset) - var(--sw-tw)); right: var(--sw-inset); background-color: var(--sw-knob-on);
|
|
2900
|
+
transition-duration: var(--sw-trail), var(--sw-lead), var(--sw-time);
|
|
2901
|
+
}
|
|
2902
|
+
[data-switch-motion="held"] .o-switch:is(:active, [data-force="press"]):not([data-disabled], [data-checked]) > .o-switch-thumb { right: calc(var(--sw-w) - var(--sw-inset) - var(--sw-tw) - var(--vk-spacing) * var(--sw-u)); }
|
|
2903
|
+
[data-switch-motion="held"] .o-switch[data-checked]:is(:active, [data-force="press"]):not([data-disabled]) > .o-switch-thumb { left: calc(var(--sw-w) - var(--sw-inset) - var(--sw-tw) - var(--vk-spacing) * var(--sw-u)); }
|
|
2904
|
+
.o-switch-fill { display: none; }
|
|
2905
|
+
[data-switch-motion="follow"] .o-switch[data-checked] { --sw-paint: var(--sw-off); --sw-ring: var(--sw-edge); }
|
|
2906
|
+
[data-switch-motion="follow"] .o-switch-fill {
|
|
2907
|
+
display: block; position: absolute; z-index: 0; inset: calc((100% - var(--sw-bar)) / 2) auto calc((100% - var(--sw-bar)) / 2) 0; width: var(--sw-h); border-radius: var(--vk-radius-full);
|
|
2908
|
+
background-color: var(--sw-on-track); opacity: 0; transition: width var(--sw-time) var(--sw-ease), opacity var(--sw-time) var(--vk-ease-out);
|
|
2909
|
+
}
|
|
2910
|
+
[data-switch-motion="follow"] .o-switch[data-checked] > .o-switch-fill { width: 100%; opacity: 1; transition-duration: var(--sw-time), calc(var(--vk-duration-fast) * 0.5); }
|
|
2911
|
+
|
|
2912
|
+
/* ── Mark: what it holds. A tick in its thumb when on; a cross when off too; I where it is on and O where it is off, in its
|
|
2913
|
+
track; or its two words there, the track a little wider for them. Each is always in the switch, shown only when picked ── */
|
|
2914
|
+
.o-switch-thumb > svg { display: none; position: absolute; inset: 0; margin: auto; width: calc(var(--sw-th) * 0.68); height: calc(var(--sw-th) * 0.68); stroke-width: calc(var(--vk-spacing) * 0.45); }
|
|
2915
|
+
:is([data-switch-mark="tick"], [data-switch-mark="both"]) .o-switch[data-checked] .o-switch-tick { display: block; color: var(--sw-glyph-on); }
|
|
2916
|
+
[data-switch-mark="both"] .o-switch:not([data-checked]) .o-switch-cross { display: block; color: var(--sw-glyph-off); }
|
|
2917
|
+
.o-switch-i, .o-switch-o, .o-switch-word { display: none; }
|
|
2918
|
+
[data-switch-mark="io"] :is(.o-switch-i, .o-switch-o) { display: block; position: absolute; z-index: 1; top: 50%; box-sizing: border-box; border-radius: var(--vk-radius-full); transition: opacity var(--sw-time) var(--vk-ease-out); }
|
|
2919
|
+
[data-switch-mark="io"] .o-switch-i { left: calc((var(--sw-w) - var(--sw-inset) - var(--sw-tw)) / 2); translate: -50% -50%; width: calc(var(--sw-h) * 0.08); height: calc(var(--sw-h) * 0.36); background-color: var(--sw-ink); opacity: 0; }
|
|
2920
|
+
[data-switch-mark="io"] .o-switch-o { right: calc((var(--sw-w) - var(--sw-inset) - var(--sw-tw)) / 2); translate: 50% -50%; width: calc(var(--sw-h) * 0.32); height: calc(var(--sw-h) * 0.32); border: calc(var(--sw-h) * 0.07) solid var(--vk-fg-subtle); }
|
|
2921
|
+
[data-switch-mark="io"] .o-switch[data-checked] > .o-switch-i { opacity: 1; }
|
|
2922
|
+
[data-switch-mark="io"] .o-switch[data-checked] > .o-switch-o { opacity: 0; }
|
|
2923
|
+
[data-switch-mark="words"] .o-switch { --sw-more: calc(var(--sw-h) * 0.7); }
|
|
2924
|
+
[data-switch-mark="words"] .o-switch-word {
|
|
2925
|
+
display: flex; position: absolute; z-index: 1; inset-block: 0; align-items: center; pointer-events: none;
|
|
2926
|
+
font-size: calc(var(--sw-h) * 0.45); line-height: 1; font-weight: var(--vk-font-weight-semibold); opacity: 0; transition: opacity var(--sw-time) var(--vk-ease-out);
|
|
2927
|
+
}
|
|
2928
|
+
[data-switch-mark="words"] .o-switch-word[data-for="on"] { left: calc(var(--sw-h) * 0.4); color: var(--sw-ink); }
|
|
2929
|
+
[data-switch-mark="words"] .o-switch-word[data-for="off"] { right: calc(var(--sw-h) * 0.35); color: var(--vk-fg-subtle); }
|
|
2930
|
+
[data-switch-mark="words"] .o-switch[data-checked] > .o-switch-word[data-for="on"], [data-switch-mark="words"] .o-switch:not([data-checked]) > .o-switch-word[data-for="off"] { opacity: 1; }
|
|
2931
|
+
|
|
2932
|
+
/* ── What one switch is told. Saving: the Spinner in its thumb while the change is saved, and a press does nothing. Locked: it
|
|
2933
|
+
can't be changed here, a lock in its thumb, which keeps its own colour so the lock reads ───────────────────────────── */
|
|
2934
|
+
.o-switch-thumb > .o-spinner { position: absolute; inset: 0; margin: auto; color: var(--vk-fg-subtle); }
|
|
2935
|
+
.o-switch[data-saving] { cursor: progress; }
|
|
2936
|
+
.o-switch-thumb > .o-switch-lock { display: block; color: var(--vk-fg-subtle); stroke-width: calc(var(--vk-spacing) * 0.35); }
|
|
2937
|
+
|
|
2938
|
+
/* ── In error (aria-invalid, its Field's error, or a group in error around it): a red edge inside the track; on, the danger
|
|
2939
|
+
colour fills it. The pointer never takes it away; focus rings it in red; disabled wins ─────────────────────────────── */
|
|
2940
|
+
.o-switch:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]),
|
|
2941
|
+
.o-switch[data-force="hover"]:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]) { --sw-edge: var(--vk-border-danger); --sw-on: var(--vk-danger-bold); --sw-knob-on: var(--vk-fg-inverse); }
|
|
2942
|
+
@media (hover: hover) { :is(.o-switch:hover, .o-switch-row:hover .o-switch):is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]) { --sw-edge: var(--vk-border-danger); --sw-on: var(--vk-danger-bold-hovered); --sw-knob-on: var(--vk-fg-inverse); } }
|
|
2943
|
+
.o-switch[data-force="hover"][data-checked]:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]) { --sw-on: var(--vk-danger-bold-hovered); }
|
|
2944
|
+
.o-switch:is(:focus-visible, [data-force="focus"]):is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *) { outline-color: var(--vk-border-danger); }
|
|
2945
|
+
|
|
2946
|
+
/* ── Focus: the outline 2px outside the track ──────────────────────────────────────────────────────── */
|
|
2947
|
+
.o-switch:is(:focus-visible, [data-force="focus"]) { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: var(--vk-focus-offset); }
|
|
2948
|
+
|
|
2949
|
+
/* ── Disabled: off, grey with a softer edge; on, the brand's palest tint; the thumb greyed, no shadow. Locked keeps its thumb ─ */
|
|
2950
|
+
.o-switch[data-disabled] {
|
|
2951
|
+
--sw-off: var(--vk-neutral); --sw-edge: var(--vk-border-subtle); --sw-on: var(--vk-brand-subtler); --sw-on-track: var(--sw-on);
|
|
2952
|
+
--sw-knob: var(--vk-fg-disabled); --sw-knob-on: var(--vk-fg-disabled); --sw-knob-shadow: none; cursor: not-allowed;
|
|
2953
|
+
}
|
|
2954
|
+
.o-switch[data-disabled][data-locked] { --sw-knob: var(--vk-fg-inverse); --sw-knob-on: var(--vk-fg-inverse); --sw-knob-shadow: var(--sw-thumb-shadow); }
|
|
2955
|
+
|
|
2956
|
+
@media (prefers-reduced-motion: reduce) { .o-switch::before, .o-switch-thumb, .o-switch-fill, .o-switch-i, .o-switch-o, .o-switch-word { transition: none; } }
|
|
2957
|
+
|
|
2958
|
+
/* ── A tag: 22px, its edge drawn inside, the icon then the word; a long word cut at 200px. Its ground, edge, height and corner
|
|
2959
|
+
are variables, which the Option's looks and states set, so its cut draws them under Smooth: --tag-ground (none),
|
|
2960
|
+
--tag-edge, --tag-h, --tag-r, and --tag-rr, the corner its height leaves room for; --tag-shadow: none where a look draws no
|
|
2961
|
+
edge, which a colour look's own edge outweighs (initial) ──────────────────────────────────────────────────────────────── */
|
|
2962
|
+
.o-tag {
|
|
2963
|
+
--tag-ground: transparent; --tag-edge: var(--vk-border-bold); --tag-h: calc(var(--vk-spacing) * 5.5); --tag-r: var(--vk-radius-md);
|
|
2964
|
+
--tag-rr: min(var(--tag-r), var(--tag-h) / 2);
|
|
2965
|
+
flex: none; display: inline-flex; align-items: center; gap: calc(var(--vk-spacing) * 1); box-sizing: border-box; max-width: calc(var(--vk-spacing) * 50);
|
|
2966
|
+
height: var(--tag-h); padding: 0 calc(var(--vk-spacing) * 2);
|
|
2967
|
+
border-radius: var(--tag-r); background-color: var(--tag-ground); box-shadow: var(--tag-shadow, inset 0 0 0 var(--vk-border-width) var(--tag-edge));
|
|
2968
|
+
color: var(--vk-fg); font-size: var(--vk-font-size-xs); line-height: 1; font-weight: var(--vk-font-weight-medium); white-space: nowrap;
|
|
2969
|
+
}
|
|
2970
|
+
/* Its word is cropped so a long one ends in "…". The box that crops it stands as tall as the chip, never only as tall as its
|
|
2971
|
+
letters: at the chip's line-height of 1 the crop took the foot of every g, y and p. The word stays where it was. */
|
|
2972
|
+
.o-tag-word { overflow: hidden; text-overflow: ellipsis; line-height: var(--tag-h); }
|
|
2973
|
+
.o-tag-icon { flex: none; width: calc(var(--vk-spacing) * 3); height: calc(var(--vk-spacing) * 3); margin-left: calc(var(--vk-spacing) * -0.25); fill: none; stroke: var(--vk-fg-subtle); stroke-linecap: round; stroke-linejoin: round; }
|
|
2974
|
+
/* Small, in dense rows; a count for the rest, its number in the quieter colour. */
|
|
2975
|
+
.o-tag.o-tag-sm { --tag-h: calc(var(--vk-spacing) * 5); padding: 0 calc(var(--vk-spacing) * 1.5); }
|
|
2976
|
+
.o-tag.o-tag-count { color: var(--vk-fg-subtle); font-variant-numeric: tabular-nums; }
|
|
2977
|
+
|
|
2978
|
+
/* ── Its remove button, in a field ─────────────────────────────────────────────────────────────────── */
|
|
2979
|
+
.o-tag-remove {
|
|
2980
|
+
display: inline-grid; place-items: center; width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); margin: 0 calc(var(--vk-spacing) * -1.25) 0 0; padding: 0;
|
|
2981
|
+
border: 0; border-radius: var(--vk-radius-xs); background-color: transparent; color: var(--vk-fg-subtle); cursor: pointer; outline: none;
|
|
2982
|
+
transition: background-color var(--vk-duration-fast) var(--vk-ease-out), color var(--vk-duration-fast) var(--vk-ease-out);
|
|
2983
|
+
}
|
|
2984
|
+
/* A hover only on a screen with a pointer (iOS keeps :hover on what was last tapped); a press and the forced state stay out. */
|
|
2985
|
+
.o-tag-remove[data-force="hover"] { background-color: var(--vk-neutral-hovered); color: var(--vk-fg); }
|
|
2986
|
+
@media (hover: hover) { .o-tag-remove:hover { background-color: var(--vk-neutral-hovered); color: var(--vk-fg); } }
|
|
2987
|
+
.o-tag-remove:is(:focus-visible, [data-force="focus"]) { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: calc(var(--vk-spacing) * 0.25); }
|
|
2988
|
+
.o-tag-remove svg { width: calc(var(--vk-spacing) * 2.5); height: calc(var(--vk-spacing) * 2.5); fill: none; stroke: currentColor; stroke-linecap: round; }
|
|
2989
|
+
|
|
2990
|
+
/* ── Corner smoothing, the Tag's and the Option's, each its own (data-tag-smoothing, data-option-smoothing; looks.ts): The
|
|
2991
|
+
app's, with nothing set, follows the token corner-smoothing (Round is the token at 0), Smooth and Round set the
|
|
2992
|
+
chip apart. Under Smooth or The app's the chip is drawn with the kit's smooth outline (ViewKit's smooth.css), eased on its side, in
|
|
2993
|
+
every browser that knows shape(); one that doesn't keeps the corners above, and so do Round and an Option at Full (a pill has no
|
|
2994
|
+
corner to smooth), which paint the chip as before. The chip itself is never clipped: its remove button's focus ring reaches its
|
|
2995
|
+
edge, and a link Option's ring and pressing area stand outside it. Its ground and edge are handed to its cut (.o-tag-cut, the
|
|
2996
|
+
chip's first child): the ground (::before) clipped by the outline, the edge (::after) a ring along it. The amount is set on the
|
|
2997
|
+
cut, never the chip, which may hold an Avatar of its own (an Option's mark). ───────────────────────────────────────────────── */
|
|
2998
|
+
.o-tag-cut { display: none; --smooth-amount: var(--vk-corner-smoothing); }
|
|
2999
|
+
/* Its layers' colours move as a link's ground does, a rule light enough that reduced motion (at the file's end) stops it. */
|
|
3000
|
+
.o-tag-cut::before, .o-tag-cut::after { transition: background-color var(--vk-duration-fast) var(--vk-ease-out); }
|
|
3001
|
+
[data-tag-smoothing="smooth"] .o-tag:not(.o-option) > .o-tag-cut, [data-option-smoothing="smooth"] .o-option > .o-tag-cut { --smooth-amount: initial; }
|
|
3002
|
+
@supports (clip-path: shape(evenodd from 0 0, curve by 1px 1px with 1px 0 / 1px 0, close, move to 0 0, hline to 1px, close)) and (width: calc(tan(atan2(1px, 1px)) * 1px)) {
|
|
3003
|
+
/* Its own corner is its ground's, so a link Option's focus ring stands on the fitted corner: worked from the token,
|
|
3004
|
+
or the full 0.7 under its own Smooth, never from the cut's amount, which stays on the cut. */
|
|
3005
|
+
.o-tag:not(.o-option, [data-tag-smoothing="round"] *):has(> .o-tag-cut),
|
|
3006
|
+
.o-option:not([data-option-smoothing="round"] *, [data-option-radius="full"] *):has(> .o-tag-cut) {
|
|
3007
|
+
--smooth-side: var(--tag-h);
|
|
3008
|
+
position: relative; isolation: isolate; background-color: transparent; box-shadow: none;
|
|
3009
|
+
border-radius: min(var(--tag-rr), var(--tag-h) / (2 + 2 * var(--vk-corner-smoothing)));
|
|
3010
|
+
}
|
|
3011
|
+
[data-tag-smoothing="smooth"] .o-tag:not(.o-option, [data-tag-smoothing="round"] *):has(> .o-tag-cut),
|
|
3012
|
+
[data-option-smoothing="smooth"] .o-option:not([data-option-smoothing="round"] *, [data-option-radius="full"] *):has(> .o-tag-cut) {
|
|
3013
|
+
border-radius: min(var(--tag-rr), var(--tag-h) / 3.4);
|
|
3014
|
+
}
|
|
3015
|
+
.o-tag:not(.o-option, [data-tag-smoothing="round"] *) > .o-tag-cut,
|
|
3016
|
+
.o-option:not([data-option-smoothing="round"] *, [data-option-radius="full"] *) > .o-tag-cut {
|
|
3017
|
+
--tag-fit: min(var(--tag-rr), var(--tag-h) / (2 + 2 * var(--smooth-amount, 0.7))); --smooth-t: var(--tag-fit);
|
|
3018
|
+
display: block; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
|
|
3019
|
+
.o-tag:not(.o-option, [data-tag-smoothing="round"] *) > .o-tag-cut::before,
|
|
3020
|
+
.o-option:not([data-option-smoothing="round"] *, [data-option-radius="full"] *) > .o-tag-cut::before {
|
|
3021
|
+
content: ""; position: absolute; inset: 0; background-color: var(--tag-ground); clip-path: shape(var(--smooth-outline));
|
|
3022
|
+
}
|
|
3023
|
+
.o-tag:not(.o-option, [data-tag-smoothing="round"] *) > .o-tag-cut::after,
|
|
3024
|
+
.o-option:not([data-option-smoothing="round"] *, [data-option-radius="full"] *) > .o-tag-cut::after {
|
|
3025
|
+
--smooth-t: max(0px, var(--tag-fit) - var(--vk-border-width)); --smooth-in: var(--vk-border-width);
|
|
3026
|
+
content: ""; position: absolute; inset: 0; background-color: var(--tag-edge); clip-path: shape(var(--smooth-ring));
|
|
3027
|
+
}
|
|
3028
|
+
}
|
|
3029
|
+
|
|
3030
|
+
@media (prefers-reduced-motion: reduce) { .o-tag-remove, .o-tag-cut::before, .o-tag-cut::after { transition: none; } }
|
|
3031
|
+
|
|
3032
|
+
/* ── On: the neutral fill a step up (background-neutral-hovered), its words and icon in the text colour.
|
|
3033
|
+
The surface's own selected fill sits 2% from its hover in light, so a toggle under the pointer would
|
|
3034
|
+
read as on; this one is clear of it in both themes. It keeps it under the pointer and while pressed, in
|
|
3035
|
+
every look; only a toggle that can't be used drops it (a quiet one keeps the neutral fill, so it still
|
|
3036
|
+
reads as on) ──────────────────────────────────────────────────────────────────────────────────────── */
|
|
3037
|
+
.o-toggle.o-button[data-pressed]:not(:disabled, [data-disabled]) { --button-ground: var(--vk-neutral-hovered); --button-light: none; color: var(--vk-fg); }
|
|
3038
|
+
.o-toggle.o-button-quiet[data-pressed]:is(:disabled, [data-disabled]) { --button-ground: var(--vk-neutral); }
|
|
3039
|
+
|
|
3040
|
+
/* ── With an icon of its own for on (a star, a pin, a bell): on, it takes no fill (the quiet kind none, the
|
|
3041
|
+
outline its surface), the pointer's fill still shows, and the filled icon carries it in its colour:
|
|
3042
|
+
the brand by default; amber (a label's, a colour someone chose) or the text colour as the app picks
|
|
3043
|
+
(data-toggle-mark); or the toggle's own tone, whatever the app picks. Off, or can't be used, it is
|
|
3044
|
+
the toggle's own colour ────────────────────────────────────────────────────────────────────────────── */
|
|
3045
|
+
.o-toggle-mark { --o-toggle-mark: var(--vk-brand); }
|
|
3046
|
+
[data-toggle-mark="amber"] .o-toggle-mark { --o-toggle-mark: var(--vk-label-amber); }
|
|
3047
|
+
[data-toggle-mark="text"] .o-toggle-mark { --o-toggle-mark: var(--vk-fg); }
|
|
3048
|
+
.o-toggle-mark[data-tone="brand"] { --o-toggle-mark: var(--vk-brand); }
|
|
3049
|
+
.o-toggle-mark[data-tone="amber"] { --o-toggle-mark: var(--vk-label-amber); }
|
|
3050
|
+
.o-toggle-mark[data-tone="text"] { --o-toggle-mark: var(--vk-fg); }
|
|
3051
|
+
.o-toggle.o-toggle-mark.o-button-quiet[data-pressed] { --button-ground: transparent; }
|
|
3052
|
+
.o-toggle.o-toggle-mark.o-button-outline[data-pressed]:not(:disabled, [data-disabled]) { --button-ground: var(--vk-ground); }
|
|
3053
|
+
.o-toggle.o-toggle-mark.o-button[data-pressed][data-force="hover"]:not(:disabled, [data-disabled]) { --button-ground: var(--vk-hovered); }
|
|
3054
|
+
/* The pointer's fill only on a screen that has one: iOS keeps :hover on what was last tapped, so on a phone the
|
|
3055
|
+
fill would stay after the tap. The sheets' forced state, above, shows on any screen. */
|
|
3056
|
+
@media (hover: hover) {
|
|
3057
|
+
.o-toggle.o-toggle-mark.o-button[data-pressed]:hover:not(:disabled, [data-disabled], [data-readonly]) { --button-ground: var(--vk-hovered); }
|
|
3058
|
+
}
|
|
3059
|
+
.o-toggle-mark[data-pressed]:not(:disabled, [data-disabled]) > [data-slot="vk-button-icon"] { color: var(--o-toggle-mark); }
|
|
3060
|
+
|
|
3061
|
+
/* ── Read-only: shown, never pressed. On, it keeps its fill; nothing dims; the pointer's fill and the press's
|
|
3062
|
+
never come (button.css and the rule above pass data-readonly by), and the pointer is the page's own ────────────── */
|
|
3063
|
+
.o-toggle.o-button[data-readonly] { cursor: default; }
|
|
3064
|
+
|
|
3065
|
+
/* ── In error (aria-invalid, or inside a FieldSet in error): the outline kind's edge turns red, and the
|
|
3066
|
+
pointer never takes it away ───────────────────────────────────────────────────────────────────────── */
|
|
3067
|
+
.o-toggle.o-button-outline:is([aria-invalid="true"], .o-fieldset[data-invalid] *):not(:disabled, [data-disabled]) { --button-edge: var(--vk-border-danger); --button-edge-foot: var(--vk-border-danger); }
|
|
3068
|
+
|
|
3069
|
+
/* ── The pill: the outline Button, fully round at every
|
|
3070
|
+
size (over the frame's Corners), its words padded as the Pill look pads them. Off, no ground, the light edge and its words
|
|
3071
|
+
quiet; under the pointer its words the text's and its edge a step up; on, the Toggle's own on fill above, its words the text's
|
|
3072
|
+
and the outline's edge. Its error edge, focus, and the frame's depth and hover looks are the outline's ──────────────────── */
|
|
3073
|
+
.o-toggle.o-toggle-pill.o-button:not(.o-button-round) { --button-r: var(--vk-radius-full); }
|
|
3074
|
+
.o-toggle-pill.o-button:not(.o-button-icon, .o-button-round) { padding: 0 calc(var(--vk-spacing) * 4.5); }
|
|
3075
|
+
.o-toggle-pill.o-button-2xs:not(.o-button-icon, .o-button-round) { padding: 0 calc(var(--vk-spacing) * 2.5); }
|
|
3076
|
+
.o-toggle-pill.o-button-xs:not(.o-button-icon, .o-button-round) { padding: 0 calc(var(--vk-spacing) * 3); }
|
|
3077
|
+
.o-toggle-pill.o-button-sm:not(.o-button-icon, .o-button-round) { padding: 0 calc(var(--vk-spacing) * 3.5); }
|
|
3078
|
+
.o-toggle-pill.o-button-lg:not(.o-button-icon, .o-button-round) { padding: 0 calc(var(--vk-spacing) * 5.5); }
|
|
3079
|
+
.o-toggle.o-toggle-pill:not([data-pressed], :disabled, [data-disabled]) { --button-ground: transparent; --button-edge: var(--vk-border); --button-edge-foot: var(--vk-border); color: var(--vk-fg-subtle); }
|
|
3080
|
+
.o-toggle.o-toggle-pill[data-force="hover"]:not([data-pressed], :disabled, [data-disabled], [data-readonly]) { --button-edge: var(--vk-border-input); --button-edge-foot: var(--vk-border-input); color: var(--vk-fg); }
|
|
3081
|
+
@media (hover: hover) {
|
|
3082
|
+
.o-toggle.o-toggle-pill:hover:not([data-pressed], :disabled, [data-disabled], [data-readonly]) { --button-edge: var(--vk-border-input); --button-edge-foot: var(--vk-border-input); color: var(--vk-fg); }
|
|
3083
|
+
}
|
|
3084
|
+
|
|
3085
|
+
/* ── A group: its toggles in a row, or a column, apart by its spacing (in spacing steps). Joined, it is a
|
|
3086
|
+
ButtonGroup (button.css): only the group's outer corners round, the edges between shared ──────────── */
|
|
3087
|
+
.o-toggle-group { display: inline-flex; align-items: stretch; width: fit-content; gap: calc(var(--vk-spacing) * var(--o-toggle-gap)); }
|
|
3088
|
+
.o-toggle-group[data-orientation="vertical"] { flex-direction: column; }
|
|
3089
|
+
.o-toggle-group.o-button-group { gap: 0; }
|
|
3090
|
+
|
|
3091
|
+
/* ── The tooltip: the page's text colour as its ground and the page's ground as its words, so it stands
|
|
3092
|
+
out in both themes with no shadow; 6px by 8px, ¾ of the radius, 6px from what it names ──────────── */
|
|
3093
|
+
.o-tooltip {
|
|
3094
|
+
box-sizing: border-box; display: inline-flex; align-items: center; gap: calc(var(--vk-spacing) * 2);
|
|
3095
|
+
width: max-content; max-width: calc(var(--vk-spacing) * 80);
|
|
3096
|
+
padding: calc(var(--vk-spacing) * 1.5) calc(var(--vk-spacing) * 2); border-radius: var(--vk-radius-md);
|
|
3097
|
+
background-color: var(--vk-fg); color: var(--vk-ground);
|
|
3098
|
+
font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs)); font-weight: var(--vk-font-weight-medium);
|
|
3099
|
+
pointer-events: none;
|
|
3100
|
+
transition: opacity var(--vk-duration-fast) var(--vk-ease-out), translate var(--vk-duration-fast) var(--vk-ease-out);
|
|
3101
|
+
}
|
|
3102
|
+
.o-tooltip-positioner { z-index: var(--vk-layer-popup); }
|
|
3103
|
+
/* What it names hands its script its times, read there so a look set round it reaches them: the wait before it shows, how long a
|
|
3104
|
+
tapped reason stays, and a group's warm time. */
|
|
3105
|
+
.o-tooltip-trigger { --tooltip-wait: var(--vk-tooltip-delay); --tooltip-tap: var(--vk-toast-duration); --tooltip-warm-now: var(--vk-tooltip-warm); }
|
|
3106
|
+
/* It fades in and rises 2px. */
|
|
3107
|
+
.o-tooltip:is([data-starting-style], [data-ending-style]) { opacity: 0; translate: 0 calc(var(--vk-spacing) * 0.5); }
|
|
3108
|
+
|
|
3109
|
+
/* ── A longer reason: it wraps, at least 200px wide and at most 320px, in the regular weight ────────── */
|
|
3110
|
+
.o-tooltip.o-tooltip-reason { width: auto; min-width: calc(var(--vk-spacing) * 50); font-weight: var(--vk-font-weight-normal); }
|
|
3111
|
+
|
|
3112
|
+
/* ── Its shortcut: the tooltip's own small key, 16px, outlined in its words' colour (the Kbd inside) ─── */
|
|
3113
|
+
.o-tooltip .o-kbd {
|
|
3114
|
+
min-width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); padding: 0 calc(var(--vk-spacing) * 1);
|
|
3115
|
+
border: 0; border-radius: var(--vk-radius-xs); box-shadow: inset 0 0 0 var(--vk-border-width) currentColor;
|
|
3116
|
+
background-color: transparent; color: inherit; font-size: var(--vk-font-size-2xs); vertical-align: baseline;
|
|
3117
|
+
}
|
|
3118
|
+
.o-tooltip .o-keys { gap: calc(var(--vk-spacing) * 2); }
|
|
3119
|
+
|
|
3120
|
+
/* ── Shown standing open on a sheet: above, below or beside what it names ───────────────────────────── */
|
|
3121
|
+
.o-tooltip-anchor { position: relative; display: inline-flex; }
|
|
3122
|
+
.o-tooltip-anchor > .o-tooltip { position: absolute; z-index: 1; }
|
|
3123
|
+
.o-tooltip-anchor > .o-tooltip[data-side="top"] { bottom: calc(100% + var(--vk-spacing) * 1.5); left: 50%; translate: -50% 0; }
|
|
3124
|
+
.o-tooltip-anchor > .o-tooltip[data-side="bottom"] { top: calc(100% + var(--vk-spacing) * 1.5); left: 50%; translate: -50% 0; }
|
|
3125
|
+
.o-tooltip-anchor > .o-tooltip[data-side="right"] { left: calc(100% + var(--vk-spacing) * 1.5); top: 50%; translate: 0 -50%; }
|
|
3126
|
+
.o-tooltip-anchor > .o-tooltip[data-side="left"] { right: calc(100% + var(--vk-spacing) * 1.5); top: 50%; translate: 0 -50%; }
|
|
3127
|
+
|
|
3128
|
+
/* ── Lined up at its start or its end, shown standing open ────────────────────────────────────────────── */
|
|
3129
|
+
.o-tooltip-anchor > .o-tooltip:is([data-side="top"], [data-side="bottom"])[data-align="start"] { left: 0; translate: none; }
|
|
3130
|
+
.o-tooltip-anchor > .o-tooltip:is([data-side="top"], [data-side="bottom"])[data-align="end"] { left: auto; right: 0; translate: none; }
|
|
3131
|
+
.o-tooltip-anchor > .o-tooltip:is([data-side="left"], [data-side="right"])[data-align="start"] { top: 0; translate: none; }
|
|
3132
|
+
.o-tooltip-anchor > .o-tooltip:is([data-side="left"], [data-side="right"])[data-align="end"] { top: auto; bottom: 0; translate: none; }
|
|
3133
|
+
|
|
3134
|
+
/* ── The Arrow: None, or a soft point, a 10px square turned on its corner, its corners softened, half of it
|
|
3135
|
+
showing; with it the tooltip stands 10px off. Base UI places the live one's along its side; the shown one points at the
|
|
3136
|
+
middle of what it names. ─────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
3137
|
+
.o-tooltip-arrow { display: none; }
|
|
3138
|
+
[data-tooltip-arrow="soft"] .o-tooltip-arrow {
|
|
3139
|
+
display: block; position: absolute; width: calc(var(--vk-spacing) * 2.5); height: calc(var(--vk-spacing) * 2.5);
|
|
3140
|
+
border-radius: calc(var(--vk-radius-xs) * 0.75); background-color: var(--vk-fg); rotate: 45deg; pointer-events: none;
|
|
3141
|
+
}
|
|
3142
|
+
[data-tooltip-arrow="soft"] .o-tooltip[data-side="top"] > .o-tooltip-arrow { bottom: calc(var(--vk-spacing) * -1); }
|
|
3143
|
+
[data-tooltip-arrow="soft"] .o-tooltip[data-side="bottom"] > .o-tooltip-arrow { top: calc(var(--vk-spacing) * -1); }
|
|
3144
|
+
[data-tooltip-arrow="soft"] .o-tooltip[data-side="right"] > .o-tooltip-arrow { left: calc(var(--vk-spacing) * -1); }
|
|
3145
|
+
[data-tooltip-arrow="soft"] .o-tooltip[data-side="left"] > .o-tooltip-arrow { right: calc(var(--vk-spacing) * -1); }
|
|
3146
|
+
/* Shown standing open: 10px off, its point at the middle of what it names. */
|
|
3147
|
+
[data-tooltip-arrow="soft"] .o-tooltip-anchor > .o-tooltip[data-side="top"] { bottom: calc(100% + var(--vk-spacing) * 2.5); }
|
|
3148
|
+
[data-tooltip-arrow="soft"] .o-tooltip-anchor > .o-tooltip[data-side="bottom"] { top: calc(100% + var(--vk-spacing) * 2.5); }
|
|
3149
|
+
[data-tooltip-arrow="soft"] .o-tooltip-anchor > .o-tooltip[data-side="right"] { left: calc(100% + var(--vk-spacing) * 2.5); }
|
|
3150
|
+
[data-tooltip-arrow="soft"] .o-tooltip-anchor > .o-tooltip[data-side="left"] { right: calc(100% + var(--vk-spacing) * 2.5); }
|
|
3151
|
+
[data-tooltip-arrow="soft"] .o-tooltip-anchor > .o-tooltip:is([data-side="top"], [data-side="bottom"]) > .o-tooltip-arrow { left: calc(50% - var(--vk-spacing) * 1.25); }
|
|
3152
|
+
[data-tooltip-arrow="soft"] .o-tooltip-anchor > .o-tooltip:is([data-side="top"], [data-side="bottom"])[data-align="start"] > .o-tooltip-arrow { left: calc(var(--tooltip-anchor-width, 50%) / 2 - var(--vk-spacing) * 1.25); }
|
|
3153
|
+
[data-tooltip-arrow="soft"] .o-tooltip-anchor > .o-tooltip:is([data-side="top"], [data-side="bottom"])[data-align="end"] > .o-tooltip-arrow { left: auto; right: calc(var(--tooltip-anchor-width, 50%) / 2 - var(--vk-spacing) * 1.25); }
|
|
3154
|
+
[data-tooltip-arrow="soft"] .o-tooltip-anchor > .o-tooltip:is([data-side="left"], [data-side="right"]) > .o-tooltip-arrow { top: calc(50% - var(--vk-spacing) * 1.25); }
|
|
3155
|
+
|
|
3156
|
+
/* Under reduced motion it just appears. */
|
|
3157
|
+
@media (prefers-reduced-motion: reduce) { .o-tooltip { transition: none; } }
|
|
3158
|
+
/* ── Its corners smooth: following --vk-corner-smoothing, drawn with the smooth outline
|
|
3159
|
+
(smooth.css) in every browser that knows shape(); one that doesn't keeps the corners above. Its round part is fitted to its
|
|
3160
|
+
one line, as a control's is. Its arrow stands outside it, so it is never clipped: its ground is a layer inside it (::before),
|
|
3161
|
+
clipped, as the Popover's is, over the box its positioner hugs (the tooltip takes no position of its own, so its arrow stands
|
|
3162
|
+
where Base UI puts it); the arrow stays as it draws. Its own small key stays as it draws (kbd.css). ── */
|
|
3163
|
+
@supports (clip-path: shape(evenodd from 0 0, curve by 1px 1px with 1px 0 / 1px 0, close, move to 0 0, hline to 1px, close)) and (width: calc(tan(atan2(1px, 1px)) * 1px)) {
|
|
3164
|
+
.o-tooltip {
|
|
3165
|
+
--smooth-amount: var(--vk-corner-smoothing); --tooltip-side: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs) + var(--vk-spacing) * 3);
|
|
3166
|
+
--tooltip-fit: min(var(--vk-radius-md), var(--tooltip-side) / (2 + 2 * var(--smooth-amount, 0.7)));
|
|
3167
|
+
--smooth-t: var(--tooltip-fit); --smooth-side: var(--tooltip-side);
|
|
3168
|
+
isolation: isolate; border-radius: var(--tooltip-fit); background-color: transparent;
|
|
3169
|
+
}
|
|
3170
|
+
.o-tooltip::before {
|
|
3171
|
+
content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
|
|
3172
|
+
background-color: var(--vk-fg); clip-path: shape(var(--smooth-outline));
|
|
3173
|
+
}
|
|
3174
|
+
}
|
|
985
3175
|
.\@container {
|
|
986
3176
|
container-type: inline-size;
|
|
987
3177
|
}
|
|
@@ -1218,6 +3408,9 @@
|
|
|
1218
3408
|
.m-0 {
|
|
1219
3409
|
margin: 0px;
|
|
1220
3410
|
}
|
|
3411
|
+
.m-1 {
|
|
3412
|
+
margin: 4px;
|
|
3413
|
+
}
|
|
1221
3414
|
.-mx-\(--vk-gutter\,0px\) {
|
|
1222
3415
|
margin-inline: calc(var(--vk-gutter,0px) * -1);
|
|
1223
3416
|
}
|
|
@@ -3585,19 +5778,16 @@
|
|
|
3585
5778
|
--vk-duration-base: 200ms;
|
|
3586
5779
|
--vk-duration-slow: 300ms;
|
|
3587
5780
|
--vk-ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
3588
|
-
--vk-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
3589
5781
|
--vk-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
3590
5782
|
--vk-focus-width: 2px;
|
|
3591
5783
|
--vk-focus-offset: 2px;
|
|
3592
5784
|
--vk-font-weight-medium: 500;
|
|
3593
5785
|
--vk-font-weight-semibold: 600;
|
|
3594
5786
|
--vk-hover-lift: 1px;
|
|
3595
|
-
--vk-loading-dim: 0.55;
|
|
3596
5787
|
--vk-press-scale: 0.98;
|
|
3597
5788
|
--vk-press-squash: 1.025 0.92;
|
|
3598
5789
|
--vk-press-travel: 1px;
|
|
3599
5790
|
--vk-press-travel-lg: 2px;
|
|
3600
|
-
--vk-progress-slide: 1400ms;
|
|
3601
5791
|
--vk-radius-xs: 2.5px;
|
|
3602
5792
|
--vk-radius-sm: 5px;
|
|
3603
5793
|
--vk-radius-md: 7.5px;
|
|
@@ -3619,13 +5809,117 @@
|
|
|
3619
5809
|
--vk-shadow-rim-bold-raised: inset 0 1px 0 0 hsl(0 0% 100% / 0.3);
|
|
3620
5810
|
--vk-shadow-rim-raised: inset 0 1px 0 0 hsl(0 0% 100% / 0.14);
|
|
3621
5811
|
--vk-spacing: 4px;
|
|
3622
|
-
--vk-spinner-breath: 1400ms;
|
|
3623
|
-
--vk-spinner-turn: 2000ms;
|
|
3624
|
-
--vk-spinner-turn-reduced: 3000ms;
|
|
3625
5812
|
--vk-font-size-xs: 12px;
|
|
3626
5813
|
--vk-font-size-sm: 14px;
|
|
3627
5814
|
--vk-font-size-base: 16px;
|
|
3628
5815
|
--vk-font-size-lg: 18px;
|
|
5816
|
+
--vk-border-danger: hsl(3 87% 68%);
|
|
5817
|
+
--vk-input: hsl(0 0% 100% / 0);
|
|
5818
|
+
--vk-line-height-sm: 1.4286;
|
|
5819
|
+
--vk-selected: hsl(0 0% 94.5%);
|
|
5820
|
+
--vk-sunken: hsl(0 0% 98%);
|
|
5821
|
+
--vk-sunken-hovered: hsl(0 0% 94.5%);
|
|
5822
|
+
--vk-border-overlay-card: hsl(220 3% 86%);
|
|
5823
|
+
--vk-font-weight-normal: 400;
|
|
5824
|
+
--vk-line-height-base: 1.5;
|
|
5825
|
+
--vk-line-height-xs: 1.3333;
|
|
5826
|
+
--vk-overlay-card: hsl(0 0% 94%);
|
|
5827
|
+
--vk-glass: hsl(0 0% 97% / 0.72);
|
|
5828
|
+
--vk-glass-rim-soft: hsl(0 0% 100% / 0.82);
|
|
5829
|
+
--vk-glass-rim-faint: hsl(0 0% 100% / 0.55);
|
|
5830
|
+
--vk-glass-rim: hsl(0 0% 100%);
|
|
5831
|
+
--vk-shadow-glass: 0 1px 3px 0 hsl(214 20% 10% / 0.06), 0 10px 56px 6px hsl(214 20% 10% / 0.15);
|
|
5832
|
+
--vk-shadow-glass-pair: 0 1px 3px 0 hsl(214 20% 10% / 0.06), 0 10px 56px 6px hsl(214 20% 10% / 0.12);
|
|
5833
|
+
--vk-shadow-glass-pill: 0 1px 3px 0 hsl(214 20% 10% / 0.06), 0 10px 56px 6px hsl(214 20% 10% / 0.1);
|
|
5834
|
+
--vk-blur-md: 12px;
|
|
5835
|
+
--vk-glass-icon-stroke: 1.7;
|
|
5836
|
+
--vk-brand-300: hsl(218 100% 89%);
|
|
5837
|
+
--vk-border-input-strong: hsl(210 1% 72%);
|
|
5838
|
+
--vk-font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
5839
|
+
--vk-shadow-field: 0 1px 1px 0 rgb(16 17 26 / 0.08);
|
|
5840
|
+
--vk-shadow-field-focus: 0 0 10px 0 hsl(219 90% 65.5% / 0.3);
|
|
5841
|
+
--vk-shadow-field-focus-danger: 0 0 10px 0 hsl(3 87% 68% / 0.3);
|
|
5842
|
+
--vk-shadow-field-hover: 0 1px 1px 0 rgb(16 17 26 / 0.16);
|
|
5843
|
+
--vk-font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
5844
|
+
--vk-overlay-selected: hsl(220 7% 90%);
|
|
5845
|
+
--vk-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
5846
|
+
--vk-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
5847
|
+
--vk-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
5848
|
+
--vk-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
|
5849
|
+
--vk-shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
5850
|
+
--vk-layer-popup: 50;
|
|
5851
|
+
--vk-label-amber-pressed: hsl(24 86% 35.5%);
|
|
5852
|
+
--vk-label-blue-pressed: hsl(219 70% 46.5%);
|
|
5853
|
+
--vk-label-green-pressed: hsl(157 88% 24%);
|
|
5854
|
+
--vk-label-purple-pressed: hsl(260 65% 55%);
|
|
5855
|
+
--vk-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
|
5856
|
+
--vk-ease-in: cubic-bezier(0.4, 0, 1, 1);
|
|
5857
|
+
--vk-hold-delay: 500ms;
|
|
5858
|
+
--vk-submenu-delay: 100ms;
|
|
5859
|
+
--vk-header: hsl(0 0% 100%);
|
|
5860
|
+
--vk-blur-xs: 4px;
|
|
5861
|
+
--vk-blur-sm: 8px;
|
|
5862
|
+
--vk-scrollbar-size: 6px;
|
|
5863
|
+
--vk-scrollbar-inset: 2px;
|
|
5864
|
+
--vk-scrollbar-thumb: hsl(210 1% 82%);
|
|
5865
|
+
--vk-scrollbar-thumb-hovered: hsl(210 1% 72%);
|
|
5866
|
+
--vk-scrollbar-hold: 1000ms;
|
|
5867
|
+
--vk-backdrop-sheet: hsl(214 30% 10% / 0.3);
|
|
5868
|
+
--vk-backdrop-sheet-light: hsl(214 30% 10% / 0.15);
|
|
5869
|
+
--vk-backdrop-stacked: hsl(214 30% 10% / 0.2);
|
|
5870
|
+
--vk-sheet-handle: hsl(210 1% 72%);
|
|
5871
|
+
--vk-spring-exit: 120px;
|
|
5872
|
+
--vk-spring-past: 12px;
|
|
5873
|
+
--vk-radius-3xl: 26.67px;
|
|
5874
|
+
--vk-radius-4xl: 33.33px;
|
|
5875
|
+
--vk-radius-5xl: 40px;
|
|
5876
|
+
--vk-layer-drawer: 40;
|
|
5877
|
+
--vk-spring-smooth: 500ms 1;
|
|
5878
|
+
--vk-ease-spring-smooth: linear(0, 0.0191, 0.0667, 0.1313, 0.2048, 0.2816, 0.3577, 0.4308, 0.4991, 0.562, 0.6189, 0.67, 0.7154, 0.7554, 0.7905, 0.821, 0.8475, 0.8704, 0.89, 0.9069, 0.9213, 0.9336, 0.9441, 0.9529, 0.9605, 0.9668, 0.9722, 0.9767, 0.9805, 0.9837, 0.9864, 0.9887, 0.9905, 0.9921, 0.9934, 0.9945, 0.9955, 0.9962, 0.9969, 0.9974, 0.9978, 0.9982, 0.9985, 0.9988, 0.999, 0.9992, 0.9993, 0.9994, 1);
|
|
5879
|
+
--vk-duration-spring-smooth: 800ms;
|
|
5880
|
+
--vk-spring-quick: 380ms 1;
|
|
5881
|
+
--vk-ease-spring-quick: linear(0, 0.0309, 0.1037, 0.1968, 0.2964, 0.394, 0.4851, 0.5671, 0.6393, 0.7016, 0.7547, 0.7994, 0.8367, 0.8677, 0.8931, 0.914, 0.9309, 0.9447, 0.9558, 0.9648, 0.972, 0.9778, 0.9824, 0.986, 0.989, 0.9913, 0.9931, 0.9946, 0.9957, 0.9967, 0.9974, 0.9979, 0.9984, 0.9987, 0.999, 0.9992, 0.9994, 1);
|
|
5882
|
+
--vk-duration-spring-quick: 608ms;
|
|
5883
|
+
--vk-spring-lively: 450ms 0.8;
|
|
5884
|
+
--vk-ease-spring-lively: linear(0, 0.0239, 0.0843, 0.1672, 0.2617, 0.3601, 0.4568, 0.5478, 0.6309, 0.7048, 0.7689, 0.8236, 0.8692, 0.9065, 0.9364, 0.9599, 0.9779, 0.9913, 1.0009, 1.0075, 1.0117, 1.0141, 1.0151, 1.0151, 1.0144, 1.0133, 1.0119, 1.0105, 1.009, 1.0075, 1.0062, 1.005, 1.004, 1.0031, 1.0023, 1.0017, 1.0012, 1.0008, 1);
|
|
5885
|
+
--vk-duration-spring-lively: 633ms;
|
|
5886
|
+
--vk-sheet-press-scale: 1.005;
|
|
5887
|
+
--vk-push-scale: 0.94;
|
|
5888
|
+
--vk-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
5889
|
+
--vk-loading-dim: 0.55;
|
|
5890
|
+
--vk-progress-slide: 1400ms;
|
|
5891
|
+
--vk-spinner-breath: 1400ms;
|
|
5892
|
+
--vk-spinner-turn: 2000ms;
|
|
5893
|
+
--vk-spinner-turn-reduced: 3000ms;
|
|
5894
|
+
--vk-amber-700: hsl(25 92% 41%);
|
|
5895
|
+
--vk-blue-700: hsl(219 87% 54%);
|
|
5896
|
+
--vk-border-accent: hsl(219 90% 65.5%);
|
|
5897
|
+
--vk-border-info: hsl(219 90% 65.5%);
|
|
5898
|
+
--vk-border-success: hsl(149 43% 44.5%);
|
|
5899
|
+
--vk-border-warning: hsl(20 63% 57.5%);
|
|
5900
|
+
--vk-brand-100: hsl(218 100% 98%);
|
|
5901
|
+
--vk-brand-200: hsl(218 100% 94%);
|
|
5902
|
+
--vk-brand-400: hsl(218 97% 82%);
|
|
5903
|
+
--vk-brand-500: hsl(218 94% 74.5%);
|
|
5904
|
+
--vk-brand-600: hsl(219 90% 65.5%);
|
|
5905
|
+
--vk-brand-700: hsl(219 87% 54%);
|
|
5906
|
+
--vk-brand-800: hsl(219 70% 46.5%);
|
|
5907
|
+
--vk-brand-1000: hsl(219 72% 29%);
|
|
5908
|
+
--vk-danger-subtler: hsl(6 100% 94%);
|
|
5909
|
+
--vk-green-700: hsl(158 98% 26%);
|
|
5910
|
+
--vk-info-subtler: hsl(218 100% 94%);
|
|
5911
|
+
--vk-pink-700: hsl(335 73% 49.5%);
|
|
5912
|
+
--vk-purple-700: hsl(260 100% 64.5%);
|
|
5913
|
+
--vk-red-700: hsl(0 81% 58%);
|
|
5914
|
+
--vk-success-subtler: hsl(143 41% 91%);
|
|
5915
|
+
--vk-teal-700: hsl(192 87% 32%);
|
|
5916
|
+
--vk-warning-subtler: hsl(19 72% 92.5%);
|
|
5917
|
+
--vk-font-weight-bold: 700;
|
|
5918
|
+
--vk-tracking-wide: 0.025em;
|
|
5919
|
+
--vk-font-size-2xs: 10px;
|
|
5920
|
+
--vk-tooltip-delay: 500ms;
|
|
5921
|
+
--vk-tooltip-warm: 300ms;
|
|
5922
|
+
--vk-toast-duration: 4000ms;
|
|
3629
5923
|
--vk-t-shadow-menu: 0 6px 18px hsl(0 0% 0% / 0.06), 0 3px 9px hsl(0 0% 0% / 0.05), 0 1px 1px hsl(0 0% 0% / 0.04);
|
|
3630
5924
|
--vk-t-shadow-field: 0 1px 1px 0 rgb(16 17 26 / 0.08);
|
|
3631
5925
|
--vk-t-shadow-field-hover: 0 1px 1px 0 rgb(16 17 26 / 0.16);
|
|
@@ -3757,6 +6051,67 @@
|
|
|
3757
6051
|
--vk-shadow-rim-bold: inset 0 1px 0 0 hsl(210 8% 95% / 0.22);
|
|
3758
6052
|
--vk-shadow-rim-bold-raised: inset 0 1px 0 0 hsl(210 8% 95% / 0.3);
|
|
3759
6053
|
--vk-shadow-rim-raised: inset 0 1px 0 0 hsl(210 8% 95% / 0.14);
|
|
6054
|
+
--vk-border-danger: hsl(1 55% 46.5%);
|
|
6055
|
+
--vk-input: hsl(0 0% 100% / 0);
|
|
6056
|
+
--vk-selected: hsl(225 7% 15%);
|
|
6057
|
+
--vk-sunken: hsl(210 8% 5%);
|
|
6058
|
+
--vk-sunken-hovered: hsl(210 4% 9.5%);
|
|
6059
|
+
--vk-border-overlay-card: hsl(220 4% 22%);
|
|
6060
|
+
--vk-overlay-card: hsl(225 7% 15%);
|
|
6061
|
+
--vk-glass: hsl(0 0% 13% / 0.6);
|
|
6062
|
+
--vk-glass-rim-soft: hsl(0 0% 100% / 0.12);
|
|
6063
|
+
--vk-glass-rim-faint: hsl(0 0% 100% / 0.01);
|
|
6064
|
+
--vk-glass-rim: hsl(0 0% 100% / 0.26);
|
|
6065
|
+
--vk-shadow-glass: 0 8px 40px 4px hsl(0 0% 0% / 0.06);
|
|
6066
|
+
--vk-shadow-glass-pair: 0 8px 40px 4px hsl(0 0% 0% / 0.06);
|
|
6067
|
+
--vk-shadow-glass-pill: 0 8px 40px 4px hsl(0 0% 0% / 0.06);
|
|
6068
|
+
--vk-brand-300: hsl(219 46% 21%);
|
|
6069
|
+
--vk-border-input-strong: hsl(210 1% 37%);
|
|
6070
|
+
--vk-shadow-field: 0 1px 1px 0 rgb(255 255 255 / 0.08);
|
|
6071
|
+
--vk-shadow-field-focus: 0 0 10px 0 hsl(219 66% 45% / 0.42);
|
|
6072
|
+
--vk-shadow-field-focus-danger: 0 0 10px 0 hsl(1 55% 46.5% / 0.42);
|
|
6073
|
+
--vk-shadow-field-hover: 0 1px 1px 0 rgb(255 255 255 / 0.12);
|
|
6074
|
+
--vk-overlay-selected: hsl(225 7% 15%);
|
|
6075
|
+
--vk-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
6076
|
+
--vk-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
6077
|
+
--vk-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
6078
|
+
--vk-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
|
6079
|
+
--vk-shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
6080
|
+
--vk-label-amber-pressed: hsl(21 66% 55%);
|
|
6081
|
+
--vk-label-blue-pressed: hsl(219 95% 64%);
|
|
6082
|
+
--vk-label-green-pressed: hsl(150 45% 51.5%);
|
|
6083
|
+
--vk-label-purple-pressed: hsl(256 100% 73%);
|
|
6084
|
+
--vk-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
|
6085
|
+
--vk-header: hsl(210 6% 7%);
|
|
6086
|
+
--vk-scrollbar-thumb: hsl(210 2% 26.5%);
|
|
6087
|
+
--vk-scrollbar-thumb-hovered: hsl(210 1% 37%);
|
|
6088
|
+
--vk-backdrop-sheet: hsl(0 0% 0% / 0.45);
|
|
6089
|
+
--vk-backdrop-sheet-light: hsl(0 0% 0% / 0.22);
|
|
6090
|
+
--vk-backdrop-stacked: hsl(0 0% 0% / 0.3);
|
|
6091
|
+
--vk-sheet-handle: hsl(210 2% 26.5%);
|
|
6092
|
+
--vk-amber-700: hsl(25 92% 41%);
|
|
6093
|
+
--vk-blue-700: hsl(219 87% 59.5%);
|
|
6094
|
+
--vk-border-accent: hsl(219 66% 47%);
|
|
6095
|
+
--vk-border-info: hsl(219 66% 47%);
|
|
6096
|
+
--vk-border-success: hsl(153 64% 32%);
|
|
6097
|
+
--vk-border-warning: hsl(22 74% 36%);
|
|
6098
|
+
--vk-brand-100: hsl(218 15% 10%);
|
|
6099
|
+
--vk-brand-200: hsl(218 32% 14.5%);
|
|
6100
|
+
--vk-brand-400: hsl(219 55% 29%);
|
|
6101
|
+
--vk-brand-500: hsl(219 61% 36.5%);
|
|
6102
|
+
--vk-brand-600: hsl(219 66% 47%);
|
|
6103
|
+
--vk-brand-700: hsl(219 87% 59.5%);
|
|
6104
|
+
--vk-brand-800: hsl(219 95% 64%);
|
|
6105
|
+
--vk-brand-1000: hsl(218 100% 81%);
|
|
6106
|
+
--vk-danger-subtler: hsl(6 27% 14.5%);
|
|
6107
|
+
--vk-green-700: hsl(158 98% 34%);
|
|
6108
|
+
--vk-info-subtler: hsl(218 32% 14.5%);
|
|
6109
|
+
--vk-pink-700: hsl(335 73% 57.5%);
|
|
6110
|
+
--vk-purple-700: hsl(260 100% 69%);
|
|
6111
|
+
--vk-red-700: hsl(0 81% 58%);
|
|
6112
|
+
--vk-success-subtler: hsl(145 17% 12.5%);
|
|
6113
|
+
--vk-teal-700: hsl(192 87% 40%);
|
|
6114
|
+
--vk-warning-subtler: hsl(20 29% 13.5%);
|
|
3760
6115
|
--vk-t-shadow-menu: 0 8px 24px hsl(0 0% 0% / 0.5), 0 0 0 1px hsl(0 0% 18%);
|
|
3761
6116
|
--vk-t-shadow-field: 0 1px 1px 0 rgb(255 255 255 / 0.08);
|
|
3762
6117
|
--vk-t-shadow-field-hover: 0 1px 1px 0 rgb(255 255 255 / 0.12);
|