viewkitjs 0.30.1 → 0.32.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 +143 -0
- package/MIGRATION.md +40 -6
- package/README.md +1 -1
- package/fields/dist/query/index.d.ts +2 -0
- package/fields/dist/query/index.js +2 -0
- package/fields/dist/query/list-request.d.ts +148 -0
- package/fields/dist/query/list-request.js +125 -0
- package/fields/dist/query/saved-view.d.ts +15 -0
- package/fields/dist/query/saved-view.js +11 -0
- package/fields/dist/query/settings.d.ts +9 -0
- package/fields/dist/query/settings.js +9 -0
- package/fields/docs/reference/query.md +66 -0
- package/package.json +8 -2
- package/postgres/README.md +1 -0
- package/postgres/dist/handler.d.ts +53 -0
- package/postgres/dist/handler.js +211 -0
- package/postgres/dist/ids.d.ts +1 -1
- package/postgres/dist/ids.js +19 -1
- package/postgres/dist/index.d.ts +1 -0
- package/postgres/dist/index.js +1 -0
- package/postgres/dist/limits.d.ts +3 -1
- package/postgres/dist/limits.js +1 -1
- package/postgres/dist/list-fields.d.ts +10 -0
- package/postgres/dist/list-fields.js +36 -0
- package/postgres/dist/readable.d.ts +4 -0
- package/postgres/dist/readable.js +4 -0
- package/postgres/dist/refusals.d.ts +9 -2
- package/postgres/dist/refusals.js +6 -0
- package/postgres/docs/guides/field-map.md +2 -2
- package/postgres/docs/guides/list-handler.md +99 -0
- package/postgres/docs/index.md +1 -0
- package/postgres/docs/reference/postgres.md +11 -3
- package/views/README.md +2 -2
- package/views/dist/atoms/RowMenu.d.ts +7 -0
- package/views/dist/atoms/RowMenu.js +18 -16
- package/views/dist/atoms/carried.d.ts +5 -0
- package/views/dist/atoms/carried.js +7 -0
- package/views/dist/atoms/types.d.ts +3 -0
- package/views/dist/contract.d.ts +26 -6
- package/views/dist/contract.js +25 -0
- package/views/dist/controls/alert-dialog/alert-dialog.js +2 -1
- package/views/dist/controls/atoms.d.ts +2 -0
- package/views/dist/controls/atoms.js +2 -0
- package/views/dist/controls/avatar/avatar.d.ts +10 -4
- package/views/dist/controls/avatar/avatar.js +5 -3
- package/views/dist/controls/avatar/tokens.d.ts +104 -0
- package/views/dist/controls/avatar/tokens.js +26 -0
- package/views/dist/controls/avatar.css +46 -15
- package/views/dist/controls/choice/tokens.d.ts +0 -4
- package/views/dist/controls/choice/tokens.js +0 -1
- package/views/dist/controls/choice.css +3 -3
- package/views/dist/controls/controls.d.ts +6 -0
- package/views/dist/controls/controls.js +10 -2
- package/views/dist/controls/customize/map-customize-body.js +1 -1
- package/views/dist/controls/field/field.d.ts +19 -4
- package/views/dist/controls/field/field.js +63 -5
- package/views/dist/controls/field/tokens.d.ts +4 -0
- package/views/dist/controls/field/tokens.js +1 -0
- package/views/dist/controls/field.css +41 -16
- package/views/dist/controls/glyphs/glyphs.d.ts +10 -0
- package/views/dist/controls/glyphs/glyphs.js +173 -0
- package/views/dist/controls/index.d.ts +4 -2
- package/views/dist/controls/index.js +3 -1
- package/views/dist/controls/input/input.d.ts +12 -1
- package/views/dist/controls/input/input.js +10 -6
- package/views/dist/controls/input/save-mark.d.ts +8 -0
- package/views/dist/controls/input/save-mark.js +26 -0
- package/views/dist/controls/input/tokens.d.ts +20 -0
- package/views/dist/controls/input/tokens.js +5 -0
- package/views/dist/controls/input.css +49 -3
- package/views/dist/controls/internal/icons.js +10 -0
- package/views/dist/controls/internal/keep-focus.d.ts +2 -0
- package/views/dist/controls/internal/keep-focus.js +17 -0
- package/views/dist/controls/internal/watch-frame.d.ts +2 -0
- package/views/dist/controls/internal/watch-frame.js +33 -0
- package/views/dist/controls/markdown/map-markdown.d.ts +4 -0
- package/views/dist/controls/markdown/map-markdown.js +5 -0
- package/views/dist/controls/menu/map-menu.js +2 -2
- package/views/dist/controls/menu-list/menu-list.d.ts +3 -0
- package/views/dist/controls/menu-list/menu-list.js +5 -4
- package/views/dist/controls/modal/modal.js +5 -1
- package/views/dist/controls/pane/pane.js +2 -1
- package/views/dist/controls/phone-header/header-bar.d.ts +5 -1
- package/views/dist/controls/phone-header/header-bar.js +2 -2
- package/views/dist/controls/phone-header.css +11 -1
- package/views/dist/controls/picker/map-picker.js +3 -0
- package/views/dist/controls/picker/picker.d.ts +14 -0
- package/views/dist/controls/picker/picker.js +30 -10
- package/views/dist/controls/picker.css +2 -0
- package/views/dist/controls/popover/popover.js +2 -1
- package/views/dist/controls/radio/radio.d.ts +12 -3
- package/views/dist/controls/radio/radio.js +25 -5
- package/views/dist/controls/radio/tokens.d.ts +84 -0
- package/views/dist/controls/radio/tokens.js +21 -0
- package/views/dist/controls/radio.css +130 -3
- package/views/dist/controls/select/select.d.ts +12 -2
- package/views/dist/controls/select/select.js +15 -7
- package/views/dist/controls/select/tokens.d.ts +8 -0
- package/views/dist/controls/select/tokens.js +2 -0
- package/views/dist/controls/select.css +17 -0
- package/views/dist/controls/setting-row/looks.d.ts +10 -0
- package/views/dist/controls/setting-row/looks.js +22 -0
- package/views/dist/controls/setting-row/setting-row.d.ts +100 -0
- package/views/dist/controls/setting-row/setting-row.js +133 -0
- package/views/dist/controls/setting-row/tokens.d.ts +156 -0
- package/views/dist/controls/setting-row/tokens.js +41 -0
- package/views/dist/controls/setting-row.css +215 -0
- package/views/dist/controls/sheet/bottom-sheet.d.ts +10 -2
- package/views/dist/controls/sheet/bottom-sheet.js +6 -3
- package/views/dist/controls/sheet.css +4 -1
- package/views/dist/controls/sort-editor/sort-editor.js +3 -2
- package/views/dist/controls/sort-editor.css +8 -2
- package/views/dist/controls/switch-row/switch-row.d.ts +1 -15
- package/views/dist/controls/switch-row/switch-row.js +1 -9
- package/views/dist/controls/switch-row/tokens.d.ts +0 -12
- package/views/dist/controls/switch-row/tokens.js +0 -3
- package/views/dist/controls/switch-row.css +3 -7
- package/views/dist/controls/switch.css +17 -7
- package/views/dist/controls/tag/tag.d.ts +3 -1
- package/views/dist/controls/tag/tag.js +2 -2
- package/views/dist/controls/tag/tokens.d.ts +4 -0
- package/views/dist/controls/tag/tokens.js +1 -0
- package/views/dist/controls/tag-field/tag-field.d.ts +5 -1
- package/views/dist/controls/tag-field/tag-field.js +11 -5
- package/views/dist/controls/tag-field/tokens.d.ts +16 -0
- package/views/dist/controls/tag-field/tokens.js +4 -0
- package/views/dist/controls/tag-field.css +19 -0
- package/views/dist/controls/tag.css +2 -0
- package/views/dist/controls/tokens.js +2 -0
- package/views/dist/controls/toolbar/toolbar.d.ts +15 -3
- package/views/dist/controls/toolbar/toolbar.js +22 -15
- package/views/dist/controls/toolbar-button/atom-toolbar-button.d.ts +14 -0
- package/views/dist/controls/toolbar-button/atom-toolbar-button.js +51 -0
- package/views/dist/controls/toolbar-button/toolbar-button.d.ts +1 -1
- package/views/dist/controls/toolbar-button/toolbar-button.js +2 -3
- package/views/dist/controls/toolbar-button.css +4 -0
- package/views/dist/controls/toolbar.css +5 -0
- package/views/dist/controls/views-list/map-view-menu.d.ts +3 -0
- package/views/dist/controls/views-list/map-view-menu.js +25 -0
- package/views/dist/controls/views-list/map-views-list-body.d.ts +28 -1
- package/views/dist/controls/views-list/map-views-list-body.js +39 -21
- package/views/dist/controls/views-list/rules.d.ts +2 -0
- package/views/dist/controls/views-list/view-menu.d.ts +7 -0
- package/views/dist/controls/views-list/view-menu.js +28 -24
- package/views/dist/controls/views-list/words.d.ts +2 -0
- package/views/dist/controls/views-list/words.js +1 -1
- package/views/dist/editors/EditorPanel.js +2 -1
- package/views/dist/editors/edit-session.js +2 -5
- package/views/dist/field-row/FieldRow.d.ts +4 -2
- package/views/dist/field-row/FieldRow.js +67 -20
- package/views/dist/field-row/FieldRowLane.d.ts +7 -2
- package/views/dist/field-row/FieldRowLane.js +4 -3
- package/views/dist/field-row/editors/RowEditor.d.ts +12 -0
- package/views/dist/field-row/editors/RowEditor.js +31 -1
- package/views/dist/field-row/editors/RowValueListEditor.d.ts +5 -1
- package/views/dist/field-row/editors/RowValueListEditor.js +4 -1
- package/views/dist/field-row/field-row-button.d.ts +5 -0
- package/views/dist/field-row/field-row-button.js +2 -0
- package/views/dist/fields/binding.d.ts +3 -2
- package/views/dist/fields/binding.js +38 -5
- package/views/dist/grid/chrome/GridColumnMenu.d.ts +4 -2
- package/views/dist/grid/chrome/GridColumnMenu.js +3 -2
- package/views/dist/grid/chrome/GridGroupMenu.d.ts +4 -1
- package/views/dist/grid/chrome/GridGroupMenu.js +4 -3
- package/views/dist/grid/chrome/GridHeader.d.ts +4 -1
- package/views/dist/grid/chrome/GridHeader.js +2 -2
- package/views/dist/grid/chrome/GridRow.js +6 -5
- package/views/dist/grid/chrome/GridRowCells.js +6 -9
- package/views/dist/grid/chrome/GridStructure.d.ts +4 -1
- package/views/dist/grid/chrome/GridStructure.js +4 -4
- package/views/dist/grid/chrome/GridTable.js +5 -2
- package/views/dist/grid/chrome/grid-column-menu-items.js +1 -1
- package/views/dist/grid/chrome/grid-row-menu-items.d.ts +27 -3
- package/views/dist/grid/chrome/grid-row-menu-items.js +92 -6
- package/views/dist/grid/chrome/grid-row-props.d.ts +7 -2
- package/views/dist/grid/chrome/grid-rows-menu.js +34 -6
- package/views/dist/grid/chrome/grid-table-props.d.ts +38 -7
- package/views/dist/grid/chrome/useGridBatchApi.d.ts +3 -1
- package/views/dist/grid/chrome/useGridBatchApi.js +4 -2
- package/views/dist/grid/chrome/useGridKeyboard.d.ts +4 -2
- package/views/dist/grid/chrome/useGridKeyboard.js +15 -9
- package/views/dist/grid/chrome/useGridPendingReconciliation.js +1 -2
- package/views/dist/grid/chrome/useGridTableInteractionModel.d.ts +1 -1
- package/views/dist/grid/chrome/useGridTableInteractionModel.js +11 -5
- package/views/dist/grid/core/commit-model.d.ts +20 -2
- package/views/dist/grid/core/editing-controller.d.ts +18 -0
- package/views/dist/grid/core/editing-controller.js +188 -42
- package/views/dist/grid/core/editing-model.d.ts +3 -0
- package/views/dist/grid/core/editing-model.js +3 -0
- package/views/dist/grid/core/save-path.d.ts +24 -0
- package/views/dist/grid/core/save-path.js +122 -0
- package/views/dist/grid/core/spreadsheet-operations.d.ts +3 -0
- package/views/dist/grid/core/spreadsheet-operations.js +23 -0
- package/views/dist/grid/index.d.ts +3 -2
- package/views/dist/grid/index.js +1 -0
- package/views/dist/internal/field-rows.d.ts +26 -0
- package/views/dist/internal/field-rows.js +8 -0
- package/views/dist/internal/page-close.d.ts +7 -0
- package/views/dist/internal/page-close.js +43 -0
- package/views/dist/list/browser-views-store.d.ts +10 -0
- package/views/dist/list/browser-views-store.js +182 -0
- package/views/dist/list/index.d.ts +23 -0
- package/views/dist/list/index.js +8 -0
- package/views/dist/list/menu.d.ts +31 -0
- package/views/dist/list/menu.js +76 -0
- package/views/dist/list/parts.d.ts +6 -0
- package/views/dist/list/parts.js +59 -0
- package/views/dist/list/registry.d.ts +11 -0
- package/views/dist/list/registry.js +31 -0
- package/views/dist/list/root.d.ts +40 -0
- package/views/dist/list/root.js +128 -0
- package/views/dist/list/slot.d.ts +14 -0
- package/views/dist/list/slot.js +22 -0
- package/views/dist/list/source.d.ts +11 -0
- package/views/dist/list/source.js +31 -0
- package/views/dist/list/store.d.ts +87 -0
- package/views/dist/list/store.js +115 -0
- package/views/dist/list/toolbar.d.ts +6 -0
- package/views/dist/list/toolbar.js +359 -0
- package/views/dist/list/views-axis.d.ts +5 -0
- package/views/dist/list/views-axis.js +96 -0
- package/views/dist/list/views-store.d.ts +41 -0
- package/views/dist/list/views-store.js +1 -0
- package/views/dist/list/views.d.ts +67 -0
- package/views/dist/list/views.js +400 -0
- package/views/dist/looks/index.d.ts +1 -0
- package/views/dist/looks/index.js +1 -0
- package/views/dist/looks/pieces.js +2 -0
- package/views/dist/model/preferences.js +1 -1
- package/views/dist/model/prefs-buckets.js +1 -1
- package/views/dist/panels/index.d.ts +3 -1
- package/views/dist/panels/index.js +1 -0
- package/views/dist/panels/react/customize-body.js +1 -0
- package/views/dist/panels/react/toolbar/ReadyToolbar.d.ts +41 -4
- package/views/dist/panels/react/toolbar/ReadyToolbar.js +6 -326
- package/views/dist/panels/react/toolbar/Toolbar.d.ts +9 -1
- package/views/dist/panels/react/toolbar/Toolbar.js +34 -23
- package/views/dist/panels/react/toolbar/ToolbarButton.js +4 -1
- package/views/dist/panels/react/toolbar/ToolbarNew.js +1 -1
- package/views/dist/panels/react/toolbar/ToolbarQuickFilters.d.ts +2 -2
- package/views/dist/panels/react/toolbar/ToolbarQuickFilters.js +3 -1
- package/views/dist/panels/react/toolbar/ToolbarSearch.js +1 -1
- package/views/dist/panels/react/toolbar/context.d.ts +10 -2
- package/views/dist/panels/react/toolbar/context.js +3 -1
- package/views/dist/panels/react/views-row/FoldingViewRow.d.ts +1 -1
- package/views/dist/panels/react/views-row/FoldingViewRow.js +15 -4
- package/views/dist/panels/react/views-row/PillGroup.d.ts +5 -2
- package/views/dist/panels/react/views-row/PillGroup.js +16 -7
- package/views/dist/panels/react/views-row/ViewPicker.js +2 -12
- package/views/dist/panels/react/views-row/ViewPickerRow.d.ts +4 -2
- package/views/dist/panels/react/views-row/ViewPickerRow.js +9 -5
- package/views/dist/panels/react.d.ts +2 -2
- package/views/dist/panels/toolbar/edit-view.d.ts +7 -1
- package/views/dist/panels/toolbar/edit-view.js +14 -0
- package/views/dist/panels/toolbar/model.d.ts +5 -0
- package/views/dist/panels/toolbar/model.js +7 -3
- package/views/dist/panels/view-state.d.ts +5 -3
- package/views/dist/panels/views-row/model.d.ts +19 -2
- package/views/dist/panels/views-row/model.js +14 -0
- package/views/dist/provider/ViewsProvider.d.ts +16 -7
- package/views/dist/provider/ViewsProvider.js +23 -5
- package/views/dist/provider/components.d.ts +43 -2
- package/views/dist/provider/context.d.ts +2 -1
- package/views/dist/provider/context.js +1 -1
- package/views/dist/provider/ports.d.ts +19 -12
- package/views/dist/provider/ports.js +69 -1
- package/views/dist/react.d.ts +1 -1
- package/views/dist/styles.css +583 -61
- package/views/dist/styles.unlayered.css +583 -61
- package/views/docs/contract.md +42 -31
- package/views/docs/controls/avatar.md +26 -0
- package/views/docs/controls/choice.md +0 -1
- package/views/docs/controls/field.md +3 -0
- package/views/docs/controls/input.md +9 -0
- package/views/docs/controls/radio.md +33 -0
- package/views/docs/controls/select.md +6 -0
- package/views/docs/controls/setting-row.md +44 -0
- package/views/docs/controls/switch-row.md +0 -3
- package/views/docs/controls/tag-field.md +4 -0
- package/views/docs/controls/tag.md +1 -0
- package/views/docs/getting-started.md +2 -2
- package/views/docs/guides/atoms.md +2 -2
- package/views/docs/guides/columns.md +1 -1
- package/views/docs/guides/ports.md +1 -1
- package/views/docs/guides/the-grid.md +34 -7
- package/views/docs/guides/the-provider.md +4 -2
- package/views/docs/index.md +1 -0
- package/views/docs/reference/controls.md +54 -27
- package/views/docs/reference/editors-session.md +1 -1
- package/views/docs/reference/field-row.md +9 -1
- package/views/docs/reference/grid.md +14 -8
- package/views/docs/reference/list.md +227 -0
- package/views/docs/reference/looks.md +3 -0
- package/views/docs/reference/panels-react.md +17 -12
- package/views/docs/reference/panels.md +8 -5
- package/views/docs/reference/react.md +11 -9
- package/views/docs/reference/views.md +2 -2
- package/views/skills/views/SKILL.md +9 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! viewkitjs 0.
|
|
1
|
+
/*! viewkitjs 0.32.0 · viewkitjs/views/styles.unlayered.css: ViewKit's look, its defaults the Outright look */
|
|
2
2
|
|
|
3
3
|
@layer base {
|
|
4
4
|
@layer viewkit {:where(*):where([data-slot^="vk-"], [data-vk-body], [data-slot^="vk-"] *, [data-vk-body] *),
|
|
@@ -431,48 +431,77 @@
|
|
|
431
431
|
.o-avatar-letters svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
|
|
432
432
|
|
|
433
433
|
/* ── Sizes: 16 in a typed Select's chip, its initials at the 3xs type size; 20 in chips and text, 24 in dense rows and stacks,
|
|
434
|
-
40 in headers, 64 on a record's page ── */
|
|
434
|
+
40 in headers, 56 at a settings page's head, 64 on a record's page, 96 a photo on a phone ── */
|
|
435
435
|
.o-avatar.o-avatar-2xs { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); font-size: var(--vk-font-size-3xs); }
|
|
436
436
|
.o-avatar.o-avatar-xs { width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 5); font-size: var(--vk-font-size-2xs); }
|
|
437
437
|
.o-avatar.o-avatar-sm { width: calc(var(--vk-spacing) * 6); height: calc(var(--vk-spacing) * 6); font-size: var(--vk-font-size-2xs); }
|
|
438
438
|
.o-avatar.o-avatar-lg { width: calc(var(--vk-spacing) * 10); height: calc(var(--vk-spacing) * 10); font-size: var(--vk-font-size-sm); }
|
|
439
|
+
.o-avatar.o-avatar-56 { width: calc(var(--vk-spacing) * 14); height: calc(var(--vk-spacing) * 14); font-size: var(--vk-font-size-xl); }
|
|
439
440
|
.o-avatar.o-avatar-xl { width: calc(var(--vk-spacing) * 16); height: calc(var(--vk-spacing) * 16); font-size: var(--vk-font-size-2xl); }
|
|
441
|
+
.o-avatar.o-avatar-96 { width: calc(var(--vk-spacing) * 24); height: calc(var(--vk-spacing) * 24); font-size: var(--vk-font-size-4xl); }
|
|
440
442
|
|
|
441
443
|
/* ── A thing: a square, its corners a step that grows with it, on the neutral ground, its edge inside ─ */
|
|
442
444
|
.o-avatar.o-avatar-thing { border-radius: var(--avatar-r); background-color: var(--vk-neutral); color: var(--vk-fg-subtle); box-shadow: inset 0 0 0 var(--vk-border-width) var(--vk-border-subtle); }
|
|
443
445
|
/* The workspace: the one square in the brand. */
|
|
444
446
|
.o-avatar.o-avatar-workspace { background-color: var(--vk-brand); color: var(--vk-fg-on-brand); box-shadow: none; }
|
|
447
|
+
/* A square's own colour, the workspace's included: on the hue's fill, what it holds in the hue's strong ink, with no edge; grey
|
|
448
|
+
the neutral ground in the quieter ink. */
|
|
449
|
+
.o-avatar.o-avatar-thing[data-colour] { box-shadow: none; }
|
|
450
|
+
.o-avatar.o-avatar-thing[data-colour="blue"] { background-color: var(--vk-label-blue-fill); color: var(--vk-label-blue-strong); }
|
|
451
|
+
.o-avatar.o-avatar-thing[data-colour="green"] { background-color: var(--vk-label-green-fill); color: var(--vk-label-green-strong); }
|
|
452
|
+
.o-avatar.o-avatar-thing[data-colour="amber"] { background-color: var(--vk-label-amber-fill); color: var(--vk-label-amber-strong); }
|
|
453
|
+
.o-avatar.o-avatar-thing[data-colour="red"] { background-color: var(--vk-label-red-fill); color: var(--vk-label-red-strong); }
|
|
454
|
+
.o-avatar.o-avatar-thing[data-colour="purple"] { background-color: var(--vk-label-purple-fill); color: var(--vk-label-purple-strong); }
|
|
455
|
+
.o-avatar.o-avatar-thing[data-colour="pink"] { background-color: var(--vk-label-pink-fill); color: var(--vk-label-pink-strong); }
|
|
456
|
+
.o-avatar.o-avatar-thing[data-colour="teal"] { background-color: var(--vk-label-teal-fill); color: var(--vk-label-teal-strong); }
|
|
457
|
+
.o-avatar.o-avatar-thing[data-colour="grey"] { background-color: var(--vk-neutral); color: var(--vk-fg-subtle); }
|
|
445
458
|
/* An agent: a thing's square holding its own icon. Its mark comes in its own fills, so it is filled, never drawn as a
|
|
446
459
|
line as a record's icon is; a mark with no colour of its own (Codex's, Grok's) takes the text's ink, as the canvas drew it. */
|
|
447
460
|
.o-avatar-agent .o-avatar-letters svg { fill: var(--vk-fg); stroke: none; }
|
|
448
|
-
|
|
449
|
-
|
|
461
|
+
/* On a phone an agent's square on its own colour stands bold, as iOS draws an app's tile (round 3 of the settings canvas): the hue
|
|
462
|
+
under a white letter, as the setting row's Tile draws its icons; grey the quietest ink. A thing's, the workspace's included,
|
|
463
|
+
keeps the hue's fill. */
|
|
464
|
+
.o-avatar.o-avatar-agent[data-colour]:where([data-vk-phone] *) { color: var(--vk-fg-inverse); }
|
|
465
|
+
.o-avatar.o-avatar-agent[data-colour="blue"]:where([data-vk-phone] *) { background-color: var(--vk-label-blue); }
|
|
466
|
+
.o-avatar.o-avatar-agent[data-colour="green"]:where([data-vk-phone] *) { background-color: var(--vk-label-green); }
|
|
467
|
+
.o-avatar.o-avatar-agent[data-colour="amber"]:where([data-vk-phone] *) { background-color: var(--vk-label-amber); }
|
|
468
|
+
.o-avatar.o-avatar-agent[data-colour="red"]:where([data-vk-phone] *) { background-color: var(--vk-label-red); }
|
|
469
|
+
.o-avatar.o-avatar-agent[data-colour="purple"]:where([data-vk-phone] *) { background-color: var(--vk-label-purple); }
|
|
470
|
+
.o-avatar.o-avatar-agent[data-colour="pink"]:where([data-vk-phone] *) { background-color: var(--vk-label-pink); }
|
|
471
|
+
.o-avatar.o-avatar-agent[data-colour="teal"]:where([data-vk-phone] *) { background-color: var(--vk-label-teal); }
|
|
472
|
+
.o-avatar.o-avatar-agent[data-colour="grey"]:where([data-vk-phone] *) { background-color: var(--vk-fg-subtlest); }
|
|
473
|
+
|
|
474
|
+
/* ── Corners: a radius token per size, in steps, 56 taking 64's; Medium with nothing set: xs at 20, sm at 24 and 32, md at 40, lg at 56 and 64, 2xl at 96 (two steps past 64's, as round 3's photo draws it),
|
|
450
475
|
between Small and Large, the tokens holding nothing between xs and sm ────────────────────────────── */
|
|
451
476
|
.o-avatar.o-avatar-thing { --avatar-r: var(--vk-radius-sm); }
|
|
452
477
|
.o-avatar.o-avatar-thing:is(.o-avatar-2xs, .o-avatar-xs) { --avatar-r: var(--vk-radius-xs); }
|
|
453
478
|
.o-avatar.o-avatar-thing.o-avatar-lg { --avatar-r: var(--vk-radius-md); }
|
|
454
|
-
.o-avatar.o-avatar-thing.o-avatar-xl { --avatar-r: var(--vk-radius-lg); }
|
|
455
|
-
|
|
479
|
+
.o-avatar.o-avatar-thing:is(.o-avatar-56, .o-avatar-xl) { --avatar-r: var(--vk-radius-lg); }
|
|
480
|
+
.o-avatar.o-avatar-thing.o-avatar-96 { --avatar-r: var(--vk-radius-2xl); }
|
|
481
|
+
/* Small: xs at 20 and 24, sm at 32 and 40, md at 56 and 64, xl at 96. */
|
|
456
482
|
[data-avatar-corners="small"] .o-avatar.o-avatar-thing { --avatar-r: var(--vk-radius-sm); }
|
|
457
483
|
[data-avatar-corners="small"] .o-avatar.o-avatar-thing:is(.o-avatar-2xs, .o-avatar-xs, .o-avatar-sm) { --avatar-r: var(--vk-radius-xs); }
|
|
458
|
-
[data-avatar-corners="small"] .o-avatar.o-avatar-thing.o-avatar-xl { --avatar-r: var(--vk-radius-md); }
|
|
459
|
-
|
|
484
|
+
[data-avatar-corners="small"] .o-avatar.o-avatar-thing:is(.o-avatar-56, .o-avatar-xl) { --avatar-r: var(--vk-radius-md); }
|
|
485
|
+
[data-avatar-corners="small"] .o-avatar.o-avatar-thing.o-avatar-96 { --avatar-r: var(--vk-radius-xl); }
|
|
486
|
+
/* Large, the radii before Medium came: sm at 20 and 24, md at 32, lg at 40, xl at 56 and 64, 3xl at 96. */
|
|
460
487
|
[data-avatar-corners="large"] .o-avatar.o-avatar-thing { --avatar-r: var(--vk-radius-md); }
|
|
461
488
|
[data-avatar-corners="large"] .o-avatar.o-avatar-thing:is(.o-avatar-2xs, .o-avatar-xs, .o-avatar-sm) { --avatar-r: var(--vk-radius-sm); }
|
|
462
489
|
[data-avatar-corners="large"] .o-avatar.o-avatar-thing.o-avatar-lg { --avatar-r: var(--vk-radius-lg); }
|
|
463
|
-
[data-avatar-corners="large"] .o-avatar.o-avatar-thing.o-avatar-xl { --avatar-r: var(--vk-radius-xl); }
|
|
464
|
-
|
|
490
|
+
[data-avatar-corners="large"] .o-avatar.o-avatar-thing:is(.o-avatar-56, .o-avatar-xl) { --avatar-r: var(--vk-radius-xl); }
|
|
491
|
+
[data-avatar-corners="large"] .o-avatar.o-avatar-thing.o-avatar-96 { --avatar-r: var(--vk-radius-3xl); }
|
|
492
|
+
/* Extra large: md at 20 and 24, lg at 32, xl at 40, 2xl at 56 and 64, 4xl at 96. */
|
|
465
493
|
[data-avatar-corners="xlarge"] .o-avatar.o-avatar-thing { --avatar-r: var(--vk-radius-lg); }
|
|
466
494
|
[data-avatar-corners="xlarge"] .o-avatar.o-avatar-thing:is(.o-avatar-2xs, .o-avatar-xs, .o-avatar-sm) { --avatar-r: var(--vk-radius-md); }
|
|
467
495
|
[data-avatar-corners="xlarge"] .o-avatar.o-avatar-thing.o-avatar-lg { --avatar-r: var(--vk-radius-xl); }
|
|
468
|
-
[data-avatar-corners="xlarge"] .o-avatar.o-avatar-thing.o-avatar-xl { --avatar-r: var(--vk-radius-2xl); }
|
|
496
|
+
[data-avatar-corners="xlarge"] .o-avatar.o-avatar-thing:is(.o-avatar-56, .o-avatar-xl) { --avatar-r: var(--vk-radius-2xl); }
|
|
497
|
+
[data-avatar-corners="xlarge"] .o-avatar.o-avatar-thing.o-avatar-96 { --avatar-r: var(--vk-radius-4xl); }
|
|
469
498
|
|
|
470
499
|
/* ── Corner smoothing: Smooth, with nothing set, draws a square's corners with the smooth outline (smooth.css),
|
|
471
500
|
every browser that knows shape() showing it; one that doesn't keeps the quarter circles above, and so does Round. Its
|
|
472
501
|
smoothing eases off where a side is too short for 1.7 radii at each end, as the canvas drew it (o-smooth-ease, from its size and
|
|
473
502
|
its radius, both tokens, so it follows Corner radius). The outline would cut the edge drawn inside the square, so under it the
|
|
474
503
|
edge is a ring of its own (::before), between the outline and the same outline drawn a hairline in, under whatever the square
|
|
475
|
-
holds; the workspace
|
|
504
|
+
holds; the workspace and a square on its own colour have none. Its smoothing is its own Corner smoothing, never a host's: the outline's amount inherits, and a
|
|
476
505
|
crumb, a tab or a list's card that follows the token sets it on itself, so the square sets it back. ─────── */
|
|
477
506
|
@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)) {
|
|
478
507
|
.o-avatar.o-avatar-thing { --smooth-amount: initial; }
|
|
@@ -480,8 +509,9 @@
|
|
|
480
509
|
--avatar-rr: min(var(--avatar-r), var(--avatar-size) / 2); --smooth-t: var(--avatar-rr); --smooth-side: var(--avatar-size);
|
|
481
510
|
position: relative; box-shadow: none; clip-path: shape(var(--smooth-outline));
|
|
482
511
|
}
|
|
483
|
-
/* Its edge, a hairline ring along the outline, under the picture or the letters it holds; the workspace
|
|
484
|
-
|
|
512
|
+
/* Its edge, a hairline ring along the outline, under the picture or the letters it holds; the workspace and a square on its
|
|
513
|
+
own colour have none. */
|
|
514
|
+
.o-avatar.o-avatar-thing:not(.o-avatar-workspace):not([data-colour]):not([data-avatar-smoothing="round"] *)::before {
|
|
485
515
|
--smooth-t: calc(var(--avatar-rr) - var(--vk-border-width)); --smooth-in: var(--vk-border-width);
|
|
486
516
|
content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-color: var(--vk-border-subtle);
|
|
487
517
|
clip-path: shape(var(--smooth-ring));
|
|
@@ -527,13 +557,14 @@
|
|
|
527
557
|
/* The rest, as a count in a neutral circle. */
|
|
528
558
|
.o-avatar.o-avatar-more { background-color: var(--vk-neutral); color: var(--vk-fg-subtle); font-variant-numeric: tabular-nums; }
|
|
529
559
|
/* ── Presence and the badge: a dot on the corner, its size stepping with the avatar's (6,
|
|
530
|
-
8, 10, 12, 16), cut out of whatever the avatar stands on by a mask, never a ring painted in the page's colour. The mask stands
|
|
560
|
+
8, 10, 12, 14, 16), cut out of whatever the avatar stands on by a mask, never a ring painted in the page's colour. The mask stands
|
|
531
561
|
only on a badged avatar and a stack's faces: a mask clips what is outside the box and makes a stacking context. ──────── */
|
|
532
562
|
:is(.o-avatar, .o-avatar-badged) { --avatar-size: calc(var(--vk-spacing) * 8); --avatar-dot: calc(var(--vk-spacing) * 2.5); --avatar-cut: calc(var(--vk-spacing) * 0.5); --avatar-dot-inset: 0px; }
|
|
533
563
|
.o-avatar.o-avatar-2xs { --avatar-size: calc(var(--vk-spacing) * 4); }
|
|
534
564
|
:is(.o-avatar.o-avatar-xs, .o-avatar-badged[data-size="20"]) { --avatar-size: calc(var(--vk-spacing) * 5); --avatar-dot: var(--vk-dot-size); --avatar-cut: calc(var(--vk-spacing) * 0.375); }
|
|
535
565
|
:is(.o-avatar.o-avatar-sm, .o-avatar-badged[data-size="24"]) { --avatar-size: calc(var(--vk-spacing) * 6); --avatar-dot: calc(var(--vk-spacing) * 2); }
|
|
536
566
|
:is(.o-avatar.o-avatar-lg, .o-avatar-badged[data-size="40"]) { --avatar-size: calc(var(--vk-spacing) * 10); --avatar-dot: calc(var(--vk-spacing) * 3); }
|
|
567
|
+
:is(.o-avatar.o-avatar-56, .o-avatar-badged[data-size="56"]) { --avatar-size: calc(var(--vk-spacing) * 14); --avatar-dot: calc(var(--vk-spacing) * 3.5); --avatar-dot-inset: calc(var(--vk-spacing) * 0.5); }
|
|
537
568
|
:is(.o-avatar.o-avatar-xl, .o-avatar-badged[data-size="64"]) { --avatar-size: calc(var(--vk-spacing) * 16); --avatar-dot: calc(var(--vk-spacing) * 4); --avatar-dot-inset: calc(var(--vk-spacing) * 0.5); }
|
|
538
569
|
:is(.o-avatar.o-avatar-thing, .o-avatar-badged[data-thing]) { --avatar-dot-inset: calc(var(--vk-spacing) * -0.75); }
|
|
539
570
|
.o-avatar-badged { position: relative; display: inline-flex; flex: none; vertical-align: middle; isolation: isolate; }
|
|
@@ -545,7 +576,7 @@
|
|
|
545
576
|
background-color: var(--vk-brand); color: var(--vk-fg-on-brand);
|
|
546
577
|
}
|
|
547
578
|
.o-avatar-badge > svg { display: none; width: 70%; height: 70%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
|
|
548
|
-
.o-avatar-badged:is([data-size="32"], [data-size="40"], [data-size="64"]) > .o-avatar-badge > svg { display: block; }
|
|
579
|
+
.o-avatar-badged:is([data-size="32"], [data-size="40"], [data-size="56"], [data-size="64"]) > .o-avatar-badge > svg { display: block; }
|
|
549
580
|
/* Here, a green dot; away, a hollow ring whose middle shows the ground. */
|
|
550
581
|
.o-avatar-badge[data-presence="here"] { background-color: var(--vk-success-bold); }
|
|
551
582
|
.o-avatar-badge[data-presence="away"] { background-color: transparent; box-shadow: inset 0 0 0 calc(var(--vk-border-width) * 2) var(--vk-fg-subtlest); }
|
|
@@ -1272,7 +1303,7 @@
|
|
|
1272
1303
|
.o-choice-note { 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); }
|
|
1273
1304
|
|
|
1274
1305
|
/* ── A choice as a card: an edge round it, the whole card pressing it; under the pointer the hovered
|
|
1275
|
-
ground; chosen, the selected edge and ground; off, the softer edge and no hover ─────────────────── */
|
|
1306
|
+
ground; chosen, the selected edge and a hairline ring just outside it, on the card's own ground, as a marked card; off, the softer edge and no hover ─────────────────── */
|
|
1276
1307
|
.o-choice-card {
|
|
1277
1308
|
box-sizing: border-box; display: flex; width: 100%; padding: calc(var(--vk-spacing) * 3) calc(var(--vk-spacing) * 3.5);
|
|
1278
1309
|
border: var(--vk-border-width) solid var(--vk-border); border-radius: var(--vk-radius-lg); corner-shape: squircle;
|
|
@@ -1280,8 +1311,8 @@
|
|
|
1280
1311
|
}
|
|
1281
1312
|
/* 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. */
|
|
1282
1313
|
@media (hover: hover) { .o-choice-card:hover { background-color: var(--vk-hovered); } }
|
|
1283
|
-
.o-choice-card:has(> [data-checked]) { border-color: var(--vk-border-selected); background-color: var(--vk-
|
|
1284
|
-
.o-choice-card:has(> [data-disabled]) { border-color: var(--vk-border-subtle); background-color: transparent; }
|
|
1314
|
+
.o-choice-card:has(> [data-checked]) { border-color: var(--vk-border-selected); box-shadow: 0 0 0 var(--vk-border-width) var(--vk-border-selected); background-color: var(--vk-ground); }
|
|
1315
|
+
.o-choice-card:has(> [data-disabled]) { border-color: var(--vk-border-subtle); box-shadow: none; background-color: transparent; }
|
|
1285
1316
|
.o-choice-card .o-choice-label { font-weight: var(--vk-font-weight-medium); }
|
|
1286
1317
|
/* In error, the card's edge is red too. */
|
|
1287
1318
|
.o-choice-card:is(:has(> :is([aria-invalid="true"], [data-invalid])), .o-fieldset[data-invalid] *):not(:has(> [data-disabled])) { border-color: var(--vk-border-danger); }
|
|
@@ -1706,27 +1737,31 @@
|
|
|
1706
1737
|
Each option, on a frame or on the card itself (the look its place hands it, whole, which wins), sets the card's and
|
|
1707
1738
|
its rows' variables; nothing set is Card: one card on the overlay's card ground, its edge, rows 52, the label 104, the line
|
|
1708
1739
|
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
|
|
1709
|
-
typed into shows the caret alone.
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1740
|
+
typed into shows the caret alone. Each option is declared again on every card under its pick that carries no pick of its own, so
|
|
1741
|
+
the card resolves its colours, edge and corners where it stands, and a place that sets a token again round it (a settings group
|
|
1742
|
+
on a phone, its white ground) reaches it. A place may stop a row's rule --field-rows-line-end short of its right edge. A row may
|
|
1743
|
+
open with a glyph lane, 20 wide, its glyph centred; a row holding one starts its rule from the words, after the lane and the gap
|
|
1744
|
+
(--field-rows-line-start, the lane and the 12 gap: a place that sets another gap sets it too). A label's one long word breaks. */
|
|
1745
|
+
[data-field-rows-edge="on"], :where([data-field-rows-edge="on"]) .o-field-rows:not([data-field-rows-edge]) { --field-rows-edge: var(--vk-border-width) solid var(--vk-border-subtle); }
|
|
1746
|
+
[data-field-rows-edge="off"], :where([data-field-rows-edge="off"]) .o-field-rows:not([data-field-rows-edge]) { --field-rows-edge: 0 none; }
|
|
1747
|
+
[data-field-rows-cards="one"], :where([data-field-rows-cards="one"]) .o-field-rows:not([data-field-rows-cards]) {
|
|
1713
1748
|
--field-rows-card-display: block; --field-rows-card-gap: 0px; --field-rows-card-overflow: hidden; --field-rows-card-edge: var(--field-rows-edge);
|
|
1714
1749
|
--field-rows-card-corners: var(--vk-radius-xl); --field-rows-card-ground: var(--vk-overlay-card);
|
|
1715
1750
|
--field-rows-row-edge: 0 none; --field-rows-row-corners: 0px; --field-rows-row-ground: transparent;
|
|
1716
1751
|
}
|
|
1717
|
-
[data-field-rows-cards="each"] {
|
|
1752
|
+
[data-field-rows-cards="each"], :where([data-field-rows-cards="each"]) .o-field-rows:not([data-field-rows-cards]) {
|
|
1718
1753
|
--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;
|
|
1719
1754
|
--field-rows-card-corners: 0px; --field-rows-card-ground: transparent;
|
|
1720
1755
|
--field-rows-row-edge: var(--field-rows-edge); --field-rows-row-corners: var(--vk-radius-xl); --field-rows-row-ground: var(--vk-overlay-card);
|
|
1721
1756
|
}
|
|
1722
|
-
[data-field-rows-height="48"] { --field-rows-row: calc(var(--vk-spacing) * 12); }
|
|
1723
|
-
[data-field-rows-height="52"] { --field-rows-row: calc(var(--vk-spacing) * 13); }
|
|
1724
|
-
[data-field-rows-height="56"] { --field-rows-row: calc(var(--vk-spacing) * 14); }
|
|
1725
|
-
[data-field-rows-label="104"] { --field-rows-label: block; }
|
|
1726
|
-
[data-field-rows-label="none"] { --field-rows-label: none; }
|
|
1727
|
-
[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; }
|
|
1728
|
-
[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); }
|
|
1729
|
-
[data-field-rows-lines="none"] { --field-rows-line-image: none; --field-rows-line-shadow: none; }
|
|
1757
|
+
[data-field-rows-height="48"], :where([data-field-rows-height="48"]) .o-field-rows:not([data-field-rows-height]) { --field-rows-row: calc(var(--vk-spacing) * 12); }
|
|
1758
|
+
[data-field-rows-height="52"], :where([data-field-rows-height="52"]) .o-field-rows:not([data-field-rows-height]) { --field-rows-row: calc(var(--vk-spacing) * 13); }
|
|
1759
|
+
[data-field-rows-height="56"], :where([data-field-rows-height="56"]) .o-field-rows:not([data-field-rows-height]) { --field-rows-row: calc(var(--vk-spacing) * 14); }
|
|
1760
|
+
[data-field-rows-label="104"], :where([data-field-rows-label="104"]) .o-field-rows:not([data-field-rows-label]) { --field-rows-label: block; }
|
|
1761
|
+
[data-field-rows-label="none"], :where([data-field-rows-label="none"]) .o-field-rows:not([data-field-rows-label]) { --field-rows-label: none; }
|
|
1762
|
+
[data-field-rows-lines="words"], :where([data-field-rows-lines="words"]) .o-field-rows:not([data-field-rows-lines]) { --field-rows-line-image: linear-gradient(var(--vk-border-overlay-card), var(--vk-border-overlay-card)); --field-rows-line-shadow: none; }
|
|
1763
|
+
[data-field-rows-lines="across"], :where([data-field-rows-lines="across"]) .o-field-rows:not([data-field-rows-lines]) { --field-rows-line-image: none; --field-rows-line-shadow: inset 0 var(--vk-border-width) 0 var(--vk-border-overlay-card); }
|
|
1764
|
+
[data-field-rows-lines="none"], :where([data-field-rows-lines="none"]) .o-field-rows:not([data-field-rows-lines]) { --field-rows-line-image: none; --field-rows-line-shadow: none; }
|
|
1730
1765
|
|
|
1731
1766
|
.o-field-rows {
|
|
1732
1767
|
display: var(--field-rows-card-display, block); grid-template-columns: minmax(0, 1fr); gap: var(--field-rows-card-gap, 0px); min-width: 0;
|
|
@@ -1740,10 +1775,31 @@
|
|
|
1740
1775
|
}
|
|
1741
1776
|
button.o-field-row { cursor: pointer; }
|
|
1742
1777
|
.o-field-row + .o-field-row {
|
|
1743
|
-
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);
|
|
1744
|
-
background-position: calc(var(--vk-spacing) * 4) 0; background-repeat: no-repeat; box-shadow: var(--field-rows-line-shadow, none);
|
|
1745
|
-
}
|
|
1746
|
-
.o-field-row-label { display: var(--field-rows-label, block); flex: none; width: calc(var(--vk-spacing) * 26); color: var(--vk-fg-subtle); }
|
|
1778
|
+
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(--field-rows-line-start, 0px) - var(--field-rows-line-end, 0px)) var(--vk-border-width);
|
|
1779
|
+
background-position: calc(var(--vk-spacing) * 4 + var(--field-rows-line-start, 0px)) 0; background-repeat: no-repeat; box-shadow: var(--field-rows-line-shadow, none);
|
|
1780
|
+
}
|
|
1781
|
+
.o-field-row-label { display: var(--field-rows-label, block); flex: none; width: calc(var(--vk-spacing) * 26); color: var(--vk-fg-subtle); overflow-wrap: anywhere; }
|
|
1782
|
+
.o-field-row-glyph {
|
|
1783
|
+
display: flex; flex: none; align-items: center; justify-content: center; width: calc(var(--vk-spacing) * 5);
|
|
1784
|
+
}
|
|
1785
|
+
.o-field-row:has(> .o-field-row-glyph) { --field-rows-line-start: calc(var(--vk-spacing) * 8); }
|
|
1786
|
+
|
|
1787
|
+
/* ── A Field placed in Field rows is the card's row (VK-960; the settings canvas, round 3: look-ios.mjs .fl, .fv, .nt): its label
|
|
1788
|
+
in the row's column, its control typed in place beside it (input.css, In a row of Field rows), the value 116 in from the row's
|
|
1789
|
+
words (the label's 104 and the row's 12). Its note and error stand under the card, in the foot FieldRows draws after it while
|
|
1790
|
+
any Field in it has one: 7 under the card, inset 16 as the rows' words, small and in the quietest text, the notes running on
|
|
1791
|
+
as one note; an error in the danger colour, standing in place of every note. ─────────────────────────────────────────── */
|
|
1792
|
+
.o-field.o-field-row { display: flex; gap: calc(var(--vk-spacing) * 3); }
|
|
1793
|
+
.o-field-rows-foot {
|
|
1794
|
+
margin: 0; padding: calc(var(--vk-spacing) * 1.75) calc(var(--vk-spacing) * 4) 0; overflow-wrap: anywhere;
|
|
1795
|
+
font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs)); color: var(--vk-fg-subtlest);
|
|
1796
|
+
}
|
|
1797
|
+
/* Each Field's place in it, in its row's order, standing as its words only: they run on, a space between. */
|
|
1798
|
+
.o-field-rows-slot { display: contents; }
|
|
1799
|
+
.o-field-rows-slot > * { display: inline; color: inherit; }
|
|
1800
|
+
.o-field-rows-slot + .o-field-rows-slot::before { content: " "; }
|
|
1801
|
+
.o-field-rows-slot > .o-field-error { color: var(--vk-danger); }
|
|
1802
|
+
.o-field-rows-foot:has(.o-field-error) .o-field-note { display: none; }
|
|
1747
1803
|
|
|
1748
1804
|
.o-filter-editor { position: relative; display: flex; flex-direction: column; min-width: 0; color: var(--vk-fg); font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); }
|
|
1749
1805
|
.o-filter-editor:focus { outline: none; }
|
|
@@ -2105,10 +2161,11 @@ textarea.o-inline-input.o-inline-input { border-radius: min(var(--inline-input-r
|
|
|
2105
2161
|
/* Disabled: a softer edge, a grey fill, no lift. */
|
|
2106
2162
|
.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; }
|
|
2107
2163
|
|
|
2108
|
-
/* Read-only: what it holds can be read, chosen and copied, not changed:
|
|
2109
|
-
takes the focus, and the pointer changes nothing. One that opens
|
|
2110
|
-
box to press, not words to copy, and keeps a resting field's edge and lift. */
|
|
2164
|
+
/* Read-only: what it holds can be read, chosen and copied, not changed: it stands sunken, its words subtle (KIT-938), in
|
|
2165
|
+
focus too, with a soft edge and no lift at rest; it still takes the focus, and the pointer changes nothing. One that opens
|
|
2166
|
+
something is a box to press, not words to copy, and keeps a resting field's ground, edge and lift. */
|
|
2111
2167
|
.o-input:is([readonly], :where(:has(.o-input-control[readonly]))) { cursor: default; }
|
|
2168
|
+
.o-input:is([readonly], :where(:has(.o-input-control[readonly]))):where(:not([aria-haspopup], :has(.o-input-control[aria-haspopup]))) { --input-ground: var(--vk-sunken); color: var(--vk-fg-subtle); }
|
|
2112
2169
|
.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; }
|
|
2113
2170
|
|
|
2114
2171
|
/* ── The options a design picks (input/looks.ts) ─────────────────────────────────────────────────────
|
|
@@ -2390,6 +2447,50 @@ textarea.o-input-control.o-input-lines { flex: none; min-height: 0; max-height:
|
|
|
2390
2447
|
|
|
2391
2448
|
@media (prefers-reduced-motion: reduce) { .o-input { transition: none; } .o-input.o-smooth::before, .o-input.o-smooth::after { transition: none; } }
|
|
2392
2449
|
|
|
2450
|
+
/* ── Saving and Saved (VK-921; the settings canvas, round 2, Every part: Saving): at the field's end, where its sides stand,
|
|
2451
|
+
while the app saves what was typed or picked and just after. Saving, the Spinner in the quietest words; saved, a check and
|
|
2452
|
+
Saved, small, in the success colour, announced, fading after --vk-saved-hold, after which save-mark.tsx takes it out of
|
|
2453
|
+
the field. In its field it keeps the box's padding at its end; in a group it stands after the end side; in a Select's
|
|
2454
|
+
field, just before the chevron. A page holds Saved with data-force="saved". ─────────────────────────────────────── */
|
|
2455
|
+
.o-input-save {
|
|
2456
|
+
flex: none; display: inline-flex; align-items: center; gap: calc(var(--vk-spacing) * 1.5);
|
|
2457
|
+
font-size: var(--vk-font-size-xs); line-height: var(--vk-line-height-xs); color: var(--vk-fg-subtlest); white-space: nowrap; user-select: none;
|
|
2458
|
+
}
|
|
2459
|
+
.o-input-lone > .o-input-save { padding-inline-end: var(--input-pad-inline); }
|
|
2460
|
+
.o-input-group:not(.o-select-field) > .o-input-save { order: 1; }
|
|
2461
|
+
.o-input-save > svg { flex: none; width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); }
|
|
2462
|
+
.o-input-save[data-save="saved"] { color: var(--vk-success); animation: o-input-saved-leave var(--vk-duration-base) var(--vk-ease-in) var(--vk-saved-hold) forwards; }
|
|
2463
|
+
[data-force="saved"] .o-input-save { animation: none; }
|
|
2464
|
+
@keyframes o-input-saved-leave { to { opacity: 0; } }
|
|
2465
|
+
@media (prefers-reduced-motion: reduce) { .o-input-save[data-save="saved"] { animation-duration: 1ms; } }
|
|
2466
|
+
|
|
2467
|
+
/* ── In a row of Field rows (VK-960; the settings canvas, round 3: look-ios.mjs .fv, .caret, .saved, .act): a Field placed in
|
|
2468
|
+
Field rows is the card's row, and its Input or InputGroup stands typed in place there, as iOS's Settings draws a value beside
|
|
2469
|
+
its label. No box in any state: no edge, ground, ring, lift or smooth outline, nor a size's height or padding; its words the
|
|
2470
|
+
row's, in the text colour, the caret in the brand, a value wider than it cut with "…" at rest. Read-only, in the quietest text
|
|
2471
|
+
with no caret. An InputGroup's start words are the value's prefix, in the quietest text and right against it; its end button
|
|
2472
|
+
(copy) in the brand, 12 after the value, out of the way while the save mark stands there. The save mark (Saving, Saved) 12
|
|
2473
|
+
after the value: its words 14, its check 16, the Spinner 18. The row lays it out (field.css): the value takes what the label
|
|
2474
|
+
leaves, and the save mark and the end button never leave the row. Three classes, so no state or look of the box reaches it. */
|
|
2475
|
+
.o-input.o-input-inrow.o-input-inrow {
|
|
2476
|
+
flex: 1; align-self: stretch; height: auto; min-width: 0; padding: 0; border: 0 none; border-radius: 0; background: none; box-shadow: none; outline: none;
|
|
2477
|
+
--input-pad-block: 0px; --input-pad-inline: 0px; --input-group-gap: 0px;
|
|
2478
|
+
color: var(--vk-fg); font: inherit; caret-color: var(--vk-fg-brand); transition: none;
|
|
2479
|
+
}
|
|
2480
|
+
.o-input-inrow > .o-input-control { text-overflow: ellipsis; }
|
|
2481
|
+
.o-input-inrow:has(> .o-input-control[readonly]) { color: var(--vk-fg-subtlest); caret-color: transparent; }
|
|
2482
|
+
.o-input-inrow:is([data-disabled], :has(> .o-input-control:is(:disabled, [data-disabled]))) { color: var(--vk-fg-disabled); }
|
|
2483
|
+
.o-input-inrow > .o-input-addon[data-side="start"] { color: var(--vk-fg-subtlest); }
|
|
2484
|
+
.o-input-inrow > .o-input-addon[data-side="end"] { margin-inline-start: calc(var(--vk-spacing) * 3); }
|
|
2485
|
+
.o-input-inrow > .o-input-addon[data-side="end"] .o-button.o-button { color: var(--vk-fg-brand); }
|
|
2486
|
+
.o-input-inrow:has(> .o-input-save) > .o-input-addon[data-side="end"] { display: none; }
|
|
2487
|
+
.o-input-inrow > .o-input-save.o-input-save {
|
|
2488
|
+
margin-inline-start: calc(var(--vk-spacing) * 3); padding-inline-end: 0; gap: var(--vk-spacing);
|
|
2489
|
+
font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm));
|
|
2490
|
+
}
|
|
2491
|
+
.o-input-inrow > .o-input-save[data-save="saved"] > svg { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); }
|
|
2492
|
+
.o-input-inrow > .o-input-save[data-save="saving"] svg { width: calc(var(--vk-spacing) * 4.5); height: calc(var(--vk-spacing) * 4.5); }
|
|
2493
|
+
|
|
2393
2494
|
/* ── A key: a 20px cap on the raised ground, half the radius's corners, its bottom edge twice as heavy so
|
|
2394
2495
|
it reads as a key; its label in the quieter text colour ───────────────────────────────────────────── */
|
|
2395
2496
|
.o-kbd {
|
|
@@ -3450,6 +3551,16 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
3450
3551
|
/* Its title at the left: after what stands on its left, taking the room there is. */
|
|
3451
3552
|
.o-hd-bar[data-title-at="left"] { grid-template-columns: auto minmax(0, 1fr) auto; }
|
|
3452
3553
|
.o-hd-bar[data-title-at="left"] > .o-hd-bar-title { text-align: start; }
|
|
3554
|
+
/* A record's mark beside its title (data-mark): its own column, as wide as the mark, so it never shrinks while the words cut with
|
|
3555
|
+
… beside it, 8 apart; the two stand together, centred, or at the left after what stands there. With a description the mark
|
|
3556
|
+
stands beside both lines. */
|
|
3557
|
+
.o-hd-bar[data-mark] > .o-hd-bar-title {
|
|
3558
|
+
grid-template-columns: max-content minmax(0, max-content); column-gap: calc(var(--vk-spacing) * 2);
|
|
3559
|
+
justify-content: center; align-items: center; text-align: start;
|
|
3560
|
+
}
|
|
3561
|
+
.o-hd-bar[data-mark][data-title-at="left"] > .o-hd-bar-title { justify-content: start; }
|
|
3562
|
+
.o-hd-bar-mark { display: flex; overflow: visible; }
|
|
3563
|
+
.o-hd-bar-mark:has(~ .o-hd-bar-description) { grid-row: span 2; }
|
|
3453
3564
|
/* 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. */
|
|
3454
3565
|
[data-phone-header-surface="flat"] .o-hd-bar > .o-hd-bar-edge { display: none; }
|
|
3455
3566
|
[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)); }
|
|
@@ -3476,6 +3587,8 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
3476
3587
|
.o-picker .o-list-row:is([data-selected], [aria-selected="true"]) > .o-picker-check { visibility: visible; }
|
|
3477
3588
|
/* Create below a line (Create: Below a line, Attio's): its words the text's, not the quieter ones. */
|
|
3478
3589
|
.o-list-row.o-picker-create-apart .o-list-main { color: var(--vk-fg); }
|
|
3590
|
+
/* + Add while the app answers (Adding…): greyed, as a row that can't be picked is, wherever Create stands. */
|
|
3591
|
+
.o-list-row.o-picker-create[data-disabled] .o-list-main { color: var(--vk-fg-disabled); }
|
|
3479
3592
|
|
|
3480
3593
|
/* ── The search: the shared line across a popup's top (popup-line.css), 6 above and below round its chips, 4 over the
|
|
3481
3594
|
rows. With nothing to search it stays, out of sight, so the keys still work; a letter typed brings it back holding the
|
|
@@ -3992,7 +4105,7 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
3992
4105
|
/* Marked cards in a row: two across, as New view's layouts; one under another on a phone. Marked cards, as a row or as tiles, keep
|
|
3993
4106
|
room on every side for what stands outside a card's edge, the chosen one's ring and the focus outline, so a holder that clips
|
|
3994
4107
|
its sides (the Pane's body) never cuts either (KIT-816); the map's tiles stand as far in. */
|
|
3995
|
-
.o-radio-group.o-radio-row:has(> .o-radio-marked.o-choice-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
4108
|
+
.o-radio-group.o-radio-row:has(> .o-radio-marked.o-choice-card):not(:has(> .o-radio-pictured)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
3996
4109
|
.o-radio-group:where(.o-radio-row, .o-radio-tiles):has(> .o-radio-marked.o-choice-card) { padding: calc(var(--vk-focus-width) + var(--vk-focus-offset)); }
|
|
3997
4110
|
|
|
3998
4111
|
/* ── Tiles: marked cards three across, each centred, its mark over its name in the card's quieter words; chosen, the mark
|
|
@@ -4015,14 +4128,141 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
4015
4128
|
.o-choice-card.o-radio-marked:has(> [data-disabled]) { border-style: dashed; border-color: var(--vk-border-input); box-shadow: none; background-color: transparent; cursor: not-allowed; }
|
|
4016
4129
|
.o-choice-card.o-radio-marked:has(> [data-disabled]) :is(.o-radio-mark, .o-choice-label, .o-choice-note) { color: var(--vk-fg-disabled); }
|
|
4017
4130
|
|
|
4131
|
+
/* ── A swatch (VK-920; the settings canvas, round 2, Workspace's Colour): a label colour in place of the ring, a 24px dot
|
|
4132
|
+
named by its aria-label. Chosen, a thin ring of the ground and the selected colour just outside it; under the pointer the
|
|
4133
|
+
same ring in the field's hovered edge; focus outlines it outside that ring; disabled, grey and dashed, which the arrows pass
|
|
4134
|
+
by, its ring kept in the field's edge when it is the chosen one. A row of them stands 10 apart. ──────────────────────────────────────────────────────────────────────────────────── */
|
|
4135
|
+
.o-radio-swatched { align-items: center; }
|
|
4136
|
+
.o-radio-swatch {
|
|
4137
|
+
flex: none; box-sizing: border-box; width: calc(var(--vk-spacing) * 6); height: calc(var(--vk-spacing) * 6);
|
|
4138
|
+
border-radius: var(--vk-radius-full); outline: none; transition: box-shadow var(--vk-duration-fast) var(--vk-ease-out);
|
|
4139
|
+
}
|
|
4140
|
+
.o-radio-swatch[data-colour="blue"] { background-color: var(--vk-label-blue-fill); }
|
|
4141
|
+
.o-radio-swatch[data-colour="green"] { background-color: var(--vk-label-green-fill); }
|
|
4142
|
+
.o-radio-swatch[data-colour="amber"] { background-color: var(--vk-label-amber-fill); }
|
|
4143
|
+
.o-radio-swatch[data-colour="red"] { background-color: var(--vk-label-red-fill); }
|
|
4144
|
+
.o-radio-swatch[data-colour="purple"] { background-color: var(--vk-label-purple-fill); }
|
|
4145
|
+
.o-radio-swatch[data-colour="pink"] { background-color: var(--vk-label-pink-fill); }
|
|
4146
|
+
.o-radio-swatch[data-colour="teal"] { background-color: var(--vk-label-teal-fill); }
|
|
4147
|
+
.o-radio-swatch[data-colour="grey"] { background-color: var(--vk-neutral); }
|
|
4148
|
+
.o-radio-swatch[data-force="hover"]:not([data-checked], [data-disabled]) { box-shadow: 0 0 0 var(--vk-focus-offset) var(--vk-ground), 0 0 0 calc(var(--vk-focus-offset) + var(--vk-focus-width)) var(--vk-border-input-hovered); }
|
|
4149
|
+
@media (hover: hover) { .o-radio:hover > .o-radio-swatch:not([data-checked], [data-disabled]) { box-shadow: 0 0 0 var(--vk-focus-offset) var(--vk-ground), 0 0 0 calc(var(--vk-focus-offset) + var(--vk-focus-width)) var(--vk-border-input-hovered); } }
|
|
4150
|
+
.o-radio-swatch[data-checked] { box-shadow: 0 0 0 var(--vk-focus-offset) var(--vk-ground), 0 0 0 calc(var(--vk-focus-offset) + var(--vk-focus-width)) var(--vk-border-selected); }
|
|
4151
|
+
.o-radio-swatch:is(:focus-visible, [data-force="focus"]) { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: calc(var(--vk-focus-offset) * 2 + var(--vk-focus-width)); }
|
|
4152
|
+
.o-radio-swatch[data-disabled] { background-color: var(--vk-neutral); border: var(--vk-border-width) dashed var(--vk-border-input); box-shadow: none; }
|
|
4153
|
+
.o-radio-swatch[data-disabled][data-checked] { box-shadow: 0 0 0 var(--vk-focus-offset) var(--vk-ground), 0 0 0 calc(var(--vk-focus-offset) + var(--vk-focus-width)) var(--vk-border-input); }
|
|
4154
|
+
.o-radio:has(> .o-radio-swatch[data-disabled]) { cursor: not-allowed; }
|
|
4155
|
+
.o-radio-group.o-radio-row:has(> .o-radio-swatched) { gap: calc(var(--vk-spacing) * 2.5); align-items: center; min-height: calc(var(--vk-spacing) * 9); }
|
|
4156
|
+
|
|
4157
|
+
/* ── A marked card's picture (VK-920; round 2, Preferences' Appearance): what the app draws, the card's width and 120 tall,
|
|
4158
|
+
its mark and its name side by side and centred under it, in the card's quieter words; chosen, ringed as any marked card,
|
|
4159
|
+
its words in the text colour, the name a little heavier, the mark not in the brand. A row of them stands one beside
|
|
4160
|
+
another at equal widths, on a phone too. ──────────────────────────────────────────────────────────────────────────── */
|
|
4161
|
+
.o-choice-card.o-radio-marked.o-radio-pictured {
|
|
4162
|
+
display: grid; grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr); align-items: center; column-gap: calc(var(--vk-spacing) * 2); row-gap: 0;
|
|
4163
|
+
padding: calc(var(--vk-spacing) * 1.5) calc(var(--vk-spacing) * 1.5) 0; color: var(--vk-fg-subtle);
|
|
4164
|
+
}
|
|
4165
|
+
.o-radio-picture {
|
|
4166
|
+
grid-column: 1 / -1; justify-self: stretch; display: flex; box-sizing: border-box; height: calc(var(--vk-spacing) * 30); overflow: hidden;
|
|
4167
|
+
border: var(--vk-border-width) solid var(--vk-border-subtle); border-radius: var(--vk-radius-sm);
|
|
4168
|
+
}
|
|
4169
|
+
.o-radio-pictured > :is(.o-radio-mark, .o-choice-text) { min-height: calc(var(--vk-spacing) * 11); display: flex; align-items: center; }
|
|
4170
|
+
/* The picture spans the card; the mark and the name stand in the two middle columns, centred as a pair under it. */
|
|
4171
|
+
.o-radio-pictured > .o-radio-mark { grid-column: 2; }
|
|
4172
|
+
.o-radio-pictured > .o-choice-text { grid-column: 3; }
|
|
4173
|
+
.o-radio-pictured > .o-radio-mark, .o-radio-pictured > .o-radio-mark[data-checked] { color: inherit; }
|
|
4174
|
+
.o-radio-pictured > .o-radio-mark > svg { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); }
|
|
4175
|
+
.o-radio-pictured .o-choice-label { font-weight: var(--vk-font-weight-normal); color: inherit; }
|
|
4176
|
+
.o-choice-card.o-radio-pictured:has(> [data-checked]) { color: var(--vk-fg); }
|
|
4177
|
+
.o-choice-card.o-radio-pictured:has(> [data-checked]) .o-choice-label { font-weight: var(--vk-font-weight-medium); }
|
|
4178
|
+
.o-radio-group.o-radio-row:has(> .o-radio-pictured) { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; gap: calc(var(--vk-spacing) * 3); }
|
|
4179
|
+
|
|
4018
4180
|
/* On a phone (`data-vk-phone`, the group's own mark from the device, or a phone frame round it): marked cards one under
|
|
4019
4181
|
another, tiles on one card. */
|
|
4020
|
-
.o-radio-group.o-radio-row:where([data-vk-phone], [data-vk-phone] *):has(> .o-radio-marked.o-choice-card) { grid-template-columns: minmax(0, 1fr); }
|
|
4182
|
+
.o-radio-group.o-radio-row:where([data-vk-phone], [data-vk-phone] *):has(> .o-radio-marked.o-choice-card):not(:has(> .o-radio-pictured)) { grid-template-columns: minmax(0, 1fr); }
|
|
4021
4183
|
.o-radio-group.o-radio-tiles:where([data-vk-phone], [data-vk-phone] *):has(> .o-choice-card) { gap: calc(var(--vk-spacing) * 2); padding: calc(var(--vk-spacing) * 3); border-radius: var(--vk-radius-xl); background-color: var(--vk-overlay-card); }
|
|
4022
4184
|
.o-radio-tiles:where([data-vk-phone], [data-vk-phone] *) > .o-choice-card.o-radio-marked { justify-content: center; min-height: calc(var(--vk-spacing) * 18); }
|
|
4023
4185
|
.o-radio-tiles:where([data-vk-phone], [data-vk-phone] *) > .o-radio-marked > .o-radio-mark > svg { width: calc(var(--vk-spacing) * 5.5); height: calc(var(--vk-spacing) * 5.5); }
|
|
4024
4186
|
|
|
4025
|
-
|
|
4187
|
+
/* ── On a phone, the swatches and the pictured cards (VK-955; the settings canvas, round 3, the iOS round: look-ios.mjs, .sws
|
|
4188
|
+
and .pics): each row a card of its own, the overlay card's ground and corner, as the tiles are on a phone. The swatches 28
|
|
4189
|
+
across, 13 apart, each in its colour's bold shade, as round 3 draws them (the label's own hue, grey the quietest text; VK-963),
|
|
4190
|
+
the chosen one ringed in the text colour just outside a gap of the card's ground. The pictured cards drop
|
|
4191
|
+
their edge, ring and ground: each a phone, 46 × 88, framed in the field's edge, over its name; the chosen one framed in
|
|
4192
|
+
the brand, its name a pill in the brand; no mark, the radio itself kept for the keys and focus, which rings the card. The
|
|
4193
|
+
three stand spaced around their card. ──────────────────────────────────────────────────────────────────────────────── */
|
|
4194
|
+
.o-radio-group.o-radio-row:where([data-vk-phone], [data-vk-phone] *):has(> .o-radio-swatched) {
|
|
4195
|
+
gap: calc(var(--vk-spacing) * 3.25); min-height: 0; padding: calc(var(--vk-spacing) * 3.5) calc(var(--vk-spacing) * 4.5);
|
|
4196
|
+
border-radius: var(--vk-radius-xl); background-color: var(--vk-overlay-card);
|
|
4197
|
+
}
|
|
4198
|
+
.o-radio-row:where([data-vk-phone], [data-vk-phone] *) > .o-radio-swatched > .o-radio-swatch { width: calc(var(--vk-spacing) * 7); height: calc(var(--vk-spacing) * 7); }
|
|
4199
|
+
.o-radio-row:where([data-vk-phone], [data-vk-phone] *) > .o-radio-swatched > .o-radio-swatch[data-colour="blue"]:not([data-disabled]) { background-color: var(--vk-label-blue); }
|
|
4200
|
+
.o-radio-row:where([data-vk-phone], [data-vk-phone] *) > .o-radio-swatched > .o-radio-swatch[data-colour="green"]:not([data-disabled]) { background-color: var(--vk-label-green); }
|
|
4201
|
+
.o-radio-row:where([data-vk-phone], [data-vk-phone] *) > .o-radio-swatched > .o-radio-swatch[data-colour="amber"]:not([data-disabled]) { background-color: var(--vk-label-amber); }
|
|
4202
|
+
.o-radio-row:where([data-vk-phone], [data-vk-phone] *) > .o-radio-swatched > .o-radio-swatch[data-colour="red"]:not([data-disabled]) { background-color: var(--vk-label-red); }
|
|
4203
|
+
.o-radio-row:where([data-vk-phone], [data-vk-phone] *) > .o-radio-swatched > .o-radio-swatch[data-colour="purple"]:not([data-disabled]) { background-color: var(--vk-label-purple); }
|
|
4204
|
+
.o-radio-row:where([data-vk-phone], [data-vk-phone] *) > .o-radio-swatched > .o-radio-swatch[data-colour="pink"]:not([data-disabled]) { background-color: var(--vk-label-pink); }
|
|
4205
|
+
.o-radio-row:where([data-vk-phone], [data-vk-phone] *) > .o-radio-swatched > .o-radio-swatch[data-colour="teal"]:not([data-disabled]) { background-color: var(--vk-label-teal); }
|
|
4206
|
+
.o-radio-row:where([data-vk-phone], [data-vk-phone] *) > .o-radio-swatched > .o-radio-swatch[data-colour="grey"]:not([data-disabled]) { background-color: var(--vk-fg-subtlest); }
|
|
4207
|
+
.o-radio-row:where([data-vk-phone], [data-vk-phone] *) > .o-radio-swatched > .o-radio-swatch[data-force="hover"]:not([data-checked], [data-disabled]) { box-shadow: 0 0 0 var(--vk-focus-offset) var(--vk-overlay-card), 0 0 0 calc(var(--vk-focus-offset) + var(--vk-focus-width)) var(--vk-border-input-hovered); }
|
|
4208
|
+
.o-radio-row:where([data-vk-phone], [data-vk-phone] *) > .o-radio-swatched > .o-radio-swatch[data-checked]:not([data-disabled]) { box-shadow: 0 0 0 var(--vk-focus-offset) var(--vk-overlay-card), 0 0 0 calc(var(--vk-focus-offset) + var(--vk-focus-width)) var(--vk-fg); }
|
|
4209
|
+
.o-radio-row:where([data-vk-phone], [data-vk-phone] *) > .o-radio-swatched > .o-radio-swatch[data-disabled][data-checked] { box-shadow: 0 0 0 var(--vk-focus-offset) var(--vk-overlay-card), 0 0 0 calc(var(--vk-focus-offset) + var(--vk-focus-width)) var(--vk-border-input); }
|
|
4210
|
+
|
|
4211
|
+
.o-radio-group.o-radio-row:where([data-vk-phone], [data-vk-phone] *):has(> .o-radio-pictured) {
|
|
4212
|
+
display: flex; justify-content: space-around; gap: 0; padding: calc(var(--vk-spacing) * 4.5) calc(var(--vk-spacing) * 2.5) calc(var(--vk-spacing) * 4);
|
|
4213
|
+
border-radius: var(--vk-radius-xl); background-color: var(--vk-overlay-card);
|
|
4214
|
+
}
|
|
4215
|
+
.o-radio-row:where([data-vk-phone], [data-vk-phone] *) > .o-choice-card.o-radio-marked.o-radio-pictured {
|
|
4216
|
+
position: relative; display: flex; flex-direction: column; align-items: center; gap: calc(var(--vk-spacing) * 2.5); width: auto; padding: 0;
|
|
4217
|
+
border: 0 none; box-shadow: none; background-color: transparent; color: var(--vk-fg);
|
|
4218
|
+
}
|
|
4219
|
+
.o-radio-row:where([data-vk-phone], [data-vk-phone] *) > .o-radio-pictured > .o-radio-picture {
|
|
4220
|
+
flex: none; width: calc(var(--vk-spacing) * 11.5); height: calc(var(--vk-spacing) * 22);
|
|
4221
|
+
border: var(--vk-focus-width) solid var(--vk-border-input); border-radius: var(--vk-radius-lg);
|
|
4222
|
+
transition: border-color var(--vk-duration-fast) var(--vk-ease-out);
|
|
4223
|
+
}
|
|
4224
|
+
.o-radio-row:where([data-vk-phone], [data-vk-phone] *) > .o-radio-pictured:has(> [data-checked]) > .o-radio-picture { border-color: var(--vk-brand); }
|
|
4225
|
+
/* The radio itself, out of sight: still the one the keys move and focus lands on. */
|
|
4226
|
+
.o-radio-row:where([data-vk-phone], [data-vk-phone] *) > .o-radio-pictured > .o-radio-mark { position: absolute; width: 1px; height: 1px; min-height: 0; overflow: hidden; clip-path: inset(50%); }
|
|
4227
|
+
.o-radio-row:where([data-vk-phone], [data-vk-phone] *) > .o-radio-pictured > .o-choice-text {
|
|
4228
|
+
min-height: calc(var(--vk-spacing) * 6.25); padding: 0 calc(var(--vk-spacing) * 2.75); border-radius: var(--vk-radius-full);
|
|
4229
|
+
transition: background-color var(--vk-duration-fast) var(--vk-ease-out), color var(--vk-duration-fast) var(--vk-ease-out);
|
|
4230
|
+
}
|
|
4231
|
+
.o-radio-row:where([data-vk-phone], [data-vk-phone] *) > .o-radio-pictured:has(> [data-checked]) > .o-choice-text { background-color: var(--vk-brand); color: var(--vk-fg-on-brand); }
|
|
4232
|
+
|
|
4233
|
+
/* ── On a phone, a group of cards (VK-968; the settings canvas, round 3, the iOS round: look-ios.mjs, .grp, .r and .ck): iOS's
|
|
4234
|
+
✓ rows, on one card in the overlay card's ground and corner, as the swatches and the tiles stand on a phone; each row 52 at
|
|
4235
|
+
least, 16 in, its label in the base words and its line under it in the quietest, a rule between each from the words, which a
|
|
4236
|
+
place may stop --field-rows-line-end short of the right edge, as Field rows' rule; no edge and no ground of its own. Its ring
|
|
4237
|
+
stands at the row's end, 20 square and bare: chosen, the ✓ in the accent; else nothing. The ring keeps the keys and the focus. */
|
|
4238
|
+
.o-radio-group:where([data-vk-phone], [data-vk-phone] *):has(> .o-choice-card:not(.o-radio-marked)) {
|
|
4239
|
+
gap: 0; overflow: hidden; border-radius: var(--vk-radius-xl); background-color: var(--vk-overlay-card);
|
|
4240
|
+
}
|
|
4241
|
+
.o-radio-group:where([data-vk-phone], [data-vk-phone] *) > .o-choice-card:not(.o-radio-marked) {
|
|
4242
|
+
display: flex; align-items: center; gap: calc(var(--vk-spacing) * 3); min-height: calc(var(--vk-spacing) * 13);
|
|
4243
|
+
padding: calc(var(--vk-spacing) * 2.5) calc(var(--vk-spacing) * 4); border: 0; border-radius: 0; box-shadow: none; background-color: transparent;
|
|
4244
|
+
}
|
|
4245
|
+
.o-radio-group:where([data-vk-phone], [data-vk-phone] *) > .o-choice-card:not(.o-radio-marked) + .o-choice-card {
|
|
4246
|
+
background-image: linear-gradient(var(--vk-border-overlay-card), var(--vk-border-overlay-card)); background-repeat: no-repeat;
|
|
4247
|
+
background-size: calc(100% - var(--vk-spacing) * 4 - var(--field-rows-line-end, 0px)) var(--vk-border-width); background-position: calc(var(--vk-spacing) * 4) 0;
|
|
4248
|
+
}
|
|
4249
|
+
.o-radio-group:where([data-vk-phone], [data-vk-phone] *) > .o-choice-card:not(.o-radio-marked) > .o-choice-text { flex: 1 1 auto; min-width: 0; }
|
|
4250
|
+
.o-radio-group:where([data-vk-phone], [data-vk-phone] *) > .o-choice-card:not(.o-radio-marked) .o-choice-label {
|
|
4251
|
+
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-normal);
|
|
4252
|
+
}
|
|
4253
|
+
.o-radio-group:where([data-vk-phone], [data-vk-phone] *) > .o-choice-card:not(.o-radio-marked) .o-choice-note { color: var(--vk-fg-subtlest); }
|
|
4254
|
+
.o-radio-group:where([data-vk-phone], [data-vk-phone] *) > .o-choice-card:not(.o-radio-marked) > .o-radio-ring {
|
|
4255
|
+
order: 1; width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 5); margin: 0; border: 0; border-radius: var(--vk-radius-sm); background-color: transparent;
|
|
4256
|
+
}
|
|
4257
|
+
.o-radio-group:where([data-vk-phone], [data-vk-phone] *) > .o-choice-card:not(.o-radio-marked) .o-radio-dot { display: contents; }
|
|
4258
|
+
.o-radio-check { display: none; }
|
|
4259
|
+
.o-radio-group:where([data-vk-phone], [data-vk-phone] *) > .o-choice-card:not(.o-radio-marked) .o-radio-check {
|
|
4260
|
+
display: block; width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 5); stroke-width: 2.4; color: var(--vk-fg-accent); visibility: hidden;
|
|
4261
|
+
}
|
|
4262
|
+
.o-radio-group:where([data-vk-phone], [data-vk-phone] *) > .o-choice-card:not(.o-radio-marked) > [data-checked] .o-radio-check { visibility: visible; }
|
|
4263
|
+
.o-radio-group:where([data-vk-phone], [data-vk-phone] *) > .o-choice-card:not(.o-radio-marked) > [data-disabled] .o-radio-check { color: var(--vk-fg-disabled); }
|
|
4264
|
+
|
|
4265
|
+
@media (prefers-reduced-motion: reduce) { .o-radio-ring, .o-radio-dot, .o-radio-mark, .o-radio-swatch, .o-radio-picture, .o-radio-pictured > .o-choice-text { transition: none; } }
|
|
4026
4266
|
|
|
4027
4267
|
/* Doubled, so a component's own overflow: auto in the same layer never brings the sideways scroll back. */
|
|
4028
4268
|
[data-scrollbar][data-scrollbar] { overflow-x: hidden; }
|
|
@@ -4070,6 +4310,23 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
4070
4310
|
.o-select-2xs .o-select-chevron svg:where([data-vk-phone], [data-vk-phone] *) { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); }
|
|
4071
4311
|
.o-select-field[data-popup-open] .o-select-chevron:not([data-arrow="right"]) { rotate: 180deg; }
|
|
4072
4312
|
|
|
4313
|
+
/* ── Its label inside its box (labelAt="inside"): the box the outline Button's own (button.css draws its ground, edge, depth,
|
|
4314
|
+
size and states), as wide as what it holds and never wider than its place; the label in the quieter words at the regular
|
|
4315
|
+
weight, then the value in the Button's words, then a 14px chevron in them ─────────────────────────────────────────── */
|
|
4316
|
+
.o-select.o-select-inside { width: max-content; max-width: 100%; }
|
|
4317
|
+
.o-select-inside .o-select-field { max-width: 100%; justify-content: flex-start; gap: calc(var(--vk-spacing) * 1.5); }
|
|
4318
|
+
/* Narrower than its words, the label and the value each end in "…" and the chevron stays inside. */
|
|
4319
|
+
.o-select-label-in { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--vk-fg-subtle); font-weight: var(--vk-font-weight-normal); white-space: nowrap; }
|
|
4320
|
+
.o-select-inside .o-select-value { flex: 0 1 auto; }
|
|
4321
|
+
.o-select-inside .o-select-chevron svg { width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); stroke: currentColor; }
|
|
4322
|
+
/* On a phone (VK-968): the box the Glass button's worded pill at sm (glass-button.css draws its glass, rim, size and words), its
|
|
4323
|
+
value then a 16px ⌄ in the quietest words; the label kept for a screen reader alone, as the Sheet it opens is titled with it. */
|
|
4324
|
+
.o-select-inside .o-select-field:where([data-vk-phone]) { gap: var(--vk-spacing); }
|
|
4325
|
+
.o-select-inside .o-select-field:where([data-vk-phone]) > .o-select-label-in {
|
|
4326
|
+
position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
|
|
4327
|
+
}
|
|
4328
|
+
.o-select-inside .o-select-field:where([data-vk-phone]) .o-select-chevron svg { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); stroke: var(--vk-fg-subtlest); }
|
|
4329
|
+
|
|
4073
4330
|
/* ── Typed into: the field holds the box you type in (the group's bare control), and with several, their
|
|
4074
4331
|
chips first, each the Option with its own ×, wrapping onto more lines as they grow; from 32px up a quiet ×
|
|
4075
4332
|
clears it; the chevron shows every choice ───────────────────────────────────────────────────────── */
|
|
@@ -4135,6 +4392,200 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
4135
4392
|
|
|
4136
4393
|
@media (prefers-reduced-motion: reduce) { .o-select-chevron { transition: none; } }
|
|
4137
4394
|
|
|
4395
|
+
/* ── The options: each value sets the card's or the rows' own names, read below ─────────────────────────────────────── */
|
|
4396
|
+
:where([data-setting-row-card="raised"]) .o-setting-rows { --setting-rows-edge: var(--vk-border-subtle); --setting-rows-ground: var(--vk-raised); }
|
|
4397
|
+
:where([data-setting-row-rows="roomy"]) :is(.o-setting-rows, .o-setting-row) {
|
|
4398
|
+
--setting-rows-pad: calc(var(--vk-spacing) * 3) calc(var(--vk-spacing) * 4.5); --setting-rows-height: calc(var(--vk-spacing) * 16);
|
|
4399
|
+
--setting-rows-side: calc(var(--vk-spacing) * 16);
|
|
4400
|
+
}
|
|
4401
|
+
.o-setting-rows.o-setting-rows-danger { --setting-rows-edge: var(--vk-border-danger); }
|
|
4402
|
+
/* Edged (Linear's): the card on its ground with a firm edge; its danger zone's plain, only its action red. */
|
|
4403
|
+
:where([data-setting-row-card="edged"]) .o-setting-rows { --setting-rows-edge: var(--vk-border); --setting-rows-ground: var(--vk-raised); }
|
|
4404
|
+
:where([data-setting-row-card="edged"]) .o-setting-rows.o-setting-rows-danger { --setting-rows-edge: var(--vk-border); }
|
|
4405
|
+
/* Inset (Linear's): 60 tall at least, 15 by 16, the line between rows inset 16 at each end. */
|
|
4406
|
+
:where([data-setting-row-rows="inset"]) :is(.o-setting-rows, .o-setting-row) {
|
|
4407
|
+
--setting-rows-pad: calc(var(--vk-spacing) * 3.75) calc(var(--vk-spacing) * 4); --setting-rows-height: calc(var(--vk-spacing) * 15);
|
|
4408
|
+
--setting-rows-side: calc(var(--vk-spacing) * 15);
|
|
4409
|
+
}
|
|
4410
|
+
|
|
4411
|
+
/* ── The card, on a computer: the rows in a box, a line between each ───────────────────────────────────────────────── */
|
|
4412
|
+
.o-setting-rows:not(.o-field-rows) {
|
|
4413
|
+
display: grid; border: var(--vk-border-width) solid var(--setting-rows-edge, var(--vk-border)); border-radius: var(--vk-radius-lg); overflow: hidden;
|
|
4414
|
+
background-color: var(--setting-rows-ground, transparent);
|
|
4415
|
+
}
|
|
4416
|
+
|
|
4417
|
+
/* ── A row, on a computer: its start, its words, its end ───────────────────────────────────────────────────────────── */
|
|
4418
|
+
.o-setting-row:not(.o-field-row) {
|
|
4419
|
+
display: flex; align-items: center; justify-content: space-between; gap: calc(var(--vk-spacing) * 4); box-sizing: border-box;
|
|
4420
|
+
min-height: var(--setting-rows-height, auto); margin: 0; padding: var(--setting-rows-pad, calc(var(--vk-spacing) * 3.5) calc(var(--vk-spacing) * 4));
|
|
4421
|
+
border: 0; border-top: var(--vk-border-width) solid var(--vk-border-subtle);
|
|
4422
|
+
-webkit-tap-highlight-color: transparent; transition: background-color var(--vk-duration-fast) var(--vk-ease-out);
|
|
4423
|
+
}
|
|
4424
|
+
.o-setting-row:not(.o-field-row):first-child { border-top: 0; }
|
|
4425
|
+
.o-setting-row:not(.o-field-row) > .o-choice-text { flex: 1 1 auto; }
|
|
4426
|
+
.o-setting-row:not(.o-field-row) .o-choice-label { font-weight: var(--vk-font-weight-medium); }
|
|
4427
|
+
/* The row that is a press as a whole: the one opening its page (a button). A switch's row is not: only its Switch switches it
|
|
4428
|
+
(KIT-969), so it takes no pointer and no ground under it. */
|
|
4429
|
+
button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: left; background-color: transparent; }
|
|
4430
|
+
.o-setting-row[data-setting-row-kind="open"]:not(.o-field-row) { cursor: pointer; }
|
|
4431
|
+
@media (hover: hover) { .o-setting-row[data-setting-row-kind="open"]:not(.o-field-row):hover { background-color: var(--vk-hovered); } }
|
|
4432
|
+
.o-setting-row[data-setting-row-kind="open"]:not(.o-field-row)[data-locked] { cursor: not-allowed; background-color: transparent; }
|
|
4433
|
+
|
|
4434
|
+
/* Its start: a mark as given; an icon in its box. */
|
|
4435
|
+
.o-setting-row > :not(.o-choice-text, .o-setting-row-press) { flex: none; }
|
|
4436
|
+
.o-setting-row-icon {
|
|
4437
|
+
display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: calc(var(--vk-spacing) * 8); height: calc(var(--vk-spacing) * 8);
|
|
4438
|
+
border: var(--vk-border-width) solid var(--vk-border-subtle); border-radius: var(--vk-radius-md); background-color: var(--vk-raised); color: var(--vk-fg-subtle);
|
|
4439
|
+
}
|
|
4440
|
+
.o-setting-row-icon > svg { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); }
|
|
4441
|
+
|
|
4442
|
+
/* Its end: the reason, then the control; the Select 220 wide; the value and ›. */
|
|
4443
|
+
.o-setting-row-end { display: flex; align-items: center; gap: calc(var(--vk-spacing) * 2); margin-left: auto; min-width: 0; }
|
|
4444
|
+
.o-setting-row-select { width: calc(var(--vk-spacing) * 55); }
|
|
4445
|
+
.o-setting-row-select .o-select-field { width: 100%; }
|
|
4446
|
+
.o-setting-row-reason { font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs)); color: var(--vk-fg-subtlest); }
|
|
4447
|
+
.o-setting-row-reason + .o-switch { margin-left: calc(var(--vk-spacing) * -2); }
|
|
4448
|
+
.o-setting-row-value { 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); }
|
|
4449
|
+
.o-setting-row-chevron { flex: none; width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); color: var(--vk-fg-subtlest); }
|
|
4450
|
+
/* Locked: its control greyed (a switch keeps its own locked state), its words as they are. */
|
|
4451
|
+
.o-setting-row[data-locked] :is(.o-setting-row-select, .o-button, .o-setting-row-value, .o-setting-row-chevron) { opacity: var(--vk-opacity-off); }
|
|
4452
|
+
|
|
4453
|
+
/* A lone row: bare, no card, no line, no room round it. */
|
|
4454
|
+
.o-setting-row[data-alone]:not(.o-field-row) { min-height: 0; padding: 0; border-top: 0; background-color: transparent; }
|
|
4455
|
+
|
|
4456
|
+
/* ── Linear's values on a computer ─────────────────────────────────────────────────────────────────────────────────── */
|
|
4457
|
+
/* Edged: a lone row a card of its own, the rows' room in it; an icon on a grey tile, no edge. */
|
|
4458
|
+
:where([data-setting-row-card="edged"]) .o-setting-row[data-alone]:not(.o-field-row) {
|
|
4459
|
+
min-height: var(--setting-rows-height, auto); padding: var(--setting-rows-pad, calc(var(--vk-spacing) * 3.5) calc(var(--vk-spacing) * 4));
|
|
4460
|
+
border: var(--vk-border-width) solid var(--vk-border); border-radius: var(--vk-radius-lg); background-color: var(--vk-raised);
|
|
4461
|
+
}
|
|
4462
|
+
:where([data-setting-row-card="edged"]) .o-setting-row-icon:not(:where([data-vk-phone], [data-vk-phone] *)) {
|
|
4463
|
+
border: 0; border-radius: var(--vk-radius-sm); background-color: var(--vk-neutral);
|
|
4464
|
+
}
|
|
4465
|
+
:where([data-setting-row-card="edged"]) .o-setting-row-icon:not(:where([data-vk-phone], [data-vk-phone] *)) > svg { width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); }
|
|
4466
|
+
/* Inset: the line between rows from 16 in to 16 short, drawn under a row's own ground. */
|
|
4467
|
+
:where([data-setting-row-rows="inset"]) .o-setting-rows:not(.o-field-rows) > :is(.o-setting-row, .o-field) { border-top: 0; }
|
|
4468
|
+
:where([data-setting-row-rows="inset"]) .o-setting-rows:not(.o-field-rows) > * + :is(.o-setting-row, .o-field) {
|
|
4469
|
+
background-image: linear-gradient(var(--vk-border-subtle), var(--vk-border-subtle)); background-repeat: no-repeat;
|
|
4470
|
+
background-size: calc(100% - var(--vk-spacing) * 8) var(--vk-border-width); background-position: calc(var(--vk-spacing) * 4) 0;
|
|
4471
|
+
}
|
|
4472
|
+
/* Words: an action as its words, the row's own press, 28 tall, in the text colour, red where it can't be undone; its icon alone
|
|
4473
|
+
a 24 press in the subtle text. */
|
|
4474
|
+
.o-setting-row:not(.o-field-row) .o-setting-row-act {
|
|
4475
|
+
display: inline-flex; align-items: center; justify-content: center; min-height: calc(var(--vk-spacing) * 7); margin: 0;
|
|
4476
|
+
padding: 0 calc(var(--vk-spacing) * 1.75); border: 0; border-radius: var(--vk-radius-sm); font: inherit; font-size: var(--vk-font-size-sm);
|
|
4477
|
+
line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); font-weight: var(--vk-font-weight-medium); white-space: nowrap;
|
|
4478
|
+
color: var(--vk-fg); background-color: transparent; cursor: pointer; transition: background-color var(--vk-duration-fast) var(--vk-ease-out);
|
|
4479
|
+
}
|
|
4480
|
+
.o-setting-row:not(.o-field-row) .o-setting-row-act[data-kind="danger"] { color: var(--vk-danger); }
|
|
4481
|
+
.o-setting-row:not(.o-field-row) .o-setting-row-act[data-icon] { width: calc(var(--vk-spacing) * 6); min-height: calc(var(--vk-spacing) * 6); padding: 0; color: var(--vk-fg-subtle); }
|
|
4482
|
+
.o-setting-row:not(.o-field-row) .o-setting-row-act > svg { width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); }
|
|
4483
|
+
@media (hover: hover) { .o-setting-row:not(.o-field-row) .o-setting-row-act:hover:not(:disabled) { background-color: var(--vk-hovered); } }
|
|
4484
|
+
.o-setting-row:not(.o-field-row) .o-setting-row-act:disabled { cursor: not-allowed; opacity: var(--vk-opacity-off); }
|
|
4485
|
+
/* A state as a dot in its colour and its words in the text colour; with no colour, its words alone. */
|
|
4486
|
+
.o-setting-row-said {
|
|
4487
|
+
display: inline-flex; align-items: center; gap: calc(var(--vk-spacing) * 1.5); white-space: nowrap; color: var(--vk-fg);
|
|
4488
|
+
font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm));
|
|
4489
|
+
}
|
|
4490
|
+
.o-setting-row-dot { flex: none; width: calc(var(--vk-spacing) * 1.5); height: calc(var(--vk-spacing) * 1.5); border-radius: var(--vk-radius-full); background-color: var(--setting-row-dot, var(--vk-fg-subtlest)); }
|
|
4491
|
+
.o-setting-row-dot[data-colour="blue"] { --setting-row-dot: var(--vk-label-blue); }
|
|
4492
|
+
.o-setting-row-dot[data-colour="green"] { --setting-row-dot: var(--vk-label-green); }
|
|
4493
|
+
.o-setting-row-dot[data-colour="amber"] { --setting-row-dot: var(--vk-label-amber); }
|
|
4494
|
+
.o-setting-row-dot[data-colour="red"] { --setting-row-dot: var(--vk-label-red); }
|
|
4495
|
+
.o-setting-row-dot[data-colour="purple"] { --setting-row-dot: var(--vk-label-purple); }
|
|
4496
|
+
.o-setting-row-dot[data-colour="pink"] { --setting-row-dot: var(--vk-label-pink); }
|
|
4497
|
+
.o-setting-row-dot[data-colour="teal"] { --setting-row-dot: var(--vk-label-teal); }
|
|
4498
|
+
/* A locked row under Words: its words greyed, its reason at the row's size. */
|
|
4499
|
+
:where([data-setting-row-end="words"]) .o-setting-row[data-locked]:not(.o-field-row) :is(.o-choice-label, .o-choice-note) { color: var(--vk-fg-subtlest); }
|
|
4500
|
+
:where([data-setting-row-end="words"]) .o-setting-row:not(.o-field-row) .o-setting-row-reason { font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); }
|
|
4501
|
+
/* At the end: a Field in the card is its row (field.tsx), its error red in its note's place, its Input or InputGroup 256 wide at
|
|
4502
|
+
the row's end, 64 tall at least under Inset, 16 above and below; every select at a row's end as wide as its value. */
|
|
4503
|
+
.o-setting-row-field > .o-choice-text { flex: 1 1 auto; min-width: 0; }
|
|
4504
|
+
.o-setting-row-field .o-setting-row-error { color: var(--vk-danger); }
|
|
4505
|
+
.o-setting-row-field > .o-setting-row-end > :is(.o-input, .o-input-group) { width: calc(var(--vk-spacing) * 64); }
|
|
4506
|
+
:where([data-setting-row-rows="inset"]) .o-setting-row-field { --setting-rows-height: calc(var(--vk-spacing) * 16); --setting-rows-pad: calc(var(--vk-spacing) * 4); }
|
|
4507
|
+
:where([data-setting-row-fields="end"]) :is(.o-setting-row-select, .o-setting-row-end .o-select) { width: auto; }
|
|
4508
|
+
:where([data-setting-row-fields="end"]) :is(.o-setting-row-select, .o-setting-row-end .o-select) .o-select-field { width: auto; }
|
|
4509
|
+
/* Boxes: a Field placed in a computer's card stands as a row, the rows' room round it and the line above it. */
|
|
4510
|
+
.o-setting-rows:not(.o-field-rows) > .o-field { box-sizing: border-box; padding: var(--setting-rows-pad, calc(var(--vk-spacing) * 3.5) calc(var(--vk-spacing) * 4)); border-top: var(--vk-border-width) solid var(--vk-border-subtle); }
|
|
4511
|
+
.o-setting-rows:not(.o-field-rows) > .o-field:first-child { border-top: 0; }
|
|
4512
|
+
|
|
4513
|
+
/* ── On a phone: Field rows' card and rows; a setting's words, value and › in them ─────────────────────────────────── */
|
|
4514
|
+
.o-setting-row.o-field-row > .o-choice-text { flex: 1 1 auto; }
|
|
4515
|
+
.o-setting-row-press {
|
|
4516
|
+
display: flex; flex: 1 1 auto; align-items: center; gap: calc(var(--vk-spacing) * 3); align-self: stretch; min-width: 0; margin: 0; padding: 0;
|
|
4517
|
+
border: 0; font: inherit; color: inherit; text-align: left; background-color: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
|
|
4518
|
+
}
|
|
4519
|
+
.o-setting-row.o-field-row .o-setting-row-end { flex: 0 1 auto; }
|
|
4520
|
+
.o-setting-row.o-field-row .o-setting-row-value { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
|
4521
|
+
.o-setting-rows-danger.o-field-rows :is(.o-choice-label, .o-setting-row-icon) { color: var(--vk-danger); }
|
|
4522
|
+
.o-setting-row.o-field-row .o-setting-row-end { gap: calc(var(--vk-spacing) * 3); }
|
|
4523
|
+
.o-setting-row.o-field-row .o-setting-row-value { max-width: calc(var(--vk-spacing) * 47.5); color: var(--vk-fg-subtlest); }
|
|
4524
|
+
.o-setting-row-chevron[data-phone] {
|
|
4525
|
+
width: calc(var(--vk-spacing) * 2.25); height: calc(var(--vk-spacing) * 3.75); margin: 0 calc(var(--vk-spacing) * 0.5) 0 calc(var(--vk-spacing) * 0.25); color: var(--vk-icon-disclosure);
|
|
4526
|
+
}
|
|
4527
|
+
/* One group, one way: a card where any row has a start (an icon, or a mark) gives every row the start's room, 28 an icon's or 32
|
|
4528
|
+
when a mark stands in it, so every row's words stand in one line; and each row's rule starts at the words, as iOS's Settings. */
|
|
4529
|
+
.o-setting-rows.o-field-rows:has(> .o-setting-row[data-setting-row-start]) { --setting-rows-start: calc(var(--vk-spacing) * 7); }
|
|
4530
|
+
.o-setting-rows.o-field-rows:has(> .o-setting-row[data-setting-row-start="mark"]) { --setting-rows-start: calc(var(--vk-spacing) * 8); }
|
|
4531
|
+
.o-setting-rows.o-field-rows:has(> .o-setting-row[data-setting-row-start]) > .o-setting-row:not([data-setting-row-start]) { padding-left: calc(var(--vk-spacing) * 7 + var(--setting-rows-start)); }
|
|
4532
|
+
.o-setting-rows.o-field-rows:has(> .o-setting-row[data-setting-row-start]) > .o-setting-row + .o-setting-row {
|
|
4533
|
+
background-position: calc(var(--vk-spacing) * 7 + var(--setting-rows-start)) 0;
|
|
4534
|
+
background-size: calc(100% - var(--vk-spacing) * 7 - var(--setting-rows-start) - var(--field-rows-line-end, 0px)) var(--vk-border-width);
|
|
4535
|
+
}
|
|
4536
|
+
/* A button's words at the row's end, a press of their own, a finger's height. */
|
|
4537
|
+
.o-setting-row-act {
|
|
4538
|
+
display: inline-flex; align-items: center; min-height: calc(var(--vk-spacing) * 11); margin: 0; padding: 0; border: 0; border-radius: var(--vk-radius-md);
|
|
4539
|
+
font: inherit; font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); white-space: nowrap; color: var(--vk-fg-brand); background-color: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
|
|
4540
|
+
}
|
|
4541
|
+
.o-setting-row-act:focus-visible { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: var(--vk-focus-offset); }
|
|
4542
|
+
.o-setting-row-act:disabled { cursor: not-allowed; }
|
|
4543
|
+
/* A lone row: the row the press, its name in the link colour. */
|
|
4544
|
+
.o-setting-row.o-field-row[data-alone] .o-choice-label { color: var(--vk-fg-brand); }
|
|
4545
|
+
/* Locked: faded, but its line (the reason) kept; its Switch fades itself (switch.css). */
|
|
4546
|
+
.o-setting-row.o-field-row[data-locked] :is(.o-choice-label, .o-setting-row-icon, .o-setting-row-value, .o-setting-row-chevron, .o-setting-row-act),
|
|
4547
|
+
.o-setting-row.o-field-row[data-locked] > :first-child:not(.o-choice-text, .o-setting-row-press),
|
|
4548
|
+
.o-setting-row.o-field-row[data-locked] > .o-setting-row-press > :first-child:not(.o-choice-text) { opacity: var(--vk-opacity-off); }
|
|
4549
|
+
|
|
4550
|
+
/* ── Its icon on a phone, by the Icon option: Line, nothing picked, the glyph alone in the subtle text in a 28 box; Tile, a white
|
|
4551
|
+
glyph on a 28 tile of the colour the app passed (data-colour, a label colour), grey when it passed none. The danger zone's
|
|
4552
|
+
icons stay lines. Drawn wherever it stands on a phone, a row's start or a list's (SettingIcon). ─────────────────────────── */
|
|
4553
|
+
.o-setting-row-icon:where([data-vk-phone], [data-vk-phone] *) {
|
|
4554
|
+
width: calc(var(--vk-spacing) * 7); height: calc(var(--vk-spacing) * 7); border: 0; border-radius: 0; background-color: transparent; color: var(--vk-fg-subtle);
|
|
4555
|
+
}
|
|
4556
|
+
.o-setting-row-icon:where([data-vk-phone], [data-vk-phone] *) > svg { width: calc(var(--vk-spacing) * 5.5); height: calc(var(--vk-spacing) * 5.5); stroke-width: calc(var(--vk-spacing) * 0.4); }
|
|
4557
|
+
:where([data-setting-row-icon="tile"]) .o-setting-row-icon:where([data-vk-phone], [data-vk-phone] *):not(.o-setting-rows-danger *) {
|
|
4558
|
+
border-radius: var(--vk-radius-md); background-color: var(--setting-row-tile, var(--vk-fg-subtlest)); color: var(--vk-fg-inverse);
|
|
4559
|
+
}
|
|
4560
|
+
:where([data-setting-row-icon="tile"]) .o-setting-row-icon:where([data-vk-phone], [data-vk-phone] *):not(.o-setting-rows-danger *) > svg { width: calc(var(--vk-spacing) * 4.5); height: calc(var(--vk-spacing) * 4.5); stroke-width: calc(var(--vk-spacing) * 0.5); }
|
|
4561
|
+
.o-setting-row-icon[data-colour="blue"] { --setting-row-tile: var(--vk-label-blue); }
|
|
4562
|
+
.o-setting-row-icon[data-colour="green"] { --setting-row-tile: var(--vk-label-green); }
|
|
4563
|
+
.o-setting-row-icon[data-colour="amber"] { --setting-row-tile: var(--vk-label-amber); }
|
|
4564
|
+
.o-setting-row-icon[data-colour="red"] { --setting-row-tile: var(--vk-label-red); }
|
|
4565
|
+
.o-setting-row-icon[data-colour="purple"] { --setting-row-tile: var(--vk-label-purple); }
|
|
4566
|
+
.o-setting-row-icon[data-colour="pink"] { --setting-row-tile: var(--vk-label-pink); }
|
|
4567
|
+
.o-setting-row-icon[data-colour="teal"] { --setting-row-tile: var(--vk-label-teal); }
|
|
4568
|
+
|
|
4569
|
+
@media (prefers-reduced-motion: reduce) { .o-setting-row { transition: none; } }
|
|
4570
|
+
|
|
4571
|
+
/* ── The card's corners smooth: following the token corner-smoothing, drawn with the smooth outline (smooth.css) in every
|
|
4572
|
+
browser that knows shape(); one that doesn't keeps the corners above. Its round part is fitted to its smallest row, as a
|
|
4573
|
+
control's is. Nothing stands outside it (its rows were hidden past its edge), so it is clipped itself, its rows with it; its
|
|
4574
|
+
edge is a ring along the curve over its rows (::after), in the card's edge colour. ── */
|
|
4575
|
+
@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)) {
|
|
4576
|
+
.o-setting-rows:not(.o-field-rows), :where([data-setting-row-card="edged"]) .o-setting-row[data-alone]:not(.o-field-row) {
|
|
4577
|
+
--smooth-amount: var(--vk-corner-smoothing);
|
|
4578
|
+
--setting-rows-fit: min(var(--vk-radius-lg), var(--setting-rows-side, calc(var(--vk-spacing) * 7 + var(--vk-font-size-sm) * var(--vk-line-height-sm))) / (2 + 2 * var(--smooth-amount, 0.7)));
|
|
4579
|
+
--smooth-t: var(--setting-rows-fit); --smooth-side: var(--setting-rows-side, calc(var(--vk-spacing) * 7 + var(--vk-font-size-sm) * var(--vk-line-height-sm)));
|
|
4580
|
+
position: relative; overflow: visible; border-color: transparent; border-radius: var(--setting-rows-fit); clip-path: shape(var(--smooth-outline));
|
|
4581
|
+
}
|
|
4582
|
+
.o-setting-rows:not(.o-field-rows)::after, :where([data-setting-row-card="edged"]) .o-setting-row[data-alone]:not(.o-field-row)::after {
|
|
4583
|
+
--smooth-t: max(0px, var(--setting-rows-fit) - var(--vk-border-width)); --smooth-in: var(--vk-border-width);
|
|
4584
|
+
content: ""; position: absolute; inset: calc(var(--vk-border-width) * -1); z-index: 1; pointer-events: none;
|
|
4585
|
+
background-color: var(--setting-rows-edge, var(--vk-border)); clip-path: shape(var(--smooth-ring));
|
|
4586
|
+
}
|
|
4587
|
+
}
|
|
4588
|
+
|
|
4138
4589
|
.o-sheet, .o-sheet-backdrop, .o-sheet-below {
|
|
4139
4590
|
--sheet-spring: var(--vk-spring-quick); --sheet-spring-ease: var(--vk-ease-spring-quick); --sheet-spring-time: var(--vk-duration-spring-quick);
|
|
4140
4591
|
}
|
|
@@ -4314,6 +4765,9 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
4314
4765
|
sideways (a full Sheet's body scrolls, and a step's slide would otherwise widen it). */
|
|
4315
4766
|
.o-sheet-step { outline: none; }
|
|
4316
4767
|
.o-sheet-body:has(.o-sheet-step) { overflow-x: hidden; }
|
|
4768
|
+
/* A head that heads a step slides in with it: what stands in its row, its ground (the soft edge) staying still. */
|
|
4769
|
+
.o-sheet-row[data-step] > :not(.o-hd-bar-edge) { --step-from: calc(var(--vk-spacing) * 6); animation: o-sheet-step var(--vk-duration-slow) var(--vk-ease-out); }
|
|
4770
|
+
.o-sheet-row[data-step="back"] > :not(.o-hd-bar-edge) { --step-from: calc(var(--vk-spacing) * -6); }
|
|
4317
4771
|
|
|
4318
4772
|
/* Less motion: a fade, no scale. */
|
|
4319
4773
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -4321,7 +4775,7 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
4321
4775
|
.o-sheet:is([data-starting-style], [data-ending-style]) { opacity: 0; transform: translateY(var(--drawer-snap-point-offset, 0px)); }
|
|
4322
4776
|
.o-sheet[data-nested-drawer-open] { scale: 1; }
|
|
4323
4777
|
.o-sheet-backdrop { transition: opacity var(--vk-duration-base) var(--vk-ease-out); }
|
|
4324
|
-
.o-sheet-step { animation: none; }
|
|
4778
|
+
.o-sheet-step, .o-sheet-row[data-step] > :not(.o-hd-bar-edge) { animation: none; }
|
|
4325
4779
|
}
|
|
4326
4780
|
|
|
4327
4781
|
.o-sort-editor { position: relative; display: flex; flex-direction: column; min-width: 0; color: var(--vk-fg); font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); }
|
|
@@ -4340,7 +4794,13 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
4340
4794
|
.o-sort-editor-grip { flex: none; touch-action: none; }
|
|
4341
4795
|
.o-sort-editor-field, .o-sort-editor-direction { position: relative; flex: none; min-width: 0; }
|
|
4342
4796
|
.o-sort-editor-field { width: calc(var(--vk-spacing) * 52); }
|
|
4343
|
-
|
|
4797
|
+
/* The direction's box as wide as the longer of its two words in the app's language, whichever is picked, so the row never moves on a
|
|
4798
|
+
turn: its field and both words drawn as its field draws them, out of sight, stand in one place, the widest setting it (VK-976).
|
|
4799
|
+
Never under 152, so English's Descending draws as it did; never past 240, the filter editor's boxes' (filter-editor.css), a
|
|
4800
|
+
longer word then ending in "…" (the Select's own words cut). An app's own width on the box still wins. */
|
|
4801
|
+
.o-sort-editor-direction { display: grid; grid-template-columns: minmax(0, 1fr); min-width: calc(var(--vk-spacing) * 38); max-width: calc(var(--vk-spacing) * 60); }
|
|
4802
|
+
.o-sort-editor-direction > :is(.o-select, .o-sort-editor-why), .o-sort-editor-fit, .o-sort-editor-fit > * { grid-area: 1 / 1; }
|
|
4803
|
+
.o-sort-editor-fit { display: grid; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; }
|
|
4344
4804
|
.o-sort-editor-field > .o-select, .o-sort-editor-direction > .o-select { width: 100%; }
|
|
4345
4805
|
.o-sort-editor-remove { flex: none; }
|
|
4346
4806
|
|
|
@@ -4694,14 +5154,10 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
4694
5154
|
.o-switch-row {
|
|
4695
5155
|
display: flex; align-items: center; justify-content: space-between; gap: calc(var(--vk-spacing) * 4);
|
|
4696
5156
|
padding: calc(var(--vk-spacing) * 3.5) calc(var(--vk-spacing) * 4); border-top: var(--vk-border-width) solid var(--vk-border-subtle);
|
|
4697
|
-
|
|
5157
|
+
-webkit-tap-highlight-color: transparent;
|
|
4698
5158
|
}
|
|
4699
5159
|
.o-switch-row:first-child { border-top: 0; }
|
|
4700
|
-
@media (hover: hover) { .o-switch-row:hover { background-color: var(--vk-hovered); } }
|
|
4701
5160
|
.o-switch-row .o-choice-label { font-weight: var(--vk-font-weight-medium); }
|
|
4702
|
-
.o-switch-row:has(.o-switch[data-disabled]) { cursor: not-allowed; background-color: transparent; }
|
|
4703
|
-
|
|
4704
|
-
@media (prefers-reduced-motion: reduce) { .o-switch-row { transition: none; } }
|
|
4705
5161
|
/* ── The rows' card smooth: following the token corner-smoothing, drawn with the smooth outline (smooth.css) in every browser
|
|
4706
5162
|
that knows shape(); one that doesn't keeps the corners above. Its round part is fitted to one row, as a control's is.
|
|
4707
5163
|
Nothing stands outside it (its rows were hidden past its edge), so it is clipped itself, its rows with it, hiding nothing
|
|
@@ -4775,21 +5231,26 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
4775
5231
|
}
|
|
4776
5232
|
|
|
4777
5233
|
/* ── 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
|
|
4778
|
-
lg draws it anywhere: Round (after iOS 18), 31 × 51 with a 27 thumb; or Capsule (after iOS 26
|
|
4779
|
-
|
|
5234
|
+
lg draws it anywhere: Round (after iOS 18), 31 × 51 with a 27 thumb; or Capsule (after iOS 26's Settings, measured at 402), what
|
|
5235
|
+
nothing picked draws, 28 × 63, its thumb 24 × 37 two in.
|
|
5236
|
+
Both on the neutral fill with no edge, whatever the computer's shape; on a phone its thumb white, on or off, in both themes, as iOS's ── */
|
|
4780
5237
|
.o-switch.o-switch-sm { --sw-u: 0.8; }
|
|
4781
5238
|
.o-switch.o-switch-lg {
|
|
4782
5239
|
--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%;
|
|
4783
5240
|
--sw-rest: var(--vk-neutral); --sw-hover: var(--vk-neutral-hovered); --sw-edge-rest: transparent; --sw-edge-hover: transparent;
|
|
4784
5241
|
--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);
|
|
4785
5242
|
}
|
|
4786
|
-
[data-switch-phone="capsule"] .o-switch.o-switch-lg, .o-switch.o-switch-lg:not([data-switch-phone] *) {
|
|
5243
|
+
[data-switch-phone="capsule"] .o-switch.o-switch-lg, .o-switch.o-switch-lg:not([data-switch-phone] *) {
|
|
5244
|
+
--sw-h: calc(var(--vk-spacing) * 7); --sw-w0: calc(var(--vk-spacing) * 15.75); --sw-tw: calc(var(--vk-spacing) * 9.25); --sw-th: calc(var(--vk-spacing) * 6); --sw-thumb-shadow: var(--vk-shadow-sm);
|
|
5245
|
+
}
|
|
4787
5246
|
.o-switch:not(.o-switch-sm):where([data-vk-phone], [data-vk-phone] *) {
|
|
4788
5247
|
--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%;
|
|
4789
5248
|
--sw-rest: var(--vk-neutral); --sw-hover: var(--vk-neutral-hovered); --sw-edge-rest: transparent; --sw-edge-hover: transparent;
|
|
4790
|
-
--sw-on-track: var(--sw-on); --sw-thumb-rest: var(--vk-fg-inverse); --sw-thumb-on: var(--vk-fg-
|
|
5249
|
+
--sw-on-track: var(--sw-on); --sw-thumb-rest: var(--vk-fg-inverse); --sw-thumb-on: var(--vk-fg-inverse); --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);
|
|
5250
|
+
}
|
|
5251
|
+
[data-switch-phone="capsule"] .o-switch:not(.o-switch-sm):where([data-vk-phone], [data-vk-phone] *), .o-switch:not(.o-switch-sm):not([data-switch-phone] *):where([data-vk-phone], [data-vk-phone] *) {
|
|
5252
|
+
--sw-h: calc(var(--vk-spacing) * 7); --sw-w0: calc(var(--vk-spacing) * 15.75); --sw-tw: calc(var(--vk-spacing) * 9.25); --sw-th: calc(var(--vk-spacing) * 6); --sw-thumb-shadow: var(--vk-shadow-sm);
|
|
4791
5253
|
}
|
|
4792
|
-
[data-switch-phone="capsule"] .o-switch:not(.o-switch-sm):where([data-vk-phone], [data-vk-phone] *), .o-switch:not(.o-switch-sm):not([data-switch-phone] *):where([data-vk-phone], [data-vk-phone] *) { --sw-w0: calc(var(--vk-spacing) * 17.75); --sw-tw: calc(var(--vk-spacing) * 10.25); }
|
|
4793
5254
|
|
|
4794
5255
|
/* ── Motion. Stretch while held, the kit's until duration-base on ease-in-out, the thumb a spacing step longer toward
|
|
4795
5256
|
where it is going while pressed. Spring: it runs a little past and settles. Stretch as it goes: its front edge leaves first
|
|
@@ -4802,7 +5263,7 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
4802
5263
|
/* ── Under the pointer, on the track or its row: its shape's deeper paint; on, a deeper brand ─────────────────────────── */
|
|
4803
5264
|
/* 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. */
|
|
4804
5265
|
.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); }
|
|
4805
|
-
@media (hover: hover) {
|
|
5266
|
+
@media (hover: hover) { .o-switch:hover:not([data-disabled]) { --sw-off: var(--sw-hover); --sw-edge: var(--sw-edge-hover); --sw-on: var(--vk-brand-hovered); } }
|
|
4806
5267
|
|
|
4807
5268
|
/* ── On: the brand fills the track, the thumb crosses, its front edge in lead and its back in trail ───────────────────── */
|
|
4808
5269
|
.o-switch[data-checked] { --sw-paint: var(--sw-on-track); --sw-ring: var(--sw-on-track); }
|
|
@@ -4850,7 +5311,7 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
4850
5311
|
colour fills it. The pointer never takes it away; focus rings it in red; disabled wins ─────────────────────────────── */
|
|
4851
5312
|
.o-switch:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]),
|
|
4852
5313
|
.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); }
|
|
4853
|
-
@media (hover: hover) {
|
|
5314
|
+
@media (hover: hover) { .o-switch: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-hovered); --sw-knob-on: var(--vk-fg-inverse); } }
|
|
4854
5315
|
.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); }
|
|
4855
5316
|
.o-switch:is(:focus-visible, [data-force="focus"]):is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *) { outline-color: var(--vk-border-danger); }
|
|
4856
5317
|
|
|
@@ -4863,6 +5324,11 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
4863
5324
|
--sw-knob: var(--vk-fg-disabled); --sw-knob-on: var(--vk-fg-disabled); --sw-knob-shadow: none; cursor: not-allowed;
|
|
4864
5325
|
}
|
|
4865
5326
|
.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); }
|
|
5327
|
+
/* On a phone, locked is iOS's: the switch as it stands, faded, with no lock in its thumb (KIT-972). */
|
|
5328
|
+
.o-switch[data-disabled][data-locked]:where([data-vk-phone], [data-vk-phone] *) {
|
|
5329
|
+
--sw-off: var(--sw-rest); --sw-edge: var(--sw-edge-rest); --sw-on: var(--vk-brand); --sw-on-track: var(--sw-on); --sw-knob: var(--sw-thumb-rest); --sw-knob-on: var(--sw-thumb-on); opacity: 0.45;
|
|
5330
|
+
}
|
|
5331
|
+
.o-switch[data-disabled][data-locked]:where([data-vk-phone], [data-vk-phone] *) > .o-switch-thumb > .o-switch-lock { display: none; }
|
|
4866
5332
|
|
|
4867
5333
|
@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; } }
|
|
4868
5334
|
|
|
@@ -4873,6 +5339,25 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
4873
5339
|
.o-input.o-input-group.o-tag-field:where([data-vk-phone], [data-vk-phone] *) { min-height: calc(var(--vk-spacing) * 11); padding-block: calc(var(--vk-spacing) * 2.5); }
|
|
4874
5340
|
.o-input-control.o-tag-field-input { align-self: center; min-width: calc(var(--vk-spacing) * 20); }
|
|
4875
5341
|
|
|
5342
|
+
/* ── In a row of Field rows (VK-978; the settings canvas, round 3: look-ios.mjs .tok, .caret): the card's row as iOS draws a To
|
|
5343
|
+
field. Its tokens fill the row from its words' inset, 6 apart, 12 above and below, wrapping as they grow, the caret after the
|
|
5344
|
+
last (the Input typed in place, input.css). Its label names the box but stands out of sight: its place titles the group. Each
|
|
5345
|
+
token is the Tag as iOS draws it: 30 tall, a pill on the neutral ground, no edge, no icon and no smoothing, the row's words in the normal
|
|
5346
|
+
weight, as wide as the row lets it; its remove button stays, quiet. Its rules outweigh the box's and the phone's above, and
|
|
5347
|
+
the Tag's own. ── */
|
|
5348
|
+
.o-field.o-field-row.o-tag-field-row { position: relative; }
|
|
5349
|
+
.o-tag-field-row > .o-field-row-label { position: absolute; width: var(--vk-border-width); height: var(--vk-border-width); overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
5350
|
+
.o-input.o-input-inrow.o-tag-field.o-tag-field { flex-wrap: wrap; align-content: center; gap: calc(var(--vk-spacing) * 1.5); min-height: 0; padding-block: calc(var(--vk-spacing) * 3); }
|
|
5351
|
+
.o-input.o-input-inrow.o-tag-field > .o-tag.o-tag {
|
|
5352
|
+
--tag-h: calc(var(--vk-spacing) * 7.5); --tag-r: var(--vk-radius-full);
|
|
5353
|
+
max-width: 100%; padding: 0 calc(var(--vk-spacing) * 2.5); border-radius: var(--tag-r); background-color: var(--vk-neutral); box-shadow: none;
|
|
5354
|
+
font-size: inherit; font-weight: var(--vk-font-weight-normal);
|
|
5355
|
+
}
|
|
5356
|
+
/* A pill has no corner to smooth: the token paints its own ground, and its cut (the smooth ground and edge) stands down. */
|
|
5357
|
+
.o-input-inrow.o-tag-field > .o-tag > :is(.o-tag-cut, .o-tag-icon) { display: none; }
|
|
5358
|
+
/* Once a token stands, the caret alone after it: the placeholder only asks while the row is empty. */
|
|
5359
|
+
.o-input-inrow.o-tag-field:has(> .o-tag) > .o-tag-field-input::placeholder { color: transparent; }
|
|
5360
|
+
|
|
4876
5361
|
/* ── A tag: 22px, its edge drawn inside, the icon then the word; a long word cut at 200px. Its ground, edge, height and corner
|
|
4877
5362
|
are variables, which the Option's looks and states set, so its cut draws them under Smooth: --tag-ground (none),
|
|
4878
5363
|
--tag-edge, --tag-h, --tag-r, and --tag-rr, the corner its height leaves room for; --tag-shadow: none where a look draws no
|
|
@@ -4888,6 +5373,8 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
4888
5373
|
/* 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
|
|
4889
5374
|
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. */
|
|
4890
5375
|
.o-tag-word { overflow: hidden; text-overflow: ellipsis; line-height: var(--tag-h); }
|
|
5376
|
+
/* A quiet word after its name ("main"): the quieter colour, the normal weight. */
|
|
5377
|
+
.o-tag-aside { flex: none; color: var(--vk-fg-subtle); font-weight: var(--vk-font-weight-normal); line-height: var(--tag-h); }
|
|
4891
5378
|
.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; }
|
|
4892
5379
|
/* Small, in dense rows; a count for the rest, its number in the quieter colour. */
|
|
4893
5380
|
.o-tag.o-tag-sm { --tag-h: calc(var(--vk-spacing) * 5); padding: 0 calc(var(--vk-spacing) * 1.5); }
|
|
@@ -5192,6 +5679,10 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
5192
5679
|
.o-toolbar-button-count { margin-left: var(--vk-spacing); color: var(--vk-fg-subtle); font-variant-numeric: tabular-nums; }
|
|
5193
5680
|
.o-toolbar-button-count[data-alone] { margin-left: 0; }
|
|
5194
5681
|
|
|
5682
|
+
/* The words of a value it waits for (a filter's "Choose"), in the placeholder's colour: ViewKit's ToolbarButton atom drawn with it
|
|
5683
|
+
(CONTROL_ATOMS) wraps them. */
|
|
5684
|
+
.o-toolbar-button-waits { color: var(--vk-fg-subtle); }
|
|
5685
|
+
|
|
5195
5686
|
/* A dot at its top end corner, in the brand: something applied with no number. Drawn with ::before, since the pressing area takes
|
|
5196
5687
|
::after on a phone (its pressing area). */
|
|
5197
5688
|
.o-button.o-toolbar-button[data-dot]::before {
|
|
@@ -5243,6 +5734,10 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
5243
5734
|
|
|
5244
5735
|
/* What a line holds keeps its width; only a text box gives some up, from its own width down to its narrowest. */
|
|
5245
5736
|
.o-toolbar-line > * { flex: none; }
|
|
5737
|
+
/* Filling its row (fill: a record's actions, Attio's way): the row's worded buttons grow from their own width to share the line, their
|
|
5738
|
+
words in their middle; a square one (its icon alone) keeps its own. None shrinks under its own width, so what doesn't fit still
|
|
5739
|
+
gives way. */
|
|
5740
|
+
.o-toolbar[data-fill] > .o-toolbar-line[data-line="row"] > .o-button:not(.o-button-icon, .o-button-round) { flex: 1 0 auto; }
|
|
5246
5741
|
.o-toolbar-line > :is(.o-toolbar-input, .o-input-group:has(.o-toolbar-input)) { flex: 0 1 calc(var(--vk-spacing) * 55); min-width: calc(var(--vk-spacing) * 30); }
|
|
5247
5742
|
|
|
5248
5743
|
/* A list's search: on a phone's line of its own it fills it; open on a phone's one line it takes the room the others left. */
|
|
@@ -6052,6 +6547,9 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
6052
6547
|
.max-h-96 {
|
|
6053
6548
|
max-height: calc(4px * 96);
|
|
6054
6549
|
}
|
|
6550
|
+
.min-h-\(--vk-field-row-h\,auto\) {
|
|
6551
|
+
min-height: var(--vk-field-row-h,auto);
|
|
6552
|
+
}
|
|
6055
6553
|
.min-h-0 {
|
|
6056
6554
|
min-height: 0px;
|
|
6057
6555
|
}
|
|
@@ -6307,6 +6805,9 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
6307
6805
|
.grid-cols-\[auto_minmax\(0\,1fr\)_auto\] {
|
|
6308
6806
|
grid-template-columns: auto minmax(0,1fr) auto;
|
|
6309
6807
|
}
|
|
6808
|
+
.grid-cols-\[auto_var\(--vk-field-row-label-w\,calc\(var\(--spacing\)\*32\)\)_minmax\(0\,1fr\)_auto\] {
|
|
6809
|
+
grid-template-columns: auto var(--vk-field-row-label-w,calc(4px * 32)) minmax(0,1fr) auto;
|
|
6810
|
+
}
|
|
6310
6811
|
.grid-rows-\[auto\] {
|
|
6311
6812
|
grid-template-rows: auto;
|
|
6312
6813
|
}
|
|
@@ -6322,6 +6823,9 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
6322
6823
|
.place-content-center {
|
|
6323
6824
|
place-content: center;
|
|
6324
6825
|
}
|
|
6826
|
+
.content-center {
|
|
6827
|
+
align-content: center;
|
|
6828
|
+
}
|
|
6325
6829
|
.content-start {
|
|
6326
6830
|
align-content: flex-start;
|
|
6327
6831
|
}
|
|
@@ -6377,15 +6881,15 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
6377
6881
|
margin-block-start: calc(calc(4px * 3) * var(--tw-space-y-reverse));
|
|
6378
6882
|
margin-block-end: calc(calc(4px * 3) * calc(1 - var(--tw-space-y-reverse)));
|
|
6379
6883
|
}
|
|
6884
|
+
.gap-x-\(--vk-field-row-gap\,calc\(var\(--spacing\)\*3\)\) {
|
|
6885
|
+
column-gap: var(--vk-field-row-gap,calc(4px * 3));
|
|
6886
|
+
}
|
|
6380
6887
|
.gap-x-1\.5 {
|
|
6381
6888
|
column-gap: calc(4px * 1.5);
|
|
6382
6889
|
}
|
|
6383
6890
|
.gap-x-2 {
|
|
6384
6891
|
column-gap: calc(4px * 2);
|
|
6385
6892
|
}
|
|
6386
|
-
.gap-x-3 {
|
|
6387
|
-
column-gap: calc(4px * 3);
|
|
6388
|
-
}
|
|
6389
6893
|
.gap-y-0\.5 {
|
|
6390
6894
|
row-gap: calc(4px * 0.5);
|
|
6391
6895
|
}
|
|
@@ -6487,6 +6991,10 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
6487
6991
|
border-bottom-style: var(--tw-border-style);
|
|
6488
6992
|
border-bottom-width: 1px;
|
|
6489
6993
|
}
|
|
6994
|
+
.border-b-\(length\:--vk-field-row-line-w\,1px\) {
|
|
6995
|
+
border-bottom-style: var(--tw-border-style);
|
|
6996
|
+
border-bottom-width: var(--vk-field-row-line-w,1px);
|
|
6997
|
+
}
|
|
6490
6998
|
.border-l-\(length\:--vk-thick-line\,2px\) {
|
|
6491
6999
|
border-left-style: var(--tw-border-style);
|
|
6492
7000
|
border-left-width: var(--vk-thick-line,2px);
|
|
@@ -6511,6 +7019,9 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
6511
7019
|
.border-\(color\:--vk-brand\) {
|
|
6512
7020
|
border-color: var(--vk-brand);
|
|
6513
7021
|
}
|
|
7022
|
+
.border-\(color\:--vk-field-row-line\,var\(--vk-border\)\) {
|
|
7023
|
+
border-color: var(--vk-field-row-line,var(--vk-border));
|
|
7024
|
+
}
|
|
6514
7025
|
.border-\(color\:--vk-ground\) {
|
|
6515
7026
|
border-color: var(--vk-ground);
|
|
6516
7027
|
}
|
|
@@ -6777,6 +7288,9 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
6777
7288
|
.px-4 {
|
|
6778
7289
|
padding-inline: calc(4px * 4);
|
|
6779
7290
|
}
|
|
7291
|
+
.py-\(--vk-field-row-py\,calc\(var\(--spacing\)\*2\.5\)\) {
|
|
7292
|
+
padding-block: var(--vk-field-row-py,calc(4px * 2.5));
|
|
7293
|
+
}
|
|
6780
7294
|
.py-0 {
|
|
6781
7295
|
padding-block: 0px;
|
|
6782
7296
|
}
|
|
@@ -7039,6 +7553,9 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
7039
7553
|
.text-\(color\:--vk-fg-subtlest\) {
|
|
7040
7554
|
color: var(--vk-fg-subtlest);
|
|
7041
7555
|
}
|
|
7556
|
+
.text-\(color\:--vk-field-row-label-fg\,var\(--vk-fg-subtle\)\) {
|
|
7557
|
+
color: var(--vk-field-row-label-fg,var(--vk-fg-subtle));
|
|
7558
|
+
}
|
|
7042
7559
|
.text-\(color\:--vk-head-glyph-fg\,currentColor\) {
|
|
7043
7560
|
color: var(--vk-head-glyph-fg,currentColor);
|
|
7044
7561
|
}
|
|
@@ -8527,7 +9044,10 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
8527
9044
|
--vk-font-size-2xl: 24px;
|
|
8528
9045
|
--vk-font-size-2xs: 10px;
|
|
8529
9046
|
--vk-font-size-3xs: 8px;
|
|
9047
|
+
--vk-font-size-4xl: 36px;
|
|
9048
|
+
--vk-font-size-xl: 20px;
|
|
8530
9049
|
--vk-font-size-xs: 12px;
|
|
9050
|
+
--vk-radius-4xl: 33.33px;
|
|
8531
9051
|
--vk-radius-md: 7.5px;
|
|
8532
9052
|
--vk-radius-sm: 5px;
|
|
8533
9053
|
--vk-radius-xs: 2.5px;
|
|
@@ -8593,7 +9113,6 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
8593
9113
|
--vk-ease-out-sharp: cubic-bezier(0.23, 1, 0.32, 1);
|
|
8594
9114
|
--vk-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
8595
9115
|
--vk-border-accent: hsl(219 90% 65.5%);
|
|
8596
|
-
--vk-font-size-xl: 20px;
|
|
8597
9116
|
--vk-font-weight-normal: 400;
|
|
8598
9117
|
--vk-tracking-wide: 0.025em;
|
|
8599
9118
|
--vk-border-overlay-card: hsl(220 3% 86%);
|
|
@@ -8611,6 +9130,7 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
8611
9130
|
--vk-brand-300: hsl(218 100% 89%);
|
|
8612
9131
|
--vk-border-input-strong: hsl(210 1% 72%);
|
|
8613
9132
|
--vk-font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
9133
|
+
--vk-saved-hold: 2000ms;
|
|
8614
9134
|
--vk-shadow-field: 0 1px 1px 0 rgb(16 17 26 / 0.08);
|
|
8615
9135
|
--vk-shadow-field-focus: 0 0 10px 0 hsl(219 90% 65.5% / 0.3);
|
|
8616
9136
|
--vk-shadow-field-focus-danger: 0 0 10px 0 hsl(3 87% 68% / 0.3);
|
|
@@ -8644,13 +9164,14 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
8644
9164
|
--vk-scrollbar-thumb: hsl(210 1% 82%);
|
|
8645
9165
|
--vk-scrollbar-thumb-hovered: hsl(210 1% 72%);
|
|
8646
9166
|
--vk-scrollbar-hold: 1000ms;
|
|
9167
|
+
--vk-icon-disclosure: hsl(210 1% 72%);
|
|
9168
|
+
--vk-opacity-off: 0.45;
|
|
8647
9169
|
--vk-backdrop-sheet: hsl(214 30% 10% / 0.3);
|
|
8648
9170
|
--vk-backdrop-sheet-light: hsl(214 30% 10% / 0.15);
|
|
8649
9171
|
--vk-backdrop-stacked: hsl(214 30% 10% / 0.2);
|
|
8650
9172
|
--vk-sheet-handle: hsl(210 1% 72%);
|
|
8651
9173
|
--vk-spring-exit: 120px;
|
|
8652
9174
|
--vk-spring-past: 12px;
|
|
8653
|
-
--vk-radius-4xl: 33.33px;
|
|
8654
9175
|
--vk-radius-5xl: 40px;
|
|
8655
9176
|
--vk-spring-smooth: 500ms 1;
|
|
8656
9177
|
--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);
|
|
@@ -8885,6 +9406,7 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
8885
9406
|
--vk-header: hsl(210 6% 7%);
|
|
8886
9407
|
--vk-scrollbar-thumb: hsl(210 2% 26.5%);
|
|
8887
9408
|
--vk-scrollbar-thumb-hovered: hsl(210 1% 37%);
|
|
9409
|
+
--vk-icon-disclosure: hsl(210 1% 37%);
|
|
8888
9410
|
--vk-backdrop-sheet: hsl(0 0% 0% / 0.45);
|
|
8889
9411
|
--vk-backdrop-sheet-light: hsl(0 0% 0% / 0.22);
|
|
8890
9412
|
--vk-backdrop-stacked: hsl(0 0% 0% / 0.3);
|