viewkitjs 0.31.0 → 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 +129 -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 +5 -1
- 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 +3 -3
- package/views/dist/controls/avatar/avatar.js +1 -1
- package/views/dist/controls/avatar/tokens.d.ts +44 -0
- package/views/dist/controls/avatar/tokens.js +11 -0
- package/views/dist/controls/avatar.css +22 -5
- 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 +2 -1
- package/views/dist/controls/index.js +2 -1
- package/views/dist/controls/input/input.js +5 -2
- package/views/dist/controls/input/tokens.d.ts +4 -0
- package/views/dist/controls/input/tokens.js +1 -0
- package/views/dist/controls/input.css +31 -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 +5 -3
- package/views/dist/controls/radio/radio.js +18 -2
- package/views/dist/controls/radio/tokens.d.ts +44 -0
- package/views/dist/controls/radio/tokens.js +11 -0
- package/views/dist/controls/radio.css +79 -1
- package/views/dist/controls/select/select.d.ts +4 -0
- package/views/dist/controls/select/select.js +11 -5
- 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 +1 -1
- package/views/dist/controls/setting-row/looks.js +9 -4
- package/views/dist/controls/setting-row/setting-row.d.ts +45 -10
- package/views/dist/controls/setting-row/setting-row.js +82 -15
- package/views/dist/controls/setting-row/tokens.d.ts +74 -2
- package/views/dist/controls/setting-row/tokens.js +19 -1
- package/views/dist/controls/setting-row.css +135 -14
- 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/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/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/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 +418 -59
- package/views/dist/styles.unlayered.css +418 -59
- package/views/docs/contract.md +42 -31
- package/views/docs/controls/avatar.md +11 -0
- package/views/docs/controls/choice.md +0 -1
- package/views/docs/controls/field.md +3 -0
- package/views/docs/controls/input.md +1 -0
- package/views/docs/controls/radio.md +16 -1
- package/views/docs/controls/select.md +2 -0
- package/views/docs/controls/setting-row.md +18 -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 +35 -25
- 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 +1 -1
- 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,13 +431,14 @@
|
|
|
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, 56 at a settings page's head, 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
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); }
|
|
440
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); }
|
|
441
442
|
|
|
442
443
|
/* ── A thing: a square, its corners a step that grows with it, on the neutral ground, its edge inside ─ */
|
|
443
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); }
|
|
@@ -457,27 +458,43 @@
|
|
|
457
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
|
|
458
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. */
|
|
459
460
|
.o-avatar-agent .o-avatar-letters svg { fill: var(--vk-fg); stroke: none; }
|
|
460
|
-
|
|
461
|
-
|
|
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),
|
|
462
475
|
between Small and Large, the tokens holding nothing between xs and sm ────────────────────────────── */
|
|
463
476
|
.o-avatar.o-avatar-thing { --avatar-r: var(--vk-radius-sm); }
|
|
464
477
|
.o-avatar.o-avatar-thing:is(.o-avatar-2xs, .o-avatar-xs) { --avatar-r: var(--vk-radius-xs); }
|
|
465
478
|
.o-avatar.o-avatar-thing.o-avatar-lg { --avatar-r: var(--vk-radius-md); }
|
|
466
479
|
.o-avatar.o-avatar-thing:is(.o-avatar-56, .o-avatar-xl) { --avatar-r: var(--vk-radius-lg); }
|
|
467
|
-
|
|
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. */
|
|
468
482
|
[data-avatar-corners="small"] .o-avatar.o-avatar-thing { --avatar-r: var(--vk-radius-sm); }
|
|
469
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); }
|
|
470
484
|
[data-avatar-corners="small"] .o-avatar.o-avatar-thing:is(.o-avatar-56, .o-avatar-xl) { --avatar-r: var(--vk-radius-md); }
|
|
471
|
-
|
|
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. */
|
|
472
487
|
[data-avatar-corners="large"] .o-avatar.o-avatar-thing { --avatar-r: var(--vk-radius-md); }
|
|
473
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); }
|
|
474
489
|
[data-avatar-corners="large"] .o-avatar.o-avatar-thing.o-avatar-lg { --avatar-r: var(--vk-radius-lg); }
|
|
475
490
|
[data-avatar-corners="large"] .o-avatar.o-avatar-thing:is(.o-avatar-56, .o-avatar-xl) { --avatar-r: var(--vk-radius-xl); }
|
|
476
|
-
|
|
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. */
|
|
477
493
|
[data-avatar-corners="xlarge"] .o-avatar.o-avatar-thing { --avatar-r: var(--vk-radius-lg); }
|
|
478
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); }
|
|
479
495
|
[data-avatar-corners="xlarge"] .o-avatar.o-avatar-thing.o-avatar-lg { --avatar-r: var(--vk-radius-xl); }
|
|
480
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); }
|
|
481
498
|
|
|
482
499
|
/* ── Corner smoothing: Smooth, with nothing set, draws a square's corners with the smooth outline (smooth.css),
|
|
483
500
|
every browser that knows shape() showing it; one that doesn't keeps the quarter circles above, and so does Round. Its
|
|
@@ -1286,7 +1303,7 @@
|
|
|
1286
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); }
|
|
1287
1304
|
|
|
1288
1305
|
/* ── A choice as a card: an edge round it, the whole card pressing it; under the pointer the hovered
|
|
1289
|
-
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 ─────────────────── */
|
|
1290
1307
|
.o-choice-card {
|
|
1291
1308
|
box-sizing: border-box; display: flex; width: 100%; padding: calc(var(--vk-spacing) * 3) calc(var(--vk-spacing) * 3.5);
|
|
1292
1309
|
border: var(--vk-border-width) solid var(--vk-border); border-radius: var(--vk-radius-lg); corner-shape: squircle;
|
|
@@ -1294,8 +1311,8 @@
|
|
|
1294
1311
|
}
|
|
1295
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. */
|
|
1296
1313
|
@media (hover: hover) { .o-choice-card:hover { background-color: var(--vk-hovered); } }
|
|
1297
|
-
.o-choice-card:has(> [data-checked]) { border-color: var(--vk-border-selected); background-color: var(--vk-
|
|
1298
|
-
.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; }
|
|
1299
1316
|
.o-choice-card .o-choice-label { font-weight: var(--vk-font-weight-medium); }
|
|
1300
1317
|
/* In error, the card's edge is red too. */
|
|
1301
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); }
|
|
@@ -1720,27 +1737,31 @@
|
|
|
1720
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
|
|
1721
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
|
|
1722
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
|
|
1723
|
-
typed into shows the caret alone.
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
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]) {
|
|
1727
1748
|
--field-rows-card-display: block; --field-rows-card-gap: 0px; --field-rows-card-overflow: hidden; --field-rows-card-edge: var(--field-rows-edge);
|
|
1728
1749
|
--field-rows-card-corners: var(--vk-radius-xl); --field-rows-card-ground: var(--vk-overlay-card);
|
|
1729
1750
|
--field-rows-row-edge: 0 none; --field-rows-row-corners: 0px; --field-rows-row-ground: transparent;
|
|
1730
1751
|
}
|
|
1731
|
-
[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]) {
|
|
1732
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;
|
|
1733
1754
|
--field-rows-card-corners: 0px; --field-rows-card-ground: transparent;
|
|
1734
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);
|
|
1735
1756
|
}
|
|
1736
|
-
[data-field-rows-height="48"] { --field-rows-row: calc(var(--vk-spacing) * 12); }
|
|
1737
|
-
[data-field-rows-height="52"] { --field-rows-row: calc(var(--vk-spacing) * 13); }
|
|
1738
|
-
[data-field-rows-height="56"] { --field-rows-row: calc(var(--vk-spacing) * 14); }
|
|
1739
|
-
[data-field-rows-label="104"] { --field-rows-label: block; }
|
|
1740
|
-
[data-field-rows-label="none"] { --field-rows-label: none; }
|
|
1741
|
-
[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; }
|
|
1742
|
-
[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); }
|
|
1743
|
-
[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; }
|
|
1744
1765
|
|
|
1745
1766
|
.o-field-rows {
|
|
1746
1767
|
display: var(--field-rows-card-display, block); grid-template-columns: minmax(0, 1fr); gap: var(--field-rows-card-gap, 0px); min-width: 0;
|
|
@@ -1754,10 +1775,31 @@
|
|
|
1754
1775
|
}
|
|
1755
1776
|
button.o-field-row { cursor: pointer; }
|
|
1756
1777
|
.o-field-row + .o-field-row {
|
|
1757
|
-
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);
|
|
1758
|
-
background-position: calc(var(--vk-spacing) * 4) 0; background-repeat: no-repeat; box-shadow: var(--field-rows-line-shadow, none);
|
|
1759
|
-
}
|
|
1760
|
-
.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; }
|
|
1761
1803
|
|
|
1762
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)); }
|
|
1763
1805
|
.o-filter-editor:focus { outline: none; }
|
|
@@ -2119,10 +2161,11 @@ textarea.o-inline-input.o-inline-input { border-radius: min(var(--inline-input-r
|
|
|
2119
2161
|
/* Disabled: a softer edge, a grey fill, no lift. */
|
|
2120
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; }
|
|
2121
2163
|
|
|
2122
|
-
/* Read-only: what it holds can be read, chosen and copied, not changed:
|
|
2123
|
-
takes the focus, and the pointer changes nothing. One that opens
|
|
2124
|
-
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. */
|
|
2125
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); }
|
|
2126
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; }
|
|
2127
2170
|
|
|
2128
2171
|
/* ── The options a design picks (input/looks.ts) ─────────────────────────────────────────────────────
|
|
@@ -2421,6 +2464,33 @@ textarea.o-input-control.o-input-lines { flex: none; min-height: 0; max-height:
|
|
|
2421
2464
|
@keyframes o-input-saved-leave { to { opacity: 0; } }
|
|
2422
2465
|
@media (prefers-reduced-motion: reduce) { .o-input-save[data-save="saved"] { animation-duration: 1ms; } }
|
|
2423
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
|
+
|
|
2424
2494
|
/* ── A key: a 20px cap on the raised ground, half the radius's corners, its bottom edge twice as heavy so
|
|
2425
2495
|
it reads as a key; its label in the quieter text colour ───────────────────────────────────────────── */
|
|
2426
2496
|
.o-kbd {
|
|
@@ -3481,6 +3551,16 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
3481
3551
|
/* Its title at the left: after what stands on its left, taking the room there is. */
|
|
3482
3552
|
.o-hd-bar[data-title-at="left"] { grid-template-columns: auto minmax(0, 1fr) auto; }
|
|
3483
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; }
|
|
3484
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. */
|
|
3485
3565
|
[data-phone-header-surface="flat"] .o-hd-bar > .o-hd-bar-edge { display: none; }
|
|
3486
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)); }
|
|
@@ -3507,6 +3587,8 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
3507
3587
|
.o-picker .o-list-row:is([data-selected], [aria-selected="true"]) > .o-picker-check { visibility: visible; }
|
|
3508
3588
|
/* Create below a line (Create: Below a line, Attio's): its words the text's, not the quieter ones. */
|
|
3509
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); }
|
|
3510
3592
|
|
|
3511
3593
|
/* ── The search: the shared line across a popup's top (popup-line.css), 6 above and below round its chips, 4 over the
|
|
3512
3594
|
rows. With nothing to search it stays, out of sight, so the keys still work; a letter typed brings it back holding the
|
|
@@ -4102,7 +4184,85 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
4102
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); }
|
|
4103
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); }
|
|
4104
4186
|
|
|
4105
|
-
|
|
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; } }
|
|
4106
4266
|
|
|
4107
4267
|
/* Doubled, so a component's own overflow: auto in the same layer never brings the sideways scroll back. */
|
|
4108
4268
|
[data-scrollbar][data-scrollbar] { overflow-x: hidden; }
|
|
@@ -4150,6 +4310,23 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
4150
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); }
|
|
4151
4311
|
.o-select-field[data-popup-open] .o-select-chevron:not([data-arrow="right"]) { rotate: 180deg; }
|
|
4152
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
|
+
|
|
4153
4330
|
/* ── Typed into: the field holds the box you type in (the group's bare control), and with several, their
|
|
4154
4331
|
chips first, each the Option with its own ×, wrapping onto more lines as they grow; from 32px up a quiet ×
|
|
4155
4332
|
clears it; the chevron shows every choice ───────────────────────────────────────────────────────── */
|
|
@@ -4222,6 +4399,14 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
4222
4399
|
--setting-rows-side: calc(var(--vk-spacing) * 16);
|
|
4223
4400
|
}
|
|
4224
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
|
+
}
|
|
4225
4410
|
|
|
4226
4411
|
/* ── The card, on a computer: the rows in a box, a line between each ───────────────────────────────────────────────── */
|
|
4227
4412
|
.o-setting-rows:not(.o-field-rows) {
|
|
@@ -4239,14 +4424,15 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
4239
4424
|
.o-setting-row:not(.o-field-row):first-child { border-top: 0; }
|
|
4240
4425
|
.o-setting-row:not(.o-field-row) > .o-choice-text { flex: 1 1 auto; }
|
|
4241
4426
|
.o-setting-row:not(.o-field-row) .o-choice-label { font-weight: var(--vk-font-weight-medium); }
|
|
4242
|
-
/* The
|
|
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. */
|
|
4243
4429
|
button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: left; background-color: transparent; }
|
|
4244
|
-
.o-setting-row
|
|
4245
|
-
@media (hover: hover) { .o-setting-row
|
|
4246
|
-
.o-setting-row:not(.o-field-row)
|
|
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; }
|
|
4247
4433
|
|
|
4248
4434
|
/* Its start: a mark as given; an icon in its box. */
|
|
4249
|
-
.o-setting-row > :not(.o-choice-text) { flex: none; }
|
|
4435
|
+
.o-setting-row > :not(.o-choice-text, .o-setting-row-press) { flex: none; }
|
|
4250
4436
|
.o-setting-row-icon {
|
|
4251
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);
|
|
4252
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);
|
|
@@ -4262,11 +4448,68 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
4262
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); }
|
|
4263
4449
|
.o-setting-row-chevron { flex: none; width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); color: var(--vk-fg-subtlest); }
|
|
4264
4450
|
/* Locked: its control greyed (a switch keeps its own locked state), its words as they are. */
|
|
4265
|
-
.o-setting-row[data-locked] :is(.o-setting-row-select, .o-button, .o-setting-row-value, .o-setting-row-chevron) { opacity:
|
|
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); }
|
|
4266
4452
|
|
|
4267
4453
|
/* A lone row: bare, no card, no line, no room round it. */
|
|
4268
4454
|
.o-setting-row[data-alone]:not(.o-field-row) { min-height: 0; padding: 0; border-top: 0; background-color: transparent; }
|
|
4269
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
|
+
|
|
4270
4513
|
/* ── On a phone: Field rows' card and rows; a setting's words, value and › in them ─────────────────────────────────── */
|
|
4271
4514
|
.o-setting-row.o-field-row > .o-choice-text { flex: 1 1 auto; }
|
|
4272
4515
|
.o-setting-row-press {
|
|
@@ -4274,8 +4517,54 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
4274
4517
|
border: 0; font: inherit; color: inherit; text-align: left; background-color: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
|
|
4275
4518
|
}
|
|
4276
4519
|
.o-setting-row.o-field-row .o-setting-row-end { flex: 0 1 auto; }
|
|
4277
|
-
.o-setting-row.o-field-row .o-setting-row-value { overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
|
|
4278
|
-
.o-setting-rows-danger.o-field-rows .o-choice-label { color: var(--vk-danger); }
|
|
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); }
|
|
4279
4568
|
|
|
4280
4569
|
@media (prefers-reduced-motion: reduce) { .o-setting-row { transition: none; } }
|
|
4281
4570
|
|
|
@@ -4284,13 +4573,13 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
4284
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
|
|
4285
4574
|
edge is a ring along the curve over its rows (::after), in the card's edge colour. ── */
|
|
4286
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)) {
|
|
4287
|
-
.o-setting-rows:not(.o-field-rows) {
|
|
4576
|
+
.o-setting-rows:not(.o-field-rows), :where([data-setting-row-card="edged"]) .o-setting-row[data-alone]:not(.o-field-row) {
|
|
4288
4577
|
--smooth-amount: var(--vk-corner-smoothing);
|
|
4289
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)));
|
|
4290
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)));
|
|
4291
4580
|
position: relative; overflow: visible; border-color: transparent; border-radius: var(--setting-rows-fit); clip-path: shape(var(--smooth-outline));
|
|
4292
4581
|
}
|
|
4293
|
-
.o-setting-rows:not(.o-field-rows)::after {
|
|
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 {
|
|
4294
4583
|
--smooth-t: max(0px, var(--setting-rows-fit) - var(--vk-border-width)); --smooth-in: var(--vk-border-width);
|
|
4295
4584
|
content: ""; position: absolute; inset: calc(var(--vk-border-width) * -1); z-index: 1; pointer-events: none;
|
|
4296
4585
|
background-color: var(--setting-rows-edge, var(--vk-border)); clip-path: shape(var(--smooth-ring));
|
|
@@ -4476,6 +4765,9 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
4476
4765
|
sideways (a full Sheet's body scrolls, and a step's slide would otherwise widen it). */
|
|
4477
4766
|
.o-sheet-step { outline: none; }
|
|
4478
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); }
|
|
4479
4771
|
|
|
4480
4772
|
/* Less motion: a fade, no scale. */
|
|
4481
4773
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -4483,7 +4775,7 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
4483
4775
|
.o-sheet:is([data-starting-style], [data-ending-style]) { opacity: 0; transform: translateY(var(--drawer-snap-point-offset, 0px)); }
|
|
4484
4776
|
.o-sheet[data-nested-drawer-open] { scale: 1; }
|
|
4485
4777
|
.o-sheet-backdrop { transition: opacity var(--vk-duration-base) var(--vk-ease-out); }
|
|
4486
|
-
.o-sheet-step { animation: none; }
|
|
4778
|
+
.o-sheet-step, .o-sheet-row[data-step] > :not(.o-hd-bar-edge) { animation: none; }
|
|
4487
4779
|
}
|
|
4488
4780
|
|
|
4489
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)); }
|
|
@@ -4502,7 +4794,13 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
4502
4794
|
.o-sort-editor-grip { flex: none; touch-action: none; }
|
|
4503
4795
|
.o-sort-editor-field, .o-sort-editor-direction { position: relative; flex: none; min-width: 0; }
|
|
4504
4796
|
.o-sort-editor-field { width: calc(var(--vk-spacing) * 52); }
|
|
4505
|
-
|
|
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; }
|
|
4506
4804
|
.o-sort-editor-field > .o-select, .o-sort-editor-direction > .o-select { width: 100%; }
|
|
4507
4805
|
.o-sort-editor-remove { flex: none; }
|
|
4508
4806
|
|
|
@@ -4856,14 +5154,10 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
4856
5154
|
.o-switch-row {
|
|
4857
5155
|
display: flex; align-items: center; justify-content: space-between; gap: calc(var(--vk-spacing) * 4);
|
|
4858
5156
|
padding: calc(var(--vk-spacing) * 3.5) calc(var(--vk-spacing) * 4); border-top: var(--vk-border-width) solid var(--vk-border-subtle);
|
|
4859
|
-
|
|
5157
|
+
-webkit-tap-highlight-color: transparent;
|
|
4860
5158
|
}
|
|
4861
5159
|
.o-switch-row:first-child { border-top: 0; }
|
|
4862
|
-
@media (hover: hover) { .o-switch-row:hover { background-color: var(--vk-hovered); } }
|
|
4863
5160
|
.o-switch-row .o-choice-label { font-weight: var(--vk-font-weight-medium); }
|
|
4864
|
-
.o-switch-row:has(.o-switch[data-disabled]) { cursor: not-allowed; background-color: transparent; }
|
|
4865
|
-
|
|
4866
|
-
@media (prefers-reduced-motion: reduce) { .o-switch-row { transition: none; } }
|
|
4867
5161
|
/* ── The rows' card smooth: following the token corner-smoothing, drawn with the smooth outline (smooth.css) in every browser
|
|
4868
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.
|
|
4869
5163
|
Nothing stands outside it (its rows were hidden past its edge), so it is clipped itself, its rows with it, hiding nothing
|
|
@@ -4937,21 +5231,26 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
4937
5231
|
}
|
|
4938
5232
|
|
|
4939
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
|
|
4940
|
-
lg draws it anywhere: Round (after iOS 18), 31 × 51 with a 27 thumb; or Capsule (after iOS 26
|
|
4941
|
-
|
|
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 ── */
|
|
4942
5237
|
.o-switch.o-switch-sm { --sw-u: 0.8; }
|
|
4943
5238
|
.o-switch.o-switch-lg {
|
|
4944
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%;
|
|
4945
5240
|
--sw-rest: var(--vk-neutral); --sw-hover: var(--vk-neutral-hovered); --sw-edge-rest: transparent; --sw-edge-hover: transparent;
|
|
4946
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);
|
|
4947
5242
|
}
|
|
4948
|
-
[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
|
+
}
|
|
4949
5246
|
.o-switch:not(.o-switch-sm):where([data-vk-phone], [data-vk-phone] *) {
|
|
4950
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%;
|
|
4951
5248
|
--sw-rest: var(--vk-neutral); --sw-hover: var(--vk-neutral-hovered); --sw-edge-rest: transparent; --sw-edge-hover: transparent;
|
|
4952
|
-
--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);
|
|
4953
5253
|
}
|
|
4954
|
-
[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); }
|
|
4955
5254
|
|
|
4956
5255
|
/* ── Motion. Stretch while held, the kit's until duration-base on ease-in-out, the thumb a spacing step longer toward
|
|
4957
5256
|
where it is going while pressed. Spring: it runs a little past and settles. Stretch as it goes: its front edge leaves first
|
|
@@ -4964,7 +5263,7 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
4964
5263
|
/* ── Under the pointer, on the track or its row: its shape's deeper paint; on, a deeper brand ─────────────────────────── */
|
|
4965
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. */
|
|
4966
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); }
|
|
4967
|
-
@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); } }
|
|
4968
5267
|
|
|
4969
5268
|
/* ── On: the brand fills the track, the thumb crosses, its front edge in lead and its back in trail ───────────────────── */
|
|
4970
5269
|
.o-switch[data-checked] { --sw-paint: var(--sw-on-track); --sw-ring: var(--sw-on-track); }
|
|
@@ -5012,7 +5311,7 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
5012
5311
|
colour fills it. The pointer never takes it away; focus rings it in red; disabled wins ─────────────────────────────── */
|
|
5013
5312
|
.o-switch:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]),
|
|
5014
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); }
|
|
5015
|
-
@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); } }
|
|
5016
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); }
|
|
5017
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); }
|
|
5018
5317
|
|
|
@@ -5025,6 +5324,11 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
5025
5324
|
--sw-knob: var(--vk-fg-disabled); --sw-knob-on: var(--vk-fg-disabled); --sw-knob-shadow: none; cursor: not-allowed;
|
|
5026
5325
|
}
|
|
5027
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; }
|
|
5028
5332
|
|
|
5029
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; } }
|
|
5030
5334
|
|
|
@@ -5035,6 +5339,25 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
5035
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); }
|
|
5036
5340
|
.o-input-control.o-tag-field-input { align-self: center; min-width: calc(var(--vk-spacing) * 20); }
|
|
5037
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
|
+
|
|
5038
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
|
|
5039
5362
|
are variables, which the Option's looks and states set, so its cut draws them under Smooth: --tag-ground (none),
|
|
5040
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
|
|
@@ -5050,6 +5373,8 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
5050
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
|
|
5051
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. */
|
|
5052
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); }
|
|
5053
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; }
|
|
5054
5379
|
/* Small, in dense rows; a count for the rest, its number in the quieter colour. */
|
|
5055
5380
|
.o-tag.o-tag-sm { --tag-h: calc(var(--vk-spacing) * 5); padding: 0 calc(var(--vk-spacing) * 1.5); }
|
|
@@ -5354,6 +5679,10 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
5354
5679
|
.o-toolbar-button-count { margin-left: var(--vk-spacing); color: var(--vk-fg-subtle); font-variant-numeric: tabular-nums; }
|
|
5355
5680
|
.o-toolbar-button-count[data-alone] { margin-left: 0; }
|
|
5356
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
|
+
|
|
5357
5686
|
/* A dot at its top end corner, in the brand: something applied with no number. Drawn with ::before, since the pressing area takes
|
|
5358
5687
|
::after on a phone (its pressing area). */
|
|
5359
5688
|
.o-button.o-toolbar-button[data-dot]::before {
|
|
@@ -5405,6 +5734,10 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
5405
5734
|
|
|
5406
5735
|
/* What a line holds keeps its width; only a text box gives some up, from its own width down to its narrowest. */
|
|
5407
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; }
|
|
5408
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); }
|
|
5409
5742
|
|
|
5410
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. */
|
|
@@ -6214,6 +6547,9 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
6214
6547
|
.max-h-96 {
|
|
6215
6548
|
max-height: calc(4px * 96);
|
|
6216
6549
|
}
|
|
6550
|
+
.min-h-\(--vk-field-row-h\,auto\) {
|
|
6551
|
+
min-height: var(--vk-field-row-h,auto);
|
|
6552
|
+
}
|
|
6217
6553
|
.min-h-0 {
|
|
6218
6554
|
min-height: 0px;
|
|
6219
6555
|
}
|
|
@@ -6469,6 +6805,9 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
6469
6805
|
.grid-cols-\[auto_minmax\(0\,1fr\)_auto\] {
|
|
6470
6806
|
grid-template-columns: auto minmax(0,1fr) auto;
|
|
6471
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
|
+
}
|
|
6472
6811
|
.grid-rows-\[auto\] {
|
|
6473
6812
|
grid-template-rows: auto;
|
|
6474
6813
|
}
|
|
@@ -6484,6 +6823,9 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
6484
6823
|
.place-content-center {
|
|
6485
6824
|
place-content: center;
|
|
6486
6825
|
}
|
|
6826
|
+
.content-center {
|
|
6827
|
+
align-content: center;
|
|
6828
|
+
}
|
|
6487
6829
|
.content-start {
|
|
6488
6830
|
align-content: flex-start;
|
|
6489
6831
|
}
|
|
@@ -6539,15 +6881,15 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
6539
6881
|
margin-block-start: calc(calc(4px * 3) * var(--tw-space-y-reverse));
|
|
6540
6882
|
margin-block-end: calc(calc(4px * 3) * calc(1 - var(--tw-space-y-reverse)));
|
|
6541
6883
|
}
|
|
6884
|
+
.gap-x-\(--vk-field-row-gap\,calc\(var\(--spacing\)\*3\)\) {
|
|
6885
|
+
column-gap: var(--vk-field-row-gap,calc(4px * 3));
|
|
6886
|
+
}
|
|
6542
6887
|
.gap-x-1\.5 {
|
|
6543
6888
|
column-gap: calc(4px * 1.5);
|
|
6544
6889
|
}
|
|
6545
6890
|
.gap-x-2 {
|
|
6546
6891
|
column-gap: calc(4px * 2);
|
|
6547
6892
|
}
|
|
6548
|
-
.gap-x-3 {
|
|
6549
|
-
column-gap: calc(4px * 3);
|
|
6550
|
-
}
|
|
6551
6893
|
.gap-y-0\.5 {
|
|
6552
6894
|
row-gap: calc(4px * 0.5);
|
|
6553
6895
|
}
|
|
@@ -6649,6 +6991,10 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
6649
6991
|
border-bottom-style: var(--tw-border-style);
|
|
6650
6992
|
border-bottom-width: 1px;
|
|
6651
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
|
+
}
|
|
6652
6998
|
.border-l-\(length\:--vk-thick-line\,2px\) {
|
|
6653
6999
|
border-left-style: var(--tw-border-style);
|
|
6654
7000
|
border-left-width: var(--vk-thick-line,2px);
|
|
@@ -6673,6 +7019,9 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
6673
7019
|
.border-\(color\:--vk-brand\) {
|
|
6674
7020
|
border-color: var(--vk-brand);
|
|
6675
7021
|
}
|
|
7022
|
+
.border-\(color\:--vk-field-row-line\,var\(--vk-border\)\) {
|
|
7023
|
+
border-color: var(--vk-field-row-line,var(--vk-border));
|
|
7024
|
+
}
|
|
6676
7025
|
.border-\(color\:--vk-ground\) {
|
|
6677
7026
|
border-color: var(--vk-ground);
|
|
6678
7027
|
}
|
|
@@ -6939,6 +7288,9 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
6939
7288
|
.px-4 {
|
|
6940
7289
|
padding-inline: calc(4px * 4);
|
|
6941
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
|
+
}
|
|
6942
7294
|
.py-0 {
|
|
6943
7295
|
padding-block: 0px;
|
|
6944
7296
|
}
|
|
@@ -7201,6 +7553,9 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
7201
7553
|
.text-\(color\:--vk-fg-subtlest\) {
|
|
7202
7554
|
color: var(--vk-fg-subtlest);
|
|
7203
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
|
+
}
|
|
7204
7559
|
.text-\(color\:--vk-head-glyph-fg\,currentColor\) {
|
|
7205
7560
|
color: var(--vk-head-glyph-fg,currentColor);
|
|
7206
7561
|
}
|
|
@@ -8689,8 +9044,10 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
8689
9044
|
--vk-font-size-2xl: 24px;
|
|
8690
9045
|
--vk-font-size-2xs: 10px;
|
|
8691
9046
|
--vk-font-size-3xs: 8px;
|
|
9047
|
+
--vk-font-size-4xl: 36px;
|
|
8692
9048
|
--vk-font-size-xl: 20px;
|
|
8693
9049
|
--vk-font-size-xs: 12px;
|
|
9050
|
+
--vk-radius-4xl: 33.33px;
|
|
8694
9051
|
--vk-radius-md: 7.5px;
|
|
8695
9052
|
--vk-radius-sm: 5px;
|
|
8696
9053
|
--vk-radius-xs: 2.5px;
|
|
@@ -8807,13 +9164,14 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
8807
9164
|
--vk-scrollbar-thumb: hsl(210 1% 82%);
|
|
8808
9165
|
--vk-scrollbar-thumb-hovered: hsl(210 1% 72%);
|
|
8809
9166
|
--vk-scrollbar-hold: 1000ms;
|
|
9167
|
+
--vk-icon-disclosure: hsl(210 1% 72%);
|
|
9168
|
+
--vk-opacity-off: 0.45;
|
|
8810
9169
|
--vk-backdrop-sheet: hsl(214 30% 10% / 0.3);
|
|
8811
9170
|
--vk-backdrop-sheet-light: hsl(214 30% 10% / 0.15);
|
|
8812
9171
|
--vk-backdrop-stacked: hsl(214 30% 10% / 0.2);
|
|
8813
9172
|
--vk-sheet-handle: hsl(210 1% 72%);
|
|
8814
9173
|
--vk-spring-exit: 120px;
|
|
8815
9174
|
--vk-spring-past: 12px;
|
|
8816
|
-
--vk-radius-4xl: 33.33px;
|
|
8817
9175
|
--vk-radius-5xl: 40px;
|
|
8818
9176
|
--vk-spring-smooth: 500ms 1;
|
|
8819
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);
|
|
@@ -9048,6 +9406,7 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
9048
9406
|
--vk-header: hsl(210 6% 7%);
|
|
9049
9407
|
--vk-scrollbar-thumb: hsl(210 2% 26.5%);
|
|
9050
9408
|
--vk-scrollbar-thumb-hovered: hsl(210 1% 37%);
|
|
9409
|
+
--vk-icon-disclosure: hsl(210 1% 37%);
|
|
9051
9410
|
--vk-backdrop-sheet: hsl(0 0% 0% / 0.45);
|
|
9052
9411
|
--vk-backdrop-sheet-light: hsl(0 0% 0% / 0.22);
|
|
9053
9412
|
--vk-backdrop-stacked: hsl(0 0% 0% / 0.3);
|