viewkitjs 0.23.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/package.json +1 -1
  3. package/views/dist/controls/grip/grip.d.ts +14 -0
  4. package/views/dist/controls/grip/grip.js +9 -0
  5. package/views/dist/controls/index.d.ts +6 -0
  6. package/views/dist/controls/index.js +6 -0
  7. package/views/dist/controls/internal/hold.d.ts +25 -0
  8. package/views/dist/controls/internal/hold.js +81 -0
  9. package/views/dist/controls/internal/icons.d.ts +8 -0
  10. package/views/dist/controls/internal/icons.js +65 -0
  11. package/views/dist/controls/internal/read-token.d.ts +6 -0
  12. package/views/dist/controls/internal/read-token.js +11 -0
  13. package/views/dist/controls/internal/reorder.d.ts +44 -0
  14. package/views/dist/controls/internal/reorder.js +83 -0
  15. package/views/dist/controls/list/tokens.d.ts +139 -0
  16. package/views/dist/controls/list/tokens.js +37 -0
  17. package/views/dist/controls/list.css +188 -0
  18. package/views/dist/controls/menu-list/keys.d.ts +7 -0
  19. package/views/dist/controls/menu-list/keys.js +29 -0
  20. package/views/dist/controls/menu-list/looks.d.ts +4 -0
  21. package/views/dist/controls/menu-list/looks.js +20 -0
  22. package/views/dist/controls/menu-list/menu-list.d.ts +196 -0
  23. package/views/dist/controls/menu-list/menu-list.js +346 -0
  24. package/views/dist/controls/menu-list/tokens.d.ts +187 -0
  25. package/views/dist/controls/menu-list/tokens.js +49 -0
  26. package/views/dist/controls/menu-list.css +259 -0
  27. package/views/dist/controls/sheet/bottom-sheet.js +3 -0
  28. package/views/dist/controls/sheet.css +3 -0
  29. package/views/dist/controls/tokens.js +4 -0
  30. package/views/dist/grid/chrome/grid-caret-keys.d.ts +7 -0
  31. package/views/dist/grid/chrome/grid-caret-keys.js +22 -0
  32. package/views/dist/grid/chrome/useGridFittedWidths.d.ts +3 -0
  33. package/views/dist/grid/chrome/useGridFittedWidths.js +16 -3
  34. package/views/dist/grid/chrome/useGridKeyboard.js +3 -0
  35. package/views/dist/looks/index.d.ts +1 -0
  36. package/views/dist/looks/index.js +1 -0
  37. package/views/dist/looks/looks.d.ts +10 -9
  38. package/views/dist/looks/pieces.js +2 -0
  39. package/views/dist/styles.css +443 -11
  40. package/views/dist/styles.unlayered.css +443 -11
  41. package/views/docs/controls/list.md +40 -0
  42. package/views/docs/controls/menu-list.md +52 -0
  43. package/views/docs/getting-started.md +1 -1
  44. package/views/docs/reference/controls.md +40 -0
  45. package/views/docs/reference/looks.md +3 -1
@@ -1,4 +1,4 @@
1
- /*! viewkitjs 0.23.0 · viewkitjs/views/styles.unlayered.css: ViewKit's look, its defaults the Outright look */
1
+ /*! viewkitjs 0.24.0 · viewkitjs/views/styles.unlayered.css: ViewKit's look, its defaults the Outright look */
2
2
 
