@bigpixelrocket/uiok 0.1.4 → 0.2.1

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 (146) hide show
  1. package/CHANGELOG.md +95 -1
  2. package/README.md +1 -1
  3. package/dist/activity/ActivityBar.d.ts +21 -8
  4. package/dist/activity/ActivityBar.js +15 -5
  5. package/dist/activity/activity.css +53 -6
  6. package/dist/button/Button.d.ts +10 -6
  7. package/dist/button/Button.js +6 -1
  8. package/dist/button/button.css +201 -33
  9. package/dist/charts/Line.logic.d.ts +6 -0
  10. package/dist/charts/Line.logic.js +9 -0
  11. package/dist/charts/LineChart.js +11 -4
  12. package/dist/charts/Pie.logic.d.ts +89 -1
  13. package/dist/charts/Pie.logic.js +272 -2
  14. package/dist/charts/PieChart.d.ts +2 -1
  15. package/dist/charts/PieChart.js +12 -5
  16. package/dist/charts/PieFill.d.ts +15 -0
  17. package/dist/charts/PieFill.js +33 -0
  18. package/dist/charts/ResultChart.d.ts +2 -2
  19. package/dist/charts/ResultChart.js +173 -47
  20. package/dist/charts/ResultChart.logic.d.ts +60 -4
  21. package/dist/charts/ResultChart.logic.js +105 -6
  22. package/dist/charts/Scatter.logic.d.ts +18 -4
  23. package/dist/charts/Scatter.logic.js +98 -22
  24. package/dist/charts/ScatterChart.js +19 -5
  25. package/dist/charts/charts.css +233 -116
  26. package/dist/charts/seriesColour.d.ts +2 -0
  27. package/dist/charts/seriesColour.js +1 -1
  28. package/dist/datetime/DateTimePicker.d.ts +12 -2
  29. package/dist/datetime/DateTimePicker.js +61 -16
  30. package/dist/datetime/DateTimePicker.logic.d.ts +29 -0
  31. package/dist/datetime/DateTimePicker.logic.js +25 -0
  32. package/dist/datetime/datetime.css +89 -49
  33. package/dist/dialog/ConfirmDialog.d.ts +69 -20
  34. package/dist/dialog/ConfirmDialog.js +39 -12
  35. package/dist/dialog/DialogLayer.d.ts +25 -0
  36. package/dist/dialog/DialogLayer.js +24 -0
  37. package/dist/dialog/DialogLegend.d.ts +2 -1
  38. package/dist/dialog/DialogLegend.js +10 -5
  39. package/dist/dialog/DialogLegend.logic.d.ts +15 -3
  40. package/dist/dialog/DialogLegend.logic.js +8 -4
  41. package/dist/dialog/DialogLists.d.ts +157 -0
  42. package/dist/dialog/DialogLists.js +137 -0
  43. package/dist/dialog/ModalDialog.d.ts +20 -15
  44. package/dist/dialog/ModalDialog.js +22 -7
  45. package/dist/dialog/dialog.css +570 -127
  46. package/dist/dialog/index.d.ts +7 -1
  47. package/dist/dialog/index.js +7 -1
  48. package/dist/field/Check.d.ts +15 -0
  49. package/dist/field/Check.js +23 -0
  50. package/dist/field/field.css +812 -0
  51. package/dist/field/index.d.ts +10 -0
  52. package/dist/field/index.js +10 -0
  53. package/dist/field/labelHelp.d.ts +33 -0
  54. package/dist/field/labelHelp.js +22 -0
  55. package/dist/filter/FilterIcon.js +2 -1
  56. package/dist/filter/filter.css +72 -20
  57. package/dist/grid/DataGrid.d.ts +19 -2
  58. package/dist/grid/DataGrid.js +122 -41
  59. package/dist/grid/DataGrid.logic.d.ts +15 -3
  60. package/dist/grid/DataGrid.logic.js +18 -5
  61. package/dist/grid/grid.css +481 -56
  62. package/dist/icon/Spinner.d.ts +16 -0
  63. package/dist/icon/Spinner.js +13 -0
  64. package/dist/icon/index.d.ts +5 -0
  65. package/dist/icon/index.js +5 -0
  66. package/dist/icon/sizes.d.ts +19 -0
  67. package/dist/icon/sizes.js +19 -0
  68. package/dist/index.d.ts +2 -0
  69. package/dist/index.js +2 -0
  70. package/dist/keychord/KeyChord.d.ts +12 -1
  71. package/dist/keychord/KeyChord.js +2 -2
  72. package/dist/keychord/index.d.ts +1 -1
  73. package/dist/keychord/keychord.css +87 -9
  74. package/dist/labels/dialog.d.ts +12 -1
  75. package/dist/labels/dialog.js +3 -1
  76. package/dist/labels/selectAll.d.ts +4 -4
  77. package/dist/labels/selectAll.js +1 -1
  78. package/dist/legend/KeyLegendStrip.js +1 -1
  79. package/dist/legend/legend.css +82 -57
  80. package/dist/listing/Listing.d.ts +17 -10
  81. package/dist/listing/Listing.js +33 -26
  82. package/dist/listing/listing.css +1665 -237
  83. package/dist/menu/menu.css +227 -67
  84. package/dist/menu/useBellBeat.js +2 -2
  85. package/dist/namecut/NameCut.d.ts +3 -1
  86. package/dist/namecut/NameCut.js +152 -5
  87. package/dist/namecut/NameCut.logic.d.ts +5 -3
  88. package/dist/namecut/NameCut.logic.js +20 -5
  89. package/dist/namecut/namecut.css +27 -7
  90. package/dist/pager/Pager.d.ts +12 -4
  91. package/dist/pager/Pager.js +21 -7
  92. package/dist/pager/pager.css +41 -30
  93. package/dist/palette/Palette.js +2 -1
  94. package/dist/palette/palette.css +121 -60
  95. package/dist/pane/PaneActions.d.ts +56 -14
  96. package/dist/pane/PaneActions.js +64 -16
  97. package/dist/pane/PaneFrame.d.ts +37 -5
  98. package/dist/pane/PaneFrame.js +246 -11
  99. package/dist/pane/index.d.ts +4 -2
  100. package/dist/pane/index.js +4 -2
  101. package/dist/pane/toolWords.d.ts +14 -0
  102. package/dist/pane/toolWords.js +26 -0
  103. package/dist/pane/useToolbarFit.d.ts +25 -0
  104. package/dist/pane/useToolbarFit.js +95 -0
  105. package/dist/run/RunHeader.d.ts +5 -3
  106. package/dist/run/RunHeader.js +11 -8
  107. package/dist/run/run.css +64 -79
  108. package/dist/segmented/SegmentedChoice.d.ts +18 -2
  109. package/dist/segmented/SegmentedChoice.js +18 -7
  110. package/dist/segmented/segmented.css +62 -22
  111. package/dist/selectall/SelectAllBar.d.ts +4 -3
  112. package/dist/selectall/SelectAllBar.js +4 -3
  113. package/dist/selectall/selectall.css +17 -12
  114. package/dist/shell/shell.css +1073 -0
  115. package/dist/styles.css +620 -22
  116. package/dist/surface/surface.css +154 -0
  117. package/dist/tabs/PageTabs.d.ts +10 -5
  118. package/dist/tabs/PageTabs.js +126 -37
  119. package/dist/tabs/tabs.css +131 -51
  120. package/dist/terminal/Terminal.js +3 -1
  121. package/dist/terminal/Terminal.logic.d.ts +5 -4
  122. package/dist/terminal/Terminal.logic.js +9 -4
  123. package/dist/terminal/TerminalMenu.d.ts +4 -1
  124. package/dist/terminal/TerminalMenu.js +12 -5
  125. package/dist/terminal/ghostty/contrast.logic.d.ts +45 -0
  126. package/dist/terminal/ghostty/contrast.logic.js +130 -0
  127. package/dist/terminal/ghostty/core.d.ts +6 -0
  128. package/dist/terminal/ghostty/renderer.d.ts +9 -2
  129. package/dist/terminal/ghostty/renderer.js +91 -14
  130. package/dist/terminal/ghostty/surface.d.ts +8 -0
  131. package/dist/terminal/ghostty/surface.js +27 -1
  132. package/dist/terminal/terminal.css +87 -61
  133. package/dist/text/text.css +16 -7
  134. package/dist/themes/catalog.js +4 -3
  135. package/dist/themes/themes.generated.css +1307 -264
  136. package/dist/themes/tokens.d.ts +69 -14
  137. package/dist/themes/tokens.js +920 -97
  138. package/dist/tokens.css +239 -0
  139. package/dist/tooltip/Tooltip.d.ts +6 -0
  140. package/dist/tooltip/Tooltip.js +48 -6
  141. package/dist/tooltip/Tooltip.logic.d.ts +89 -12
  142. package/dist/tooltip/Tooltip.logic.js +142 -20
  143. package/dist/tooltip/index.d.ts +1 -1
  144. package/dist/tooltip/index.js +1 -1
  145. package/dist/tooltip/tooltip.css +39 -9
  146. package/package.json +3 -3
@@ -9,17 +9,21 @@
9
9
  class. Every rule is scoped by :where(.listing-root), so it weighs one
10
10
  class less than an app's own `.my-view .row` and the app adjusts one with
11
11
  a single scoped selector whatever order the stylesheets load in. The
12
- class names carry no prefix. */
12
+ compact controls (crumbs, the path star, QuietAction, RowIconAction, sort
13
+ headers, strip links) are the exception: their look is their own class's,
14
+ so a control drawn outside a listing scope looks the same. Their hover
15
+ and pressed looks are the base sheet's shared recipes. The class names
16
+ carry no prefix. */
13
17
 
14
18
  /* The current one in a list (CurrentDot): one character after its label,
15
19
  neutral so it never reads as a status dot. */
16
20
  .current-dot {
17
21
  display: inline-block;
18
22
  flex: none;
19
- width: 6px;
20
- height: 6px;
23
+ width: var(--dot);
24
+ height: var(--dot);
21
25
  margin-left: 1ch;
22
- border-radius: 50%;
26
+ border-radius: var(--radius-pill);
23
27
  background: var(--text-dim);
24
28
  vertical-align: middle;
25
29
  }
@@ -27,10 +31,10 @@
27
31
  .listing-root {
28
32
  /* Sticky column-header height; a row's scroll-margin-top must match it so
29
33
  scrollIntoView targets clear the header instead of hiding under it. */
30
- --pane-columns-height: 22px;
34
+ --pane-columns-height: var(--row-height-dense);
31
35
 
32
36
  /* Height of the path bar's row, the first inside the frame. */
33
- --pane-path-height: 26px;
37
+ --pane-path-height: var(--bar-height);
34
38
 
35
39
  /* The gutter before every listing column after the name, in the listing's
36
40
  own characters; the column strip's rules stand in its middle. */
@@ -38,7 +42,19 @@
38
42
 
39
43
  /* The space a row and the column strip keep clear at either edge of the
40
44
  listing; the strip's first and last headers reach across it. */
41
- --pane-row-inset: 8px;
45
+ --pane-row-inset: var(--space-4);
46
+
47
+ /* How far a glyph-only control (a 20px box round a 14px glyph) at a
48
+ pane's end reaches back over the row inset, so its glyph, not its box,
49
+ ends on the inset: the path bar's last tool, each row's last action,
50
+ and the status line's tools stand in one column of glyphs. */
51
+ --pane-glyph-reach: calc((var(--control-height-xs) - var(--icon-md)) / 2);
52
+
53
+ /* The least a name column gives way to in a narrow pane, in the listing's
54
+ own characters, so a name keeps enough to be told apart; past it the
55
+ list scrolls sideways (the default grid, WellColumn, and the documented
56
+ name track `minmax(min(var(--pane-name-floor), 100%), 1fr)`). */
57
+ --pane-name-floor: 14ch;
42
58
  }
43
59
 
44
60
  /* A pane is a frame on the window ground: ::before draws the hairline and
@@ -61,11 +77,11 @@
61
77
  content: '';
62
78
  position: absolute;
63
79
  inset: 0;
64
- z-index: -1;
80
+ z-index: var(--z-below);
65
81
  box-sizing: border-box;
66
82
  background: var(--surface);
67
- border: 1px solid var(--border-strong);
68
- border-radius: 6px;
83
+ border: var(--line) solid var(--border-strong);
84
+ border-radius: var(--radius-md);
69
85
  }
70
86
 
71
87
  /* The active pane wears the accent on its frame. */
@@ -74,235 +90,653 @@
74
90
  }
75
91
 
76
92
  /* The listing's face: the path bar, the list, and the status line are set
77
- in the monospace face, whatever the space around them uses. */
93
+ in the monospace face, whatever the space around them uses. An empty
94
+ pane's block is sentences, in the interface face. */
78
95
  :where(.listing-root) :is(.pane-path-row, .pane-list, .pane-status) {
79
96
  font-family: var(--font-mono);
80
- font-size: 13px;
81
- }
82
-
83
- /* The path bar's row: the first inside the frame, on the pane's own surface. */
97
+ font-size: var(--font-size-body);
98
+ }
99
+
100
+ /* The path bar's row: the first inside the frame, on the pane's own surface.
101
+ It holds the trail and the tools (facts and compact controls) on one
102
+ line, and they give way in one order (docs/components/pane.md, "How a
103
+ narrow bar gives way"): the crumbs before the last, to one character
104
+ each; the last crumb, to a stem of eight; a fact's words, to one; the
105
+ crumbs before the last, out of view at the trail's start; the last
106
+ crumb, to one character. The trail's floor (`--pane-crumb-room`: every
107
+ crumb at its least, the slashes, a root's mark, the current dot) is what
108
+ the tools may not take while they can still give, and only what the
109
+ tools cannot give at all goes below it. */
84
110
  :where(.listing-root) .pane-path-row {
111
+ --pane-crumb-room: calc(
112
+ min(1, var(--pane-crumb-count)) *
113
+ (
114
+ var(--pane-row-inset) - var(--space-2) + var(--space-1) + (var(--pane-crumb-count) - 1) *
115
+ (3ch + var(--space-4) + 2 * var(--space-1)) + var(--pane-crumb-here-room, 9ch) +
116
+ var(--space-4) + var(--pane-crumb-mark-room, 0px)
117
+ ) +
118
+ (1 - min(1, var(--pane-crumb-count))) * (var(--pane-row-inset) + 10ch)
119
+ );
120
+
85
121
  flex: 0 0 var(--pane-path-height);
86
122
  display: flex;
87
123
  align-items: center;
88
124
  box-sizing: border-box;
89
125
  min-width: 0;
90
- border-bottom: 1px solid var(--border);
126
+ border-bottom: var(--line) solid var(--border);
127
+ }
128
+
129
+ /* How many crumbs a trail draws after its root. PanePathBar sets it on its
130
+ row; a host that writes its own trail sets it on `.pane-path-row`, so the
131
+ tools beside the trail read it too. Without it the floor holds two cut
132
+ crumbs. `--pane-crumb-here-room` is the last crumb's stem, the shorter
133
+ of its name and eight characters, and its ellipsis (`9ch` without it). */
134
+ @property --pane-crumb-count {
135
+ syntax: '<integer>';
136
+ inherits: true;
137
+ initial-value: 0;
138
+ }
139
+
140
+ /* The floor's room for a root's mark (an icon and its crumb's padding) and
141
+ for the current dot after the last crumb's words. */
142
+ :where(.listing-root) .pane-path-row:has(> .pane-crumbs > .crumb.root) {
143
+ --pane-crumb-mark-room: calc(var(--icon-md) + var(--space-4));
144
+ }
145
+
146
+ :where(.listing-root) .pane-path-row:has(> .pane-crumbs > .crumb.here > .current-dot) {
147
+ --pane-crumb-mark-room: calc(1ch + var(--dot) + var(--space-2));
148
+ }
149
+
150
+ :where(.listing-root)
151
+ .pane-path-row:has(> .pane-crumbs > .crumb.root):has(
152
+ > .pane-crumbs > .crumb.here > .current-dot
153
+ ) {
154
+ --pane-crumb-mark-room: calc(var(--icon-md) + var(--space-4) + 1ch + var(--dot) + var(--space-2));
91
155
  }
92
156
 
93
157
  /* The trail fills its row, root first; the slashes between crumbs only
94
- separate them. */
158
+ separate them. The first crumb's words start on the row inset, the line
159
+ the column strip's first label and the rows' icons start on, so the
160
+ pane's three bands share one left edge. Its shrink factor is a million
161
+ times the tools', so the tools give less than a layout unit while it
162
+ gives way, and a fact shows no ellipsis early.
163
+ A trail its row cannot hold whole scrolls sideways, its scrollbar
164
+ hidden: what is out of view is a scroll away, a crumb the keyboard
165
+ focuses scrolls into view clear of the fade, and nothing is drawn past
166
+ the trail's box, so it never runs under the tools. PanePathBar rests a
167
+ trail that scrolls on its end, a slash first (`data-cramped`). The side that hides crumbs fades over its padding and that
168
+ slash, so no glyph shows cut. */
95
169
  :where(.listing-root) .pane-crumbs {
96
- flex: 1;
170
+ --scroll-fade-size: calc(var(--pane-row-inset) - var(--space-2) + 1ch + 2 * var(--space-1));
171
+
172
+ flex: 1 1000000 auto;
97
173
  display: flex;
98
174
  align-items: center;
175
+ box-sizing: border-box;
99
176
  min-width: 0;
100
177
  height: 100%;
101
- padding: 0 2px 0 8px;
178
+ padding: 0 var(--space-1) 0 calc(var(--pane-row-inset) - var(--space-2));
179
+ scroll-padding-inline: var(--scroll-fade-size);
180
+ scrollbar-width: none;
181
+ }
182
+
183
+ /* A trail at rest on a slash is pinned to what it shows (PanePathBar's
184
+ `data-cramped="pinned"` and `--pane-crumb-fit`), so the room a crumb out of view leaves goes to the
185
+ tools instead of standing empty after the last crumb. */
186
+ :where(.listing-root) .pane-crumbs[data-cramped='pinned'] {
187
+ flex: none;
188
+ width: var(--pane-crumb-fit);
189
+ }
190
+
191
+ /* A crumb's menu opens inside its crumb, so the trail clips nothing while
192
+ one is open: the menu stays whole past the trail's box. */
193
+ :where(.listing-root) .pane-crumbs:not(:has([aria-expanded='true'])) {
194
+ overflow-x: auto;
195
+ overflow-y: hidden;
196
+ }
197
+
198
+ @supports (animation-timeline: scroll()) {
199
+ :where(.listing-root) .pane-crumbs:not(:has([aria-expanded='true'])) {
200
+ mask-image: linear-gradient(
201
+ to right,
202
+ transparent,
203
+ var(--ground) var(--scroll-fade-inline-start),
204
+ var(--ground) calc(100% - var(--scroll-fade-inline-end)),
205
+ transparent
206
+ );
207
+ animation: uiok-scroll-fade-inline linear both;
208
+ animation-timeline: scroll(self inline);
209
+ }
102
210
  }
103
211
 
104
212
  /* A crumb's menu anchors under it. A crumb that shrinks keeps room for one
105
- character and its ellipsis. */
213
+ character and its ellipsis. The crumbs before the last give way first:
214
+ their shrink factor dwarfs the last crumb's, so the place the pane shows
215
+ is cut only once the trail before it has gone as far as it goes. */
106
216
  :where(.listing-root) .crumb {
107
217
  position: relative;
108
- flex: 0 1 auto;
109
- min-width: calc(2ch + 8px);
218
+ flex: 0 1000 auto;
219
+ min-width: calc(2ch + var(--space-4));
110
220
  display: inline-flex;
111
221
  align-items: center;
112
- height: 24px;
222
+ height: var(--control-height-sm);
113
223
  }
114
224
 
115
- /* The ends of the trail never shrink, and a one-character name has nothing to
116
- give an ellipsis. These keep their own width: the shrinking floor is wider
117
- than the root's mark or a single character, and would pad the crumb and open
118
- a gap before the next slash. A home crumb and a brief one (a short fixed
119
- name) keep their width too. */
120
- :where(.listing-root) .crumb:is(.root, .home, .here, .brief) {
225
+ /* The root never shrinks, and a one-character name has nothing to give an
226
+ ellipsis. These keep their own width: the shrinking floor is wider than the
227
+ root's mark or a single character, and would pad the crumb and open a gap
228
+ before the next slash. A home crumb and a brief one (a short fixed name)
229
+ keep their width too. */
230
+ :where(.listing-root) .crumb:is(.root, .home, .brief) {
121
231
  flex-shrink: 0;
122
232
  min-width: 0;
123
233
  }
124
234
 
125
- :where(.listing-root) .crumb-label {
235
+ /* The last crumb gives way last (the trail before it shrinks a thousand
236
+ times faster), and in two steps: to a stem of eight characters and its
237
+ ellipsis while a fact still has words to give, and below that only
238
+ once the crumbs before it are out of view, down to one character, in
239
+ a trail of one crumb all its box, else its box less a leading slash and
240
+ less the half of the padding before it that a trail at rest shows.
241
+ A name shorter than its floor keeps its own width. */
242
+ :where(.listing-root) .crumb.here {
243
+ flex-shrink: 1;
244
+ min-width: calc-size(
245
+ max-content,
246
+ min(size, max(2ch + var(--space-4), min(9ch + var(--space-4), 100%)))
247
+ );
248
+ }
249
+
250
+ :where(.listing-root) .crumb-separator ~ .crumb.here {
251
+ min-width: calc-size(
252
+ max-content,
253
+ min(size, max(2ch + var(--space-4), min(9ch + var(--space-4), 100% - 1ch - var(--space-1))))
254
+ );
255
+ }
256
+
257
+ /* The current dot sits inside the last crumb, after its words, so its
258
+ floors keep room for the dot as well, and the dot keeps the label's own
259
+ padding after it, so it stands as far from what follows as a crumb's
260
+ words do. */
261
+ :where(.listing-root) .crumb.here:has(> .current-dot) {
262
+ min-width: calc-size(
263
+ max-content,
264
+ min(
265
+ size,
266
+ max(
267
+ 3ch + var(--space-4) + var(--dot) + var(--space-2),
268
+ min(10ch + var(--space-4) + var(--dot) + var(--space-2), 100%)
269
+ )
270
+ )
271
+ );
272
+ }
273
+
274
+ :where(.listing-root) .crumb-separator ~ .crumb.here:has(> .current-dot) {
275
+ min-width: calc-size(
276
+ max-content,
277
+ min(
278
+ size,
279
+ max(
280
+ 3ch + var(--space-4) + var(--dot) + var(--space-2),
281
+ min(10ch + var(--space-4) + var(--dot) + var(--space-2), 100% - 1ch - var(--space-1))
282
+ )
283
+ )
284
+ );
285
+ }
286
+
287
+ :where(.listing-root) .crumb.here > .current-dot {
288
+ margin-inline-end: var(--space-2);
289
+ }
290
+
291
+ .crumb-label {
126
292
  min-width: 0;
127
- height: 20px;
293
+ height: var(--control-height-xs);
128
294
  margin: 0;
129
- padding: 0 4px;
295
+ padding: 0 var(--space-2);
130
296
  overflow: hidden;
131
297
  border: none;
132
- border-radius: 4px;
298
+ border-radius: var(--radius-sm);
133
299
  background: transparent;
134
300
  color: var(--text-dim);
135
301
  font: inherit;
136
302
  text-overflow: ellipsis;
137
303
  white-space: nowrap;
138
- cursor: pointer;
304
+ cursor: default;
139
305
  }
140
306
 
141
- :where(.listing-root) .crumb.root .crumb-label {
307
+ /* A crumb that is a control cuts its words in that inner box, not in
308
+ itself, so its hit area can reach past its 20px to --hit-target in the
309
+ block axis, inside the 26px bar. */
310
+ button.crumb-label {
311
+ position: relative;
142
312
  display: inline-flex;
143
313
  align-items: center;
314
+ max-width: 100%;
315
+ overflow: visible;
316
+ isolation: isolate;
144
317
  }
145
318
 
146
- /* Only a crumb that is a control reacts to the pointer. */
147
- :where(.listing-root) button.crumb-label:hover {
148
- background: var(--hover-wash);
149
- box-shadow: var(--hover-frost);
150
- color: var(--text);
319
+ button.crumb-label::after {
320
+ position: absolute;
321
+ inset-block: min(0px, calc((100% - var(--hit-target)) / 2));
322
+ inset-inline: 0;
323
+ content: '';
151
324
  }
152
325
 
326
+ /* The hit area paints over the words, so the pointer would land on the
327
+ button and never reach the tooltip on the words' own box, which opens only
328
+ while they are cut. The box sits above the hit area, inside the stacking
329
+ context the button keeps to itself; a press still reaches the button. */
330
+ button.crumb-label > .crumb-text {
331
+ position: relative;
332
+ z-index: var(--z-raised);
333
+ }
334
+
335
+ .crumb-text {
336
+ min-width: 0;
337
+ overflow: hidden;
338
+ text-overflow: ellipsis;
339
+ white-space: nowrap;
340
+ }
341
+
342
+ .crumb.root .crumb-label {
343
+ display: inline-flex;
344
+ align-items: center;
345
+ }
346
+
347
+ /* Only a crumb that is a control reacts to the pointer: its hover and
348
+ pressed looks are the base sheet's shared quiet recipes, which weigh the
349
+ same, so a press shows over the hover. */
350
+
153
351
  /* The trail's last crumb is where the pane is. */
154
- :where(.listing-root) .crumb.here .crumb-label {
352
+ .crumb.here .crumb-label {
155
353
  color: var(--text);
156
354
  }
157
355
 
158
- :where(.listing-root) .crumb-separator {
356
+ /* A slash is a separator, never words: the faint tone. */
357
+ .crumb-separator {
159
358
  flex: none;
160
- padding: 0 1px;
161
- /* Catppuccin overlay2. */
162
- color: var(--syntax-overlay2);
359
+ /* Clear of a crumb's hover box and focus ring on either side. */
360
+ padding: 0 var(--space-1);
361
+ color: var(--text-faint);
163
362
  }
164
363
 
165
- :where(.listing-root) .crumb-label:focus-visible {
166
- outline: 2px solid var(--accent);
167
- outline-offset: -2px;
364
+ /* Compact controls in a bar or a row have room for the ring: it sits on
365
+ their edge and keeps their corners. */
366
+ :is(.crumb-label, .path-star, .pane-act, .pane-icon-act):focus-visible {
367
+ outline-offset: var(--focus-offset-flush);
168
368
  }
169
369
 
170
370
  /* A compact icon control at the path bar's end (`.path-star`: a favourite's
171
371
  star, a sidebar's Refresh), drawn as a crumb is. */
172
- :where(.listing-root) .path-star {
372
+ .path-star {
173
373
  flex: none;
174
374
  display: inline-flex;
175
375
  align-items: center;
176
376
  justify-content: center;
177
- width: 22px;
178
- height: 20px;
179
- margin-right: 4px;
377
+ position: relative;
378
+ width: var(--control-height-xs);
379
+ height: var(--control-height-xs);
380
+ margin-right: var(--space-2);
180
381
  padding: 0;
181
382
  border: none;
182
- border-radius: 4px;
383
+ border-radius: var(--radius-sm);
183
384
  background: transparent;
184
385
  color: var(--text-dim);
185
- cursor: pointer;
186
- }
187
-
188
- :where(.listing-root) .path-star:hover:enabled {
189
- background: var(--hover-wash);
190
- box-shadow: var(--hover-frost);
191
- color: var(--text);
192
- }
193
-
194
- :where(.listing-root) .path-star:focus-visible {
195
- outline: 2px solid var(--accent);
196
- outline-offset: -2px;
386
+ cursor: default;
197
387
  }
198
388
 
199
389
  /* A crumb is mostly no control (PanePathBar), so a label crumb centres its
200
- text as a button would and takes no pointer. */
201
- :where(.listing-root) .crumb-label:not(button) {
390
+ text as a button would and takes no pointer. Its words are cut in an
391
+ inner block box (`.crumb-text`), as a button crumb's are: words laid
392
+ straight into this flex box would sit in an anonymous item, where
393
+ text-overflow draws no ellipsis. */
394
+ .crumb-label:not(button) {
202
395
  display: inline-flex;
203
396
  align-items: center;
204
397
  cursor: default;
205
398
  }
206
399
 
207
- /* A page's facts and compact controls at its path bar's end. */
400
+ /* A page's facts and compact controls at its path bar's end. The last
401
+ item's words or glyph end on the row inset, over the rows' actions: facts
402
+ end there as they are, and a padded control reaches back over the inset
403
+ by its own padding (a quiet action's --space-3 after its words, a star's
404
+ --space-2 either side of its glyph).
405
+ Beside a trail, the tools take no more than the row less the trail's
406
+ floor while they can still give (a fact's words), and never less than
407
+ they need at their least (`min-content`: every control whole, a fact
408
+ down to its mark and one character and its ellipsis), which wins over
409
+ that cap: so the trail goes below its floor only for what the tools
410
+ cannot give, and no control is pushed out of the row. That least is
411
+ never more than the row: past it, a host's own box that cuts itself
412
+ (`min-width: 0` and its own ellipsis) gives way inside the tools. A row
413
+ a host lets wrap (PanePathBar's `data-wraps`) puts no cap on its tools,
414
+ which then sit on a line of their own. */
208
415
  :where(.listing-root) .path-tools {
209
416
  display: flex;
210
417
  flex: 0 1 auto;
211
418
  align-items: center;
212
- gap: 8px;
213
- min-width: 0;
214
- padding-right: 4px;
419
+ gap: var(--space-4);
420
+ box-sizing: border-box;
421
+ min-width: calc-size(min-content, min(size, 100%));
422
+ padding-right: var(--pane-row-inset);
423
+ }
424
+
425
+ :where(.listing-root) .pane-path-row:has(> .pane-crumbs):not([data-wraps]) > .path-tools {
426
+ max-width: calc(100% - var(--pane-crumb-room));
427
+ }
428
+
429
+ /* A fact that opens the tools stands a mark's gap and the label padding
430
+ clear of the trail: twice the gap between its own mark and words. */
431
+ /* Beside a pinned trail, the tools still end on the row inset: spare room
432
+ stands between the trail and the tools, never after the last tool. */
433
+ :where(.listing-root) .pane-path-row:has(> .pane-crumbs[data-cramped='pinned']) > .path-tools {
434
+ max-width: none;
435
+ margin-inline-start: auto;
436
+ }
437
+
438
+ :where(.listing-root) .path-tools:has(> .path-facts:first-child) {
439
+ padding-left: var(--space-3);
440
+ }
441
+
442
+ :where(.listing-root) .path-tools > .pane-act:last-child {
443
+ margin-right: calc(-1 * var(--space-3));
444
+ }
445
+
446
+ :where(.listing-root) .path-tools > .path-star:last-child {
447
+ margin-right: calc(-1 * var(--pane-glyph-reach));
215
448
  }
216
449
 
217
- /* A page's state at the path bar's end: its dot and words; a failure reads
218
- red, a change waiting for the user amber. */
450
+ /* Where even the last crumb's stem would not fit, a bar's quiet actions
451
+ say their verbs with their icons alone (PanePathBar's `data-tight`), as
452
+ a row's actions do where values need the room. A toolbar fitted by
453
+ useToolbarFit (`data-tool-fit`) steps its tools the same way when their
454
+ words do not fit its line, a tool marked `data-keep-word` only at its
455
+ last step (`data-tight="all"`); it is drawn outside the listing look
456
+ too. The word leaves the drawing as the base sheet's .visually-hidden
457
+ does, so the button keeps its name. */
458
+ :where(.listing-root) .pane-path-row[data-tight] > .path-tools > .pane-act:not(.wordless),
459
+ [data-tool-fit][data-tight] .pane-act:not(.wordless, [data-keep-word]),
460
+ [data-tool-fit][data-tight='all'] .pane-act[data-keep-word]:not(.wordless) {
461
+ gap: 0;
462
+ padding: 0 var(--space-2);
463
+ }
464
+
465
+ :where(.listing-root)
466
+ .pane-path-row[data-tight]
467
+ > .path-tools
468
+ > .pane-act:not(.wordless):last-child {
469
+ margin-right: calc(-1 * var(--space-2));
470
+ }
471
+
472
+ :where(.listing-root) .pane-path-row[data-tight] > .path-tools > .pane-act > .pane-act-word,
473
+ [data-tool-fit][data-tight] .pane-act:not([data-keep-word]) > .pane-act-word,
474
+ [data-tool-fit][data-tight='all'] .pane-act[data-keep-word] > .pane-act-word {
475
+ position: absolute;
476
+ width: 1px;
477
+ height: 1px;
478
+ margin: -1px;
479
+ padding: 0;
480
+ overflow: hidden;
481
+ clip-path: inset(50%);
482
+ white-space: nowrap;
483
+ }
484
+
485
+ /* A page's state at the path bar's end: its mark and words. A failure or a
486
+ change waiting for the user says so with its mark in the tone's colour
487
+ (a square, a diamond) and its words in the text colour, a step up from a
488
+ plain fact's dim words; the words are never red or amber. Once the trail has given
489
+ its floor, a fact cuts its words with an ellipsis, down to one
490
+ character. The mark stands --space-3 from its words in every form, as a
491
+ listing row's does. A fact built of other boxes (a link, a chip, a
492
+ control) is the host's: it keeps its width, and the trail gives way
493
+ for it instead. */
219
494
  :where(.listing-root) .path-facts {
220
495
  display: inline-flex;
221
496
  flex: 0 1 auto;
222
497
  align-items: center;
223
- gap: 6px;
224
- min-width: 0;
498
+ gap: var(--space-3);
225
499
  color: var(--text-dim);
226
- font-size: 12px;
500
+ font-size: var(--font-size-small);
227
501
  white-space: nowrap;
228
502
  }
229
503
 
230
- :where(.listing-root) .path-facts.danger {
231
- color: var(--danger);
504
+ /* The mark keeps its width while the words cut, so they never crowd it. */
505
+ :where(.listing-root) .path-facts > .pane-state {
506
+ flex: none;
232
507
  }
233
508
 
234
- :where(.listing-root) .path-facts.warning {
235
- color: var(--warning-text, var(--warning));
509
+ /* Words that cut (PathFact's `.path-fact-text`, and a fact of bare words
510
+ below) are one clamped line that may break between any two characters:
511
+ it shows what fits and an ellipsis, and the least it asks of its row is
512
+ one character and that ellipsis, so the tools' `min-content` is what
513
+ they need at their least. Words in `.path-fact-text` carry `cutTooltip`,
514
+ so the whole fact opens as a tooltip only while it is cut. */
515
+ :where(.listing-root)
516
+ :is(.path-fact-text, .path-facts:not(:has(> :not(.pane-state, svg, :empty)))) {
517
+ display: -webkit-box;
518
+ -webkit-box-orient: vertical;
519
+ -webkit-line-clamp: 1;
520
+ overflow: hidden;
521
+ white-space: normal;
522
+ word-break: break-all;
523
+ }
524
+
525
+ :where(.listing-root) .path-fact-text {
526
+ min-width: calc-size(max-content, min(size, 2ch + var(--line)));
527
+ }
528
+
529
+ /* Words laid straight into the fact, alone or after a mark (a StateMark,
530
+ a host's own empty mark, an icon), sit in an anonymous flex item, where
531
+ nothing cuts, so such a fact is the clamped line itself, its marks set
532
+ in the line where the gap stood. Its floor is a mark, the gap, one
533
+ character and the ellipsis, or those two without a mark, and a
534
+ hairline, without which the clamp's rounding can drop the character. */
535
+ :where(.listing-root) .path-facts:not(:has(> :not(.pane-state, svg, :empty))) {
536
+ min-width: calc-size(max-content, min(size, 2ch + var(--line)));
537
+ }
538
+
539
+ :where(.listing-root) .path-facts:not(:has(> :not(.pane-state, svg, :empty))):has(> *) {
540
+ min-width: calc-size(max-content, min(size, var(--dot) + var(--space-3) + 2ch + var(--line)));
541
+ }
542
+
543
+ :where(.listing-root .path-facts:not(:has(> :not(.pane-state, svg, :empty)))) > * {
544
+ display: inline-block;
545
+ margin-inline-end: var(--space-3);
546
+ vertical-align: middle;
547
+ }
548
+
549
+ :where(.listing-root) .path-facts:not(:has(> :not(.pane-state, svg, :empty))) > .pane-state {
550
+ display: inline-flex;
551
+ vertical-align: middle;
552
+ }
553
+
554
+ :where(.listing-root) .path-facts:is(.danger, .warning) {
555
+ color: var(--text);
236
556
  }
237
557
 
238
558
  /* One quiet action per row, and a path bar's compact verbs (QuietAction):
239
- an icon and a verb at the path bar's control
240
- size, dim until the row is the cursor row or the verb leads its bar. */
241
- :where(.listing-root) .pane-act {
559
+ an icon and a verb at the path bar's control size, dim until the row is
560
+ the cursor row or the verb leads its bar. In a row or a bar it is a
561
+ glyph alone by default (`.wordless`, below). */
562
+ .pane-act {
242
563
  display: inline-flex;
243
564
  flex: none;
244
565
  align-items: center;
245
- gap: 4px;
246
- height: 20px;
247
- padding: 0 6px 0 4px;
566
+ position: relative;
567
+ gap: var(--space-2);
568
+ height: var(--control-height-xs);
569
+ padding: 0 var(--space-3) 0 var(--space-2);
248
570
  border: none;
249
- border-radius: 4px;
571
+ border-radius: var(--radius-sm);
250
572
  background: transparent;
251
573
  color: var(--text-dim);
252
574
  font: inherit;
253
- font-size: 12px;
575
+ font-size: var(--font-size-small);
254
576
  white-space: nowrap;
255
- cursor: pointer;
577
+ cursor: default;
256
578
  }
257
579
 
258
580
  :where(.listing-root) .row-meta .pane-act {
259
- margin-right: -6px;
581
+ margin-right: calc(-1 * var(--space-3));
582
+ }
583
+
584
+ /* The glyph alone (`.wordless`): a square of the control's height, as a
585
+ compact icon control is, its word kept for assistive technology as the
586
+ base sheet's .visually-hidden keeps text, and said in its tooltip. */
587
+ .pane-act.wordless {
588
+ justify-content: center;
589
+ width: var(--control-height-xs);
590
+ padding: 0;
591
+ gap: 0;
592
+ }
593
+
594
+ .pane-act.wordless > .pane-act-word {
595
+ position: absolute;
596
+ width: 1px;
597
+ height: 1px;
598
+ margin: -1px;
599
+ padding: 0;
600
+ overflow: hidden;
601
+ clip-path: inset(50%);
602
+ white-space: nowrap;
603
+ }
604
+
605
+ :where(.listing-root) :is(.row-meta, .path-tools) > .pane-act.wordless:last-child,
606
+ :where(.listing-root) .row-meta .pane-act.wordless,
607
+ :where(.listing-root) .row-meta > .pane-icon-act:last-child {
608
+ margin-right: calc(-1 * var(--pane-glyph-reach));
260
609
  }
261
610
 
262
611
  /* A compact icon control (RowIconAction): a row's hover icon, or Reveal and
263
612
  Copy at a status line's end. */
264
- :where(.listing-root) .pane-icon-act {
613
+ .pane-icon-act {
265
614
  display: inline-flex;
266
615
  flex: none;
267
616
  align-items: center;
268
617
  justify-content: center;
269
- width: 22px;
270
- height: 20px;
618
+ position: relative;
619
+ width: var(--control-height-xs);
620
+ height: var(--control-height-xs);
271
621
  padding: 0;
272
622
  border: none;
273
- border-radius: 4px;
623
+ border-radius: var(--radius-sm);
274
624
  background: transparent;
275
625
  color: var(--text-dim);
276
- cursor: pointer;
626
+ cursor: default;
627
+ }
628
+
629
+ /* The compact controls of a bar or a row are drawn 20px high; their hit
630
+ area grows to --hit-target in the block axis, inside the 24px row or 26px
631
+ bar. Not sideways: neighbours sit closer than the growth. */
632
+ :is(.path-star, .pane-act, .pane-icon-act)::after {
633
+ position: absolute;
634
+ inset-block: min(0px, calc((100% - var(--hit-target)) / 2));
635
+ inset-inline: 0;
636
+ content: '';
277
637
  }
278
638
 
279
639
  /* A row link drawn in words, alone or after its icon (RowLinkLookContext). */
280
- :where(.listing-root) .pane-icon-act.worded {
640
+ .pane-icon-act.worded {
281
641
  width: auto;
282
- gap: 4px;
283
- padding: 0 5px;
642
+ gap: var(--space-2);
643
+ padding: 0 var(--space-2);
284
644
  font: inherit;
285
- font-size: 12px;
645
+ font-size: var(--font-size-small);
286
646
  white-space: nowrap;
287
647
  }
288
648
 
289
- :where(.listing-root) :is(.pane-act, .pane-icon-act):hover:enabled:not([aria-disabled='true']) {
290
- background: var(--hover-wash);
291
- box-shadow: var(--hover-frost);
649
+ /* The cursor row's actions, and a bar's lead action, are lit: full words
650
+ in the text tone, never the accent, so an action reads as a control and
651
+ not as a link. An icon action drawn with its word lights as a worded
652
+ action does: its glyph alone would pass at 3:1 in the rest tone, its
653
+ word does not. A bar's lead action also stands a weight up, and its
654
+ glyph alone keeps the accent. */
655
+ :where(.listing-root) .row.cursor:where(:not(.selected)) .pane-act,
656
+ :where(.listing-root) .row.cursor:where(:not(.selected)) .pane-icon-act:where(.worded),
657
+ .pane-act.lit,
658
+ .pane-act.lit:hover:enabled {
292
659
  color: var(--text);
293
660
  }
294
661
 
295
- :where(.listing-root) :is(.row.cursor .pane-act, .pane-act.lit, .pane-act.lit:hover:enabled) {
662
+ .pane-act.lit {
663
+ font-weight: var(--font-weight-medium);
664
+ }
665
+
666
+ .pane-act.lit > svg {
296
667
  color: var(--accent);
297
668
  }
298
669
 
299
- /* The ring sits inside the control, which a row or a bar would clip. It
300
- keeps .listing-root's weight, which the rest of the look drops in
301
- :where(), so a host's own button ring (two classes and an element, such
302
- as `.my-view button:focus-visible`) never replaces it. */
303
- .listing-root :is(.pane-act, .pane-icon-act):focus-visible {
304
- outline: 2px solid var(--accent);
305
- outline-offset: -2px;
670
+ /* A destructive action (`danger`: Remove, Drop, Delete) stays quiet at rest,
671
+ so a list is no wall of red, and says what it is in the danger tone where
672
+ it is about to run: under the pointer, with the keyboard focus, and on the
673
+ cursor row, whose keys run it. */
674
+ :is(.pane-act, .pane-icon-act).danger:hover:enabled,
675
+ :is(.pane-act, .pane-icon-act).danger:focus-visible,
676
+ :where(.listing-root) .row.cursor:where(:not(.selected)) :is(.pane-act, .pane-icon-act).danger {
677
+ color: var(--danger-text);
678
+ }
679
+
680
+ /* On a row that wears a state fill (the cursor, a mark, the pointer's row
681
+ hover, a quiet selection), an action under the pointer, held, or holding
682
+ its pop-up open keeps the row's own fill under its words: the tones are
683
+ floored on that fill, and the translucent wash over it would make a
684
+ ground nothing is floored on. The frosted ring (hover) and the pressed
685
+ hairline and shadow (press) still say it answers. Every control the
686
+ base sheet's hover and press recipes wash is listed, the classes a host
687
+ joins them by (.quiet-control, .toggle-chip, .quiet-track-item)
688
+ included; a test holds this list to the recipes'. */
689
+ :where(.listing-root)
690
+ :is(
691
+ .row:is(.cursor, .marked):where(:not(.selected)),
692
+ .pane-list.pointer .row:hover:where(:not(.selected)),
693
+ :where(
694
+ :root[data-window-inactive] .listing-root,
695
+ .listing-root:has(.pane.active) .pane:not(.active, .active .pane)
696
+ )
697
+ .row.selected
698
+ )
699
+ :is(
700
+ .pager-step,
701
+ .legend-slot,
702
+ .keylegend-verbs button,
703
+ .pane-act,
704
+ .pane-icon-act,
705
+ .path-star,
706
+ .page-tab,
707
+ .segmented-choice-option,
708
+ .date-picker-day,
709
+ .crumb-label,
710
+ .pane-sort.sortable,
711
+ .pane-strip-link,
712
+ .data-grid-sort,
713
+ .palette-level,
714
+ .disclosure,
715
+ .settings-sidebar-page,
716
+ .settings-sidebar-subsection,
717
+ .quiet-control,
718
+ .quiet-track-item,
719
+ .toggle-chip
720
+ ):is(
721
+ :hover,
722
+ :active,
723
+ [aria-expanded='true']:where([aria-haspopup]:not([aria-haspopup='false']), .crumb-label)
724
+ ):enabled {
725
+ background: transparent;
726
+ }
727
+
728
+ /* A quiet cursor row (a pane that does not hold the keys, a window behind;
729
+ see the quiet rows below) runs nothing, so its actions are neither lit
730
+ nor red: the on-surface words that keep 4.5:1 on the list and on a
731
+ quiet fill. The
732
+ pointer still lights one it is over. */
733
+ :where(
734
+ :root[data-window-inactive] .listing-root,
735
+ .listing-root:has(.pane.active) .pane:not(.active, .active .pane)
736
+ )
737
+ .row.cursor:where(:not(.selected))
738
+ :is(.pane-act, .pane-icon-act):not(:hover, :focus-visible) {
739
+ color: var(--text-on-surface);
306
740
  }
307
741
 
308
742
  /* The list takes programmatic focus after a keyboard sort; it is not in the
@@ -316,6 +750,67 @@
316
750
  min-height: 0;
317
751
  overflow-y: auto;
318
752
  background: var(--file-list-bg);
753
+ /* What a pinned action column (`.pane-pin-end`) paints under its cells. */
754
+ --pane-pin-ground: linear-gradient(var(--file-list-bg), var(--file-list-bg)), var(--surface);
755
+ }
756
+
757
+ /* A list cut at its foot, or at its end side, fades over the last
758
+ --scroll-fade-size there, so a sliced row or column reads as "more", as
759
+ every other scroller does. Its head never fades: the column strip pinned
760
+ there stays whole. Its start side fades row by row (each row's edge,
761
+ above), so the bar a row draws on that edge stays solid. The lengths are the base sheet's scroll-fade lengths
762
+ on its timelines; an edge with nothing past it stays sharp, and a list
763
+ that does not scroll never fades. */
764
+ @supports (animation-timeline: scroll()) {
765
+ :where(.listing-root) .pane-list {
766
+ --scroll-fade-size: var(--space-6);
767
+
768
+ mask-image:
769
+ linear-gradient(to bottom, var(--ground) calc(100% - var(--scroll-fade-end)), transparent),
770
+ linear-gradient(
771
+ to right,
772
+ var(--ground) calc(100% - var(--scroll-fade-inline-end)),
773
+ transparent
774
+ );
775
+ mask-composite: intersect;
776
+ animation:
777
+ uiok-scroll-fade-block linear both,
778
+ uiok-scroll-fade-inline linear both;
779
+ animation-timeline: scroll(self block), scroll(self inline);
780
+ }
781
+
782
+ /* A list whose listing pins its actions at the end fades its foot alone,
783
+ never its end: the pinned column stands where the end fade would fall,
784
+ and its own hairline and fade say columns run on under it. */
785
+ :where(.listing-root) .pane-list:has(.pane-pin-end) {
786
+ mask-image: linear-gradient(
787
+ to bottom,
788
+ var(--ground) calc(100% - var(--scroll-fade-end)),
789
+ transparent
790
+ );
791
+ }
792
+
793
+ /* Right to left (a dir="rtl" host), a list's inline start is its right
794
+ edge, so each side fade runs the other way. Every right-to-left rule
795
+ here reads the dir attribute: bundlers' CSS minifiers rewrite the
796
+ direction pseudo-class into a list of languages. */
797
+ :where([dir='rtl'] .listing-root, .listing-root[dir='rtl']) .pane-list {
798
+ mask-image:
799
+ linear-gradient(to bottom, var(--ground) calc(100% - var(--scroll-fade-end)), transparent),
800
+ linear-gradient(
801
+ to left,
802
+ var(--ground) calc(100% - var(--scroll-fade-inline-end)),
803
+ transparent
804
+ );
805
+ }
806
+
807
+ :where([dir='rtl'] .listing-root, .listing-root[dir='rtl']) .pane-list:has(.pane-pin-end) {
808
+ mask-image: linear-gradient(
809
+ to bottom,
810
+ var(--ground) calc(100% - var(--scroll-fade-end)),
811
+ transparent
812
+ );
813
+ }
319
814
  }
320
815
 
321
816
  :where(.listing-root) :is(.row, .pane-columns) {
@@ -324,20 +819,53 @@
324
819
  wide as its widest cell plus the gutter before it. A listing sets the
325
820
  template on itself; the column strip shares it so every label sits over
326
821
  its column. */
327
- grid-template-columns: var(--pane-grid, 20px minmax(0, 1fr));
822
+ grid-template-columns: var(
823
+ --pane-grid,
824
+ var(--icon-column) minmax(min(var(--pane-name-floor), 100%), 1fr)
825
+ );
328
826
  align-items: center;
329
827
  box-sizing: border-box;
330
828
  padding: 0 var(--pane-row-inset);
331
829
  }
332
830
 
831
+ /* A listing with rows (Listing's table) is the one grid its strip and rows
832
+ lay out on: each is a subgrid across all its tracks, so a track sized by
833
+ content (`auto`, `max-content`) takes its widest cell in any row or the
834
+ strip, and a label always stands over its values. The listing keeps the
835
+ row inset as its own padding; each child reaches back over it, so its
836
+ ground, its cursor fill, and its rules still run edge to edge, and pads
837
+ it again, which a subgrid adds to its edge cells as margin: the two
838
+ cancel, so the cells sit exactly on the listing's tracks. Anything else
839
+ in the listing (a message, an app's own block) spans every track. */
840
+ :where(.listing-root) .pane-listing:where([role='table']) {
841
+ display: grid;
842
+ grid-template-columns: var(
843
+ --pane-grid,
844
+ var(--icon-column) minmax(min(var(--pane-name-floor), 100%), 1fr)
845
+ );
846
+ align-content: start;
847
+ padding: 0 var(--pane-row-inset);
848
+ }
849
+
850
+ :where(.listing-root .pane-listing[role='table']) > * {
851
+ grid-column: 1 / -1;
852
+ margin-inline: calc(-1 * var(--pane-row-inset));
853
+ }
854
+
855
+ :where(.listing-root .pane-listing[role='table']) > :is(.row, .pane-columns) {
856
+ grid-template-columns: subgrid;
857
+ }
858
+
333
859
  :where(.listing-root) .row {
334
- height: 24px;
860
+ height: var(--row-height);
335
861
  /* Keeps a row scrolled into view clear of the band pinned over the list.
336
862
  The room is the row's to ask for, not the list's to pad: scroll padding
337
863
  would count a filter field standing in that band as out of view, and the
338
864
  list would scroll toward its caret on focus and on every keystroke. */
339
865
  scroll-margin-top: var(--pane-columns-height);
340
866
  cursor: default;
867
+ /* Holds its edge (below), placed out of its grid. */
868
+ position: relative;
341
869
  }
342
870
 
343
871
  /* The column strip, pinned over the scrolling listing: a band a shade under
@@ -346,10 +874,10 @@
346
874
  :where(.listing-root) .pane-columns {
347
875
  position: sticky;
348
876
  top: 0;
349
- z-index: 1;
877
+ z-index: var(--z-raised);
350
878
  height: var(--pane-columns-height);
351
- background: color-mix(in srgb, var(--surface-header) 40%, var(--surface));
352
- border-bottom: 1px solid var(--border);
879
+ background: var(--strip);
880
+ border-bottom: var(--line) solid var(--border);
353
881
  }
354
882
 
355
883
  /* A header fills the strip's height, so the whole cell is the handle a drag
@@ -368,20 +896,21 @@
368
896
 
369
897
  :where(.listing-root) .pane-columns > .row-meta {
370
898
  position: relative;
371
- border-radius: 4px;
899
+ border-radius: var(--radius-sm);
372
900
  touch-action: none;
373
901
  }
374
902
 
375
903
  /* The rule stands in the middle of the gutter, as far from the label before
376
- it as from the one after. */
904
+ it as from the one after, snapped to a whole pixel so a 1x display draws
905
+ it crisp. It is a line inside the strip, so it takes --border. */
377
906
  :where(.listing-root) .pane-columns > .row-meta::before {
378
907
  content: '';
379
908
  position: absolute;
380
909
  top: 5px;
381
910
  bottom: 5px;
382
- left: calc(var(--pane-column-gap) / 2 - 0.5px);
383
- width: 1px;
384
- background: var(--border-strong);
911
+ inset-inline-start: round(down, calc(var(--pane-column-gap) / 2), 1px);
912
+ width: var(--line);
913
+ background: var(--border);
385
914
  }
386
915
 
387
916
  /* A header's sort control is the whole surface of its column in the strip,
@@ -395,11 +924,11 @@
395
924
  with nothing between them; the label alone is set in the interface font. */
396
925
  :where(.listing-root) .pane-sort {
397
926
  position: relative;
398
- z-index: 1;
927
+ z-index: var(--z-raised);
399
928
  flex: 1;
400
929
  display: flex;
401
930
  align-items: center;
402
- gap: 3px;
931
+ gap: var(--space-2);
403
932
  min-width: 0;
404
933
  margin: 0 calc(var(--pane-column-gap) / -2);
405
934
  padding: 0 calc(var(--pane-column-gap) / 2);
@@ -409,7 +938,7 @@
409
938
  color: var(--text-dim);
410
939
  font: inherit;
411
940
  white-space: pre;
412
- cursor: pointer;
941
+ cursor: default;
413
942
  }
414
943
 
415
944
  /* A label wider than its column ends in an ellipsis on the column's edge,
@@ -419,8 +948,8 @@
419
948
  overflow: hidden;
420
949
  text-overflow: ellipsis;
421
950
  font-family: var(--font-ui);
422
- font-size: 11.5px;
423
- font-weight: 500;
951
+ font-size: var(--font-size-caption);
952
+ font-weight: var(--font-weight-medium);
424
953
  }
425
954
 
426
955
  /* Numbers line up on their column's right edge, and so does their label. */
@@ -430,22 +959,31 @@
430
959
 
431
960
  /* The first and the last control reach the strip's own edges. */
432
961
  :where(.listing-root) .pane-columns > .row-name .pane-sort {
433
- margin-left: calc(-1 * var(--pane-row-inset));
434
- padding-left: var(--pane-row-inset);
962
+ margin-inline-start: calc(-1 * var(--pane-row-inset));
963
+ padding-inline-start: var(--pane-row-inset);
435
964
  }
436
965
 
437
966
  :where(.listing-root) .pane-columns > :last-child .pane-sort {
438
- margin-right: calc(-1 * var(--pane-row-inset));
439
- padding-right: var(--pane-row-inset);
967
+ margin-inline-end: calc(-1 * var(--pane-row-inset));
968
+ padding-inline-end: var(--pane-row-inset);
440
969
  }
441
970
 
442
971
  /* The strip is the top of a scrolling list, which would clip a ring drawn
443
972
  outside a control as tall as the strip. */
444
973
  :where(.listing-root) .pane-sort:focus-visible {
445
- outline-offset: -2px;
974
+ outline-offset: var(--focus-offset-inset);
975
+ }
976
+
977
+ /* A label that sorts is a control, with rounded corners like the frame's
978
+ other compact controls: its hover (the wash, full words) and pressed looks
979
+ are the base sheet's shared track recipes, which weigh the same, so a
980
+ press shows over the hover. The column it sorts by keeps full words. A
981
+ label that only names its column takes no pointer state. */
982
+ :where(.listing-root) .pane-sort.sortable {
983
+ border-radius: var(--radius-sm);
446
984
  }
447
985
 
448
- :where(.listing-root) :is(.pane-sort:hover, .pane-sort.active) {
986
+ :where(.listing-root) .pane-sort.active {
449
987
  color: var(--text);
450
988
  }
451
989
 
@@ -453,20 +991,316 @@
453
991
  flex: none;
454
992
  }
455
993
 
994
+ /* A listing whose rows draw no icon starts its first label over the names,
995
+ past the empty icon column, as the rows' values start. A section's
996
+ heading (`Strip` `heading`) is no column label and keeps the strip's
997
+ edge, as the headings of the sections around it do. The listing's part
998
+ weighs nothing, so the rule weighs what the label's default above does,
999
+ and an app's own placement of the label wins. */
1000
+ :where(.listing-root .pane-listing:has(> .row):not(:has(> .row > .row-icon:not(:empty))))
1001
+ > .pane-columns
1002
+ > .row-name:where(:not(:has(h3))) {
1003
+ grid-column: 2;
1004
+ }
1005
+
1006
+ /* The keyboard cursor: the cursor fill and a 2px accent bar on the row's
1007
+ leading edge (`--row-bar`, drawn by the row's edge below), the block
1008
+ cursor of a terminal, so the row is found at a glance whatever the
1009
+ fill's contrast with the list. */
456
1010
  :where(.listing-root) .row.cursor {
457
- background: var(--cursor-row-bg);
1011
+ --row-fill: var(--cursor-row);
1012
+ --row-bar: var(--cursor-bar);
1013
+ /* A checkbox on the row keeps 3:1 on its fill. */
1014
+ --check-edge: var(--control-border-strong);
1015
+
1016
+ background: var(--row-fill);
1017
+ }
1018
+
1019
+ /* The quiet rows. Whatever marks a row (the cursor, a mark, a checked box,
1020
+ a selection) goes quiet where the keys are not: in a pane beside the one
1021
+ that holds them, and in a window that is not in front (the host sets
1022
+ `data-window-inactive` on the root from its window's focus events). A
1023
+ quiet selection or mark takes the neutral fill (--fill) and the words a
1024
+ row on it wears: full words for its name, the on-surface tone for its
1025
+ quiet words and actions; a quiet mark keeps a bar in the neutral edge
1026
+ tone; a checked box on a quiet row turns grey. A quiet cursor is
1027
+ another thing: no fill and no bar, a hairline frame in the
1028
+ neutral edge tone (--control-border-strong, 3:1 on the list and on the
1029
+ quiet fill), so a cursor on a plain row, a quiet selection, and the
1030
+ cursor inside a quiet selection (fill and frame) stay three looks. A
1031
+ pinned action cell repeats three sides of the frame from
1032
+ `--pane-pin-ring`. A lone pane, or a set of panes none of which is
1033
+ active, in a window in front keeps its rows as they are. */
1034
+ :where(
1035
+ :root[data-window-inactive] .listing-root,
1036
+ .listing-root:has(.pane.active) .pane:not(.active, .active .pane)
1037
+ )
1038
+ .row.cursor {
1039
+ --row-fill: transparent;
1040
+ --row-bar: transparent;
1041
+ --pane-pin-ring:
1042
+ inset 0 var(--line) 0 var(--control-border-strong),
1043
+ inset 0 calc(-1 * var(--line)) 0 var(--control-border-strong),
1044
+ inset calc(-1 * var(--pane-pin-edge)) 0 0 var(--control-border-strong);
1045
+ /* A checkbox on the row keeps 3:1 on the list. */
1046
+ --check-edge: var(--control-border-strong);
1047
+
1048
+ background: var(--row-fill);
1049
+ box-shadow: inset 0 0 0 var(--line) var(--control-border-strong);
1050
+ }
1051
+
1052
+ /* A marked row (`.marked`), in a listing whose rows carry a checkbox: the
1053
+ accent tint and a 2px bar on its leading edge in the marked tone, as a
1054
+ marked grid row. Under the cursor the tint steps up and the row keeps
1055
+ both marks: the cursor's bar, and a hairline ring in the cursor's tone,
1056
+ so the cursor shows on a marked row whatever the two tints' distance in
1057
+ a theme. A pane that does not hold the keys draws its marked cursor row
1058
+ with the stronger tint and the marked bar alone. */
1059
+ :where(.listing-root) .row.marked {
1060
+ --row-fill: var(--marked-bg);
1061
+ --row-bar: var(--marked-bar);
1062
+ /* A checkbox on the row keeps 3:1 on its fill. */
1063
+ --check-edge: var(--control-border-strong);
1064
+
1065
+ background: var(--row-fill);
1066
+ }
1067
+
1068
+ /* The ring is the row's own inset shadow; a pinned action cell, which
1069
+ paints over the row's end, draws its three sides of it again from
1070
+ `--pane-pin-ring` (below), so the frame closes across the cell. */
1071
+ :where(.listing-root) .row.marked.cursor {
1072
+ --row-fill: var(--marked-cursor-bg);
1073
+ --row-bar: var(--cursor-bar);
1074
+ --pane-pin-ring:
1075
+ inset 0 var(--line) 0 var(--cursor-bar), inset 0 calc(-1 * var(--line)) 0 var(--cursor-bar),
1076
+ inset calc(-1 * var(--pane-pin-edge)) 0 0 var(--cursor-bar);
1077
+ /* A checkbox on the row keeps 3:1 on its fill. */
1078
+ --check-edge: var(--control-border-strong);
1079
+
1080
+ background: var(--row-fill);
1081
+ box-shadow: inset 0 0 0 var(--line) var(--cursor-bar);
1082
+ }
1083
+
1084
+ /* A quiet mark: the neutral fill and a bar in
1085
+ the edge tone, which keeps 3:1 on that fill. */
1086
+ :where(
1087
+ :root[data-window-inactive] .listing-root,
1088
+ .listing-root:has(.pane.active) .pane:not(.active, .active .pane)
1089
+ )
1090
+ .row.marked {
1091
+ --row-fill: var(--fill);
1092
+ --row-bar: var(--control-border-strong);
1093
+ --pane-pin-ring: 0 0 transparent;
1094
+
1095
+ background: var(--row-fill);
1096
+ box-shadow: none;
1097
+ }
1098
+
1099
+ /* The quiet cursor on a quiet mark: the mark's fill and bar inside the
1100
+ quiet cursor's frame. */
1101
+ :where(
1102
+ :root[data-window-inactive] .listing-root,
1103
+ .listing-root:has(.pane.active) .pane:not(.active, .active .pane)
1104
+ )
1105
+ .row.marked.cursor {
1106
+ --row-fill: var(--fill);
1107
+ --row-bar: var(--control-border-strong);
1108
+ --pane-pin-ring:
1109
+ inset 0 var(--line) 0 var(--control-border-strong),
1110
+ inset 0 calc(-1 * var(--line)) 0 var(--control-border-strong),
1111
+ inset calc(-1 * var(--pane-pin-edge)) 0 0 var(--control-border-strong);
1112
+
1113
+ background: var(--row-fill);
1114
+ box-shadow: inset 0 0 0 var(--line) var(--control-border-strong);
1115
+ }
1116
+
1117
+ /* A checked box on a quiet row: the box in the edge tone, its mark cut out
1118
+ in the row's neutral fill, as a list's boxes grey in a window behind. */
1119
+ :where(
1120
+ :root[data-window-inactive] .listing-root,
1121
+ .listing-root:has(.pane.active) .pane:not(.active, .active .pane)
1122
+ )
1123
+ .row
1124
+ :is(.check, input[type='checkbox']) {
1125
+ --check-on: var(--control-border-strong);
1126
+ --check-on-pressed: var(--control-border-strong);
1127
+ --check-mark: var(--fill);
1128
+ }
1129
+
1130
+ /* A row's edge: the bar of its state (`--row-bar`: the cursor's, a mark's,
1131
+ a selected cursor's) on its leading edge, and, once the list has
1132
+ scrolled sideways, a fade over the words sliding out at that edge. Both
1133
+ stand on the scroller's start edge, not on the row's, so a row scrolled
1134
+ sideways keeps its bar in view, and its words ease out under the row's
1135
+ own fill rather than a cut. Each is a box of its own, placed out of the
1136
+ row's grid (so no cell moves) and carried along by the distance the
1137
+ list has scrolled (`--pane-edge-shift`, below); not an inset shadow,
1138
+ which scrolls away with the row, and not a mask on the list, which
1139
+ would clip a popover opened from a row. Neither takes the pointer. The
1140
+ strip fades from its own band, over its labels. */
1141
+ :where(.listing-root) .row::before,
1142
+ :where(.listing-root) :is(.row, .pane-columns)::after {
1143
+ position: absolute;
1144
+ inset-block: 0;
1145
+ inset-inline-start: 0;
1146
+ pointer-events: none;
1147
+ }
1148
+
1149
+ /* The bar: the state's tone, the width of the old inset bar. A row in no
1150
+ state draws none. */
1151
+ :where(.listing-root) .row:is(.cursor, .marked)::after {
1152
+ content: '';
1153
+ width: var(--line-strong);
1154
+ background: var(--row-bar, transparent);
1155
+ }
1156
+
1157
+ /* The distance the nearest scroller has moved sideways, as a length: an
1158
+ animation on its inline scroll timeline whose range is that many pixels
1159
+ long, so its progress times the range is the offset itself. A list that
1160
+ does not scroll sideways has no timeline, and the edge stays put. */
1161
+ @property --pane-edge-shift {
1162
+ syntax: '<length>';
1163
+ inherits: false;
1164
+ initial-value: 0px;
1165
+ }
1166
+
1167
+ @keyframes uiok-pane-edge-shift {
1168
+ from {
1169
+ --pane-edge-shift: 0px;
1170
+ }
1171
+
1172
+ to {
1173
+ --pane-edge-shift: 100000px;
1174
+ }
1175
+ }
1176
+
1177
+ /* The fade: the row's fill over the ground it stands on, as a pinned
1178
+ action cell paints them, masked from solid at the edge to clear, as wide
1179
+ as the base sheet's inline start fade at this scroll (none at the
1180
+ start, --scroll-fade-size once scrolled). */
1181
+ @supports (animation-timeline: scroll()) {
1182
+ :where(.listing-root) .row::before,
1183
+ :where(.listing-root) :is(.row, .pane-columns)::after {
1184
+ translate: var(--pane-edge-shift) 0;
1185
+ animation: uiok-pane-edge-shift linear both;
1186
+ animation-timeline: scroll(nearest inline);
1187
+ animation-range: 0px 100000px;
1188
+ }
1189
+
1190
+ :where(.listing-root) .row::before,
1191
+ :where(.listing-root) .pane-columns::after {
1192
+ --scroll-fade-size: var(--space-6);
1193
+
1194
+ content: '';
1195
+ width: var(--scroll-fade-inline-start);
1196
+ background:
1197
+ linear-gradient(var(--row-fill, transparent), var(--row-fill, transparent)),
1198
+ var(--pane-pin-ground);
1199
+ mask-image: linear-gradient(to right, var(--ground), transparent);
1200
+ animation:
1201
+ uiok-pane-edge-shift linear both,
1202
+ uiok-scroll-fade-inline linear both;
1203
+ animation-timeline: scroll(nearest inline), scroll(nearest inline);
1204
+ animation-range:
1205
+ 0px 100000px,
1206
+ normal;
1207
+ }
1208
+
1209
+ :where(.listing-root) .pane-columns::after {
1210
+ z-index: var(--z-raised);
1211
+ background: var(--strip);
1212
+ }
1213
+
1214
+ /* Right to left the start edge is the right one, and the list scrolls
1215
+ toward the left. */
1216
+ :where([dir='rtl'] .listing-root, .listing-root[dir='rtl']) .row::before,
1217
+ :where([dir='rtl'] .listing-root, .listing-root[dir='rtl']) :is(.row, .pane-columns)::after {
1218
+ translate: calc(-1 * var(--pane-edge-shift)) 0;
1219
+ }
1220
+
1221
+ :where([dir='rtl'] .listing-root, .listing-root[dir='rtl']) .row::before,
1222
+ :where([dir='rtl'] .listing-root, .listing-root[dir='rtl']) .pane-columns::after {
1223
+ mask-image: linear-gradient(to left, var(--ground), transparent);
1224
+ }
1225
+ }
1226
+
1227
+ /* Under the pointer, in a list whose rows act on a click (`.pane-list.pointer`),
1228
+ a row other than the cursor takes the row hover wash, which moves away
1229
+ from the list's ground in either appearance. Where the pointer
1230
+ moves the cursor itself, leave the class off: the cursor is the hover. */
1231
+ :where(.listing-root) .pane-list.pointer .row:hover:not(.cursor, .selected, .marked) {
1232
+ --row-fill: var(--row-hover);
1233
+ /* A checkbox on the row keeps 3:1 on its fill. */
1234
+ --check-edge: var(--control-border-strong);
1235
+
1236
+ background: var(--row-fill);
1237
+ }
1238
+
1239
+ /* A focusable row (`Row` `focusable`) rings inside its edges: the list
1240
+ around it scrolls, and would clip a ring drawn outside. */
1241
+ :where(.listing-root) .row:focus-visible {
1242
+ outline: var(--focus-ring-width) solid var(--accent);
1243
+ outline-offset: var(--focus-offset-inset);
1244
+ }
1245
+
1246
+ /* A row drawn as a button (a tree's row) wears the row's look, not the
1247
+ button's. */
1248
+ :where(.listing-root) button.row {
1249
+ border: 0;
1250
+ border-radius: 0;
1251
+ background: none;
1252
+ color: inherit;
1253
+ font: inherit;
1254
+ text-align: start;
458
1255
  }
459
1256
 
460
1257
  /* A sidebar row whose page the main pane shows, while the cursor is on
461
1258
  another. */
462
1259
  :where(.listing-root) .row.pane-open-row > .row-name {
463
- font-weight: 600;
1260
+ font-weight: var(--font-weight-strong);
1261
+ }
1262
+
1263
+ /* Quiet row words (the icon, the cells, an idle or busy state's word, a
1264
+ row action at rest) switch to the on-surface tone over a state fill, the
1265
+ cursor's (either pane's), a mark's, or the row hover wash: the quiet tone
1266
+ misses 4.5:1 on those fills in several themes, and --text-on-surface is
1267
+ floored on each. The cursor row lights its actions instead (above); a lit
1268
+ action, a red one, and one under the pointer keep their own tones.
1269
+
1270
+ A selection paints its own words (below), and outranks the cursor, a
1271
+ mark, and the pointer: no rule here may recolour a word on a selected
1272
+ row, whatever it weighs. The selection is left out with a :where(), so
1273
+ each rule keeps the weight an app's own rule is measured against. */
1274
+ :where(.listing-root) .row:is(.cursor, .marked):where(:not(.selected)) :is(.row-icon, .row-meta),
1275
+ :where(.listing-root)
1276
+ .row:is(.cursor, .marked):where(:not(.selected))
1277
+ .pane-state:is(.pane-tone-muted, .pane-tone-busy),
1278
+ :where(.listing-root)
1279
+ .row.marked:where(:not(.cursor, .selected))
1280
+ :is(.pane-act, .pane-icon-act):where(:not(.lit, :hover, .danger:focus-visible)),
1281
+ :where(.listing-root .pane-list.pointer)
1282
+ .row:hover:not(.selected)
1283
+ :is(.row-icon, .row-meta, .pane-state:is(.pane-tone-muted, .pane-tone-busy)),
1284
+ :where(.listing-root .pane-list.pointer)
1285
+ .row:hover:where(:not(.cursor, .marked, .selected))
1286
+ :is(.pane-act, .pane-icon-act):where(:not(.lit, :hover, .danger:focus-visible)) {
1287
+ color: var(--text-on-surface);
464
1288
  }
465
1289
 
466
- /* Dim row text switches to the on-surface tone over the cursor highlight;
467
- --text-dim misses 4.5:1 contrast on the cursor row in the light flavor. */
468
- :where(.listing-root) .row.cursor :is(.row-icon, .row-meta) {
469
- color: var(--text-on-surface);
1290
+ /* A row at a listing's foot that adds one (`.pane-add`: "Add service…"):
1291
+ quiet dim words after an accent plus, which turn to full words under
1292
+ the pointer, with the focus, and on the cursor row, as a control's do. */
1293
+ :where(.listing-root) .row.pane-add {
1294
+ color: var(--text-dim);
1295
+ }
1296
+
1297
+ :where(.listing-root) .row.pane-add > .row-icon {
1298
+ color: var(--accent);
1299
+ }
1300
+
1301
+ :where(.listing-root) .row.pane-add:where(:not(.selected)):hover > .row-name,
1302
+ :where(.listing-root) .row.pane-add:where(:not(.selected)):is(:focus-visible, .cursor) > .row-name {
1303
+ color: var(--text);
470
1304
  }
471
1305
 
472
1306
  :where(.listing-root) .row-icon {
@@ -481,12 +1315,39 @@
481
1315
  white-space: nowrap;
482
1316
  }
483
1317
 
1318
+ /* A listing selects rows, not text, as a file manager does: a drag, a
1319
+ Shift-click, or a double-click on a row never starts a text selection,
1320
+ in its name and values included, and a row copies through the host's
1321
+ own Copy. This holds inside a region a host opts into selection
1322
+ (`.selectable`) and over a `code` in a cell, so it is said here and not
1323
+ left to the base sheet's default. The column strip is chrome (decision
1324
+ 47 names headings), so it refuses selection the same way: a sweep or
1325
+ Select All never lights the headings of a list whose rows stay plain. A
1326
+ field in a row (an inline rename) keeps its own text. */
1327
+ :where(.listing-root)
1328
+ :is(
1329
+ .pane-strip,
1330
+ .pane-strip *,
1331
+ .row,
1332
+ .row
1333
+ :not(
1334
+ input:not([type='checkbox'], [type='radio'], [type='range']),
1335
+ textarea,
1336
+ [contenteditable]:not([contenteditable='false'])
1337
+ )
1338
+ ) {
1339
+ -webkit-user-select: none;
1340
+ user-select: none;
1341
+ }
1342
+
484
1343
  /* Metadata cells read like columns of a terminal listing: the gap character
485
1344
  sits in the padding, numbers right-align, and whitespace is kept so a value
486
- padded with spaces ("Aug 1") keeps its alignment. */
1345
+ padded with spaces ("Aug 1") keeps its alignment. A value wider than
1346
+ its column ends in an ellipsis, never cut through a glyph. */
487
1347
  :where(.listing-root) .row-meta {
488
- padding-left: var(--pane-column-gap);
1348
+ padding-inline-start: var(--pane-column-gap);
489
1349
  overflow: hidden;
1350
+ text-overflow: ellipsis;
490
1351
  white-space: pre;
491
1352
  color: var(--row-meta-text);
492
1353
  font-variant-numeric: tabular-nums;
@@ -497,21 +1358,29 @@
497
1358
  text-align: right;
498
1359
  }
499
1360
 
500
- /* The status line closes the pane: a summary of what the pane lists. */
1361
+ /* The status line closes the pane: a summary of what the pane lists. Its
1362
+ words start, and its last control's glyph ends, on the row inset, the
1363
+ edges the path bar and the rows keep. */
501
1364
  :where(.listing-root) .pane-status {
502
- height: 26px;
503
- flex: 0 0 26px;
1365
+ height: var(--bar-height);
1366
+ flex: 0 0 var(--bar-height);
504
1367
  display: flex;
505
1368
  align-items: center;
506
1369
  box-sizing: border-box;
507
- padding: 0 10px;
508
- border-top: 1px solid var(--border);
1370
+ padding: 0 var(--pane-row-inset);
1371
+ border-top: var(--line) solid var(--border);
509
1372
  color: var(--text-dim);
510
- font-size: 12px;
1373
+ font-size: var(--font-size-small);
511
1374
  }
512
1375
 
513
1376
  :where(.listing-root) .pane-summary {
514
- flex: none;
1377
+ flex: 0 1 auto;
1378
+ min-width: 0;
1379
+ /* A read-out of the pane's contents, so content a user may copy. */
1380
+ -webkit-user-select: text;
1381
+ user-select: text;
1382
+ overflow: hidden;
1383
+ text-overflow: ellipsis;
515
1384
  white-space: nowrap;
516
1385
  }
517
1386
 
@@ -521,16 +1390,9 @@
521
1390
  display: inline-flex;
522
1391
  flex: none;
523
1392
  align-items: center;
524
- gap: 2px;
1393
+ gap: var(--space-1);
525
1394
  margin-left: auto;
526
- margin-right: -4px;
527
- }
528
-
529
- :where(.listing-root) .pane-summary:has(+ .pane-status-tools) {
530
- flex: 0 1 auto;
531
- min-width: 0;
532
- overflow: hidden;
533
- text-overflow: ellipsis;
1395
+ margin-right: calc(-1 * var(--pane-glyph-reach));
534
1396
  }
535
1397
 
536
1398
  /* ---- Page listings (Listing) ----
@@ -542,7 +1404,7 @@
542
1404
  /* Each section is a listing of its own, so its strip pins only while the
543
1405
  listing is in view; a rule sets a listing off from the one above. */
544
1406
  :where(.listing-root) :is(.pane-listing, .pane-message) + .pane-listing > .pane-columns {
545
- border-top: 1px solid var(--border);
1407
+ border-top: var(--line) solid var(--border);
546
1408
  }
547
1409
 
548
1410
  /* A strip label is text, with no pointer and no hover, but where it sorts
@@ -566,179 +1428,374 @@
566
1428
  content: none;
567
1429
  }
568
1430
 
569
- /* A control at a strip's right end: a quiet link (`.pane-strip-link`,
570
- Update all, Clear). */
1431
+ /* A control at a strip's right end: a strip action, a small push button
1432
+ (`.pane-strip-link`, Update all, Clear). */
571
1433
  :where(.listing-root) .pane-columns > .pane-col-control {
572
1434
  align-items: center;
573
1435
  justify-content: flex-end;
574
1436
  }
575
1437
 
576
- :where(.listing-root) .pane-strip-link {
1438
+ /* A strip action is a small push button, never a link and never a bare
1439
+ word: words in the text colour inside a --control-border
1440
+ bezel 20px high, so it cannot be read as the dim column labels beside
1441
+ it. It takes the base sheet's shared quiet hover (the frosted box) and
1442
+ press. Its edge stands on the column's right edge. Its hit area grows to
1443
+ --hit-target in the block axis. Its look is its own class's, so it draws
1444
+ the same outside a strip. Its values are the 20px Button's (.button-xs
1445
+ in button.css), so the library has one 20px push button look; a test
1446
+ holds the two rules equal. */
1447
+ .pane-strip-link {
1448
+ position: relative;
577
1449
  display: inline-flex;
578
1450
  align-items: center;
579
- gap: 4px;
580
- padding: 0;
581
- border: none;
582
- background: none;
583
- color: var(--accent);
584
- font: 500 11.5px var(--font-ui);
1451
+ gap: var(--space-2);
1452
+ box-sizing: border-box;
1453
+ height: var(--control-height-xs);
1454
+ margin: 0;
1455
+ padding: 0 var(--space-3);
1456
+ border: var(--line) solid var(--control-border);
1457
+ border-radius: var(--radius-sm);
1458
+ background: transparent;
1459
+ color: var(--text);
1460
+ font: var(--font-weight-medium) var(--font-size-caption) var(--font-ui);
585
1461
  white-space: nowrap;
586
- cursor: pointer;
1462
+ cursor: default;
1463
+ }
1464
+
1465
+ .pane-strip-link::after {
1466
+ position: absolute;
1467
+ inset-block: min(0px, calc((100% - var(--hit-target)) / 2));
1468
+ inset-inline: 0;
1469
+ content: '';
1470
+ }
1471
+
1472
+ .pane-strip-link:focus-visible {
1473
+ outline-offset: var(--focus-offset-flush);
1474
+ }
1475
+
1476
+ /* Inside a column strip a 20px push button would fill the strip's inside
1477
+ (22px less its rule, less again under a rule above), so its bezel would
1478
+ rest on the strip's rules. There it takes its height from the strip: in
1479
+ the strip's control cell it fills the cell's inside, which keeps
1480
+ --space-1 above and below it, so 2px of strip stand between the bezel
1481
+ and each rule whether the strip carries one rule (17px) or two (16px).
1482
+ Anywhere else in a strip it is the strip less its rule and those two
1483
+ clearances. Its hit area still reaches --hit-target. The strip is
1484
+ pinned at the top of a scroller that clips, so its focus ring is drawn
1485
+ inside. */
1486
+ :where(.listing-root) .pane-columns :is(.pane-strip-link, .button-xs) {
1487
+ height: calc(var(--pane-columns-height) - var(--line) - 2 * var(--space-1));
1488
+ }
1489
+
1490
+ /* A strip that follows a listing carries a rule above it inside its own
1491
+ height, one line less room: there the button is one line shorter, so
1492
+ it still stands 2px clear of both rules. */
1493
+ :where(.listing-root)
1494
+ :is(.pane-listing, .pane-message)
1495
+ + .pane-listing
1496
+ > .pane-columns
1497
+ :is(.pane-strip-link, .button-xs) {
1498
+ height: calc(var(--pane-columns-height) - 2 * var(--line) - 2 * var(--space-1));
1499
+ }
1500
+
1501
+ /* Only a cell that holds such a button makes that room: a control cell
1502
+ around a label (a sort, a word with a tooltip) stays as tall as a plain
1503
+ label's, so its strip matches a strip of labels beside it. */
1504
+ :where(.listing-root) .pane-columns > .pane-col-control:has(> :is(.pane-strip-link, .button-xs)) {
1505
+ box-sizing: border-box;
1506
+ align-items: stretch;
1507
+ padding-block: var(--space-1);
1508
+ }
1509
+
1510
+ :where(.listing-root) .pane-columns > .pane-col-control > :is(.pane-strip-link, .button-xs) {
1511
+ height: auto;
1512
+ }
1513
+
1514
+ :where(.listing-root) .pane-columns :is(.pane-strip-link, .button-xs):focus-visible {
1515
+ outline-offset: var(--focus-offset-inset);
1516
+ }
1517
+
1518
+ /* A strip action that is on (aria-pressed="true") draws one ring: its
1519
+ bezel takes the current item's ring in place of the base sheet's inset
1520
+ ring. Held, it sinks inside that one bezel. */
1521
+ .pane-strip-link[aria-pressed='true'] {
1522
+ border-color: var(--current-ring);
1523
+ box-shadow: none;
587
1524
  }
588
1525
 
589
- :where(.listing-root) .pane-strip-link:hover:enabled {
590
- text-decoration: underline;
1526
+ .pane-strip-link[aria-pressed='true']:active:enabled:not([aria-disabled='true']) {
1527
+ box-shadow: var(--shadow-pressed);
591
1528
  }
592
1529
 
593
- :where(.listing-root) .pane-strip-link.danger {
594
- color: var(--danger);
1530
+ /* A destructive strip action (Clear history) is the danger button in
1531
+ small: a --danger bezel and --danger-text words in every state, the
1532
+ danger wash under the pointer and the stronger danger wash while held. */
1533
+ .pane-strip-link.danger {
1534
+ border-color: var(--danger);
1535
+ color: var(--danger-text);
1536
+ }
1537
+
1538
+ .pane-strip-link.danger:hover:enabled:not([aria-pressed='true']) {
1539
+ background: var(--danger-wash);
1540
+ color: var(--danger-text);
1541
+ }
1542
+
1543
+ .pane-strip-link.danger:active:enabled:not([aria-pressed='true']) {
1544
+ background: var(--danger-wash-strong);
1545
+ color: var(--danger-text);
1546
+ }
1547
+
1548
+ .pane-strip-link.danger:is(:disabled, [aria-disabled='true']) {
1549
+ border-color: var(--control-border);
1550
+ color: var(--text);
595
1551
  }
596
1552
 
597
1553
  /* A line that says something about a listing, or stands in for its rows:
598
- a quiet "Nothing here yet", a hint, a refusal (`danger`). */
1554
+ a quiet "No history", a hint, a refusal (`danger`). Its words
1555
+ start on the row inset, where a row's icon, the column strip's first
1556
+ label, and the path bar's first crumb start, so the pane keeps one left
1557
+ edge and no line reads as indented. Its words are content: a user may
1558
+ select and copy them. */
599
1559
  :where(.listing-root) .pane-message {
600
1560
  display: flex;
601
1561
  flex-wrap: wrap;
602
1562
  align-items: center;
603
- gap: 0 8px;
604
- min-height: 24px;
605
- margin: 0;
606
- padding: 3px var(--pane-row-inset) 3px calc(var(--pane-row-inset) + 20px);
1563
+ gap: 0 var(--space-4);
1564
+ min-height: var(--row-height);
1565
+ /* The block margins only: inside a table listing the message reaches
1566
+ back over the listing's inset as a row does, so its rule runs edge to
1567
+ edge and its words start where the rows' icons do. */
1568
+ margin-block: 0;
1569
+ padding: var(--space-1) var(--pane-row-inset);
607
1570
  box-sizing: border-box;
608
1571
  color: var(--row-meta-text);
609
- font-size: 12px;
1572
+ /* A hint or a refusal is a sentence, so the interface font, though the
1573
+ list around it is set in the listing's monospace; a name or a value
1574
+ inside it (`code`) keeps the monospace. */
1575
+ font: var(--font-weight-regular) var(--font-size-small) / var(--line-height-compact)
1576
+ var(--font-ui);
1577
+ -webkit-user-select: text;
1578
+ user-select: text;
610
1579
  }
611
1580
 
1581
+ /* A refusal is a status line: the danger glyph (surface.css) before the
1582
+ words, which take --text, as every inline message does. */
612
1583
  :where(.listing-root) .pane-message.danger {
613
- color: var(--danger);
1584
+ color: var(--text);
1585
+ }
1586
+
1587
+ /* A line that says a listing has no rows (`.empty`, Listing's `empty`)
1588
+ reads as a quiet row in the rows' place: it starts where a row's icon
1589
+ starts, in the rows' own typeface and size (the host's, as the rows'
1590
+ are), dim, one row high. */
1591
+ :where(.listing-root) .pane-message.empty {
1592
+ padding-block: 0;
1593
+ font: inherit;
1594
+ line-height: var(--line-height-compact);
614
1595
  }
615
1596
 
616
1597
  :where(.listing-root) .pane-message code {
617
1598
  font-family: var(--font-mono);
618
1599
  }
619
1600
 
620
- /* A pane with nothing in it yet: one quiet block centred in it, its glyph,
621
- its title, a sentence on what the pane is for, and its ways on, a lone
622
- button or a row of them (.pane-empty-actions). */
1601
+ /* A pane with nothing in it yet, or one that could not load: one block
1602
+ centred in it, its glyph, its heading, a sentence on what the pane is
1603
+ for or what went wrong, and its ways on, a lone button or a row of them
1604
+ (.pane-empty-actions), with the error the system returned under them
1605
+ where there is one (.pane-empty-detail). The pane keeps its path bar and
1606
+ status line around it. A list that is merely empty (a folder with no
1607
+ entries, a filter that matches nothing) says so with the quiet line
1608
+ `.pane-message.empty` instead. */
623
1609
  :where(.listing-root) .pane-empty {
624
1610
  display: flex;
625
1611
  flex: 1;
626
1612
  flex-direction: column;
627
1613
  align-items: center;
628
1614
  justify-content: center;
629
- gap: 4px;
630
- padding: 32px;
1615
+ gap: var(--space-2);
1616
+ padding: var(--space-16);
631
1617
  color: var(--text-dim);
632
1618
  font-family: var(--font-ui);
633
1619
  text-align: center;
634
1620
  }
635
1621
 
1622
+ /* Its words are content a user may copy, an error above all. */
1623
+ :where(.listing-root) .pane-empty :is(strong, h2, p) {
1624
+ -webkit-user-select: text;
1625
+ user-select: text;
1626
+ }
1627
+
636
1628
  :where(.listing-root) .pane-empty > svg {
637
- margin-bottom: 8px;
1629
+ margin-bottom: var(--space-4);
1630
+ color: var(--text-faint);
638
1631
  }
639
1632
 
640
1633
  :where(.listing-root) .pane-empty :is(strong, h2) {
641
1634
  margin: 0;
642
1635
  color: var(--text);
643
- font-size: 14px;
644
- font-weight: 600;
1636
+ font-size: var(--font-size-heading);
1637
+ font-weight: var(--font-weight-strong);
1638
+ overflow-wrap: anywhere;
645
1639
  }
646
1640
 
647
1641
  :where(.listing-root) .pane-empty p {
648
1642
  max-width: 420px;
649
1643
  margin: 0;
650
- font-size: 12.5px;
1644
+ font-size: var(--font-size-small);
1645
+ line-height: var(--line-height-prose);
1646
+ text-wrap: balance;
651
1647
  }
652
1648
 
653
1649
  :where(.listing-root) .pane-empty > .button,
654
1650
  :where(.listing-root) .pane-empty-actions {
655
- margin-top: 14px;
1651
+ margin-top: var(--space-6);
656
1652
  }
657
1653
 
658
1654
  :where(.listing-root) .pane-empty-actions {
659
1655
  display: flex;
660
1656
  flex-wrap: wrap;
661
1657
  justify-content: center;
662
- gap: 8px;
1658
+ gap: var(--space-4);
663
1659
  max-width: 620px;
664
1660
  }
665
1661
 
666
- :where(.listing-root) .pane-empty-actions .button {
667
- gap: 8px;
1662
+ /* What the system returned (an error code and a path) is a line a user
1663
+ pastes into a report, so it is set in the code face under the actions. */
1664
+ :where(.listing-root) .pane-empty p.pane-empty-detail {
1665
+ margin-top: var(--space-4);
1666
+ font-family: var(--font-mono);
1667
+ overflow-wrap: anywhere;
668
1668
  }
669
1669
 
670
- /* A state (StateMark): its dot, or its spinner for a transition, and its
671
- word, in the state's tone. The dot takes the tone everywhere; the word
672
- inside a row only. A warning's words read in --warning-text where an app
673
- sets a more legible warning tone for text, --warning otherwise. */
1670
+ /* A state (StateMark): its mark, or its spinner for a transition, and its
1671
+ word, in the state's tone. The mark takes the tone everywhere, the word
1672
+ inside a row only, in the text-safe tone of its state. Each mark has its
1673
+ own shape as well as its hue, so two states whose hues meet in a theme
1674
+ (a green accent, a red and an amber under a colour-vision deficiency)
1675
+ and a busy mark held still still differ: ready a dot, warning a diamond,
1676
+ failure a square, busy a heavy accent ring, quiet a thin grey ring. The
1677
+ word gives way with an ellipsis; its tooltip holds it whole. */
674
1678
  :where(.listing-root) .pane-state {
675
1679
  display: inline-flex;
676
1680
  align-items: center;
677
- gap: 6px;
1681
+ gap: var(--space-3);
1682
+ min-width: 0;
1683
+ max-width: 100%;
1684
+ vertical-align: top;
678
1685
  }
679
1686
 
1687
+ :where(.listing-root) .pane-state-word {
1688
+ min-width: 0;
1689
+ overflow: hidden;
1690
+ text-overflow: ellipsis;
1691
+ white-space: nowrap;
1692
+ }
1693
+
1694
+ /* A mark with no word (`word=""`, as a path fact's mark) is the mark
1695
+ alone: its empty word box keeps no gap after it. */
1696
+ :where(.listing-root) .pane-state-word:empty {
1697
+ display: none;
1698
+ }
1699
+
1700
+ /* A quiet ring draws in the edge tone a state row sets for its marks
1701
+ (`--check-edge`, the checkbox's: 3:1 on the cursor, marked, and hover
1702
+ fills), and in the idle mark's tone on a row at rest. */
680
1703
  :where(.listing-root) .pane-state-dot {
681
1704
  flex: none;
682
- width: 7px;
683
- height: 7px;
684
- border-radius: 50%;
685
- background: var(--border-strong);
1705
+ box-sizing: border-box;
1706
+ width: var(--dot);
1707
+ height: var(--dot);
1708
+ border-radius: var(--radius-pill);
1709
+ background: transparent;
1710
+ box-shadow: inset 0 0 0 var(--line) var(--check-edge, var(--idle-mark));
686
1711
  }
687
1712
 
688
1713
  :where(.listing-root) .pane-tone-ready > .pane-state-dot {
689
1714
  background: var(--success);
1715
+ box-shadow: none;
690
1716
  }
691
1717
 
1718
+ /* In a listing that shows a busy spinner, each mark stands in a slot as
1719
+ wide as the spinner (--icon-sm), so the words read from one edge: the
1720
+ mark is --dot wide, and its margins take up the rest (a turned diamond
1721
+ is about as wide). A listing with no spinner keeps the room. */
1722
+ :where(.listing-root) .pane-listing:has(.pane-state-busy) .pane-state-dot {
1723
+ margin-inline: calc((var(--icon-sm) - var(--dot)) / 2);
1724
+ }
1725
+
1726
+ /* A 5px square turned on its corner spans the dot's height (--dot, 6px)
1727
+ and a little more, so the diamond weighs what the dot does. */
692
1728
  :where(.listing-root) .pane-tone-warning > .pane-state-dot {
1729
+ width: 5px;
1730
+ height: 5px;
1731
+ border-radius: var(--radius-xs);
693
1732
  background: var(--warning);
1733
+ box-shadow: none;
1734
+ transform: rotate(45deg);
694
1735
  }
695
1736
 
696
1737
  :where(.listing-root) .pane-tone-danger > .pane-state-dot {
1738
+ border-radius: var(--radius-xs);
697
1739
  background: var(--danger);
1740
+ box-shadow: none;
698
1741
  }
699
1742
 
700
1743
  :where(.listing-root) .pane-tone-busy > .pane-state-dot {
701
- background: var(--accent);
702
- animation: pane-state-pulse 1s ease-in-out infinite;
703
- }
704
-
705
- @keyframes pane-state-pulse {
706
- 50% {
707
- opacity: 0.35;
708
- }
1744
+ box-shadow: inset 0 0 0 var(--line-strong) var(--accent);
709
1745
  }
710
1746
 
711
- :where(.listing-root) .pane-state-busy {
712
- flex: none;
1747
+ /* The busy spinner is the shared Spinner (it turns and stands still under
1748
+ reduced motion on its own); the state only colours it. */
1749
+ :where(.listing-root) .pane-state > svg.pane-state-busy {
713
1750
  color: var(--accent);
714
- animation: pane-state-spin 1s linear infinite;
715
1751
  }
716
1752
 
717
- @keyframes pane-state-spin {
718
- to {
719
- transform: rotate(360deg);
720
- }
1753
+ /* On a quiet row that wears the neutral fill (a quiet mark or a quiet
1754
+ selection), the busy ring and spinner take the on-surface words' tone,
1755
+ as the row's actions do: the accent misses 3:1 on that fill in several
1756
+ themes, and --text-on-surface is floored on it. A quiet cursor alone
1757
+ has no fill (only its frame), so its marks keep their own tones on the
1758
+ list. */
1759
+ :where(
1760
+ :root[data-window-inactive] .listing-root,
1761
+ .listing-root:has(.pane.active) .pane:not(.active, .active .pane)
1762
+ )
1763
+ .row:is(.marked, .selected)
1764
+ .pane-tone-busy
1765
+ > .pane-state-dot {
1766
+ box-shadow: inset 0 0 0 var(--line-strong) var(--text-on-surface);
1767
+ }
1768
+
1769
+ :where(
1770
+ :root[data-window-inactive] .listing-root,
1771
+ .listing-root:has(.pane.active) .pane:not(.active, .active .pane)
1772
+ )
1773
+ .row:is(.marked, .selected)
1774
+ .pane-state
1775
+ > svg.pane-state-busy {
1776
+ color: var(--text-on-surface);
721
1777
  }
722
1778
 
723
- /* Reduced motion: a busy mark stands still, and its accent and word still say
724
- the work is running. */
725
- @media (prefers-reduced-motion: reduce) {
726
- :where(.listing-root) .pane-tone-busy > .pane-state-dot,
727
- :where(.listing-root) .pane-state-busy {
728
- animation: none;
729
- }
1779
+ /* On a marked row a filled mark wears a hairline in the on-surface words'
1780
+ tone, as one on a selection wears the selection's, so its shape holds
1781
+ on the accent tint whatever its hue. */
1782
+ :where(.listing-root)
1783
+ .row.marked:where(:not(.selected))
1784
+ :is(.pane-tone-ready, .pane-tone-warning, .pane-tone-danger)
1785
+ > .pane-state-dot {
1786
+ box-shadow: 0 0 0 var(--line) var(--text-on-surface);
730
1787
  }
731
1788
 
732
1789
  :where(.listing-root) .row .pane-state.pane-tone-ready {
733
- color: var(--success);
1790
+ color: var(--success-text);
734
1791
  }
735
1792
 
736
1793
  :where(.listing-root) .row .pane-state.pane-tone-danger {
737
- color: var(--danger);
1794
+ color: var(--danger-text);
738
1795
  }
739
1796
 
740
1797
  :where(.listing-root) .row .pane-state.pane-tone-warning {
741
- color: var(--warning-text, var(--warning));
1798
+ color: var(--warning-text);
742
1799
  }
743
1800
 
744
1801
  :where(.listing-root) .row .pane-state:is(.pane-tone-muted, .pane-tone-busy) {
@@ -760,9 +1817,9 @@
760
1817
  white-space: nowrap;
761
1818
  }
762
1819
 
1820
+ /* The name cuts its overflow, which would clip a ring drawn outside it. */
763
1821
  :where(.listing-root) .pane-row-open:focus-visible {
764
- outline: 2px solid var(--accent);
765
- outline-offset: -2px;
1822
+ outline-offset: var(--focus-offset-inset);
766
1823
  }
767
1824
 
768
1825
  /* The action column and the hover icons before it hold controls, which
@@ -774,11 +1831,145 @@
774
1831
  overflow: visible;
775
1832
  }
776
1833
 
777
- /* A row's secondary controls show on its hover, its keyboard focus, and the
778
- cursor, whose keys run them. They fade rather than hide, so a pointer
779
- finds them where they stand. */
780
- :where(.listing-root) .row:not(:hover, :focus-within, .cursor) .pane-hover-cell .pane-icon-act {
781
- opacity: 0;
1834
+ /* A listing that may be wider than what scrolls it (`.pane-pin-end` on the
1835
+ `Listing`) keeps its last column, the actions, in view at the scroller's
1836
+ end: those cells, and the strip's over them, stick there while the
1837
+ columns before them scroll under. They paint the row's state fill
1838
+ (`--row-fill`, set by each state rule above) over the ground they stand
1839
+ on (`--pane-pin-ground`: the list's inside a `.pane-list`, the surface
1840
+ elsewhere; a host on another ground sets it), and a hairline on their
1841
+ leading edge says columns run on under them while any do. Every side is
1842
+ logical, so a right-to-left listing pins its actions at its left. */
1843
+ :where(.listing-root) {
1844
+ --pane-pin-ground: var(--surface);
1845
+ /* The ring a row's state draws, which its pinned cell repeats over the
1846
+ row's end (a marked cursor row's sets it); none by default. */
1847
+ --pane-pin-ring: 0 0 transparent;
1848
+ /* Which way the hairline's inset shadow falls: onto the cell's leading
1849
+ edge, its left left to right and its right right to left. */
1850
+ --pane-pin-edge: var(--line);
1851
+ }
1852
+
1853
+ :where([dir='rtl'] .listing-root, .listing-root[dir='rtl']) {
1854
+ --pane-pin-edge: calc(-1 * var(--line));
1855
+ }
1856
+
1857
+ /* Each pinned cell fills its row's height, so its ground and its hairline
1858
+ run unbroken from the strip to the foot, and holds its controls at its
1859
+ end, centred in the row. */
1860
+ :where(.listing-root .pane-listing.pane-pin-end) > :is(.row, .pane-columns) > :last-child {
1861
+ position: sticky;
1862
+ inset-inline-end: 0;
1863
+ z-index: var(--z-raised);
1864
+ align-self: stretch;
1865
+ display: flex;
1866
+ align-items: center;
1867
+ justify-content: flex-end;
1868
+ margin-inline-end: calc(-1 * var(--pane-row-inset));
1869
+ padding-inline-end: var(--pane-row-inset);
1870
+ /* Room for the fade it casts over the columns before it (below). */
1871
+ overflow: visible;
1872
+ background:
1873
+ linear-gradient(var(--row-fill, transparent), var(--row-fill, transparent)),
1874
+ var(--pane-pin-ground);
1875
+ box-shadow: var(--pane-pin-ring);
1876
+ }
1877
+
1878
+ /* The strip's pinned cell is a square band of the strip, not a sort
1879
+ control's rounded box. */
1880
+ :where(.listing-root .pane-listing.pane-pin-end) > .pane-columns > :last-child {
1881
+ border-radius: 0;
1882
+ background: var(--strip);
1883
+ }
1884
+
1885
+ /* A sticky box stops at its scroller's padding, and a pinned cell cannot
1886
+ tell which box scrolls it: the listing itself, a `.pane-list`, or a
1887
+ host's own scroller with no padding. So a pinned listing pads its end
1888
+ with no padding at all: it ends its grid with an empty track as wide as
1889
+ the row inset instead, which every row and the strip span. The tracks
1890
+ before it keep their places, each row still runs to the listing's end,
1891
+ and the pinned cells (`inset-inline-end: 0` above) reach over that track
1892
+ to end with their row, then stop at the scroller's edge, its end inset
1893
+ inside the scrollport, whichever box scrolls them. */
1894
+ :where(.listing-root) .pane-listing.pane-pin-end:where([role='table']) {
1895
+ grid-template-columns:
1896
+ var(--pane-grid, var(--icon-column) minmax(min(var(--pane-name-floor), 100%), 1fr))
1897
+ var(--pane-row-inset);
1898
+ padding-inline-end: 0;
1899
+ }
1900
+
1901
+ :where(.listing-root .pane-listing.pane-pin-end[role='table']) > * {
1902
+ margin-inline-end: 0;
1903
+ }
1904
+
1905
+ :where(.listing-root .pane-listing.pane-pin-end[role='table']) > :is(.row, .pane-columns) {
1906
+ padding-inline-end: 0;
1907
+ }
1908
+
1909
+ /* While columns run on under the pinned cells, a hairline on their leading
1910
+ edge says so, and the words sliding under them fade over --space-6
1911
+ before it, as a list's edge fades: the fade is the cell's own ground,
1912
+ masked from clear to solid. Both show only while something lies under
1913
+ the cells, so a listing that fits, or one scrolled to its end, keeps its
1914
+ last column whole. */
1915
+ @supports (animation-timeline: scroll()) {
1916
+ :where(.listing-root .pane-listing.pane-pin-end) > :is(.row, .pane-columns) > :last-child {
1917
+ animation: uiok-pane-pin-edge linear both;
1918
+ animation-timeline: scroll(nearest inline);
1919
+ }
1920
+
1921
+ :where(.listing-root .pane-listing.pane-pin-end)
1922
+ > :is(.row, .pane-columns)
1923
+ > :last-child::before {
1924
+ content: '';
1925
+ position: absolute;
1926
+ /* Over a strip cell's own ::before, the rule in its gutter. */
1927
+ inset-block: 0;
1928
+ inset-inline: auto 100%;
1929
+ width: var(--space-6);
1930
+ background: inherit;
1931
+ opacity: 0;
1932
+ pointer-events: none;
1933
+ mask-image: linear-gradient(to right, transparent, var(--ground));
1934
+ animation: uiok-pane-pin-fade linear both;
1935
+ animation-timeline: scroll(nearest inline);
1936
+ }
1937
+
1938
+ /* Right to left the columns before the cell lie on its right. */
1939
+ :where(
1940
+ [dir='rtl'] .listing-root .pane-listing.pane-pin-end,
1941
+ .listing-root[dir='rtl'] .pane-listing.pane-pin-end
1942
+ )
1943
+ > :is(.row, .pane-columns)
1944
+ > :last-child::before {
1945
+ mask-image: linear-gradient(to left, transparent, var(--ground));
1946
+ }
1947
+ }
1948
+
1949
+ @keyframes uiok-pane-pin-edge {
1950
+ 0%,
1951
+ 95% {
1952
+ box-shadow:
1953
+ inset var(--pane-pin-edge) 0 0 var(--border-strong),
1954
+ var(--pane-pin-ring);
1955
+ }
1956
+
1957
+ 100% {
1958
+ box-shadow:
1959
+ inset 0 0 0 var(--border-strong),
1960
+ var(--pane-pin-ring);
1961
+ }
1962
+ }
1963
+
1964
+ @keyframes uiok-pane-pin-fade {
1965
+ 0%,
1966
+ 95% {
1967
+ opacity: 1;
1968
+ }
1969
+
1970
+ 100% {
1971
+ opacity: 0;
1972
+ }
782
1973
  }
783
1974
 
784
1975
  /* A path (PathCell): its folders in the row-meta tone, giving way in order:
@@ -793,6 +1984,16 @@
793
1984
  :where(.listing-root) .row .row-meta.pane-path {
794
1985
  display: flex;
795
1986
  min-width: 0;
1987
+ /* Its words a whole number of characters wide (the gutter is its
1988
+ padding, inside the width), so a cut head's ellipsis meets the next
1989
+ folder with no sliver of a character between them; the slack falls
1990
+ past the name, at the column's end. Half a pixel more keeps the engine,
1991
+ which lays boxes out in fractions of a pixel, from rounding the last
1992
+ whole character out. */
1993
+ box-sizing: border-box;
1994
+ width: calc(
1995
+ round(down, calc(100% - var(--pane-column-gap)), 1ch) + var(--pane-column-gap) + 0.5px
1996
+ );
796
1997
  }
797
1998
 
798
1999
  :where(.listing-root) .pane-path-head {
@@ -825,7 +2026,9 @@
825
2026
  /* A terminal well under its strip (WellColumn): the terminal theme's
826
2027
  colours, filling what the column leaves. Its strip's grid is the
827
2028
  component's, a column for each of its labels. Plain text sits as the
828
- terminal's does, 13px on 19px lines, 12px from every edge; a well that
2029
+ terminal's does, 13px on 19px lines (the terminal's cell height, kept
2030
+ as a literal: it is the terminal's metric, not a type scale step), 12px
2031
+ from every edge; a well that
829
2032
  holds the terminal itself pads 8px, since the terminal adds its own 4px. */
830
2033
  :where(.listing-root) .pane-well-column {
831
2034
  display: flex;
@@ -838,19 +2041,39 @@
838
2041
  flex: 1;
839
2042
  min-height: 0;
840
2043
  margin: 0;
841
- padding: 12px;
2044
+ padding: var(--space-6);
842
2045
  overflow: auto;
843
2046
  background: var(--terminal-bg);
844
2047
  color: var(--terminal-fg);
845
- font: 13px/19px var(--font-mono);
2048
+ font: var(--font-size-body)/19px var(--font-mono);
846
2049
  white-space: pre-wrap;
847
2050
  overflow-wrap: anywhere;
2051
+ /* Output is content: a user selects and copies it. */
2052
+ -webkit-user-select: text;
2053
+ user-select: text;
2054
+ }
2055
+
2056
+ /* What an empty well says until output takes its place ("Output shows
2057
+ here as processes print."): a line of the well itself, in the terminal's
2058
+ font, size, and line height (inherited from the well) and dim, starting
2059
+ where the well's text starts. A well that holds a terminal pads 8px and
2060
+ the terminal adds its own 4px, so the note there takes that 4px too
2061
+ (`.pane-well-note.beside-terminal`). */
2062
+ :where(.listing-root) .pane-well-note {
2063
+ display: block;
2064
+ margin: 0;
2065
+ color: var(--text-dim);
2066
+ font: inherit;
2067
+ white-space: pre-wrap;
2068
+ }
2069
+
2070
+ :where(.listing-root) .pane-well-note.beside-terminal {
2071
+ padding: var(--space-2) var(--space-2) 0;
848
2072
  }
849
2073
 
850
2074
  /* A well is a Tab stop of its own, where the keys scroll it. */
851
2075
  :where(.listing-root) .pane-well:focus-visible {
852
- outline: 2px solid var(--accent);
853
- outline-offset: -2px;
2076
+ outline-offset: var(--focus-offset-inset);
854
2077
  }
855
2078
 
856
2079
  /* A filter field's far end (`.pane-filter-summary`): the count, or the
@@ -861,7 +2084,212 @@
861
2084
  padding-left: 1ch;
862
2085
  color: var(--text-dim);
863
2086
  font-family: var(--font-ui);
864
- font-size: 11px;
2087
+ font-size: var(--font-size-caption);
865
2088
  font-variant-numeric: tabular-nums;
866
2089
  white-space: nowrap;
2090
+ -webkit-user-select: text;
2091
+ user-select: text;
2092
+ }
2093
+
2094
+ /* A selected row (`.selected`), where nothing else on the row shows the
2095
+ state: the solid accent fill with on-accent words, its quiet words in the
2096
+ on-selection dim tone, every tone a cell would wear (a state, a path's
2097
+ name, a lit action) on the selection's own. The cursor on a selected row
2098
+ is the selection's cursor fill and a bar in the on-selection tone.
2099
+
2100
+ Only the selection that holds the keys wears the accent. In a pane that
2101
+ does not hold them, and in a window that is not in front (the host sets
2102
+ `data-window-inactive` on the root from its window's focus events), a
2103
+ selection greys, as a desktop list's does: the neutral fill and the
2104
+ words of a row on it (below). The on-selection words are scoped to the
2105
+ selection that holds the keys with a :where(), so each rule keeps its
2106
+ weight. */
2107
+ :where(.listing-root) .row.selected {
2108
+ --row-fill: var(--selected-bg);
2109
+ /* The selection's words, for a host's own parts of a row (a coloured
2110
+ name, a link's target) to take: the on-selection tones while the
2111
+ selection holds the keys, the text tones once it greys (below). */
2112
+ --row-selected-text: var(--on-selected);
2113
+ --row-selected-text-dim: var(--on-selected-dim);
2114
+
2115
+ background: var(--row-fill);
2116
+ color: var(--on-selected);
2117
+ }
2118
+
2119
+ :where(.listing-root) .row.cursor.selected {
2120
+ --row-fill: var(--selected-cursor-bg);
2121
+ --row-bar: var(--on-selected);
2122
+
2123
+ background: var(--row-fill);
2124
+ }
2125
+
2126
+ :where(.listing-root)
2127
+ .row.selected:where(
2128
+ :not(
2129
+ :root[data-window-inactive] .listing-root *,
2130
+ .listing-root:has(.pane.active) .pane:not(.active, .active .pane) *
2131
+ )
2132
+ )
2133
+ :is(.row-icon, .row-name, .pane-path-name, .pane-act, .pane-icon-act, .pane-state) {
2134
+ color: var(--on-selected);
2135
+ }
2136
+
2137
+ /* A lit or red action under the pointer or the focus keeps the selection's
2138
+ words too: their own rules weigh more than the one above, and their tones
2139
+ are not floored on the accent. */
2140
+ :where(.listing-root)
2141
+ .row.selected:where(
2142
+ :not(
2143
+ :root[data-window-inactive] .listing-root *,
2144
+ .listing-root:has(.pane.active) .pane:not(.active, .active .pane) *
2145
+ )
2146
+ )
2147
+ :is(.pane-act, .pane-icon-act):is(.lit, .danger, :hover, :focus-visible) {
2148
+ color: var(--on-selected);
2149
+ }
2150
+
2151
+ :where(.listing-root)
2152
+ .row.selected:where(
2153
+ :not(
2154
+ :root[data-window-inactive] .listing-root *,
2155
+ .listing-root:has(.pane.active) .pane:not(.active, .active .pane) *
2156
+ )
2157
+ )
2158
+ :is(.row-meta, .pane-path-head, .pane-path-tail) {
2159
+ color: var(--on-selected-dim);
2160
+ }
2161
+
2162
+ /* On the accent fill the ringed marks (a quiet state's thin ring, a busy
2163
+ state's heavy one) and the busy spinner draw in the selection's words'
2164
+ tone, as the word beside them does: in their own tones they would be the
2165
+ accent, or a grey, on the accent. */
2166
+ :where(.listing-root)
2167
+ .row.selected:where(
2168
+ :not(
2169
+ :root[data-window-inactive] .listing-root *,
2170
+ .listing-root:has(.pane.active) .pane:not(.active, .active .pane) *
2171
+ )
2172
+ )
2173
+ .pane-state-dot {
2174
+ box-shadow: inset 0 0 0 var(--line) var(--on-selected);
2175
+ }
2176
+
2177
+ :where(.listing-root)
2178
+ .row.selected:where(
2179
+ :not(
2180
+ :root[data-window-inactive] .listing-root *,
2181
+ .listing-root:has(.pane.active) .pane:not(.active, .active .pane) *
2182
+ )
2183
+ )
2184
+ .pane-tone-busy
2185
+ > .pane-state-dot {
2186
+ box-shadow: inset 0 0 0 var(--line-strong) var(--on-selected);
2187
+ }
2188
+
2189
+ :where(.listing-root)
2190
+ .row.selected:where(
2191
+ :not(
2192
+ :root[data-window-inactive] .listing-root *,
2193
+ .listing-root:has(.pane.active) .pane:not(.active, .active .pane) *
2194
+ )
2195
+ )
2196
+ .pane-state
2197
+ > svg.pane-state-busy {
2198
+ color: var(--on-selected);
2199
+ }
2200
+
2201
+ /* On the accent fill a filled mark wears a hairline in the selection's
2202
+ words' tone, so its shape holds whatever its hue. */
2203
+ :where(.listing-root)
2204
+ .row.selected:where(
2205
+ :not(
2206
+ :root[data-window-inactive] .listing-root *,
2207
+ .listing-root:has(.pane.active) .pane:not(.active, .active .pane) *
2208
+ )
2209
+ )
2210
+ :is(.pane-tone-ready, .pane-tone-warning, .pane-tone-danger)
2211
+ > .pane-state-dot {
2212
+ box-shadow: 0 0 0 var(--line) var(--on-selected);
2213
+ }
2214
+
2215
+ :where(.listing-root)
2216
+ .row.selected:where(
2217
+ :not(
2218
+ :root[data-window-inactive] .listing-root *,
2219
+ .listing-root:has(.pane.active) .pane:not(.active, .active .pane) *
2220
+ )
2221
+ )
2222
+ .name-hit {
2223
+ background: var(--selection-hit);
2224
+ box-shadow: inset 0 calc(-1 * var(--line-strong)) 0 var(--on-selected);
2225
+ }
2226
+
2227
+ /* A lit action's accent glyph would vanish on the accent fill: on a
2228
+ selection it takes the selection's words. */
2229
+ :where(.listing-root)
2230
+ .row.selected:where(
2231
+ :not(
2232
+ :root[data-window-inactive] .listing-root *,
2233
+ .listing-root:has(.pane.active) .pane:not(.active, .active .pane) *
2234
+ )
2235
+ )
2236
+ .pane-act.lit
2237
+ > svg {
2238
+ color: inherit;
2239
+ }
2240
+
2241
+ /* The grey selection: in a pane that does not hold the keys, or in a
2242
+ window that is not in front, a selected row takes the neutral fill and
2243
+ the words a row on that fill wears: full words for its name, the
2244
+ on-surface tone (floored on the fill) for its quiet words and its
2245
+ actions at rest, and its states in their own tones. Under the cursor it
2246
+ keeps the fill and has no bar; the quiet cursor's frame (above) shows
2247
+ on it. */
2248
+ :where(
2249
+ :root[data-window-inactive] .listing-root,
2250
+ .listing-root:has(.pane.active) .pane:not(.active, .active .pane)
2251
+ )
2252
+ .row.selected {
2253
+ --row-fill: var(--fill);
2254
+ --row-selected-text: var(--text);
2255
+ --row-selected-text-dim: var(--text-on-surface);
2256
+ /* A checkbox on the row keeps 3:1 on its fill. */
2257
+ --check-edge: var(--control-border-strong);
2258
+
2259
+ background: var(--row-fill);
2260
+ color: var(--text);
2261
+ }
2262
+
2263
+ :where(
2264
+ :root[data-window-inactive] .listing-root,
2265
+ .listing-root:has(.pane.active) .pane:not(.active, .active .pane)
2266
+ )
2267
+ .row.cursor.selected {
2268
+ --row-fill: var(--fill);
2269
+ --row-bar: transparent;
2270
+
2271
+ background: var(--row-fill);
2272
+ }
2273
+
2274
+ :where(
2275
+ :root[data-window-inactive] .listing-root,
2276
+ .listing-root:has(.pane.active) .pane:not(.active, .active .pane)
2277
+ )
2278
+ .row.selected
2279
+ :is(
2280
+ .row-icon,
2281
+ .row-meta,
2282
+ .pane-path-head,
2283
+ .pane-path-tail,
2284
+ .pane-state:is(.pane-tone-muted, .pane-tone-busy),
2285
+ :is(.pane-act, .pane-icon-act):not(:hover, :focus-visible)
2286
+ ) {
2287
+ color: var(--text-on-surface);
2288
+ }
2289
+
2290
+ /* In a window that is not in front the pane that holds the keys lets go
2291
+ of the accent on its frame too, and wears the strong hairline every
2292
+ other pane wears. */
2293
+ :where(:root[data-window-inactive] .listing-root) .pane.active::before {
2294
+ border-color: var(--border-strong);
867
2295
  }