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
package/views/dist/styles.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! viewkitjs 0.
|
|
1
|
+
/*! viewkitjs 0.32.0 · viewkitjs/views/styles.css: ViewKit's look, its defaults the Outright look */
|
|
2
2
|
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
3
3
|
@layer theme, base, components, utilities;
|
|
4
4
|
@layer base {
|
|
@@ -480,13 +480,14 @@
|
|
|
480
480
|
.o-avatar-letters svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
|
|
481
481
|
|
|
482
482
|
/* ── 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,
|
|
483
|
-
40 in headers, 56 at a settings page's head, 64 on a record's page ── */
|
|
483
|
+
40 in headers, 56 at a settings page's head, 64 on a record's page, 96 a photo on a phone ── */
|
|
484
484
|
.o-avatar.o-avatar-2xs { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); font-size: var(--vk-font-size-3xs); }
|
|
485
485
|
.o-avatar.o-avatar-xs { width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 5); font-size: var(--vk-font-size-2xs); }
|
|
486
486
|
.o-avatar.o-avatar-sm { width: calc(var(--vk-spacing) * 6); height: calc(var(--vk-spacing) * 6); font-size: var(--vk-font-size-2xs); }
|
|
487
487
|
.o-avatar.o-avatar-lg { width: calc(var(--vk-spacing) * 10); height: calc(var(--vk-spacing) * 10); font-size: var(--vk-font-size-sm); }
|
|
488
488
|
.o-avatar.o-avatar-56 { width: calc(var(--vk-spacing) * 14); height: calc(var(--vk-spacing) * 14); font-size: var(--vk-font-size-xl); }
|
|
489
489
|
.o-avatar.o-avatar-xl { width: calc(var(--vk-spacing) * 16); height: calc(var(--vk-spacing) * 16); font-size: var(--vk-font-size-2xl); }
|
|
490
|
+
.o-avatar.o-avatar-96 { width: calc(var(--vk-spacing) * 24); height: calc(var(--vk-spacing) * 24); font-size: var(--vk-font-size-4xl); }
|
|
490
491
|
|
|
491
492
|
/* ── A thing: a square, its corners a step that grows with it, on the neutral ground, its edge inside ─ */
|
|
492
493
|
.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); }
|
|
@@ -506,27 +507,43 @@
|
|
|
506
507
|
/* 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
|
|
507
508
|
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. */
|
|
508
509
|
.o-avatar-agent .o-avatar-letters svg { fill: var(--vk-fg); stroke: none; }
|
|
509
|
-
|
|
510
|
-
|
|
510
|
+
/* 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
|
|
511
|
+
under a white letter, as the setting row's Tile draws its icons; grey the quietest ink. A thing's, the workspace's included,
|
|
512
|
+
keeps the hue's fill. */
|
|
513
|
+
.o-avatar.o-avatar-agent[data-colour]:where([data-vk-phone] *) { color: var(--vk-fg-inverse); }
|
|
514
|
+
.o-avatar.o-avatar-agent[data-colour="blue"]:where([data-vk-phone] *) { background-color: var(--vk-label-blue); }
|
|
515
|
+
.o-avatar.o-avatar-agent[data-colour="green"]:where([data-vk-phone] *) { background-color: var(--vk-label-green); }
|
|
516
|
+
.o-avatar.o-avatar-agent[data-colour="amber"]:where([data-vk-phone] *) { background-color: var(--vk-label-amber); }
|
|
517
|
+
.o-avatar.o-avatar-agent[data-colour="red"]:where([data-vk-phone] *) { background-color: var(--vk-label-red); }
|
|
518
|
+
.o-avatar.o-avatar-agent[data-colour="purple"]:where([data-vk-phone] *) { background-color: var(--vk-label-purple); }
|
|
519
|
+
.o-avatar.o-avatar-agent[data-colour="pink"]:where([data-vk-phone] *) { background-color: var(--vk-label-pink); }
|
|
520
|
+
.o-avatar.o-avatar-agent[data-colour="teal"]:where([data-vk-phone] *) { background-color: var(--vk-label-teal); }
|
|
521
|
+
.o-avatar.o-avatar-agent[data-colour="grey"]:where([data-vk-phone] *) { background-color: var(--vk-fg-subtlest); }
|
|
522
|
+
|
|
523
|
+
/* ── 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),
|
|
511
524
|
between Small and Large, the tokens holding nothing between xs and sm ────────────────────────────── */
|
|
512
525
|
.o-avatar.o-avatar-thing { --avatar-r: var(--vk-radius-sm); }
|
|
513
526
|
.o-avatar.o-avatar-thing:is(.o-avatar-2xs, .o-avatar-xs) { --avatar-r: var(--vk-radius-xs); }
|
|
514
527
|
.o-avatar.o-avatar-thing.o-avatar-lg { --avatar-r: var(--vk-radius-md); }
|
|
515
528
|
.o-avatar.o-avatar-thing:is(.o-avatar-56, .o-avatar-xl) { --avatar-r: var(--vk-radius-lg); }
|
|
516
|
-
|
|
529
|
+
.o-avatar.o-avatar-thing.o-avatar-96 { --avatar-r: var(--vk-radius-2xl); }
|
|
530
|
+
/* Small: xs at 20 and 24, sm at 32 and 40, md at 56 and 64, xl at 96. */
|
|
517
531
|
[data-avatar-corners="small"] .o-avatar.o-avatar-thing { --avatar-r: var(--vk-radius-sm); }
|
|
518
532
|
[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); }
|
|
519
533
|
[data-avatar-corners="small"] .o-avatar.o-avatar-thing:is(.o-avatar-56, .o-avatar-xl) { --avatar-r: var(--vk-radius-md); }
|
|
520
|
-
|
|
534
|
+
[data-avatar-corners="small"] .o-avatar.o-avatar-thing.o-avatar-96 { --avatar-r: var(--vk-radius-xl); }
|
|
535
|
+
/* 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. */
|
|
521
536
|
[data-avatar-corners="large"] .o-avatar.o-avatar-thing { --avatar-r: var(--vk-radius-md); }
|
|
522
537
|
[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); }
|
|
523
538
|
[data-avatar-corners="large"] .o-avatar.o-avatar-thing.o-avatar-lg { --avatar-r: var(--vk-radius-lg); }
|
|
524
539
|
[data-avatar-corners="large"] .o-avatar.o-avatar-thing:is(.o-avatar-56, .o-avatar-xl) { --avatar-r: var(--vk-radius-xl); }
|
|
525
|
-
|
|
540
|
+
[data-avatar-corners="large"] .o-avatar.o-avatar-thing.o-avatar-96 { --avatar-r: var(--vk-radius-3xl); }
|
|
541
|
+
/* Extra large: md at 20 and 24, lg at 32, xl at 40, 2xl at 56 and 64, 4xl at 96. */
|
|
526
542
|
[data-avatar-corners="xlarge"] .o-avatar.o-avatar-thing { --avatar-r: var(--vk-radius-lg); }
|
|
527
543
|
[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); }
|
|
528
544
|
[data-avatar-corners="xlarge"] .o-avatar.o-avatar-thing.o-avatar-lg { --avatar-r: var(--vk-radius-xl); }
|
|
529
545
|
[data-avatar-corners="xlarge"] .o-avatar.o-avatar-thing:is(.o-avatar-56, .o-avatar-xl) { --avatar-r: var(--vk-radius-2xl); }
|
|
546
|
+
[data-avatar-corners="xlarge"] .o-avatar.o-avatar-thing.o-avatar-96 { --avatar-r: var(--vk-radius-4xl); }
|
|
530
547
|
|
|
531
548
|
/* ── Corner smoothing: Smooth, with nothing set, draws a square's corners with the smooth outline (smooth.css),
|
|
532
549
|
every browser that knows shape() showing it; one that doesn't keeps the quarter circles above, and so does Round. Its
|
|
@@ -1335,7 +1352,7 @@
|
|
|
1335
1352
|
.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); }
|
|
1336
1353
|
|
|
1337
1354
|
/* ── A choice as a card: an edge round it, the whole card pressing it; under the pointer the hovered
|
|
1338
|
-
ground; chosen, the selected edge and ground; off, the softer edge and no hover ─────────────────── */
|
|
1355
|
+
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 ─────────────────── */
|
|
1339
1356
|
.o-choice-card {
|
|
1340
1357
|
box-sizing: border-box; display: flex; width: 100%; padding: calc(var(--vk-spacing) * 3) calc(var(--vk-spacing) * 3.5);
|
|
1341
1358
|
border: var(--vk-border-width) solid var(--vk-border); border-radius: var(--vk-radius-lg); corner-shape: squircle;
|
|
@@ -1343,8 +1360,8 @@
|
|
|
1343
1360
|
}
|
|
1344
1361
|
/* 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. */
|
|
1345
1362
|
@media (hover: hover) { .o-choice-card:hover { background-color: var(--vk-hovered); } }
|
|
1346
|
-
.o-choice-card:has(> [data-checked]) { border-color: var(--vk-border-selected); background-color: var(--vk-
|
|
1347
|
-
.o-choice-card:has(> [data-disabled]) { border-color: var(--vk-border-subtle); background-color: transparent; }
|
|
1363
|
+
.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); }
|
|
1364
|
+
.o-choice-card:has(> [data-disabled]) { border-color: var(--vk-border-subtle); box-shadow: none; background-color: transparent; }
|
|
1348
1365
|
.o-choice-card .o-choice-label { font-weight: var(--vk-font-weight-medium); }
|
|
1349
1366
|
/* In error, the card's edge is red too. */
|
|
1350
1367
|
.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); }
|
|
@@ -1769,27 +1786,31 @@
|
|
|
1769
1786
|
Each option, on a frame or on the card itself (the look its place hands it, whole, which wins), sets the card's and
|
|
1770
1787
|
its rows' variables; nothing set is Card: one card on the overlay's card ground, its edge, rows 52, the label 104, the line
|
|
1771
1788
|
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
|
|
1772
|
-
typed into shows the caret alone.
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1789
|
+
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
|
|
1790
|
+
the card resolves its colours, edge and corners where it stands, and a place that sets a token again round it (a settings group
|
|
1791
|
+
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
|
|
1792
|
+
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
|
|
1793
|
+
(--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. */
|
|
1794
|
+
[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); }
|
|
1795
|
+
[data-field-rows-edge="off"], :where([data-field-rows-edge="off"]) .o-field-rows:not([data-field-rows-edge]) { --field-rows-edge: 0 none; }
|
|
1796
|
+
[data-field-rows-cards="one"], :where([data-field-rows-cards="one"]) .o-field-rows:not([data-field-rows-cards]) {
|
|
1776
1797
|
--field-rows-card-display: block; --field-rows-card-gap: 0px; --field-rows-card-overflow: hidden; --field-rows-card-edge: var(--field-rows-edge);
|
|
1777
1798
|
--field-rows-card-corners: var(--vk-radius-xl); --field-rows-card-ground: var(--vk-overlay-card);
|
|
1778
1799
|
--field-rows-row-edge: 0 none; --field-rows-row-corners: 0px; --field-rows-row-ground: transparent;
|
|
1779
1800
|
}
|
|
1780
|
-
[data-field-rows-cards="each"] {
|
|
1801
|
+
[data-field-rows-cards="each"], :where([data-field-rows-cards="each"]) .o-field-rows:not([data-field-rows-cards]) {
|
|
1781
1802
|
--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;
|
|
1782
1803
|
--field-rows-card-corners: 0px; --field-rows-card-ground: transparent;
|
|
1783
1804
|
--field-rows-row-edge: var(--field-rows-edge); --field-rows-row-corners: var(--vk-radius-xl); --field-rows-row-ground: var(--vk-overlay-card);
|
|
1784
1805
|
}
|
|
1785
|
-
[data-field-rows-height="48"] { --field-rows-row: calc(var(--vk-spacing) * 12); }
|
|
1786
|
-
[data-field-rows-height="52"] { --field-rows-row: calc(var(--vk-spacing) * 13); }
|
|
1787
|
-
[data-field-rows-height="56"] { --field-rows-row: calc(var(--vk-spacing) * 14); }
|
|
1788
|
-
[data-field-rows-label="104"] { --field-rows-label: block; }
|
|
1789
|
-
[data-field-rows-label="none"] { --field-rows-label: none; }
|
|
1790
|
-
[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; }
|
|
1791
|
-
[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); }
|
|
1792
|
-
[data-field-rows-lines="none"] { --field-rows-line-image: none; --field-rows-line-shadow: none; }
|
|
1806
|
+
[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); }
|
|
1807
|
+
[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); }
|
|
1808
|
+
[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); }
|
|
1809
|
+
[data-field-rows-label="104"], :where([data-field-rows-label="104"]) .o-field-rows:not([data-field-rows-label]) { --field-rows-label: block; }
|
|
1810
|
+
[data-field-rows-label="none"], :where([data-field-rows-label="none"]) .o-field-rows:not([data-field-rows-label]) { --field-rows-label: none; }
|
|
1811
|
+
[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; }
|
|
1812
|
+
[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); }
|
|
1813
|
+
[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; }
|
|
1793
1814
|
|
|
1794
1815
|
.o-field-rows {
|
|
1795
1816
|
display: var(--field-rows-card-display, block); grid-template-columns: minmax(0, 1fr); gap: var(--field-rows-card-gap, 0px); min-width: 0;
|
|
@@ -1803,10 +1824,31 @@
|
|
|
1803
1824
|
}
|
|
1804
1825
|
button.o-field-row { cursor: pointer; }
|
|
1805
1826
|
.o-field-row + .o-field-row {
|
|
1806
|
-
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);
|
|
1807
|
-
background-position: calc(var(--vk-spacing) * 4) 0; background-repeat: no-repeat; box-shadow: var(--field-rows-line-shadow, none);
|
|
1808
|
-
}
|
|
1809
|
-
.o-field-row-label { display: var(--field-rows-label, block); flex: none; width: calc(var(--vk-spacing) * 26); color: var(--vk-fg-subtle); }
|
|
1827
|
+
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);
|
|
1828
|
+
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);
|
|
1829
|
+
}
|
|
1830
|
+
.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; }
|
|
1831
|
+
.o-field-row-glyph {
|
|
1832
|
+
display: flex; flex: none; align-items: center; justify-content: center; width: calc(var(--vk-spacing) * 5);
|
|
1833
|
+
}
|
|
1834
|
+
.o-field-row:has(> .o-field-row-glyph) { --field-rows-line-start: calc(var(--vk-spacing) * 8); }
|
|
1835
|
+
|
|
1836
|
+
/* ── 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
|
|
1837
|
+
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
|
|
1838
|
+
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
|
|
1839
|
+
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
|
|
1840
|
+
as one note; an error in the danger colour, standing in place of every note. ─────────────────────────────────────────── */
|
|
1841
|
+
.o-field.o-field-row { display: flex; gap: calc(var(--vk-spacing) * 3); }
|
|
1842
|
+
.o-field-rows-foot {
|
|
1843
|
+
margin: 0; padding: calc(var(--vk-spacing) * 1.75) calc(var(--vk-spacing) * 4) 0; overflow-wrap: anywhere;
|
|
1844
|
+
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);
|
|
1845
|
+
}
|
|
1846
|
+
/* Each Field's place in it, in its row's order, standing as its words only: they run on, a space between. */
|
|
1847
|
+
.o-field-rows-slot { display: contents; }
|
|
1848
|
+
.o-field-rows-slot > * { display: inline; color: inherit; }
|
|
1849
|
+
.o-field-rows-slot + .o-field-rows-slot::before { content: " "; }
|
|
1850
|
+
.o-field-rows-slot > .o-field-error { color: var(--vk-danger); }
|
|
1851
|
+
.o-field-rows-foot:has(.o-field-error) .o-field-note { display: none; }
|
|
1810
1852
|
|
|
1811
1853
|
.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)); }
|
|
1812
1854
|
.o-filter-editor:focus { outline: none; }
|
|
@@ -2168,10 +2210,11 @@ textarea.o-inline-input.o-inline-input { border-radius: min(var(--inline-input-r
|
|
|
2168
2210
|
/* Disabled: a softer edge, a grey fill, no lift. */
|
|
2169
2211
|
.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; }
|
|
2170
2212
|
|
|
2171
|
-
/* Read-only: what it holds can be read, chosen and copied, not changed:
|
|
2172
|
-
takes the focus, and the pointer changes nothing. One that opens
|
|
2173
|
-
box to press, not words to copy, and keeps a resting field's edge and lift. */
|
|
2213
|
+
/* Read-only: what it holds can be read, chosen and copied, not changed: it stands sunken, its words subtle (KIT-938), in
|
|
2214
|
+
focus too, with a soft edge and no lift at rest; it still takes the focus, and the pointer changes nothing. One that opens
|
|
2215
|
+
something is a box to press, not words to copy, and keeps a resting field's ground, edge and lift. */
|
|
2174
2216
|
.o-input:is([readonly], :where(:has(.o-input-control[readonly]))) { cursor: default; }
|
|
2217
|
+
.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); }
|
|
2175
2218
|
.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; }
|
|
2176
2219
|
|
|
2177
2220
|
/* ── The options a design picks (input/looks.ts) ─────────────────────────────────────────────────────
|
|
@@ -2470,6 +2513,33 @@ textarea.o-input-control.o-input-lines { flex: none; min-height: 0; max-height:
|
|
|
2470
2513
|
@keyframes o-input-saved-leave { to { opacity: 0; } }
|
|
2471
2514
|
@media (prefers-reduced-motion: reduce) { .o-input-save[data-save="saved"] { animation-duration: 1ms; } }
|
|
2472
2515
|
|
|
2516
|
+
/* ── In a row of Field rows (VK-960; the settings canvas, round 3: look-ios.mjs .fv, .caret, .saved, .act): a Field placed in
|
|
2517
|
+
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
|
|
2518
|
+
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
|
|
2519
|
+
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
|
|
2520
|
+
with no caret. An InputGroup's start words are the value's prefix, in the quietest text and right against it; its end button
|
|
2521
|
+
(copy) in the brand, 12 after the value, out of the way while the save mark stands there. The save mark (Saving, Saved) 12
|
|
2522
|
+
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
|
|
2523
|
+
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. */
|
|
2524
|
+
.o-input.o-input-inrow.o-input-inrow {
|
|
2525
|
+
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;
|
|
2526
|
+
--input-pad-block: 0px; --input-pad-inline: 0px; --input-group-gap: 0px;
|
|
2527
|
+
color: var(--vk-fg); font: inherit; caret-color: var(--vk-fg-brand); transition: none;
|
|
2528
|
+
}
|
|
2529
|
+
.o-input-inrow > .o-input-control { text-overflow: ellipsis; }
|
|
2530
|
+
.o-input-inrow:has(> .o-input-control[readonly]) { color: var(--vk-fg-subtlest); caret-color: transparent; }
|
|
2531
|
+
.o-input-inrow:is([data-disabled], :has(> .o-input-control:is(:disabled, [data-disabled]))) { color: var(--vk-fg-disabled); }
|
|
2532
|
+
.o-input-inrow > .o-input-addon[data-side="start"] { color: var(--vk-fg-subtlest); }
|
|
2533
|
+
.o-input-inrow > .o-input-addon[data-side="end"] { margin-inline-start: calc(var(--vk-spacing) * 3); }
|
|
2534
|
+
.o-input-inrow > .o-input-addon[data-side="end"] .o-button.o-button { color: var(--vk-fg-brand); }
|
|
2535
|
+
.o-input-inrow:has(> .o-input-save) > .o-input-addon[data-side="end"] { display: none; }
|
|
2536
|
+
.o-input-inrow > .o-input-save.o-input-save {
|
|
2537
|
+
margin-inline-start: calc(var(--vk-spacing) * 3); padding-inline-end: 0; gap: var(--vk-spacing);
|
|
2538
|
+
font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm));
|
|
2539
|
+
}
|
|
2540
|
+
.o-input-inrow > .o-input-save[data-save="saved"] > svg { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); }
|
|
2541
|
+
.o-input-inrow > .o-input-save[data-save="saving"] svg { width: calc(var(--vk-spacing) * 4.5); height: calc(var(--vk-spacing) * 4.5); }
|
|
2542
|
+
|
|
2473
2543
|
/* ── A key: a 20px cap on the raised ground, half the radius's corners, its bottom edge twice as heavy so
|
|
2474
2544
|
it reads as a key; its label in the quieter text colour ───────────────────────────────────────────── */
|
|
2475
2545
|
.o-kbd {
|
|
@@ -3530,6 +3600,16 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
3530
3600
|
/* Its title at the left: after what stands on its left, taking the room there is. */
|
|
3531
3601
|
.o-hd-bar[data-title-at="left"] { grid-template-columns: auto minmax(0, 1fr) auto; }
|
|
3532
3602
|
.o-hd-bar[data-title-at="left"] > .o-hd-bar-title { text-align: start; }
|
|
3603
|
+
/* 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
|
|
3604
|
+
… beside it, 8 apart; the two stand together, centred, or at the left after what stands there. With a description the mark
|
|
3605
|
+
stands beside both lines. */
|
|
3606
|
+
.o-hd-bar[data-mark] > .o-hd-bar-title {
|
|
3607
|
+
grid-template-columns: max-content minmax(0, max-content); column-gap: calc(var(--vk-spacing) * 2);
|
|
3608
|
+
justify-content: center; align-items: center; text-align: start;
|
|
3609
|
+
}
|
|
3610
|
+
.o-hd-bar[data-mark][data-title-at="left"] > .o-hd-bar-title { justify-content: start; }
|
|
3611
|
+
.o-hd-bar-mark { display: flex; overflow: visible; }
|
|
3612
|
+
.o-hd-bar-mark:has(~ .o-hd-bar-description) { grid-row: span 2; }
|
|
3533
3613
|
/* 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. */
|
|
3534
3614
|
[data-phone-header-surface="flat"] .o-hd-bar > .o-hd-bar-edge { display: none; }
|
|
3535
3615
|
[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)); }
|
|
@@ -3556,6 +3636,8 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
3556
3636
|
.o-picker .o-list-row:is([data-selected], [aria-selected="true"]) > .o-picker-check { visibility: visible; }
|
|
3557
3637
|
/* Create below a line (Create: Below a line, Attio's): its words the text's, not the quieter ones. */
|
|
3558
3638
|
.o-list-row.o-picker-create-apart .o-list-main { color: var(--vk-fg); }
|
|
3639
|
+
/* + Add while the app answers (Adding…): greyed, as a row that can't be picked is, wherever Create stands. */
|
|
3640
|
+
.o-list-row.o-picker-create[data-disabled] .o-list-main { color: var(--vk-fg-disabled); }
|
|
3559
3641
|
|
|
3560
3642
|
/* ── The search: the shared line across a popup's top (popup-line.css), 6 above and below round its chips, 4 over the
|
|
3561
3643
|
rows. With nothing to search it stays, out of sight, so the keys still work; a letter typed brings it back holding the
|
|
@@ -4151,7 +4233,85 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
4151
4233
|
.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); }
|
|
4152
4234
|
.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); }
|
|
4153
4235
|
|
|
4154
|
-
|
|
4236
|
+
/* ── On a phone, the swatches and the pictured cards (VK-955; the settings canvas, round 3, the iOS round: look-ios.mjs, .sws
|
|
4237
|
+
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
|
|
4238
|
+
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),
|
|
4239
|
+
the chosen one ringed in the text colour just outside a gap of the card's ground. The pictured cards drop
|
|
4240
|
+
their edge, ring and ground: each a phone, 46 × 88, framed in the field's edge, over its name; the chosen one framed in
|
|
4241
|
+
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
|
|
4242
|
+
three stand spaced around their card. ──────────────────────────────────────────────────────────────────────────────── */
|
|
4243
|
+
.o-radio-group.o-radio-row:where([data-vk-phone], [data-vk-phone] *):has(> .o-radio-swatched) {
|
|
4244
|
+
gap: calc(var(--vk-spacing) * 3.25); min-height: 0; padding: calc(var(--vk-spacing) * 3.5) calc(var(--vk-spacing) * 4.5);
|
|
4245
|
+
border-radius: var(--vk-radius-xl); background-color: var(--vk-overlay-card);
|
|
4246
|
+
}
|
|
4247
|
+
.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); }
|
|
4248
|
+
.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); }
|
|
4249
|
+
.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); }
|
|
4250
|
+
.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); }
|
|
4251
|
+
.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); }
|
|
4252
|
+
.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); }
|
|
4253
|
+
.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); }
|
|
4254
|
+
.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); }
|
|
4255
|
+
.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); }
|
|
4256
|
+
.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); }
|
|
4257
|
+
.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); }
|
|
4258
|
+
.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); }
|
|
4259
|
+
|
|
4260
|
+
.o-radio-group.o-radio-row:where([data-vk-phone], [data-vk-phone] *):has(> .o-radio-pictured) {
|
|
4261
|
+
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);
|
|
4262
|
+
border-radius: var(--vk-radius-xl); background-color: var(--vk-overlay-card);
|
|
4263
|
+
}
|
|
4264
|
+
.o-radio-row:where([data-vk-phone], [data-vk-phone] *) > .o-choice-card.o-radio-marked.o-radio-pictured {
|
|
4265
|
+
position: relative; display: flex; flex-direction: column; align-items: center; gap: calc(var(--vk-spacing) * 2.5); width: auto; padding: 0;
|
|
4266
|
+
border: 0 none; box-shadow: none; background-color: transparent; color: var(--vk-fg);
|
|
4267
|
+
}
|
|
4268
|
+
.o-radio-row:where([data-vk-phone], [data-vk-phone] *) > .o-radio-pictured > .o-radio-picture {
|
|
4269
|
+
flex: none; width: calc(var(--vk-spacing) * 11.5); height: calc(var(--vk-spacing) * 22);
|
|
4270
|
+
border: var(--vk-focus-width) solid var(--vk-border-input); border-radius: var(--vk-radius-lg);
|
|
4271
|
+
transition: border-color var(--vk-duration-fast) var(--vk-ease-out);
|
|
4272
|
+
}
|
|
4273
|
+
.o-radio-row:where([data-vk-phone], [data-vk-phone] *) > .o-radio-pictured:has(> [data-checked]) > .o-radio-picture { border-color: var(--vk-brand); }
|
|
4274
|
+
/* The radio itself, out of sight: still the one the keys move and focus lands on. */
|
|
4275
|
+
.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%); }
|
|
4276
|
+
.o-radio-row:where([data-vk-phone], [data-vk-phone] *) > .o-radio-pictured > .o-choice-text {
|
|
4277
|
+
min-height: calc(var(--vk-spacing) * 6.25); padding: 0 calc(var(--vk-spacing) * 2.75); border-radius: var(--vk-radius-full);
|
|
4278
|
+
transition: background-color var(--vk-duration-fast) var(--vk-ease-out), color var(--vk-duration-fast) var(--vk-ease-out);
|
|
4279
|
+
}
|
|
4280
|
+
.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); }
|
|
4281
|
+
|
|
4282
|
+
/* ── 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
|
|
4283
|
+
✓ 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
|
|
4284
|
+
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
|
|
4285
|
+
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
|
|
4286
|
+
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. */
|
|
4287
|
+
.o-radio-group:where([data-vk-phone], [data-vk-phone] *):has(> .o-choice-card:not(.o-radio-marked)) {
|
|
4288
|
+
gap: 0; overflow: hidden; border-radius: var(--vk-radius-xl); background-color: var(--vk-overlay-card);
|
|
4289
|
+
}
|
|
4290
|
+
.o-radio-group:where([data-vk-phone], [data-vk-phone] *) > .o-choice-card:not(.o-radio-marked) {
|
|
4291
|
+
display: flex; align-items: center; gap: calc(var(--vk-spacing) * 3); min-height: calc(var(--vk-spacing) * 13);
|
|
4292
|
+
padding: calc(var(--vk-spacing) * 2.5) calc(var(--vk-spacing) * 4); border: 0; border-radius: 0; box-shadow: none; background-color: transparent;
|
|
4293
|
+
}
|
|
4294
|
+
.o-radio-group:where([data-vk-phone], [data-vk-phone] *) > .o-choice-card:not(.o-radio-marked) + .o-choice-card {
|
|
4295
|
+
background-image: linear-gradient(var(--vk-border-overlay-card), var(--vk-border-overlay-card)); background-repeat: no-repeat;
|
|
4296
|
+
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;
|
|
4297
|
+
}
|
|
4298
|
+
.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; }
|
|
4299
|
+
.o-radio-group:where([data-vk-phone], [data-vk-phone] *) > .o-choice-card:not(.o-radio-marked) .o-choice-label {
|
|
4300
|
+
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);
|
|
4301
|
+
}
|
|
4302
|
+
.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); }
|
|
4303
|
+
.o-radio-group:where([data-vk-phone], [data-vk-phone] *) > .o-choice-card:not(.o-radio-marked) > .o-radio-ring {
|
|
4304
|
+
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;
|
|
4305
|
+
}
|
|
4306
|
+
.o-radio-group:where([data-vk-phone], [data-vk-phone] *) > .o-choice-card:not(.o-radio-marked) .o-radio-dot { display: contents; }
|
|
4307
|
+
.o-radio-check { display: none; }
|
|
4308
|
+
.o-radio-group:where([data-vk-phone], [data-vk-phone] *) > .o-choice-card:not(.o-radio-marked) .o-radio-check {
|
|
4309
|
+
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;
|
|
4310
|
+
}
|
|
4311
|
+
.o-radio-group:where([data-vk-phone], [data-vk-phone] *) > .o-choice-card:not(.o-radio-marked) > [data-checked] .o-radio-check { visibility: visible; }
|
|
4312
|
+
.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); }
|
|
4313
|
+
|
|
4314
|
+
@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; } }
|
|
4155
4315
|
|
|
4156
4316
|
/* Doubled, so a component's own overflow: auto in the same layer never brings the sideways scroll back. */
|
|
4157
4317
|
[data-scrollbar][data-scrollbar] { overflow-x: hidden; }
|
|
@@ -4199,6 +4359,23 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
4199
4359
|
.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); }
|
|
4200
4360
|
.o-select-field[data-popup-open] .o-select-chevron:not([data-arrow="right"]) { rotate: 180deg; }
|
|
4201
4361
|
|
|
4362
|
+
/* ── Its label inside its box (labelAt="inside"): the box the outline Button's own (button.css draws its ground, edge, depth,
|
|
4363
|
+
size and states), as wide as what it holds and never wider than its place; the label in the quieter words at the regular
|
|
4364
|
+
weight, then the value in the Button's words, then a 14px chevron in them ─────────────────────────────────────────── */
|
|
4365
|
+
.o-select.o-select-inside { width: max-content; max-width: 100%; }
|
|
4366
|
+
.o-select-inside .o-select-field { max-width: 100%; justify-content: flex-start; gap: calc(var(--vk-spacing) * 1.5); }
|
|
4367
|
+
/* Narrower than its words, the label and the value each end in "…" and the chevron stays inside. */
|
|
4368
|
+
.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; }
|
|
4369
|
+
.o-select-inside .o-select-value { flex: 0 1 auto; }
|
|
4370
|
+
.o-select-inside .o-select-chevron svg { width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); stroke: currentColor; }
|
|
4371
|
+
/* 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
|
|
4372
|
+
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. */
|
|
4373
|
+
.o-select-inside .o-select-field:where([data-vk-phone]) { gap: var(--vk-spacing); }
|
|
4374
|
+
.o-select-inside .o-select-field:where([data-vk-phone]) > .o-select-label-in {
|
|
4375
|
+
position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
|
|
4376
|
+
}
|
|
4377
|
+
.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); }
|
|
4378
|
+
|
|
4202
4379
|
/* ── Typed into: the field holds the box you type in (the group's bare control), and with several, their
|
|
4203
4380
|
chips first, each the Option with its own ×, wrapping onto more lines as they grow; from 32px up a quiet ×
|
|
4204
4381
|
clears it; the chevron shows every choice ───────────────────────────────────────────────────────── */
|
|
@@ -4271,6 +4448,14 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
4271
4448
|
--setting-rows-side: calc(var(--vk-spacing) * 16);
|
|
4272
4449
|
}
|
|
4273
4450
|
.o-setting-rows.o-setting-rows-danger { --setting-rows-edge: var(--vk-border-danger); }
|
|
4451
|
+
/* Edged (Linear's): the card on its ground with a firm edge; its danger zone's plain, only its action red. */
|
|
4452
|
+
:where([data-setting-row-card="edged"]) .o-setting-rows { --setting-rows-edge: var(--vk-border); --setting-rows-ground: var(--vk-raised); }
|
|
4453
|
+
:where([data-setting-row-card="edged"]) .o-setting-rows.o-setting-rows-danger { --setting-rows-edge: var(--vk-border); }
|
|
4454
|
+
/* Inset (Linear's): 60 tall at least, 15 by 16, the line between rows inset 16 at each end. */
|
|
4455
|
+
:where([data-setting-row-rows="inset"]) :is(.o-setting-rows, .o-setting-row) {
|
|
4456
|
+
--setting-rows-pad: calc(var(--vk-spacing) * 3.75) calc(var(--vk-spacing) * 4); --setting-rows-height: calc(var(--vk-spacing) * 15);
|
|
4457
|
+
--setting-rows-side: calc(var(--vk-spacing) * 15);
|
|
4458
|
+
}
|
|
4274
4459
|
|
|
4275
4460
|
/* ── The card, on a computer: the rows in a box, a line between each ───────────────────────────────────────────────── */
|
|
4276
4461
|
.o-setting-rows:not(.o-field-rows) {
|
|
@@ -4288,14 +4473,15 @@ span.o-number-editor-code { color: var(--vk-fg-subtle); }
|
|
|
4288
4473
|
.o-setting-row:not(.o-field-row):first-child { border-top: 0; }
|
|
4289
4474
|
.o-setting-row:not(.o-field-row) > .o-choice-text { flex: 1 1 auto; }
|
|
4290
4475
|
.o-setting-row:not(.o-field-row) .o-choice-label { font-weight: var(--vk-font-weight-medium); }
|
|
4291
|
-
/* The
|
|
4476
|
+
/* 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
|
|
4477
|
+
(KIT-969), so it takes no pointer and no ground under it. */
|
|
4292
4478
|
button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: left; background-color: transparent; }
|
|
4293
|
-
.o-setting-row
|
|
4294
|
-
@media (hover: hover) { .o-setting-row
|
|
4295
|
-
.o-setting-row:not(.o-field-row)
|
|
4479
|
+
.o-setting-row[data-setting-row-kind="open"]:not(.o-field-row) { cursor: pointer; }
|
|
4480
|
+
@media (hover: hover) { .o-setting-row[data-setting-row-kind="open"]:not(.o-field-row):hover { background-color: var(--vk-hovered); } }
|
|
4481
|
+
.o-setting-row[data-setting-row-kind="open"]:not(.o-field-row)[data-locked] { cursor: not-allowed; background-color: transparent; }
|
|
4296
4482
|
|
|
4297
4483
|
/* Its start: a mark as given; an icon in its box. */
|
|
4298
|
-
.o-setting-row > :not(.o-choice-text) { flex: none; }
|
|
4484
|
+
.o-setting-row > :not(.o-choice-text, .o-setting-row-press) { flex: none; }
|
|
4299
4485
|
.o-setting-row-icon {
|
|
4300
4486
|
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);
|
|
4301
4487
|
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);
|
|
@@ -4311,11 +4497,68 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
4311
4497
|
.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); }
|
|
4312
4498
|
.o-setting-row-chevron { flex: none; width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); color: var(--vk-fg-subtlest); }
|
|
4313
4499
|
/* Locked: its control greyed (a switch keeps its own locked state), its words as they are. */
|
|
4314
|
-
.o-setting-row[data-locked] :is(.o-setting-row-select, .o-button, .o-setting-row-value, .o-setting-row-chevron) { opacity:
|
|
4500
|
+
.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); }
|
|
4315
4501
|
|
|
4316
4502
|
/* A lone row: bare, no card, no line, no room round it. */
|
|
4317
4503
|
.o-setting-row[data-alone]:not(.o-field-row) { min-height: 0; padding: 0; border-top: 0; background-color: transparent; }
|
|
4318
4504
|
|
|
4505
|
+
/* ── Linear's values on a computer ─────────────────────────────────────────────────────────────────────────────────── */
|
|
4506
|
+
/* Edged: a lone row a card of its own, the rows' room in it; an icon on a grey tile, no edge. */
|
|
4507
|
+
:where([data-setting-row-card="edged"]) .o-setting-row[data-alone]:not(.o-field-row) {
|
|
4508
|
+
min-height: var(--setting-rows-height, auto); padding: var(--setting-rows-pad, calc(var(--vk-spacing) * 3.5) calc(var(--vk-spacing) * 4));
|
|
4509
|
+
border: var(--vk-border-width) solid var(--vk-border); border-radius: var(--vk-radius-lg); background-color: var(--vk-raised);
|
|
4510
|
+
}
|
|
4511
|
+
:where([data-setting-row-card="edged"]) .o-setting-row-icon:not(:where([data-vk-phone], [data-vk-phone] *)) {
|
|
4512
|
+
border: 0; border-radius: var(--vk-radius-sm); background-color: var(--vk-neutral);
|
|
4513
|
+
}
|
|
4514
|
+
: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); }
|
|
4515
|
+
/* Inset: the line between rows from 16 in to 16 short, drawn under a row's own ground. */
|
|
4516
|
+
:where([data-setting-row-rows="inset"]) .o-setting-rows:not(.o-field-rows) > :is(.o-setting-row, .o-field) { border-top: 0; }
|
|
4517
|
+
:where([data-setting-row-rows="inset"]) .o-setting-rows:not(.o-field-rows) > * + :is(.o-setting-row, .o-field) {
|
|
4518
|
+
background-image: linear-gradient(var(--vk-border-subtle), var(--vk-border-subtle)); background-repeat: no-repeat;
|
|
4519
|
+
background-size: calc(100% - var(--vk-spacing) * 8) var(--vk-border-width); background-position: calc(var(--vk-spacing) * 4) 0;
|
|
4520
|
+
}
|
|
4521
|
+
/* 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
|
|
4522
|
+
a 24 press in the subtle text. */
|
|
4523
|
+
.o-setting-row:not(.o-field-row) .o-setting-row-act {
|
|
4524
|
+
display: inline-flex; align-items: center; justify-content: center; min-height: calc(var(--vk-spacing) * 7); margin: 0;
|
|
4525
|
+
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);
|
|
4526
|
+
line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); font-weight: var(--vk-font-weight-medium); white-space: nowrap;
|
|
4527
|
+
color: var(--vk-fg); background-color: transparent; cursor: pointer; transition: background-color var(--vk-duration-fast) var(--vk-ease-out);
|
|
4528
|
+
}
|
|
4529
|
+
.o-setting-row:not(.o-field-row) .o-setting-row-act[data-kind="danger"] { color: var(--vk-danger); }
|
|
4530
|
+
.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); }
|
|
4531
|
+
.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); }
|
|
4532
|
+
@media (hover: hover) { .o-setting-row:not(.o-field-row) .o-setting-row-act:hover:not(:disabled) { background-color: var(--vk-hovered); } }
|
|
4533
|
+
.o-setting-row:not(.o-field-row) .o-setting-row-act:disabled { cursor: not-allowed; opacity: var(--vk-opacity-off); }
|
|
4534
|
+
/* A state as a dot in its colour and its words in the text colour; with no colour, its words alone. */
|
|
4535
|
+
.o-setting-row-said {
|
|
4536
|
+
display: inline-flex; align-items: center; gap: calc(var(--vk-spacing) * 1.5); white-space: nowrap; color: var(--vk-fg);
|
|
4537
|
+
font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm));
|
|
4538
|
+
}
|
|
4539
|
+
.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)); }
|
|
4540
|
+
.o-setting-row-dot[data-colour="blue"] { --setting-row-dot: var(--vk-label-blue); }
|
|
4541
|
+
.o-setting-row-dot[data-colour="green"] { --setting-row-dot: var(--vk-label-green); }
|
|
4542
|
+
.o-setting-row-dot[data-colour="amber"] { --setting-row-dot: var(--vk-label-amber); }
|
|
4543
|
+
.o-setting-row-dot[data-colour="red"] { --setting-row-dot: var(--vk-label-red); }
|
|
4544
|
+
.o-setting-row-dot[data-colour="purple"] { --setting-row-dot: var(--vk-label-purple); }
|
|
4545
|
+
.o-setting-row-dot[data-colour="pink"] { --setting-row-dot: var(--vk-label-pink); }
|
|
4546
|
+
.o-setting-row-dot[data-colour="teal"] { --setting-row-dot: var(--vk-label-teal); }
|
|
4547
|
+
/* A locked row under Words: its words greyed, its reason at the row's size. */
|
|
4548
|
+
: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); }
|
|
4549
|
+
: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)); }
|
|
4550
|
+
/* 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
|
|
4551
|
+
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. */
|
|
4552
|
+
.o-setting-row-field > .o-choice-text { flex: 1 1 auto; min-width: 0; }
|
|
4553
|
+
.o-setting-row-field .o-setting-row-error { color: var(--vk-danger); }
|
|
4554
|
+
.o-setting-row-field > .o-setting-row-end > :is(.o-input, .o-input-group) { width: calc(var(--vk-spacing) * 64); }
|
|
4555
|
+
: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); }
|
|
4556
|
+
:where([data-setting-row-fields="end"]) :is(.o-setting-row-select, .o-setting-row-end .o-select) { width: auto; }
|
|
4557
|
+
:where([data-setting-row-fields="end"]) :is(.o-setting-row-select, .o-setting-row-end .o-select) .o-select-field { width: auto; }
|
|
4558
|
+
/* Boxes: a Field placed in a computer's card stands as a row, the rows' room round it and the line above it. */
|
|
4559
|
+
.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); }
|
|
4560
|
+
.o-setting-rows:not(.o-field-rows) > .o-field:first-child { border-top: 0; }
|
|
4561
|
+
|
|
4319
4562
|
/* ── On a phone: Field rows' card and rows; a setting's words, value and › in them ─────────────────────────────────── */
|
|
4320
4563
|
.o-setting-row.o-field-row > .o-choice-text { flex: 1 1 auto; }
|
|
4321
4564
|
.o-setting-row-press {
|
|
@@ -4323,8 +4566,54 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
4323
4566
|
border: 0; font: inherit; color: inherit; text-align: left; background-color: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
|
|
4324
4567
|
}
|
|
4325
4568
|
.o-setting-row.o-field-row .o-setting-row-end { flex: 0 1 auto; }
|
|
4326
|
-
.o-setting-row.o-field-row .o-setting-row-value { overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
|
|
4327
|
-
.o-setting-rows-danger.o-field-rows .o-choice-label { color: var(--vk-danger); }
|
|
4569
|
+
.o-setting-row.o-field-row .o-setting-row-value { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
|
4570
|
+
.o-setting-rows-danger.o-field-rows :is(.o-choice-label, .o-setting-row-icon) { color: var(--vk-danger); }
|
|
4571
|
+
.o-setting-row.o-field-row .o-setting-row-end { gap: calc(var(--vk-spacing) * 3); }
|
|
4572
|
+
.o-setting-row.o-field-row .o-setting-row-value { max-width: calc(var(--vk-spacing) * 47.5); color: var(--vk-fg-subtlest); }
|
|
4573
|
+
.o-setting-row-chevron[data-phone] {
|
|
4574
|
+
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);
|
|
4575
|
+
}
|
|
4576
|
+
/* 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
|
|
4577
|
+
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. */
|
|
4578
|
+
.o-setting-rows.o-field-rows:has(> .o-setting-row[data-setting-row-start]) { --setting-rows-start: calc(var(--vk-spacing) * 7); }
|
|
4579
|
+
.o-setting-rows.o-field-rows:has(> .o-setting-row[data-setting-row-start="mark"]) { --setting-rows-start: calc(var(--vk-spacing) * 8); }
|
|
4580
|
+
.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)); }
|
|
4581
|
+
.o-setting-rows.o-field-rows:has(> .o-setting-row[data-setting-row-start]) > .o-setting-row + .o-setting-row {
|
|
4582
|
+
background-position: calc(var(--vk-spacing) * 7 + var(--setting-rows-start)) 0;
|
|
4583
|
+
background-size: calc(100% - var(--vk-spacing) * 7 - var(--setting-rows-start) - var(--field-rows-line-end, 0px)) var(--vk-border-width);
|
|
4584
|
+
}
|
|
4585
|
+
/* A button's words at the row's end, a press of their own, a finger's height. */
|
|
4586
|
+
.o-setting-row-act {
|
|
4587
|
+
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);
|
|
4588
|
+
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;
|
|
4589
|
+
}
|
|
4590
|
+
.o-setting-row-act:focus-visible { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: var(--vk-focus-offset); }
|
|
4591
|
+
.o-setting-row-act:disabled { cursor: not-allowed; }
|
|
4592
|
+
/* A lone row: the row the press, its name in the link colour. */
|
|
4593
|
+
.o-setting-row.o-field-row[data-alone] .o-choice-label { color: var(--vk-fg-brand); }
|
|
4594
|
+
/* Locked: faded, but its line (the reason) kept; its Switch fades itself (switch.css). */
|
|
4595
|
+
.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),
|
|
4596
|
+
.o-setting-row.o-field-row[data-locked] > :first-child:not(.o-choice-text, .o-setting-row-press),
|
|
4597
|
+
.o-setting-row.o-field-row[data-locked] > .o-setting-row-press > :first-child:not(.o-choice-text) { opacity: var(--vk-opacity-off); }
|
|
4598
|
+
|
|
4599
|
+
/* ── 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
|
|
4600
|
+
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
|
|
4601
|
+
icons stay lines. Drawn wherever it stands on a phone, a row's start or a list's (SettingIcon). ─────────────────────────── */
|
|
4602
|
+
.o-setting-row-icon:where([data-vk-phone], [data-vk-phone] *) {
|
|
4603
|
+
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);
|
|
4604
|
+
}
|
|
4605
|
+
.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); }
|
|
4606
|
+
:where([data-setting-row-icon="tile"]) .o-setting-row-icon:where([data-vk-phone], [data-vk-phone] *):not(.o-setting-rows-danger *) {
|
|
4607
|
+
border-radius: var(--vk-radius-md); background-color: var(--setting-row-tile, var(--vk-fg-subtlest)); color: var(--vk-fg-inverse);
|
|
4608
|
+
}
|
|
4609
|
+
: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); }
|
|
4610
|
+
.o-setting-row-icon[data-colour="blue"] { --setting-row-tile: var(--vk-label-blue); }
|
|
4611
|
+
.o-setting-row-icon[data-colour="green"] { --setting-row-tile: var(--vk-label-green); }
|
|
4612
|
+
.o-setting-row-icon[data-colour="amber"] { --setting-row-tile: var(--vk-label-amber); }
|
|
4613
|
+
.o-setting-row-icon[data-colour="red"] { --setting-row-tile: var(--vk-label-red); }
|
|
4614
|
+
.o-setting-row-icon[data-colour="purple"] { --setting-row-tile: var(--vk-label-purple); }
|
|
4615
|
+
.o-setting-row-icon[data-colour="pink"] { --setting-row-tile: var(--vk-label-pink); }
|
|
4616
|
+
.o-setting-row-icon[data-colour="teal"] { --setting-row-tile: var(--vk-label-teal); }
|
|
4328
4617
|
|
|
4329
4618
|
@media (prefers-reduced-motion: reduce) { .o-setting-row { transition: none; } }
|
|
4330
4619
|
|
|
@@ -4333,13 +4622,13 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
4333
4622
|
control's is. Nothing stands outside it (its rows were hidden past its edge), so it is clipped itself, its rows with it; its
|
|
4334
4623
|
edge is a ring along the curve over its rows (::after), in the card's edge colour. ── */
|
|
4335
4624
|
@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)) {
|
|
4336
|
-
.o-setting-rows:not(.o-field-rows) {
|
|
4625
|
+
.o-setting-rows:not(.o-field-rows), :where([data-setting-row-card="edged"]) .o-setting-row[data-alone]:not(.o-field-row) {
|
|
4337
4626
|
--smooth-amount: var(--vk-corner-smoothing);
|
|
4338
4627
|
--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)));
|
|
4339
4628
|
--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)));
|
|
4340
4629
|
position: relative; overflow: visible; border-color: transparent; border-radius: var(--setting-rows-fit); clip-path: shape(var(--smooth-outline));
|
|
4341
4630
|
}
|
|
4342
|
-
.o-setting-rows:not(.o-field-rows)::after {
|
|
4631
|
+
.o-setting-rows:not(.o-field-rows)::after, :where([data-setting-row-card="edged"]) .o-setting-row[data-alone]:not(.o-field-row)::after {
|
|
4343
4632
|
--smooth-t: max(0px, var(--setting-rows-fit) - var(--vk-border-width)); --smooth-in: var(--vk-border-width);
|
|
4344
4633
|
content: ""; position: absolute; inset: calc(var(--vk-border-width) * -1); z-index: 1; pointer-events: none;
|
|
4345
4634
|
background-color: var(--setting-rows-edge, var(--vk-border)); clip-path: shape(var(--smooth-ring));
|
|
@@ -4525,6 +4814,9 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
4525
4814
|
sideways (a full Sheet's body scrolls, and a step's slide would otherwise widen it). */
|
|
4526
4815
|
.o-sheet-step { outline: none; }
|
|
4527
4816
|
.o-sheet-body:has(.o-sheet-step) { overflow-x: hidden; }
|
|
4817
|
+
/* A head that heads a step slides in with it: what stands in its row, its ground (the soft edge) staying still. */
|
|
4818
|
+
.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); }
|
|
4819
|
+
.o-sheet-row[data-step="back"] > :not(.o-hd-bar-edge) { --step-from: calc(var(--vk-spacing) * -6); }
|
|
4528
4820
|
|
|
4529
4821
|
/* Less motion: a fade, no scale. */
|
|
4530
4822
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -4532,7 +4824,7 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
4532
4824
|
.o-sheet:is([data-starting-style], [data-ending-style]) { opacity: 0; transform: translateY(var(--drawer-snap-point-offset, 0px)); }
|
|
4533
4825
|
.o-sheet[data-nested-drawer-open] { scale: 1; }
|
|
4534
4826
|
.o-sheet-backdrop { transition: opacity var(--vk-duration-base) var(--vk-ease-out); }
|
|
4535
|
-
.o-sheet-step { animation: none; }
|
|
4827
|
+
.o-sheet-step, .o-sheet-row[data-step] > :not(.o-hd-bar-edge) { animation: none; }
|
|
4536
4828
|
}
|
|
4537
4829
|
|
|
4538
4830
|
.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)); }
|
|
@@ -4551,7 +4843,13 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
4551
4843
|
.o-sort-editor-grip { flex: none; touch-action: none; }
|
|
4552
4844
|
.o-sort-editor-field, .o-sort-editor-direction { position: relative; flex: none; min-width: 0; }
|
|
4553
4845
|
.o-sort-editor-field { width: calc(var(--vk-spacing) * 52); }
|
|
4554
|
-
|
|
4846
|
+
/* 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
|
|
4847
|
+
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).
|
|
4848
|
+
Never under 152, so English's Descending draws as it did; never past 240, the filter editor's boxes' (filter-editor.css), a
|
|
4849
|
+
longer word then ending in "…" (the Select's own words cut). An app's own width on the box still wins. */
|
|
4850
|
+
.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); }
|
|
4851
|
+
.o-sort-editor-direction > :is(.o-select, .o-sort-editor-why), .o-sort-editor-fit, .o-sort-editor-fit > * { grid-area: 1 / 1; }
|
|
4852
|
+
.o-sort-editor-fit { display: grid; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; }
|
|
4555
4853
|
.o-sort-editor-field > .o-select, .o-sort-editor-direction > .o-select { width: 100%; }
|
|
4556
4854
|
.o-sort-editor-remove { flex: none; }
|
|
4557
4855
|
|
|
@@ -4905,14 +5203,10 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
4905
5203
|
.o-switch-row {
|
|
4906
5204
|
display: flex; align-items: center; justify-content: space-between; gap: calc(var(--vk-spacing) * 4);
|
|
4907
5205
|
padding: calc(var(--vk-spacing) * 3.5) calc(var(--vk-spacing) * 4); border-top: var(--vk-border-width) solid var(--vk-border-subtle);
|
|
4908
|
-
|
|
5206
|
+
-webkit-tap-highlight-color: transparent;
|
|
4909
5207
|
}
|
|
4910
5208
|
.o-switch-row:first-child { border-top: 0; }
|
|
4911
|
-
@media (hover: hover) { .o-switch-row:hover { background-color: var(--vk-hovered); } }
|
|
4912
5209
|
.o-switch-row .o-choice-label { font-weight: var(--vk-font-weight-medium); }
|
|
4913
|
-
.o-switch-row:has(.o-switch[data-disabled]) { cursor: not-allowed; background-color: transparent; }
|
|
4914
|
-
|
|
4915
|
-
@media (prefers-reduced-motion: reduce) { .o-switch-row { transition: none; } }
|
|
4916
5210
|
/* ── The rows' card smooth: following the token corner-smoothing, drawn with the smooth outline (smooth.css) in every browser
|
|
4917
5211
|
that knows shape(); one that doesn't keeps the corners above. Its round part is fitted to one row, as a control's is.
|
|
4918
5212
|
Nothing stands outside it (its rows were hidden past its edge), so it is clipped itself, its rows with it, hiding nothing
|
|
@@ -4986,21 +5280,26 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
4986
5280
|
}
|
|
4987
5281
|
|
|
4988
5282
|
/* ── 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
|
|
4989
|
-
lg draws it anywhere: Round (after iOS 18), 31 × 51 with a 27 thumb; or Capsule (after iOS 26
|
|
4990
|
-
|
|
5283
|
+
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
|
|
5284
|
+
nothing picked draws, 28 × 63, its thumb 24 × 37 two in.
|
|
5285
|
+
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 ── */
|
|
4991
5286
|
.o-switch.o-switch-sm { --sw-u: 0.8; }
|
|
4992
5287
|
.o-switch.o-switch-lg {
|
|
4993
5288
|
--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%;
|
|
4994
5289
|
--sw-rest: var(--vk-neutral); --sw-hover: var(--vk-neutral-hovered); --sw-edge-rest: transparent; --sw-edge-hover: transparent;
|
|
4995
5290
|
--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);
|
|
4996
5291
|
}
|
|
4997
|
-
[data-switch-phone="capsule"] .o-switch.o-switch-lg, .o-switch.o-switch-lg:not([data-switch-phone] *) {
|
|
5292
|
+
[data-switch-phone="capsule"] .o-switch.o-switch-lg, .o-switch.o-switch-lg:not([data-switch-phone] *) {
|
|
5293
|
+
--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);
|
|
5294
|
+
}
|
|
4998
5295
|
.o-switch:not(.o-switch-sm):where([data-vk-phone], [data-vk-phone] *) {
|
|
4999
5296
|
--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%;
|
|
5000
5297
|
--sw-rest: var(--vk-neutral); --sw-hover: var(--vk-neutral-hovered); --sw-edge-rest: transparent; --sw-edge-hover: transparent;
|
|
5001
|
-
--sw-on-track: var(--sw-on); --sw-thumb-rest: var(--vk-fg-inverse); --sw-thumb-on: var(--vk-fg-
|
|
5298
|
+
--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);
|
|
5299
|
+
}
|
|
5300
|
+
[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] *) {
|
|
5301
|
+
--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);
|
|
5002
5302
|
}
|
|
5003
|
-
[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); }
|
|
5004
5303
|
|
|
5005
5304
|
/* ── Motion. Stretch while held, the kit's until duration-base on ease-in-out, the thumb a spacing step longer toward
|
|
5006
5305
|
where it is going while pressed. Spring: it runs a little past and settles. Stretch as it goes: its front edge leaves first
|
|
@@ -5013,7 +5312,7 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
5013
5312
|
/* ── Under the pointer, on the track or its row: its shape's deeper paint; on, a deeper brand ─────────────────────────── */
|
|
5014
5313
|
/* 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. */
|
|
5015
5314
|
.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); }
|
|
5016
|
-
@media (hover: hover) {
|
|
5315
|
+
@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); } }
|
|
5017
5316
|
|
|
5018
5317
|
/* ── On: the brand fills the track, the thumb crosses, its front edge in lead and its back in trail ───────────────────── */
|
|
5019
5318
|
.o-switch[data-checked] { --sw-paint: var(--sw-on-track); --sw-ring: var(--sw-on-track); }
|
|
@@ -5061,7 +5360,7 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
5061
5360
|
colour fills it. The pointer never takes it away; focus rings it in red; disabled wins ─────────────────────────────── */
|
|
5062
5361
|
.o-switch:is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *):not([data-disabled]),
|
|
5063
5362
|
.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); }
|
|
5064
|
-
@media (hover: hover) {
|
|
5363
|
+
@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); } }
|
|
5065
5364
|
.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); }
|
|
5066
5365
|
.o-switch:is(:focus-visible, [data-force="focus"]):is([aria-invalid="true"], [data-invalid], .o-fieldset[data-invalid] *) { outline-color: var(--vk-border-danger); }
|
|
5067
5366
|
|
|
@@ -5074,6 +5373,11 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
5074
5373
|
--sw-knob: var(--vk-fg-disabled); --sw-knob-on: var(--vk-fg-disabled); --sw-knob-shadow: none; cursor: not-allowed;
|
|
5075
5374
|
}
|
|
5076
5375
|
.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); }
|
|
5376
|
+
/* On a phone, locked is iOS's: the switch as it stands, faded, with no lock in its thumb (KIT-972). */
|
|
5377
|
+
.o-switch[data-disabled][data-locked]:where([data-vk-phone], [data-vk-phone] *) {
|
|
5378
|
+
--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;
|
|
5379
|
+
}
|
|
5380
|
+
.o-switch[data-disabled][data-locked]:where([data-vk-phone], [data-vk-phone] *) > .o-switch-thumb > .o-switch-lock { display: none; }
|
|
5077
5381
|
|
|
5078
5382
|
@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; } }
|
|
5079
5383
|
|
|
@@ -5084,6 +5388,25 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
5084
5388
|
.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); }
|
|
5085
5389
|
.o-input-control.o-tag-field-input { align-self: center; min-width: calc(var(--vk-spacing) * 20); }
|
|
5086
5390
|
|
|
5391
|
+
/* ── 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
|
|
5392
|
+
field. Its tokens fill the row from its words' inset, 6 apart, 12 above and below, wrapping as they grow, the caret after the
|
|
5393
|
+
last (the Input typed in place, input.css). Its label names the box but stands out of sight: its place titles the group. Each
|
|
5394
|
+
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
|
|
5395
|
+
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
|
|
5396
|
+
the Tag's own. ── */
|
|
5397
|
+
.o-field.o-field-row.o-tag-field-row { position: relative; }
|
|
5398
|
+
.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; }
|
|
5399
|
+
.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); }
|
|
5400
|
+
.o-input.o-input-inrow.o-tag-field > .o-tag.o-tag {
|
|
5401
|
+
--tag-h: calc(var(--vk-spacing) * 7.5); --tag-r: var(--vk-radius-full);
|
|
5402
|
+
max-width: 100%; padding: 0 calc(var(--vk-spacing) * 2.5); border-radius: var(--tag-r); background-color: var(--vk-neutral); box-shadow: none;
|
|
5403
|
+
font-size: inherit; font-weight: var(--vk-font-weight-normal);
|
|
5404
|
+
}
|
|
5405
|
+
/* A pill has no corner to smooth: the token paints its own ground, and its cut (the smooth ground and edge) stands down. */
|
|
5406
|
+
.o-input-inrow.o-tag-field > .o-tag > :is(.o-tag-cut, .o-tag-icon) { display: none; }
|
|
5407
|
+
/* Once a token stands, the caret alone after it: the placeholder only asks while the row is empty. */
|
|
5408
|
+
.o-input-inrow.o-tag-field:has(> .o-tag) > .o-tag-field-input::placeholder { color: transparent; }
|
|
5409
|
+
|
|
5087
5410
|
/* ── A tag: 22px, its edge drawn inside, the icon then the word; a long word cut at 200px. Its ground, edge, height and corner
|
|
5088
5411
|
are variables, which the Option's looks and states set, so its cut draws them under Smooth: --tag-ground (none),
|
|
5089
5412
|
--tag-edge, --tag-h, --tag-r, and --tag-rr, the corner its height leaves room for; --tag-shadow: none where a look draws no
|
|
@@ -5099,6 +5422,8 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
5099
5422
|
/* 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
|
|
5100
5423
|
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. */
|
|
5101
5424
|
.o-tag-word { overflow: hidden; text-overflow: ellipsis; line-height: var(--tag-h); }
|
|
5425
|
+
/* A quiet word after its name ("main"): the quieter colour, the normal weight. */
|
|
5426
|
+
.o-tag-aside { flex: none; color: var(--vk-fg-subtle); font-weight: var(--vk-font-weight-normal); line-height: var(--tag-h); }
|
|
5102
5427
|
.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; }
|
|
5103
5428
|
/* Small, in dense rows; a count for the rest, its number in the quieter colour. */
|
|
5104
5429
|
.o-tag.o-tag-sm { --tag-h: calc(var(--vk-spacing) * 5); padding: 0 calc(var(--vk-spacing) * 1.5); }
|
|
@@ -5403,6 +5728,10 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
5403
5728
|
.o-toolbar-button-count { margin-left: var(--vk-spacing); color: var(--vk-fg-subtle); font-variant-numeric: tabular-nums; }
|
|
5404
5729
|
.o-toolbar-button-count[data-alone] { margin-left: 0; }
|
|
5405
5730
|
|
|
5731
|
+
/* The words of a value it waits for (a filter's "Choose"), in the placeholder's colour: ViewKit's ToolbarButton atom drawn with it
|
|
5732
|
+
(CONTROL_ATOMS) wraps them. */
|
|
5733
|
+
.o-toolbar-button-waits { color: var(--vk-fg-subtle); }
|
|
5734
|
+
|
|
5406
5735
|
/* A dot at its top end corner, in the brand: something applied with no number. Drawn with ::before, since the pressing area takes
|
|
5407
5736
|
::after on a phone (its pressing area). */
|
|
5408
5737
|
.o-button.o-toolbar-button[data-dot]::before {
|
|
@@ -5454,6 +5783,10 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
5454
5783
|
|
|
5455
5784
|
/* What a line holds keeps its width; only a text box gives some up, from its own width down to its narrowest. */
|
|
5456
5785
|
.o-toolbar-line > * { flex: none; }
|
|
5786
|
+
/* 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
|
|
5787
|
+
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
|
|
5788
|
+
gives way. */
|
|
5789
|
+
.o-toolbar[data-fill] > .o-toolbar-line[data-line="row"] > .o-button:not(.o-button-icon, .o-button-round) { flex: 1 0 auto; }
|
|
5457
5790
|
.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); }
|
|
5458
5791
|
|
|
5459
5792
|
/* 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. */
|
|
@@ -6263,6 +6596,9 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
6263
6596
|
.max-h-96 {
|
|
6264
6597
|
max-height: calc(4px * 96);
|
|
6265
6598
|
}
|
|
6599
|
+
.min-h-\(--vk-field-row-h\,auto\) {
|
|
6600
|
+
min-height: var(--vk-field-row-h,auto);
|
|
6601
|
+
}
|
|
6266
6602
|
.min-h-0 {
|
|
6267
6603
|
min-height: 0px;
|
|
6268
6604
|
}
|
|
@@ -6518,6 +6854,9 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
6518
6854
|
.grid-cols-\[auto_minmax\(0\,1fr\)_auto\] {
|
|
6519
6855
|
grid-template-columns: auto minmax(0,1fr) auto;
|
|
6520
6856
|
}
|
|
6857
|
+
.grid-cols-\[auto_var\(--vk-field-row-label-w\,calc\(var\(--spacing\)\*32\)\)_minmax\(0\,1fr\)_auto\] {
|
|
6858
|
+
grid-template-columns: auto var(--vk-field-row-label-w,calc(4px * 32)) minmax(0,1fr) auto;
|
|
6859
|
+
}
|
|
6521
6860
|
.grid-rows-\[auto\] {
|
|
6522
6861
|
grid-template-rows: auto;
|
|
6523
6862
|
}
|
|
@@ -6533,6 +6872,9 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
6533
6872
|
.place-content-center {
|
|
6534
6873
|
place-content: center;
|
|
6535
6874
|
}
|
|
6875
|
+
.content-center {
|
|
6876
|
+
align-content: center;
|
|
6877
|
+
}
|
|
6536
6878
|
.content-start {
|
|
6537
6879
|
align-content: flex-start;
|
|
6538
6880
|
}
|
|
@@ -6588,15 +6930,15 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
6588
6930
|
margin-block-start: calc(calc(4px * 3) * var(--tw-space-y-reverse));
|
|
6589
6931
|
margin-block-end: calc(calc(4px * 3) * calc(1 - var(--tw-space-y-reverse)));
|
|
6590
6932
|
}
|
|
6933
|
+
.gap-x-\(--vk-field-row-gap\,calc\(var\(--spacing\)\*3\)\) {
|
|
6934
|
+
column-gap: var(--vk-field-row-gap,calc(4px * 3));
|
|
6935
|
+
}
|
|
6591
6936
|
.gap-x-1\.5 {
|
|
6592
6937
|
column-gap: calc(4px * 1.5);
|
|
6593
6938
|
}
|
|
6594
6939
|
.gap-x-2 {
|
|
6595
6940
|
column-gap: calc(4px * 2);
|
|
6596
6941
|
}
|
|
6597
|
-
.gap-x-3 {
|
|
6598
|
-
column-gap: calc(4px * 3);
|
|
6599
|
-
}
|
|
6600
6942
|
.gap-y-0\.5 {
|
|
6601
6943
|
row-gap: calc(4px * 0.5);
|
|
6602
6944
|
}
|
|
@@ -6698,6 +7040,10 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
6698
7040
|
border-bottom-style: var(--tw-border-style);
|
|
6699
7041
|
border-bottom-width: 1px;
|
|
6700
7042
|
}
|
|
7043
|
+
.border-b-\(length\:--vk-field-row-line-w\,1px\) {
|
|
7044
|
+
border-bottom-style: var(--tw-border-style);
|
|
7045
|
+
border-bottom-width: var(--vk-field-row-line-w,1px);
|
|
7046
|
+
}
|
|
6701
7047
|
.border-l-\(length\:--vk-thick-line\,2px\) {
|
|
6702
7048
|
border-left-style: var(--tw-border-style);
|
|
6703
7049
|
border-left-width: var(--vk-thick-line,2px);
|
|
@@ -6722,6 +7068,9 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
6722
7068
|
.border-\(color\:--vk-brand\) {
|
|
6723
7069
|
border-color: var(--vk-brand);
|
|
6724
7070
|
}
|
|
7071
|
+
.border-\(color\:--vk-field-row-line\,var\(--vk-border\)\) {
|
|
7072
|
+
border-color: var(--vk-field-row-line,var(--vk-border));
|
|
7073
|
+
}
|
|
6725
7074
|
.border-\(color\:--vk-ground\) {
|
|
6726
7075
|
border-color: var(--vk-ground);
|
|
6727
7076
|
}
|
|
@@ -6988,6 +7337,9 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
6988
7337
|
.px-4 {
|
|
6989
7338
|
padding-inline: calc(4px * 4);
|
|
6990
7339
|
}
|
|
7340
|
+
.py-\(--vk-field-row-py\,calc\(var\(--spacing\)\*2\.5\)\) {
|
|
7341
|
+
padding-block: var(--vk-field-row-py,calc(4px * 2.5));
|
|
7342
|
+
}
|
|
6991
7343
|
.py-0 {
|
|
6992
7344
|
padding-block: 0px;
|
|
6993
7345
|
}
|
|
@@ -7250,6 +7602,9 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
7250
7602
|
.text-\(color\:--vk-fg-subtlest\) {
|
|
7251
7603
|
color: var(--vk-fg-subtlest);
|
|
7252
7604
|
}
|
|
7605
|
+
.text-\(color\:--vk-field-row-label-fg\,var\(--vk-fg-subtle\)\) {
|
|
7606
|
+
color: var(--vk-field-row-label-fg,var(--vk-fg-subtle));
|
|
7607
|
+
}
|
|
7253
7608
|
.text-\(color\:--vk-head-glyph-fg\,currentColor\) {
|
|
7254
7609
|
color: var(--vk-head-glyph-fg,currentColor);
|
|
7255
7610
|
}
|
|
@@ -8412,8 +8767,10 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
8412
8767
|
--vk-font-size-2xl: 24px;
|
|
8413
8768
|
--vk-font-size-2xs: 10px;
|
|
8414
8769
|
--vk-font-size-3xs: 8px;
|
|
8770
|
+
--vk-font-size-4xl: 36px;
|
|
8415
8771
|
--vk-font-size-xl: 20px;
|
|
8416
8772
|
--vk-font-size-xs: 12px;
|
|
8773
|
+
--vk-radius-4xl: 33.33px;
|
|
8417
8774
|
--vk-radius-md: 7.5px;
|
|
8418
8775
|
--vk-radius-sm: 5px;
|
|
8419
8776
|
--vk-radius-xs: 2.5px;
|
|
@@ -8530,13 +8887,14 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
8530
8887
|
--vk-scrollbar-thumb: hsl(210 1% 82%);
|
|
8531
8888
|
--vk-scrollbar-thumb-hovered: hsl(210 1% 72%);
|
|
8532
8889
|
--vk-scrollbar-hold: 1000ms;
|
|
8890
|
+
--vk-icon-disclosure: hsl(210 1% 72%);
|
|
8891
|
+
--vk-opacity-off: 0.45;
|
|
8533
8892
|
--vk-backdrop-sheet: hsl(214 30% 10% / 0.3);
|
|
8534
8893
|
--vk-backdrop-sheet-light: hsl(214 30% 10% / 0.15);
|
|
8535
8894
|
--vk-backdrop-stacked: hsl(214 30% 10% / 0.2);
|
|
8536
8895
|
--vk-sheet-handle: hsl(210 1% 72%);
|
|
8537
8896
|
--vk-spring-exit: 120px;
|
|
8538
8897
|
--vk-spring-past: 12px;
|
|
8539
|
-
--vk-radius-4xl: 33.33px;
|
|
8540
8898
|
--vk-radius-5xl: 40px;
|
|
8541
8899
|
--vk-spring-smooth: 500ms 1;
|
|
8542
8900
|
--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);
|
|
@@ -8771,6 +9129,7 @@ button.o-setting-row { width: 100%; font: inherit; color: inherit; text-align: l
|
|
|
8771
9129
|
--vk-header: hsl(210 6% 7%);
|
|
8772
9130
|
--vk-scrollbar-thumb: hsl(210 2% 26.5%);
|
|
8773
9131
|
--vk-scrollbar-thumb-hovered: hsl(210 1% 37%);
|
|
9132
|
+
--vk-icon-disclosure: hsl(210 1% 37%);
|
|
8774
9133
|
--vk-backdrop-sheet: hsl(0 0% 0% / 0.45);
|
|
8775
9134
|
--vk-backdrop-sheet-light: hsl(0 0% 0% / 0.22);
|
|
8776
9135
|
--vk-backdrop-stacked: hsl(0 0% 0% / 0.3);
|