3
3
  @layer base {
4
4
  @layer viewkit {:where(*):where([data-slot^="vk-"], [data-vk-body], [data-slot^="vk-"] *, [data-vk-body] *),
@@ -1585,6 +1585,422 @@ textarea.o-input-control.o-input-lines { flex: none; min-height: 0; max-height:
1585
1585
  .o-keys { display: inline-flex; align-items: center; gap: calc(var(--vk-spacing) * 0.75); font: inherit; }
1586
1586
  .o-keys-then { margin: 0 calc(var(--vk-spacing) * 1); font-size: var(--vk-font-size-xs); color: var(--vk-fg-subtlest); }
1587
1587
 
1588
+ /* ── The list's options (a select's options, which name them): set on the
1589
+ frame around a list as custom properties, which every list inside it reads, the Select's list and the Menu's panel whole, and
1590
+ the Picker on a computer whole, its rows and its Popover's panel. Each value chooses a token. Unset, a list draws as built.
1591
+ data-list-smoothing smooth · round the smooth outline, or round
1592
+ data-list-edge subtle · outline · none border-subtle, border, or none; the dividers wear its colour,
1593
+ border-subtle with none (Mihai, 14 Nov 2026)
1594
+ data-list-shadow none · xs · sm · md · lg · xl the shadow tokens' steps
1595
+ data-list-padding 0 · 2 · 4 · 6 · 8 its rows' inset; at 0 they run edge to edge, square
1596
+ data-list-rows 28 · 30 · … · 40, by 2 a row's height on a computer; the phone's stays 44
1597
+ data-list-highlight fill · brand the overlay's hover, or the brand's tint
1598
+ data-list-row-corners input · 0 · xs … xl · full a row's corners: the Input box's, or a step of their own, the rows alone
1599
+ data-list-intensity 1 · 2 · 3 how strong the highlight is
1600
+ data-list-dividers words · rows · full a line between groups: inset (the default) from
1601
+ where a row's content starts (its mark, or its words), as far in at the end,
1602
+ as wide as the rows, or edge to edge; every line inside a floating surface
1603
+ alike, the popup line's, the Date editor's and the Values editor's
1604
+ Its corners follow the Input's (Mihai, 14 Nov 2026): a row takes the Input box's corners whatever the padding, and the panel the
1605
+ box's plus its padding, so the two curves run alike; a Pill box's rows are round at their ends, its panel 2xl and the padding.
1606
+ Row corners moves the rows alone: the panel keeps the box's corners and its padding (Mihai, 14 Nov 2026). ── */
1607
+ [data-input-radius="xs"] { --list-box-r: var(--vk-radius-xs); --list-box-pill: 0; }
1608
+ [data-input-radius="sm"] { --list-box-r: var(--vk-radius-sm); --list-box-pill: 0; }
1609
+ [data-input-radius="md"] { --list-box-r: var(--vk-radius-md); --list-box-pill: 0; }
1610
+ [data-input-radius="lg"] { --list-box-r: var(--vk-radius-lg); --list-box-pill: 0; }
1611
+ [data-input-radius="xl"] { --list-box-r: var(--vk-radius-xl); --list-box-pill: 0; }
1612
+ [data-input-radius="2xl"] { --list-box-r: var(--vk-radius-2xl); --list-box-pill: 0; }
1613
+ /* A Pill box's rows are pills, and its panel keeps its 2xl (--list-box-pill says so, under the list's Smooth). */
1614
+ [data-input-radius="full"] { --list-box-r: var(--vk-radius-2xl); --list-box-pill: 1; }
1615
+ [data-list-edge="outline"] { --list-edge: var(--vk-border); --list-sep-colour: var(--vk-border); }
1616
+ [data-list-edge="none"] { --list-edge: transparent; }
1617
+ [data-list-shadow="none"] { --list-shadow: none; }
1618
+ [data-list-shadow="xs"] { --list-shadow: var(--vk-shadow-xs); }
1619
+ [data-list-shadow="sm"] { --list-shadow: var(--vk-shadow-sm); }
1620
+ [data-list-shadow="lg"] { --list-shadow: var(--vk-shadow-lg); }
1621
+ [data-list-shadow="xl"] { --list-shadow: var(--vk-shadow-xl); }
1622
+ [data-list-padding="0"] { --list-pad: 0px; --list-row-corners: 0px; --list-row-corners-pill: 0; }
1623
+ [data-list-padding="2"] { --list-pad: calc(var(--vk-spacing) * 0.5); }
1624
+ [data-list-padding="6"] { --list-pad: calc(var(--vk-spacing) * 1.5); }
1625
+ [data-list-padding="8"] { --list-pad: calc(var(--vk-spacing) * 2); }
1626
+ [data-list-rows="28"] { --list-row-h: calc(var(--vk-spacing) * 7); --list-row-pad: var(--vk-spacing); }
1627
+ [data-list-rows="30"] { --list-row-h: calc(var(--vk-spacing) * 7.5); }
1628
+ [data-list-rows="34"] { --list-row-h: calc(var(--vk-spacing) * 8.5); }
1629
+ [data-list-rows="36"] { --list-row-h: calc(var(--vk-spacing) * 9); }
1630
+ [data-list-rows="38"] { --list-row-h: calc(var(--vk-spacing) * 9.5); }
1631
+ [data-list-rows="40"] { --list-row-h: calc(var(--vk-spacing) * 10); }
1632
+ [data-list-highlight="brand"] { --list-highlight: var(--list-hl-brand, var(--vk-brand-subtlest)); }
1633
+ /* The Dividers as two numbers on the frame, so the nearest frame's pick wins, for every line that reaches by them:
1634
+ --dividers-words 1 where a line stands in by a row's 8 (Inset), --dividers-rows 1 where it stands in by what its holder pads. */
1635
+ [data-list-dividers="words"] { --dividers-words: 1; --dividers-rows: 1; }
1636
+ [data-list-dividers="rows"] { --list-sep-inset: 0px; --dividers-words: 0; --dividers-rows: 1; }
1637
+ [data-list-dividers="full"] { --list-sep-inset: calc(-1 * var(--list-pad, var(--vk-spacing))); --dividers-words: 0; --dividers-rows: 0; }
1638
+ [data-list-row-corners="0"] { --list-row-r: 0px; --list-row-pill: 0; }
1639
+ [data-list-row-corners="xs"] { --list-row-r: var(--vk-radius-xs); --list-row-pill: 0; }
1640
+ [data-list-row-corners="sm"] { --list-row-r: var(--vk-radius-sm); --list-row-pill: 0; }
1641
+ [data-list-row-corners="md"] { --list-row-r: var(--vk-radius-md); --list-row-pill: 0; }
1642
+ [data-list-row-corners="lg"] { --list-row-r: var(--vk-radius-lg); --list-row-pill: 0; }
1643
+ [data-list-row-corners="xl"] { --list-row-r: var(--vk-radius-xl); --list-row-pill: 0; }
1644
+ [data-list-row-corners="full"] { --list-row-r: var(--vk-radius-full); --list-row-pill: 1; }
1645
+ [data-list-intensity="2"] { --list-hl-grey: var(--vk-overlay-pressed); --list-hl-brand: var(--vk-brand-subtler); }
1646
+ [data-list-intensity="3"] { --list-hl-grey: var(--vk-overlay-selected); --list-hl-brand: var(--vk-brand-subtler-hovered); }
1647
+
1648
+ /* ── The panel: on the overlay's ground, a soft edge, the Input box's corners and its padding round them, 4px in; it fades in and drops 4px ─ */
1649
+ /* Its lines' colour, --divider-colour, its Edge's (border-subtle with none): what it holds draws its lines in it. */
1650
+ .o-list {
1651
+ --list-row-corners-in: var(--list-row-corners, var(--list-row-r, var(--list-box-r, var(--vk-radius-lg))));
1652
+ --divider-colour: var(--list-sep-colour, var(--vk-border-subtle));
1653
+ box-sizing: border-box; display: grid; padding: var(--list-pad, var(--vk-spacing));
1654
+ border: var(--vk-border-width) solid var(--list-edge, var(--vk-border-subtle)); border-radius: calc(min(var(--list-box-r, var(--vk-radius-lg)), var(--vk-radius-2xl)) + var(--list-pad, var(--vk-spacing)));
1655
+ background-color: var(--vk-overlay); box-shadow: var(--list-shadow, var(--vk-shadow-md)); color: var(--vk-fg); outline: none;
1656
+ transition: opacity var(--vk-duration-fast) var(--vk-ease-out), translate var(--vk-duration-fast) var(--vk-ease-out);
1657
+ }
1658
+ .o-list:is([data-starting-style], [data-ending-style]) { opacity: 0; translate: 0 calc(var(--vk-spacing) * -1); }
1659
+ .o-list-positioner { z-index: var(--vk-layer-popup); outline: none; }
1660
+
1661
+ /* ── A row: 32px, the radius's corners, text-sm; under the pointer or the keyboard the overlay's hover ─ */
1662
+ .o-list-row {
1663
+ display: flex; align-items: center; gap: calc(var(--vk-spacing) * 2); box-sizing: border-box; width: 100%; min-height: var(--list-row-h, calc(var(--vk-spacing) * 8));
1664
+ margin: 0; padding: var(--list-row-pad, calc(var(--vk-spacing) * 1.25)) calc(var(--vk-spacing) * 2); border: 0; border-radius: var(--list-row-rad, var(--vk-radius-lg));
1665
+ background-color: transparent; color: var(--vk-fg); font: inherit; font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm));
1666
+ text-align: left; cursor: pointer; outline: none; user-select: none; -webkit-tap-highlight-color: transparent;
1667
+ }
1668
+ /* Inside a list's panel its corners are the Input box's (square at padding 0); elsewhere (the Picker's, in its shell) the radius's. */
1669
+ .o-list .o-list-row { --list-row-rad: var(--list-row-corners-in); --list-row-pill-in: var(--list-row-corners-pill, var(--list-row-pill, var(--list-box-pill, 0))); }
1670
+ .o-list-row:is([data-highlighted], [data-popup-open], [data-force="hover"]) { background-color: var(--list-highlight, var(--list-hl-grey, var(--vk-overlay-hovered))); }
1671
+ /* A row that can't be picked: greyed, no fill under the pointer. */
1672
+ .o-list-row[data-disabled] { color: var(--vk-fg-disabled); cursor: not-allowed; }
1673
+ .o-list-row[data-disabled] :is(.o-list-line, .o-list-you) { color: var(--vk-fg-disabled); }
1674
+ .o-list-row[data-disabled]:is([data-highlighted], [data-force="hover"]) { background-color: transparent; }
1675
+ .o-list-text { flex: 1; min-width: 0; display: grid; gap: var(--vk-border-width); }
1676
+ .o-list-main { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1677
+ .o-list-line { font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs)); color: var(--vk-fg-subtle); }
1678
+ .o-list-you { margin-left: calc(var(--vk-spacing) * 1); font-size: var(--vk-font-size-xs); color: var(--vk-fg-subtle); }
1679
+ /* The chosen row's tick, at the end. */
1680
+ .o-list-tick { flex: none; width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); fill: none; stroke: var(--vk-fg); stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
1681
+ .o-list-row:is([data-selected], [data-checked], [aria-selected="true"], [aria-checked="true"]) .o-list-tick { visibility: visible; }
1682
+ /* Several at once: the Checkbox's own box before each row (CheckboxMark, checkbox.css). */
1683
+ /* A row that only clears, and one that creates: their icon and words quieter. */
1684
+ .o-list-row.o-list-clear .o-list-main { color: var(--vk-fg-subtle); }
1685
+ .o-list-plus { flex: none; width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); fill: none; stroke: var(--vk-fg-subtle); stroke-linecap: round; }
1686
+
1687
+ /* ── A heading over a group, and a line between groups, in the colour of the surface it stands in ───────────────────────────────────────────── */
1688
+ .o-list-heading { margin: 0; padding: calc(var(--vk-spacing) * 2) calc(var(--vk-spacing) * 2) calc(var(--vk-spacing) * 1); font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-font-size-xs) * var(--vk-line-height-xs)); font-weight: var(--vk-font-weight-medium); color: var(--vk-fg-subtle); }
1689
+ /* In a Popover it stands in from the Popover's padding, which may not be the list's: Full width reaches its edge, inside it. */
1690
+ .o-popover .o-list-sep { margin-inline: calc(var(--vk-spacing) * 2 * var(--dividers-words, 1) - (1 - var(--dividers-rows, 1)) * var(--divider-reach, 0px)); }
1691
+ .o-list-sep { height: var(--vk-border-width); margin: calc(var(--vk-spacing) * 1) var(--list-sep-inset, calc(var(--vk-spacing) * 2)); border: 0; background-color: var(--divider-colour, var(--list-sep-colour, var(--vk-border-subtle))); }
1692
+
1693
+ /* ── On the phone a row is 44px, so a finger finds it ──────────────────────────────────────────────── */
1694
+ @media (width < 640px) {
1695
+ .o-list-row:where(:not([data-computer-host], [data-computer-host] *)) { min-height: calc(var(--vk-spacing) * 11); }
1696
+ }
1697
+ @container o-phone (width < 640px) {
1698
+ .o-list-row { min-height: calc(var(--vk-spacing) * 11); }
1699
+ }
1700
+
1701
+ /* ── Corner smoothing: the list's own (data-list-smoothing; Smooth, with nothing set, or Round), never the token. Under
1702
+ Smooth the panel and each row are drawn with the smooth outline (smooth.css) in every browser that knows shape(); one
1703
+ that doesn't keeps the corners above, and Round paints them as before. A row's side is its height (32, or the list's Row height;
1704
+ 44 on a phone), its round part fitted to it as a control's is (side / 3.4, Mihai, 16 Nov 2026), so the whole bend fits; a row
1705
+ of a Pill box or at Row corners Full is a pill, drawn at no smoothing (--list-row-pill-in, set beside the corners it
1706
+ follows, as its corners are). Nothing stands outside a
1707
+ row, so it is clipped itself, its highlight with it. The panel casts a shadow, so its edge (::before, over its border box) and
1708
+ ground (::after, over its padding box, its corner a line smaller) are layers inside it, clipped as the Popover's are, its shadow on itself; its corners follow its rows' (outer follows inner): the
1709
+ Input box's corners fitted to a row, plus the padding, so the two curves run alike (13.4 at the defaults), eased on its own
1710
+ shortest side, one row; a Pill box's panel keeps its 2xl and the padding, held to half that side. The amount is set on what
1711
+ draws the outline (the panel, a row), never declared as the token. ── */
1712
+ @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)) {
1713
+ .o-list, .o-list-row, .o-popover { --list-row-side: var(--list-row-h, calc(var(--vk-spacing) * 8)); }
1714
+ @media (width < 640px) { .o-list:where(:not([data-computer-host], [data-computer-host] *)), .o-list-row:where(:not([data-computer-host], [data-computer-host] *)), .o-popover:where(:not([data-computer-host], [data-computer-host] *)) { --list-row-side: calc(var(--vk-spacing) * 11); } }
1715
+ @container o-phone (width < 640px) { .o-list, .o-list-row, .o-popover { --list-row-side: calc(var(--vk-spacing) * 11); } }
1716
+ .o-list:not([data-list-smoothing="round"], [data-list-smoothing="round"] *),
1717
+ .o-popover:has(.o-picker[data-picker-form="computer"]):not(:has([data-kit$="-editor"]), [data-list-smoothing="round"] *) {
1718
+ --list-box-cap: min(var(--list-box-r, var(--vk-radius-lg)), var(--vk-radius-2xl));
1719
+ --list-k: calc(1 - var(--list-box-pill, 0));
1720
+ --list-box-fit: min(var(--list-box-cap), var(--list-row-side) / 3.4);
1721
+ --list-panel-r: calc(var(--list-box-cap) + (var(--list-box-fit) - var(--list-box-cap)) * var(--list-k) + var(--list-pad, var(--vk-spacing)));
1722
+ --list-panel-side: calc(var(--list-row-side) + var(--list-pad, var(--vk-spacing)) * 2 + var(--vk-border-width) * 2);
1723
+ }
1724
+ /* The panel itself; the Picker's in its Popover draws the same panel from the same numbers. */
1725
+ .o-list:not([data-list-smoothing="round"], [data-list-smoothing="round"] *) {
1726
+ --smooth-amount: initial; --smooth-t: min(var(--list-panel-r), var(--list-panel-side) / 2); --smooth-side: var(--list-panel-side);
1727
+ position: relative; isolation: isolate; border-radius: var(--smooth-t); border-color: transparent; background-color: transparent;
1728
+ }
1729
+ .o-list:not([data-list-smoothing="round"], [data-list-smoothing="round"] *)::before,
1730
+ .o-list:not([data-list-smoothing="round"], [data-list-smoothing="round"] *)::after {
1731
+ content: ""; position: absolute; inset: calc(var(--vk-border-width) * -1); z-index: -1; pointer-events: none; border-radius: inherit;
1732
+ }
1733
+ .o-list:not([data-list-smoothing="round"], [data-list-smoothing="round"] *)::before { background-color: var(--vk-overlay); background-image: linear-gradient(var(--list-edge, var(--vk-border-subtle)), var(--list-edge, var(--vk-border-subtle))); clip-path: shape(var(--smooth-outline)); }
1734
+ .o-list:not([data-list-smoothing="round"], [data-list-smoothing="round"] *)::after {
1735
+ --smooth-t: max(0px, min(var(--list-panel-r), var(--list-panel-side) / 2) - var(--vk-border-width));
1736
+ inset: 0; border-radius: calc(min(var(--list-panel-r), var(--list-panel-side) / 2) - var(--vk-border-width)); background-color: var(--vk-overlay); clip-path: shape(var(--smooth-outline));
1737
+ }
1738
+ /* At padding 0 its rows run to its edge, square: the first and the last row it holds take its corner a line in on their outer
1739
+ side, and what the Select's list holds (the Picker, its rows scrolling) is cut by its outline a line in, as hiding what
1740
+ overflows cut it at its round corner before. */
1741
+ [data-list-padding="0"] .o-list:not([data-list-smoothing="round"], [data-list-smoothing="round"] *) > .o-list-row:first-child:not(:last-child),
1742
+ [data-list-padding="0"] .o-list:not([data-list-smoothing="round"], [data-list-smoothing="round"] *) > .o-menu-list-scroll > .o-list-row:first-child:not(:last-child) {
1743
+ --smooth-t: max(0px, min(var(--list-panel-r), var(--list-panel-side) / 2) - var(--vk-border-width)); --smooth-b: var(--list-row-fit);
1744
+ }
1745
+ [data-list-padding="0"] .o-list:not([data-list-smoothing="round"], [data-list-smoothing="round"] *) > .o-list-row:last-child:not(:first-child),
1746
+ [data-list-padding="0"] .o-list:not([data-list-smoothing="round"], [data-list-smoothing="round"] *) > .o-menu-list-scroll > .o-list-row:last-child:not(:first-child) {
1747
+ --smooth-b: max(0px, min(var(--list-panel-r), var(--list-panel-side) / 2) - var(--vk-border-width));
1748
+ }
1749
+ [data-list-padding="0"] .o-list:not([data-list-smoothing="round"], [data-list-smoothing="round"] *) > .o-list-row:only-child,
1750
+ [data-list-padding="0"] .o-list:not([data-list-smoothing="round"], [data-list-smoothing="round"] *) > .o-menu-list-scroll > .o-list-row:only-child {
1751
+ --smooth-t: max(0px, min(var(--list-panel-r), var(--list-panel-side) / 2) - var(--vk-border-width));
1752
+ }
1753
+ [data-list-padding="0"] .o-list:not([data-list-smoothing="round"], [data-list-smoothing="round"] *) > .o-picker {
1754
+ --smooth-amount: initial; --smooth-t: max(0px, min(var(--list-panel-r), var(--list-panel-side) / 2) - var(--vk-border-width));
1755
+ --smooth-side: calc(var(--list-panel-side) - var(--vk-border-width) * 2); clip-path: shape(var(--smooth-outline));
1756
+ }
1757
+ .o-list-row:not([data-list-smoothing="round"] *) {
1758
+ --smooth-amount: calc(0.7 * (1 - var(--list-row-pill-in, 0)));
1759
+ --list-row-fit: min(var(--list-row-rad, var(--vk-radius-lg)) + var(--list-row-pill-in, 0) * 1000px, var(--list-row-side) / (2 + 2 * var(--smooth-amount)));
1760
+ --smooth-t: var(--list-row-fit); --smooth-side: var(--list-row-side);
1761
+ clip-path: shape(var(--smooth-outline));
1762
+ }
1763
+ }
1764
+
1765
+ @media (prefers-reduced-motion: reduce) { .o-list { transition: none; } }
1766
+
1767
+ .o-menu-list {
1768
+ --menu-list-row: calc(var(--vk-spacing) * 13); --menu-list-corners: var(--vk-radius-xl); --menu-list-inset: calc(var(--vk-spacing) * 4);
1769
+ display: grid; gap: calc(var(--vk-spacing) * 3); min-width: 0;
1770
+ }
1771
+ [data-menu-list-height="48"] .o-menu-list { --menu-list-row: calc(var(--vk-spacing) * 12); }
1772
+ [data-menu-list-height="56"] .o-menu-list { --menu-list-row: calc(var(--vk-spacing) * 14); }
1773
+ [data-menu-list-corners="lg"] .o-menu-list { --menu-list-corners: var(--vk-radius-lg); }
1774
+ [data-menu-list-corners="2xl"] .o-menu-list { --menu-list-corners: var(--vk-radius-2xl); }
1775
+
1776
+ /* ── A section: rows that belong together, on a card ─────────────────────────────────────────────────────────────── */
1777
+ .o-menu-list-section { display: grid; min-width: 0; overflow: hidden; border-radius: var(--menu-list-corners); background-color: var(--vk-overlay-card); }
1778
+
1779
+ /* ── A group or a pick under its heading: the list's heading over its card, as on a computer, at a phone's size: 14, 4 in
1780
+ from the card's edge, 6 over the card. Under Plain, where nothing marks the card's edge, it stands where its
1781
+ rows' icons start. Under Words the card floats on the dim, so its heading stands on the card's own ground, over its rows, centred
1782
+ as they are, a line under it, as a phone's action sheet holds its title. ─────────────────────────────────────────────────── */
1783
+ .o-menu-list-group { display: grid; gap: calc(var(--vk-spacing) * 1.5); min-width: 0; }
1784
+ .o-menu-list-group > .o-list-heading { padding: 0 calc(var(--vk-spacing) * 1); font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); }
1785
+ [data-menu-list-rows="plain"] .o-menu-list-group > .o-list-heading { padding-inline: calc(var(--vk-spacing) * 2); }
1786
+ [data-menu-list-rows="words"] .o-menu-list-group { gap: 0; overflow: hidden; border-radius: var(--vk-radius-2xl); background-color: var(--vk-overlay); box-shadow: var(--vk-shadow-2xl); }
1787
+ [data-menu-list-rows="words"] .o-menu-list-group > .o-list-heading { padding: calc(var(--vk-spacing) * 3) calc(var(--vk-spacing) * 4); border-bottom: var(--vk-border-width) solid var(--vk-border); text-align: center; }
1788
+ [data-menu-list-rows="words"] .o-menu-list-group > .o-menu-list-section { border-radius: 0; box-shadow: none; }
1789
+
1790
+ /* ── A row: an icon, its name, and on its right a value, an arrow, a tick or a switch ────────────────────────────── */
1791
+ .o-menu-list-row {
1792
+ --menu-list-line: var(--menu-list-inset, calc(var(--vk-spacing) * 4));
1793
+ position: relative; display: flex; align-items: center; gap: calc(var(--vk-spacing) * 3); box-sizing: border-box; width: 100%; min-width: 0; min-height: var(--menu-list-row, calc(var(--vk-spacing) * 13));
1794
+ margin: 0; padding: calc(var(--vk-spacing) * 1.5) var(--menu-list-inset, calc(var(--vk-spacing) * 4)); border: 0; background: none; color: var(--vk-fg);
1795
+ font: inherit; font-size: var(--vk-font-size-base); line-height: calc(var(--vk-font-size-base) * var(--vk-line-height-base)); text-align: start; text-decoration: none;
1796
+ cursor: pointer; outline: none; user-select: none; -webkit-tap-highlight-color: transparent;
1797
+ }
1798
+ .o-menu-list-row:has(> .o-menu-list-mark) { --menu-list-line: calc(var(--menu-list-inset) + var(--vk-spacing) * 8.5); }
1799
+ /* A list holding a person's 32px face (the Avatar stack's people on a phone): every row's mark is 32 wide, the face whole
1800
+ in it and an icon centred at its own 22, so every name stands 12px after it and the line starts at the words. The list sits in
1801
+ :where(), so each rule weighs what it overrides and Full lines, below, still wins. */
1802
+ :where(.o-menu-list:has(.o-menu-list-row > .o-menu-list-mark > :is(.o-avatar:not(.o-avatar-xs, .o-avatar-sm, .o-avatar-lg, .o-avatar-xl), .o-avatar-badged[data-size="32"]))) .o-menu-list-row:has(> .o-menu-list-mark) { --menu-list-line: calc(var(--menu-list-inset) + var(--vk-spacing) * 11); }
1803
+ :where(.o-menu-list:has(.o-menu-list-row > .o-menu-list-mark > :is(.o-avatar:not(.o-avatar-xs, .o-avatar-sm, .o-avatar-lg, .o-avatar-xl), .o-avatar-badged[data-size="32"]))) .o-menu-list-row > .o-menu-list-mark { width: calc(var(--vk-spacing) * 8); }
1804
+ :where(.o-menu-list:has(.o-menu-list-row > .o-menu-list-mark > :is(.o-avatar:not(.o-avatar-xs, .o-avatar-sm, .o-avatar-lg, .o-avatar-xl), .o-avatar-badged[data-size="32"]))) .o-menu-list-row > .o-menu-list-mark:has(> :is(.o-avatar:not(.o-avatar-xs, .o-avatar-sm, .o-avatar-lg, .o-avatar-xl), .o-avatar-badged[data-size="32"])) { height: calc(var(--vk-spacing) * 8); }
1805
+ :where(.o-menu-list:has(.o-menu-list-row > .o-menu-list-mark > :is(.o-avatar:not(.o-avatar-xs, .o-avatar-sm, .o-avatar-lg, .o-avatar-xl), .o-avatar-badged[data-size="32"]))) .o-menu-list-row > .o-menu-list-mark > svg { width: calc(var(--vk-spacing) * 5.5); }
1806
+ .o-menu-list-row:focus-visible { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: calc(-1 * var(--vk-focus-width)); }
1807
+ .o-menu-list-row:active:not(:disabled, [data-disabled]) { background-color: var(--vk-overlay-card-pressed); }
1808
+ .o-menu-list-row.o-menu-list-danger { color: var(--vk-danger); }
1809
+ .o-menu-list-row:is(:disabled, [data-disabled]) { color: var(--vk-fg-disabled); cursor: not-allowed; }
1810
+
1811
+ .o-menu-list-mark { flex: none; display: grid; place-items: center; width: calc(var(--vk-spacing) * 5.5); height: calc(var(--vk-spacing) * 5.5); }
1812
+ .o-menu-list-mark > svg { width: 100%; height: 100%; }
1813
+ .o-menu-list-name { flex: 1; display: grid; min-width: 0; }
1814
+ .o-menu-list-name > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1815
+ .o-menu-list-name > .o-menu-list-note { font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); white-space: normal; color: var(--vk-fg-subtle); }
1816
+ .o-menu-list-row:is(:disabled, [data-disabled]) .o-menu-list-note { color: var(--vk-fg-disabled); }
1817
+ .o-menu-list-value { flex: none; max-width: calc(var(--vk-spacing) * 38); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); color: var(--vk-fg-subtle); }
1818
+ /* What stands on its right, a count or a Tag: a phone's value size, the Menu's count's colour and figures. */
1819
+ .o-menu-list-end { flex: none; font-size: var(--vk-font-size-sm); line-height: calc(var(--vk-font-size-sm) * var(--vk-line-height-sm)); color: var(--vk-fg-subtlest); font-variant-numeric: tabular-nums; }
1820
+ /* A level's detail in force: in the brand. */
1821
+ .o-menu-list-end[data-on] { color: var(--vk-fg-accent); }
1822
+ /* A tick as an eye, at its end: 20, open while on, crossed and quieter while off, greyed on a row that can't be used. */
1823
+ .o-menu-list-eye { flex: none; display: grid; place-items: center; color: var(--vk-fg-subtle); }
1824
+ .o-menu-list-eye > svg { width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 5); }
1825
+ .o-menu-list-eye:not([data-on]) { color: var(--vk-fg-subtlest); }
1826
+ .o-menu-list-row:is(:disabled, [data-disabled]) > .o-menu-list-eye { color: var(--vk-fg-disabled); }
1827
+ .o-menu-list-more { flex: none; width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); margin-right: calc(var(--vk-spacing) * -0.5); fill: none; stroke: var(--vk-fg-subtlest); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
1828
+ .o-menu-list-tick { flex: none; width: calc(var(--vk-spacing) * 5); height: calc(var(--vk-spacing) * 5); fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
1829
+
1830
+ /* A row with a grip: the grip's dots at its start, 16, faint, as the grip draws them; the line starts at the words,
1831
+ after the grip's 16 and the gap's 12, and with a mark after its 22 and 12 more. A row is held, then dragged ("Hold, then drag",
1832
+ Mihai, 18 Nov 2026): nothing stops a swipe from scrolling before it is held, and a long press never opens the phone's own
1833
+ callout on it. Held, it stands over the others on the overlay's ground with the shadow, as the sort editor's held rule does. */
1834
+ .o-menu-list-grip { flex: none; width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--vk-fg-subtlest); }
1835
+ .o-menu-list [data-drag-start] { -webkit-touch-callout: none; }
1836
+ /* How long a finger rests on a row before it lifts, read by the script that lifts it. */
1837
+ .o-menu-list-row { --menu-list-hold: var(--vk-hold-delay); }
1838
+ .o-menu-list-grip[data-room] { visibility: hidden; }
1839
+ .o-menu-list-row:has(> .o-menu-list-grip) { --menu-list-line: calc(var(--menu-list-inset) + var(--vk-spacing) * 7); }
1840
+ .o-menu-list-row:has(> .o-menu-list-grip):has(> .o-menu-list-mark) { --menu-list-line: calc(var(--menu-list-inset) + var(--vk-spacing) * 15.5); }
1841
+ .o-menu-list-row[data-lifted] { z-index: var(--vk-layer-popup); background-color: var(--vk-overlay); box-shadow: var(--vk-shadow-lg); }
1842
+ .o-menu-list-row[data-lifted]::before, .o-menu-list-row[data-lifted] + .o-menu-list-row::before { opacity: 0; }
1843
+
1844
+ /* The line between two rows, starting at the words, which goes under a press, so a pressed row reads as one block. */
1845
+ .o-menu-list-row + .o-menu-list-row::before { content: ""; position: absolute; top: 0; right: 0; left: var(--menu-list-line); height: var(--vk-border-width); background-color: var(--vk-border-overlay-card); }
1846
+ .o-menu-list-row:active:not(:disabled, [data-disabled])::before, .o-menu-list-row:active:not(:disabled, [data-disabled]) + .o-menu-list-row::before { opacity: 0; }
1847
+
1848
+ /* Its lines the card's whole width, or none. */
1849
+ [data-menu-list-lines="none"] .o-menu-list-row::before { display: none; }
1850
+
1851
+ /* Plain: on the sheet, no ground. A row keeps its own padding, and its press reaches a little past the page's line. */
1852
+ [data-menu-list-rows="plain"] .o-menu-list-section { margin-inline: calc(var(--vk-spacing) * -2); overflow: visible; border-radius: 0; background-color: transparent; }
1853
+ [data-menu-list-rows="plain"] :where(.o-menu-list) .o-menu-list-row { border-radius: var(--vk-radius-lg); }
1854
+ [data-menu-list-rows="plain"] :where(.o-menu-list) .o-menu-list-row:active:not(:disabled, [data-disabled]) { background-color: var(--vk-overlay-pressed); }
1855
+
1856
+ /* Joined: each row a tile, a hair apart, its section's two ends rounded. */
1857
+ [data-menu-list-rows="joined"] .o-menu-list-section { gap: calc(var(--vk-spacing) * 0.75); overflow: visible; border-radius: 0; background-color: transparent; }
1858
+ [data-menu-list-rows="joined"] :where(.o-menu-list) .o-menu-list-row { border-radius: var(--vk-radius-sm); background-color: var(--vk-overlay-card); }
1859
+ [data-menu-list-rows="joined"] :where(.o-menu-list) .o-menu-list-row:first-child { border-start-start-radius: var(--menu-list-corners); border-start-end-radius: var(--menu-list-corners); }
1860
+ [data-menu-list-rows="joined"] :where(.o-menu-list) .o-menu-list-row:last-child { border-end-start-radius: var(--menu-list-corners); border-end-end-radius: var(--menu-list-corners); }
1861
+ [data-menu-list-rows="joined"] :where(.o-menu-list) .o-menu-list-row::before { display: none; }
1862
+ [data-menu-list-rows="joined"] :where(.o-menu-list) .o-menu-list-row:active:not(:disabled, [data-disabled]) { background-color: var(--vk-overlay-card-pressed); }
1863
+
1864
+ /* Words: centred, no icons, each section a card of its own on the sheet's ground. It stands on nothing, clear of the home bar: the
1865
+ sheet round it gives up its ground, its shadow and its handle. */
1866
+ [data-menu-list-rows="words"] .o-menu-list { gap: calc(var(--vk-spacing) * 2); }
1867
+ [data-menu-list-rows="words"] .o-menu-list-section { border-radius: var(--vk-radius-2xl); background-color: var(--vk-overlay); box-shadow: var(--vk-shadow-2xl); }
1868
+ [data-menu-list-rows="words"] :where(.o-menu-list) .o-menu-list-row { justify-content: center; text-align: center; font-weight: var(--vk-font-weight-medium); }
1869
+ [data-menu-list-rows="words"] :where(.o-menu-list) .o-menu-list-row::before { background-color: var(--vk-border); }
1870
+ [data-menu-list-rows="words"] :where(.o-menu-list) .o-menu-list-row:active:not(:disabled, [data-disabled]) { background-color: var(--vk-overlay-pressed); }
1871
+ [data-menu-list-rows="words"] :where(.o-menu-list) :is(.o-menu-list-mark, .o-menu-list-more, .o-menu-list-value, .o-menu-list-end) { display: none; }
1872
+ [data-menu-list-rows="words"] :where(.o-menu-list) .o-menu-list-name { flex: none; }
1873
+ [data-menu-list-rows="words"] .o-sheet.o-sheet:has(.o-menu-list) { background-color: transparent; box-shadow: none; }
1874
+ [data-menu-list-rows="words"] .o-sheet.o-sheet:has(.o-menu-list) > .o-sheet-cut { background-color: transparent; clip-path: none; overflow: visible; }
1875
+ [data-menu-list-rows="words"] .o-sheet:has(.o-menu-list) .o-sheet-handle { display: none; }
1876
+ [data-menu-list-rows="words"] .o-sheet:has(.o-menu-list) .o-sheet-body { padding: 0 0 max(calc(var(--vk-spacing) * 2), var(--sheet-home)); overflow: visible; }
1877
+
1878
+ [data-menu-list-lines="full"] .o-menu-list-row { --menu-list-line: 0px; }
1879
+
1880
+ /* ── The tiles: the few done most, side by side over its rows ────────────────────────────────────────────────────── */
1881
+ .o-menu-list-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: calc(var(--vk-spacing) * 2); min-width: 0; }
1882
+ .o-menu-list-tile {
1883
+ display: grid; justify-items: center; align-content: center; gap: calc(var(--vk-spacing) * 1); box-sizing: border-box; min-width: 0; min-height: calc(var(--vk-spacing) * 19);
1884
+ margin: 0; padding: calc(var(--vk-spacing) * 1); border: 0; border-radius: var(--menu-list-corners); background-color: var(--vk-overlay-card); color: var(--vk-fg);
1885
+ font: inherit; font-size: var(--vk-font-size-xs); line-height: calc(var(--vk-spacing) * 4); text-align: center; cursor: pointer; outline: none; user-select: none; -webkit-tap-highlight-color: transparent;
1886
+ }
1887
+ .o-menu-list-tile:focus-visible { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: calc(-1 * var(--vk-focus-width)); }
1888
+ .o-menu-list-tile:active:not(:disabled, [data-disabled]) { background-color: var(--vk-overlay-card-pressed); }
1889
+ .o-menu-list-tile:is(:disabled, [data-disabled]) { color: var(--vk-fg-disabled); cursor: not-allowed; }
1890
+ /* Its other three ways (Mihai's picks, 16 Nov 2026): the tile stands clear and its mark
1891
+ is its ground, the icon alone in it, the name 6 under it, two lines at most. Wide, after ClickUp: a grey tile 56 tall, as wide as its
1892
+ column, at the Corners. Circle, after Google Maps: a grey circle 52. Colour, after WhatsApp's attach sheet: a circle 56 in a label colour
1893
+ by place, blue, amber, purple and green, the icon in text-inverse. A press shows on the mark, each colour's own pressed shade; a tile that
1894
+ can't be used stands on the neutral ground in the disabled ink. */
1895
+ :is([data-menu-list-tiles="wide"], [data-menu-list-tiles="circle"], [data-menu-list-tiles="colour"]) .o-menu-list-tile {
1896
+ align-content: start; gap: calc(var(--vk-spacing) * 1.5); min-height: 0; padding: 0; border-radius: 0; background-color: transparent;
1897
+ }
1898
+ :is([data-menu-list-tiles="wide"], [data-menu-list-tiles="circle"], [data-menu-list-tiles="colour"]) .o-menu-list-tile:active:not(:disabled, [data-disabled]) { background-color: transparent; }
1899
+ :is([data-menu-list-tiles="wide"], [data-menu-list-tiles="circle"], [data-menu-list-tiles="colour"]) .o-menu-list-tile:focus-visible { outline: none; }
1900
+ :is([data-menu-list-tiles="wide"], [data-menu-list-tiles="circle"], [data-menu-list-tiles="colour"]) .o-menu-list-tile:focus-visible > .o-menu-list-mark { outline: var(--vk-focus-width) solid var(--vk-border-brand); outline-offset: calc(-1 * var(--vk-focus-width)); }
1901
+ :is([data-menu-list-tiles="wide"], [data-menu-list-tiles="circle"], [data-menu-list-tiles="colour"]) .o-menu-list-tile > .o-menu-list-mark { box-sizing: border-box; background-color: var(--vk-overlay-card); }
1902
+ :is([data-menu-list-tiles="wide"], [data-menu-list-tiles="circle"], [data-menu-list-tiles="colour"]) .o-menu-list-tile > .o-menu-list-mark > svg { width: calc(var(--vk-spacing) * 6); height: calc(var(--vk-spacing) * 6); }
1903
+ :is([data-menu-list-tiles="wide"], [data-menu-list-tiles="circle"], [data-menu-list-tiles="colour"]) .o-menu-list-tile:active:not(:disabled, [data-disabled]) > .o-menu-list-mark { background-color: var(--vk-overlay-card-pressed); }
1904
+ :is([data-menu-list-tiles="wide"], [data-menu-list-tiles="circle"], [data-menu-list-tiles="colour"]) .o-menu-list-tile-name {
1905
+ display: -webkit-box; max-width: 100%; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
1906
+ }
1907
+ [data-menu-list-tiles="wide"] .o-menu-list-tile > .o-menu-list-mark { width: 100%; height: calc(var(--vk-spacing) * 14); border-radius: var(--menu-list-corners); }
1908
+ [data-menu-list-tiles="circle"] .o-menu-list-tile > .o-menu-list-mark { width: calc(var(--vk-spacing) * 13); height: calc(var(--vk-spacing) * 13); border-radius: var(--vk-radius-full); }
1909
+ [data-menu-list-tiles="circle"] .o-menu-list-tile > .o-menu-list-mark > svg { width: calc(var(--vk-spacing) * 5.5); height: calc(var(--vk-spacing) * 5.5); }
1910
+ [data-menu-list-tiles="colour"] .o-menu-list-tile > .o-menu-list-mark { width: calc(var(--vk-spacing) * 14); height: calc(var(--vk-spacing) * 14); border-radius: var(--vk-radius-full); color: var(--vk-fg-inverse); }
1911
+ [data-menu-list-tiles="colour"] .o-menu-list-tile:nth-child(1) > .o-menu-list-mark { background-color: var(--vk-label-blue); }
1912
+ [data-menu-list-tiles="colour"] .o-menu-list-tile:nth-child(2) > .o-menu-list-mark { background-color: var(--vk-label-amber); }
1913
+ [data-menu-list-tiles="colour"] .o-menu-list-tile:nth-child(3) > .o-menu-list-mark { background-color: var(--vk-label-purple); }
1914
+ [data-menu-list-tiles="colour"] .o-menu-list-tile:nth-child(4) > .o-menu-list-mark { background-color: var(--vk-label-green); }
1915
+ [data-menu-list-tiles="colour"] .o-menu-list-tile:nth-child(1):active:not(:disabled, [data-disabled]) > .o-menu-list-mark { background-color: var(--vk-label-blue-pressed); }
1916
+ [data-menu-list-tiles="colour"] .o-menu-list-tile:nth-child(2):active:not(:disabled, [data-disabled]) > .o-menu-list-mark { background-color: var(--vk-label-amber-pressed); }
1917
+ [data-menu-list-tiles="colour"] .o-menu-list-tile:nth-child(3):active:not(:disabled, [data-disabled]) > .o-menu-list-mark { background-color: var(--vk-label-purple-pressed); }
1918
+ [data-menu-list-tiles="colour"] .o-menu-list-tile:nth-child(4):active:not(:disabled, [data-disabled]) > .o-menu-list-mark { background-color: var(--vk-label-green-pressed); }
1919
+ :is([data-menu-list-tiles="wide"], [data-menu-list-tiles="circle"], [data-menu-list-tiles="colour"]) .o-menu-list-tile:is(:disabled, [data-disabled]) > .o-menu-list-mark { background-color: var(--vk-neutral); color: var(--vk-fg-disabled); }
1920
+
1921
+ /* ── On a computer: a menu's rows, inside a menu's panel or standing on a page. Base UI marks a row data-highlighted
1922
+ under the pointer or the keyboard, a choice data-checked, a row that can't be used data-disabled, and a row whose choices are
1923
+ open data-popup-open; list.css draws the row itself, this file its parts. ───────────────────── */
1924
+ /* How long the pointer rests on a row one level in before its panel opens, read by the script that opens it. */
1925
+ .o-menu-row { --menu-sub-wait: var(--vk-submenu-delay); }
1926
+ /* ── A row: its 16px icon 8px before its name, then its keys, its value or its way further in ──────── */
1927
+ .o-menu-row { white-space: nowrap; text-decoration: none; }
1928
+ .o-menu-row > svg:first-child { flex: none; width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); fill: none; stroke: var(--vk-fg-subtle); stroke-linecap: round; stroke-linejoin: round; }
1929
+ .o-menu-row:is([data-highlighted], [data-popup-open], [data-force="hover"]) > svg:first-child { stroke: var(--vk-fg); }
1930
+ .o-menu-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
1931
+ .o-menu-keys { flex: none; display: flex; gap: calc(var(--vk-spacing) * 0.75); margin-left: calc(var(--vk-spacing) * 6); font-size: var(--vk-font-size-xs); color: var(--vk-fg-subtlest); }
1932
+ .o-menu-keys kbd { font: inherit; }
1933
+ /* How many it holds, at its end in the quietest colour; a Spinner while that loads. */
1934
+ .o-menu-count { flex: none; display: flex; margin-left: auto; padding-left: calc(var(--vk-spacing) * 4); font-size: var(--vk-font-size-xs); color: var(--vk-fg-subtlest); font-variant-numeric: tabular-nums; }
1935
+ .o-menu-value { flex: none; max-width: calc(var(--vk-spacing) * 30); margin-left: calc(var(--vk-spacing) * 4); overflow: hidden; text-overflow: ellipsis; font-size: var(--vk-font-size-xs); color: var(--vk-fg-subtle); }
1936
+ /* A choice's detail: what it reads as (a date style's sample), quiet, before its tick. */
1937
+ .o-menu-detail { flex: none; margin-left: calc(var(--vk-spacing) * 4); font-size: var(--vk-font-size-xs); color: var(--vk-fg-subtlest); font-variant-numeric: tabular-nums; }
1938
+ .o-menu-more { flex: none; width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); margin-right: calc(var(--vk-spacing) * -0.5); fill: none; stroke: var(--vk-fg-subtlest); stroke-linecap: round; stroke-linejoin: round; }
1939
+ .o-menu-row .o-list-tick { margin-left: calc(var(--vk-spacing) * 4); }
1940
+
1941
+ /* ── Takes something away: in the danger colour, washed under the pointer so it warns before the click ─ */
1942
+ .o-menu-row.o-menu-danger { color: var(--vk-danger); }
1943
+ .o-menu-danger > svg:first-child, .o-menu-danger:is([data-highlighted], [data-force="hover"]) > svg:first-child { stroke: var(--vk-danger); }
1944
+ .o-menu-danger .o-menu-keys { color: var(--vk-danger); }
1945
+ .o-menu-row.o-menu-danger:is([data-highlighted], [data-force="hover"]) { background-color: var(--vk-danger-subtlest); }
1946
+
1947
+ /* ── Can't be used: greyed, no fill under the pointer; its tooltip says why ─────────────────────────── */
1948
+ .o-menu-row[data-disabled] { color: var(--vk-fg-disabled); cursor: not-allowed; }
1949
+ .o-menu-row[data-disabled] > svg:first-child { stroke: var(--vk-fg-disabled); }
1950
+ .o-menu-row[data-disabled]:is([data-highlighted], [data-force="hover"]) { background-color: transparent; }
1951
+
1952
+ /* A tick: the Checkbox's own box before its name (CheckboxMark, checkbox.css), ticked and greyed by its row. */
1953
+ /* A link that leaves the app: an arrow after its name. */
1954
+ .o-menu-away { flex: none; width: calc(var(--vk-spacing) * 3.5); height: calc(var(--vk-spacing) * 3.5); margin-left: calc(var(--vk-spacing) * 4); fill: none; stroke: var(--vk-fg-subtlest); stroke-linecap: round; stroke-linejoin: round; }
1955
+
1956
+ /* A row alone, shown in one of its states. */
1957
+ .o-list.o-menu.o-menu-state { min-width: calc(var(--vk-spacing) * 46); box-shadow: none; }
1958
+
1959
+ /* ── Shown open in the page: a choice row's choices beside it, their edges on one line, their first row
1960
+ level with it; room kept for them. A computer's cases: on a phone the page's On the phone stands the Sheet at its step (sheet.tsx) ─ */
1961
+ .o-menu-pair { padding-right: calc(var(--vk-spacing) * 52); }
1962
+ .o-menu-subwrap { position: relative; }
1963
+ .o-menu-subwrap > .o-menu-sub { position: absolute; z-index: 2; top: calc(-1 * var(--list-pad, var(--vk-spacing)) - var(--vk-border-width)); left: calc(100% + var(--vk-spacing)); }
1964
+
1965
+ /* ── What scrolls in a menu's panel (MenuScroll): its rows, alone, when the panel is taller than the room on screen. ── */
1966
+ .o-menu-list-scroll { display: grid; min-height: 0; overflow-y: auto; overscroll-behavior: contain; outline: none; }
1967
+
1968
+ /* ── In a panel that is no menu: its rows stand in their holder's panel (the Pane, a Popover), as a menu's in its: a
1969
+ row's corners as the list's (list.css's .o-list .o-list-row), no panel of its own. ─────────────────────────────────── */
1970
+ .o-menu-rows { --list-row-corners-in: var(--list-row-corners, var(--list-row-r, var(--list-box-r, var(--vk-radius-lg)))); display: grid; min-width: 0; outline: none; }
1971
+ .o-menu-rows .o-list-row { --list-row-rad: var(--list-row-corners-in); --list-row-pill-in: var(--list-row-corners-pill, var(--list-row-pill, var(--list-box-pill, 0))); }
1972
+ /* A tick as the Switch, at its end. */
1973
+ .o-menu-switch > .o-switch { flex: none; margin-left: calc(var(--vk-spacing) * 4); }
1974
+ /* A value in force (a filter's "1", a sort's "Amount +1"): in the brand. */
1975
+ .o-menu-value[data-on] { color: var(--vk-fg-accent); }
1976
+ /* A tick as an eye, at its end: open while it is on, crossed while off, quieter; greyed on a row that can't be used. */
1977
+ .o-menu-eye { flex: none; display: grid; place-items: center; margin-left: calc(var(--vk-spacing) * 4); color: var(--vk-fg-subtle); }
1978
+ .o-menu-eye > svg { width: calc(var(--vk-spacing) * 4); height: calc(var(--vk-spacing) * 4); }
1979
+ .o-menu-eye:not([data-on]) { color: var(--vk-fg-subtlest); }
1980
+ .o-menu-row[data-disabled] > .o-menu-eye { color: var(--vk-fg-disabled); }
1981
+
1982
+ /* The eye's change, a phone's and a panel's alike: its outline stays; its slash, a path one long, is drawn across from its
1983
+ top as it is crossed (arriving, ease-out) and drawn back away as it opens (leaving, ease-in, so its last dot goes at once), on
1984
+ duration-fast, the band cut from the outline beside it drawn with it, the pupil's half above the slash fading, and its colour
1985
+ easing. The slash is hidden only once drawn away, so no dot stands at its top. */
1986
+ :is(.o-menu-eye, .o-menu-list-eye) { transition: color var(--vk-duration-fast) var(--vk-ease-out); }
1987
+ :is(.o-eye-slash, .o-eye-cut) { stroke-dasharray: 1 1; stroke-dashoffset: 1; visibility: hidden;
1988
+ transition: stroke-dashoffset var(--vk-duration-fast) var(--vk-ease-in), visibility var(--vk-duration-fast); }
1989
+ .o-eye-upper { transition: opacity var(--vk-duration-fast) var(--vk-ease-out); }
1990
+ :not([data-on]) > svg > .o-eye-slash, :not([data-on]) > svg > mask > .o-eye-cut { stroke-dashoffset: 0; visibility: visible; transition-timing-function: var(--vk-ease-out); }
1991
+ :not([data-on]) > svg > .o-eye-upper { opacity: 0; }
1992
+ @media (prefers-reduced-motion: reduce) { :is(.o-menu-eye, .o-menu-list-eye, .o-eye-slash, .o-eye-cut, .o-eye-upper) { transition: none; } }
1993
+ /* A row with a grip: the grip at its start; held, it stands over the others on the overlay's ground, as the sort
1994
+ editor's held rule does, its smooth clip let go so its shadow shows. */
1995
+ .o-menu-row > .o-menu-grip { flex: none; margin-left: calc(var(--vk-spacing) * -1); touch-action: none; }
1996
+ /* A row with no grip among rows that carry one keeps the grip's room (Mihai, 19 Nov 2026: "Keep the room"): the grip itself, out of
1997
+ sight, standing where a grip stands, so every row's mark is in one line. */
1998
+ .o-menu-grip-room { display: contents; visibility: hidden; }
1999
+ .o-menu-grip-room > .o-button { flex: none; margin-left: calc(var(--vk-spacing) * -1); }
2000
+ .o-menu-row[data-lifted] { position: relative; z-index: var(--vk-layer-popup); clip-path: none; background-color: var(--vk-overlay); box-shadow: var(--vk-shadow-lg); cursor: grabbing; }
2001
+ .o-menu-row[data-lifted] > .o-menu-grip { cursor: grabbing; }
2002
+ .o-menu-said { position: absolute; width: var(--vk-border-width); height: var(--vk-border-width); overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
2003
+
1588
2004
  .o-number { min-width: 0; }
1589
2005
  /* Bare: the control alone, Base UI's root standing aside, so the input is its place's own child, as the Input's bare form. */
1590
2006
  .o-number-bare { display: contents; }
@@ -1977,6 +2393,9 @@ textarea.o-input-control.o-input-lines { flex: none; min-height: 0; max-height:
1977
2393
  .o-sheet:is([data-sheet-form="full"], [data-sheet-form="floating"], [data-sheet-form="edge"]):not([data-sheet-smoothing="round"] *) { background-color: transparent; }
1978
2394
  .o-sheet:is([data-sheet-form="full"], [data-sheet-form="floating"], [data-sheet-form="edge"]):not([data-sheet-smoothing="round"] *)::after { background-color: var(--vk-overlay); }
1979
2395
  .o-sheet:is([data-sheet-form="full"], [data-sheet-form="floating"], [data-sheet-form="edge"]):not([data-sheet-smoothing="round"] *) > .o-sheet-cut { background-color: var(--vk-overlay); clip-path: var(--sheet-outline); }
2396
+ /* Its outline's bottom and foot are its own: they inherit, so what it holds (an Input, a Tag, each drawing the same outline)
2397
+ would take its square bottom. --sheet-outline was worked out on the sheet, so the cut keeps it. */
2398
+ .o-sheet:not([data-sheet-smoothing="round"] *) > .o-sheet-cut { --smooth-b: initial; --smooth-foot: initial; }
1980
2399
  }
1981
2400
 
1982
2401
  /* A sheet on a sheet: the one below steps back and stays still; only the top one is live. */
@@ -2939,6 +3358,9 @@ textarea.o-input-control.o-input-lines { flex: none; min-height: 0; max-height:
2939
3358
  .m-0 {
2940
3359
  margin: 0px;
2941
3360
  }
3361
+ .m-1 {
3362
+ margin: 4px;
3363
+ }
2942
3364
  .-mx-\(--vk-gutter\,0px\) {
2943
3365
  margin-inline: calc(var(--vk-gutter,0px) * -1);
2944
3366
  }
@@ -5696,14 +6118,23 @@ textarea.o-input-control.o-input-lines { flex: none; min-height: 0; max-height:
5696
6118
  --vk-shadow-field-hover: 0 1px 1px 0 rgb(16 17 26 / 0.16);
5697
6119
  --vk-font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
5698
6120
  --vk-overlay-selected: hsl(220 7% 90%);
5699
- --vk-header: hsl(0 0% 100%);
5700
- --vk-blur-xs: 4px;
5701
- --vk-blur-sm: 8px;
5702
6121
  --vk-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
5703
6122
  --vk-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
6123
+ --vk-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
5704
6124
  --vk-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
6125
+ --vk-shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
5705
6126
  --vk-layer-popup: 50;
6127
+ --vk-label-amber-pressed: hsl(24 86% 35.5%);
6128
+ --vk-label-blue-pressed: hsl(219 70% 46.5%);
6129
+ --vk-label-green-pressed: hsl(157 88% 24%);
6130
+ --vk-label-purple-pressed: hsl(260 65% 55%);
6131
+ --vk-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
5706
6132
  --vk-ease-in: cubic-bezier(0.4, 0, 1, 1);
6133
+ --vk-hold-delay: 500ms;
6134
+ --vk-submenu-delay: 100ms;
6135
+ --vk-header: hsl(0 0% 100%);
6136
+ --vk-blur-xs: 4px;
6137
+ --vk-blur-sm: 8px;
5707
6138
  --vk-scrollbar-size: 6px;
5708
6139
  --vk-scrollbar-inset: 2px;
5709
6140
  --vk-scrollbar-thumb: hsl(210 1% 82%);
@@ -5713,7 +6144,6 @@ textarea.o-input-control.o-input-lines { flex: none; min-height: 0; max-height:
5713
6144
  --vk-backdrop-sheet-light: hsl(214 30% 10% / 0.15);
5714
6145
  --vk-backdrop-stacked: hsl(214 30% 10% / 0.2);
5715
6146
  --vk-sheet-handle: hsl(210 1% 72%);
5716
- --vk-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
5717
6147
  --vk-spring-exit: 120px;
5718
6148
  --vk-spring-past: 12px;
5719
6149
  --vk-radius-3xl: 26.67px;
@@ -5762,8 +6192,6 @@ textarea.o-input-control.o-input-lines { flex: none; min-height: 0; max-height:
5762
6192
  --vk-warning-subtler: hsl(19 72% 92.5%);
5763
6193
  --vk-font-weight-bold: 700;
5764
6194
  --vk-tracking-wide: 0.025em;
5765
- --vk-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
5766
- --vk-shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
5767
6195
  --vk-font-size-2xs: 10px;
5768
6196
  --vk-tooltip-delay: 500ms;
5769
6197
  --vk-tooltip-warm: 300ms;
@@ -5920,17 +6348,23 @@ textarea.o-input-control.o-input-lines { flex: none; min-height: 0; max-height:
5920
6348
  --vk-shadow-field-focus-danger: 0 0 10px 0 hsl(1 55% 46.5% / 0.42);
5921
6349
  --vk-shadow-field-hover: 0 1px 1px 0 rgb(255 255 255 / 0.12);
5922
6350
  --vk-overlay-selected: hsl(225 7% 15%);
5923
- --vk-header: hsl(210 6% 7%);
5924
6351
  --vk-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
5925
6352
  --vk-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
6353
+ --vk-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
5926
6354
  --vk-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
6355
+ --vk-shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
6356
+ --vk-label-amber-pressed: hsl(21 66% 55%);
6357
+ --vk-label-blue-pressed: hsl(219 95% 64%);
6358
+ --vk-label-green-pressed: hsl(150 45% 51.5%);
6359
+ --vk-label-purple-pressed: hsl(256 100% 73%);
6360
+ --vk-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
6361
+ --vk-header: hsl(210 6% 7%);
5927
6362
  --vk-scrollbar-thumb: hsl(210 2% 26.5%);
5928
6363
  --vk-scrollbar-thumb-hovered: hsl(210 1% 37%);
5929
6364
  --vk-backdrop-sheet: hsl(0 0% 0% / 0.45);
5930
6365
  --vk-backdrop-sheet-light: hsl(0 0% 0% / 0.22);
5931
6366
  --vk-backdrop-stacked: hsl(0 0% 0% / 0.3);
5932
6367
  --vk-sheet-handle: hsl(210 2% 26.5%);
5933
- --vk-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
5934
6368
  --vk-amber-700: hsl(25 92% 41%);
5935
6369
  --vk-blue-700: hsl(219 87% 59.5%);
5936
6370
  --vk-border-accent: hsl(219 66% 47%);
@@ -5954,8 +6388,6 @@ textarea.o-input-control.o-input-lines { flex: none; min-height: 0; max-height:
5954
6388
  --vk-success-subtler: hsl(145 17% 12.5%);
5955
6389
  --vk-teal-700: hsl(192 87% 40%);
5956
6390
  --vk-warning-subtler: hsl(20 29% 13.5%);
5957
- --vk-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
5958
- --vk-shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
5959
6391
  --vk-t-shadow-menu: 0 8px 24px hsl(0 0% 0% / 0.5), 0 0 0 1px hsl(0 0% 18%);
5960
6392
  --vk-t-shadow-field: 0 1px 1px 0 rgb(255 255 255 / 0.08);
5961
6393
  --vk-t-shadow-field-hover: 0 1px 1px 0 rgb(255 255 255 / 0.12);
@@ -0,0 +1,40 @@
1
+ # The list's tokens
2
+
3
+ Every name the list's stylesheet (`list.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ | name | kind | the Outright token | default |
6
+ | ---- | ---- | ------------------ | ------- |
7
+ | `--vk-border` | colour | `border` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
8
+ | `--vk-border-subtle` | colour | `border-subtle` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
9
+ | `--vk-brand-subtler` | colour | `background-brand-subtler` | `hsl(218 100% 94%)` · dark `hsl(218 32% 14.5%)` |
10
+ | `--vk-brand-subtler-hovered` | colour | `background-brand-subtler-hovered` | `hsl(218 100% 89%)` · dark `hsl(219 46% 21%)` |
11
+ | `--vk-brand-subtlest` | colour | `background-brand-subtlest` | `hsl(218 100% 98%)` · dark `hsl(218 15% 10%)` |
12
+ | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
13
+ | `--vk-fg-disabled` | colour | `text-disabled` | `hsl(210 1% 72%)` · dark `hsl(210 1% 37%)` |
14
+ | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
15
+ | `--vk-overlay` | colour | `surface-overlay` | `hsl(0 0% 100%)` · dark `hsl(226 10% 10%)` |
16
+ | `--vk-overlay-hovered` | colour | `surface-overlay-hovered` | `hsl(220 3% 97%)` · dark `hsl(225 7% 15%)` |
17
+ | `--vk-overlay-pressed` | colour | `surface-overlay-pressed` | `hsl(0 0% 94%)` · dark `hsl(225 7% 15%)` |
18
+ | `--vk-overlay-selected` | colour | `surface-overlay-selected` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
19
+ | `--vk-shadow-lg` | shadow | `shadow-lg` | `0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)` |
20
+ | `--vk-shadow-md` | shadow | `shadow-md` | `0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)` |
21
+ | `--vk-shadow-sm` | shadow | `shadow-sm` | `0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)` |
22
+ | `--vk-shadow-xl` | shadow | `shadow-xl` | `0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)` |
23
+ | `--vk-shadow-xs` | shadow | `shadow-xs` | `0 1px 2px 0 rgb(0 0 0 / 0.05)` |
24
+ | `--vk-border-width` | size | `border-width` | `1px` |
25
+ | `--vk-font-size-sm` | size | `text-sm` | `14px` |
26
+ | `--vk-font-size-xs` | size | `text-xs` | `12px` |
27
+ | `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
28
+ | `--vk-layer-popup` | size | `layer-popup` | `50` |
29
+ | `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
30
+ | `--vk-line-height-xs` | size | `text-xs--line-height` | `1.3333` |
31
+ | `--vk-radius-2xl` | size | `radius-2xl` | `20px` |
32
+ | `--vk-radius-full` | size | `radius-full` | `9999px` |
33
+ | `--vk-radius-lg` | size | `radius-lg` | `10px` |
34
+ | `--vk-radius-md` | size | `radius-md` | `7.5px` |
35
+ | `--vk-radius-sm` | size | `radius-sm` | `5px` |
36
+ | `--vk-radius-xl` | size | `radius-xl` | `15px` |
37
+ | `--vk-radius-xs` | size | `radius-xs` | `2.5px` |
38
+ | `--vk-spacing` | size | `spacing` | `4px` |
39
+ | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
40
+ | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |