@bigpixelrocket/uiok 0.2.3 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/CHANGELOG.md +26 -1
  2. package/dist/charts/Sparkline.d.ts +20 -0
  3. package/dist/charts/Sparkline.js +12 -0
  4. package/dist/charts/Sparkline.logic.d.ts +9 -0
  5. package/dist/charts/Sparkline.logic.js +27 -0
  6. package/dist/charts/charts.css +17 -0
  7. package/dist/charts/index.d.ts +2 -0
  8. package/dist/charts/index.js +2 -0
  9. package/dist/dialog/ConfirmDialog.d.ts +11 -1
  10. package/dist/dialog/ConfirmDialog.js +3 -2
  11. package/dist/dialog/ModalDialog.d.ts +8 -0
  12. package/dist/dialog/ModalDialog.js +4 -2
  13. package/dist/dialog/ProgressDialog.d.ts +34 -0
  14. package/dist/dialog/ProgressDialog.js +40 -0
  15. package/dist/dialog/TypedNameDialog.d.ts +36 -0
  16. package/dist/dialog/TypedNameDialog.js +17 -0
  17. package/dist/dialog/index.d.ts +5 -2
  18. package/dist/dialog/index.js +4 -1
  19. package/dist/field/Switch.d.ts +26 -0
  20. package/dist/field/Switch.js +20 -0
  21. package/dist/field/index.d.ts +3 -2
  22. package/dist/field/index.js +3 -2
  23. package/dist/frame/AppRoot.d.ts +44 -0
  24. package/dist/frame/AppRoot.js +26 -0
  25. package/dist/frame/Dock.d.ts +88 -0
  26. package/dist/frame/Dock.js +129 -0
  27. package/dist/frame/FilterChips.d.ts +28 -0
  28. package/dist/frame/FilterChips.js +14 -0
  29. package/dist/frame/PageParts.d.ts +69 -0
  30. package/dist/frame/PageParts.js +60 -0
  31. package/dist/frame/PaneSplit.d.ts +74 -0
  32. package/dist/frame/PaneSplit.js +197 -0
  33. package/dist/frame/SidebarResizer.d.ts +35 -0
  34. package/dist/frame/SidebarResizer.js +43 -0
  35. package/dist/frame/StatusNotice.d.ts +20 -0
  36. package/dist/frame/StatusNotice.js +13 -0
  37. package/dist/frame/Tree.d.ts +140 -0
  38. package/dist/frame/Tree.js +141 -0
  39. package/dist/frame/TreeToggle.d.ts +18 -0
  40. package/dist/frame/TreeToggle.js +17 -0
  41. package/dist/frame/WindowFrame.d.ts +57 -0
  42. package/dist/frame/WindowFrame.js +19 -0
  43. package/dist/frame/frame.css +801 -0
  44. package/dist/frame/index.d.ts +22 -0
  45. package/dist/frame/index.js +22 -0
  46. package/dist/frame/sharedRef.d.ts +8 -0
  47. package/dist/frame/sharedRef.js +26 -0
  48. package/dist/index.d.ts +3 -0
  49. package/dist/index.js +3 -0
  50. package/dist/labels/UiokLabels.d.ts +3 -0
  51. package/dist/labels/UiokLabels.js +3 -1
  52. package/dist/labels/dialog.d.ts +12 -0
  53. package/dist/labels/dialog.js +7 -1
  54. package/dist/labels/index.d.ts +1 -0
  55. package/dist/labels/index.js +1 -0
  56. package/dist/labels/settings.d.ts +46 -0
  57. package/dist/labels/settings.js +29 -0
  58. package/dist/listing/EmptyState.d.ts +40 -0
  59. package/dist/listing/EmptyState.js +14 -0
  60. package/dist/listing/index.d.ts +3 -1
  61. package/dist/listing/index.js +3 -1
  62. package/dist/listing/listing.css +66 -2
  63. package/dist/log/LogWell.d.ts +34 -0
  64. package/dist/log/LogWell.js +39 -0
  65. package/dist/log/LogWell.logic.d.ts +16 -0
  66. package/dist/log/LogWell.logic.js +26 -0
  67. package/dist/log/index.d.ts +8 -0
  68. package/dist/log/index.js +8 -0
  69. package/dist/log/log.css +57 -0
  70. package/dist/pane/Pane.d.ts +49 -0
  71. package/dist/pane/Pane.js +17 -0
  72. package/dist/pane/PaneKeys.d.ts +10 -3
  73. package/dist/pane/PaneKeys.js +26 -7
  74. package/dist/pane/index.d.ts +4 -2
  75. package/dist/pane/index.js +4 -2
  76. package/dist/pane/usePaneKeys.js +9 -11
  77. package/dist/shell/AboutWindow.d.ts +21 -0
  78. package/dist/shell/AboutWindow.js +10 -0
  79. package/dist/shell/LanguageChoice.d.ts +27 -0
  80. package/dist/shell/LanguageChoice.js +17 -0
  81. package/dist/shell/LoadFailure.d.ts +22 -0
  82. package/dist/shell/LoadFailure.js +15 -0
  83. package/dist/shell/Lockup.d.ts +52 -0
  84. package/dist/shell/Lockup.js +30 -0
  85. package/dist/shell/SettingsDialog.d.ts +97 -0
  86. package/dist/shell/SettingsDialog.js +219 -0
  87. package/dist/shell/SettingsDialog.logic.d.ts +33 -0
  88. package/dist/shell/SettingsDialog.logic.js +42 -0
  89. package/dist/shell/SettingsFiles.d.ts +55 -0
  90. package/dist/shell/SettingsFiles.js +30 -0
  91. package/dist/shell/SettingsPageKeys.d.ts +42 -0
  92. package/dist/shell/SettingsPageKeys.js +70 -0
  93. package/dist/shell/SettingsSubsection.d.ts +34 -0
  94. package/dist/shell/SettingsSubsection.js +30 -0
  95. package/dist/shell/SignIn.d.ts +61 -0
  96. package/dist/shell/SignIn.js +36 -0
  97. package/dist/shell/ThemePicker.d.ts +74 -0
  98. package/dist/shell/ThemePicker.js +96 -0
  99. package/dist/shell/ThemePicker.logic.d.ts +13 -0
  100. package/dist/shell/ThemePicker.logic.js +26 -0
  101. package/dist/shell/TitleBar.d.ts +44 -0
  102. package/dist/shell/TitleBar.js +23 -0
  103. package/dist/shell/UpdatePill.d.ts +26 -0
  104. package/dist/shell/UpdatePill.js +17 -0
  105. package/dist/shell/Updates.d.ts +99 -0
  106. package/dist/shell/Updates.js +72 -0
  107. package/dist/shell/index.d.ts +27 -0
  108. package/dist/shell/index.js +27 -0
  109. package/dist/shell/shell.css +243 -4
  110. package/dist/styles.css +2 -0
  111. package/dist/themes/catalog.js +4 -0
  112. package/dist/themes/themes.generated.css +244 -0
  113. package/dist/themes/tokens.d.ts +17 -5
  114. package/dist/themes/tokens.js +64 -1
  115. package/dist/tokens.css +11 -0
  116. package/package.json +1 -1
@@ -0,0 +1,801 @@
1
+ /* The window frame every app of the family draws its content in
2
+ (docs/components/frame.md): the app's root and its one content panel,
3
+ a space's root and its element resets, the window's grid (the title band
4
+ over the sidebar and the main pane, the tray and the dock under the main
5
+ pane, the key legend across the foot), the sidebar's tree rows and its
6
+ quick row, the dock's bar and log, the splitter between a list and the
7
+ pane under it, a page's toolbar, and the small blocks a pane's pages
8
+ share. Every rule places or sizes uiok's own parts (panes, listings,
9
+ path bars, tab strips, legends); none paints a ground of its own. */
10
+
11
+ /* ---- The app's root ---- */
12
+
13
+ /* A window that wears the frame: its top band (the title bar and the main
14
+ pane's tabs), which every dialog keeps clear of, and the interface face
15
+ as the window's default. */
16
+ :root:has(:is(.app-shell, .about-window)) {
17
+ --dialog-inset-top: calc(var(--shell-header-height) + var(--space-4));
18
+
19
+ font-family: var(--font-ui);
20
+ line-height: var(--line-height-prose);
21
+ }
22
+
23
+ :where(body:has(:is(.app-shell, .about-window))) {
24
+ margin: 0;
25
+ min-height: 100vh;
26
+ background: var(--ground);
27
+ color: var(--text);
28
+ }
29
+
30
+ /* The app's root: one column the window's height, its content panel. */
31
+ .app-shell {
32
+ display: flex;
33
+ flex-direction: column;
34
+ height: 100vh;
35
+ }
36
+
37
+ /* The content owns the whole window, the top band's layout included. */
38
+ .shell-content {
39
+ display: flex;
40
+ flex: 1;
41
+ flex-direction: column;
42
+ min-height: 0;
43
+ box-sizing: border-box;
44
+ }
45
+
46
+ /* The panel the content's keyboard commands work in: a focus boundary,
47
+ never a control, so it draws no ring. */
48
+ .space-panel {
49
+ flex: 1 1 auto;
50
+ min-height: 0;
51
+ }
52
+
53
+ .space-panel:focus {
54
+ outline: none;
55
+ }
56
+
57
+ /* A space's root: a column the panel's height in the body size. The
58
+ element resets weigh nothing (:where), so any class rule wins over them,
59
+ uiok's components included. */
60
+ .space-root {
61
+ position: relative;
62
+ display: flex;
63
+ flex-direction: column;
64
+ height: 100%;
65
+ color: var(--text);
66
+ font-size: var(--font-size-body);
67
+ }
68
+
69
+ .space-root *,
70
+ .space-root *::before,
71
+ .space-root *::after {
72
+ box-sizing: border-box;
73
+ }
74
+
75
+ :where(.space-root button) {
76
+ font: inherit;
77
+ color: inherit;
78
+ }
79
+
80
+ :where(.space-root code) {
81
+ font-family: var(--font-mono);
82
+ font-size: var(--font-size-small);
83
+ }
84
+
85
+ /* A fieldset groups a form's choices without the browser's grooved frame
86
+ or its legend cut into the line. */
87
+ :where(.space-root fieldset, .dialog fieldset) {
88
+ min-width: 0;
89
+ margin: 0;
90
+ padding: 0;
91
+ border: 0;
92
+ }
93
+
94
+ :where(.space-root legend, .dialog legend) {
95
+ padding: 0;
96
+ }
97
+
98
+ /* A sidebar with nothing to list says so as a quiet row in the rows'
99
+ place, as a listing's empty message does: from where a row's icon
100
+ starts, in the rows' face and size, dim, one row high. */
101
+ .space-nav-empty {
102
+ display: flex;
103
+ align-items: center;
104
+ min-height: var(--row-height);
105
+ margin: 0;
106
+ padding: 0 var(--pane-row-inset);
107
+ color: var(--row-meta-text);
108
+ font: inherit;
109
+ line-height: var(--line-height-compact);
110
+ }
111
+
112
+ /* ---- The window's grid ---- */
113
+
114
+ /* The top band (the title bar's height) over the sidebar and the main
115
+ pane side by side on the ground, the ground's inset round them and
116
+ between them, the tray and the dock under the main pane while they show,
117
+ and the key legend across the foot. A `.window-frame-group` between the
118
+ frame and its items draws no box (display: contents), so a host may keep
119
+ its sidebar and main pane in one element for its keys. The band's
120
+ leading end is the title bar at the sidebar's width
121
+ (`--window-band-width`); the main pane rises into the band, so its tab
122
+ row ends on the band's foot. */
123
+ .window-frame {
124
+ display: grid;
125
+ grid-template-columns: auto minmax(0, 1fr);
126
+ grid-template-rows: var(--shell-header-height) minmax(0, 1fr) auto auto auto;
127
+ column-gap: var(--space-3);
128
+ height: 100%;
129
+ padding: 0 var(--space-3);
130
+ }
131
+
132
+ .window-frame-group {
133
+ display: contents;
134
+ }
135
+
136
+ .window-frame-band {
137
+ display: flex;
138
+ grid-column: 1 / -1;
139
+ grid-row: 1;
140
+ align-items: center;
141
+ min-width: 0;
142
+ }
143
+
144
+ /* From the window's edge to the sidebar's: the title bar clears the window
145
+ buttons from the edge, not from the ground's inset. */
146
+ .window-frame-band-lead {
147
+ flex: none;
148
+ align-self: stretch;
149
+ width: calc(var(--window-band-width) + var(--space-3));
150
+ max-width: calc(100% + var(--space-3));
151
+ min-width: 0;
152
+ margin-left: calc(-1 * var(--space-3));
153
+ }
154
+
155
+ /* While no tab shows, the band's empty end is title bar too. */
156
+ .window-frame-band-rest {
157
+ flex: 1 1 0;
158
+ align-self: stretch;
159
+ -webkit-app-region: drag;
160
+ }
161
+
162
+ .window-frame-sidebar {
163
+ grid-column: 1;
164
+ grid-row: 2 / 5;
165
+ margin-bottom: var(--space-3);
166
+ }
167
+
168
+ /* The sidebar's edge, dragged to resize it: in the gap beside the page. */
169
+ .window-frame-resizer {
170
+ grid-column: 1;
171
+ grid-row: 2 / 5;
172
+ justify-self: end;
173
+ width: var(--space-3);
174
+ margin: 0 calc(-1 * var(--space-3)) var(--space-3) 0;
175
+ cursor: col-resize;
176
+ touch-action: none;
177
+ }
178
+
179
+ .window-frame-main {
180
+ flex: 1;
181
+ grid-column: 2;
182
+ grid-row: 2;
183
+ min-width: 0;
184
+ min-height: 0;
185
+ margin-bottom: var(--space-3);
186
+ }
187
+
188
+ /* A strip that takes its turn under the main pane (files dropped on the
189
+ window, being imported). */
190
+ .window-frame-tray {
191
+ grid-column: 2;
192
+ grid-row: 3;
193
+ margin-bottom: var(--space-3);
194
+ }
195
+
196
+ /* The dock under the main pane: a console, a log, related rows. */
197
+ .window-frame-dock {
198
+ grid-column: 2;
199
+ grid-row: 4;
200
+ }
201
+
202
+ .window-frame-legend {
203
+ grid-column: 1 / -1;
204
+ grid-row: 5;
205
+ margin: 0 calc(-1 * var(--space-3));
206
+ }
207
+
208
+ /* A slot `WindowFrame` wraps round a part: the part fills it. */
209
+ .window-frame-slot {
210
+ display: flex;
211
+ flex-direction: column;
212
+ min-width: 0;
213
+ min-height: 0;
214
+ }
215
+
216
+ .window-frame-slot > * {
217
+ flex: 1 1 auto;
218
+ min-height: 0;
219
+ }
220
+
221
+ /* The main pane's tab row stands in the band, beside the title bar; the
222
+ row's empty end is title bar too. */
223
+ .window-frame-main:is(:has(> .pane-header), :has(> .pane > .pane-header)) {
224
+ margin-top: calc(-1 * var(--pane-tab-height));
225
+ }
226
+
227
+ .window-frame-main > .pane-header > .pane-tabs-rest,
228
+ .window-frame-main > .pane > .pane-header > .pane-tabs-rest {
229
+ -webkit-app-region: drag;
230
+ }
231
+
232
+ /* The sidebar hidden (a choice of the window, never of a tab): the main
233
+ pane, the tray, and the dock take the window's width, and the main
234
+ pane's tabs keep the place they have beside the title bar, so no tab
235
+ moves when the sidebar goes. */
236
+ :is(.window-frame[data-sidebar='hidden'], .window-frame:has(> [data-sidebar='hidden']))
237
+ :is(.window-frame-main, .window-frame-tray, .window-frame-dock) {
238
+ grid-column: 1 / -1;
239
+ }
240
+
241
+ :is(.window-frame[data-sidebar='hidden'], .window-frame:has(> [data-sidebar='hidden']))
242
+ .window-frame-main
243
+ > .pane-header,
244
+ :is(.window-frame[data-sidebar='hidden'], .window-frame:has(> [data-sidebar='hidden']))
245
+ .window-frame-main
246
+ > .pane
247
+ > .pane-header {
248
+ padding-left: calc(var(--window-band-width) + var(--space-3));
249
+ }
250
+
251
+ /* Show panel leads a path bar's tools, before the page's facts. */
252
+ .path-tools > .window-frame-show-sidebar {
253
+ order: -1;
254
+ }
255
+
256
+ /* A page of the main pane in its slot: the front tab's page lays out as
257
+ the pane's own child; a held page (a background tab with unsaved
258
+ changes, kept mounted) stays out of sight. */
259
+ .page-slot:not([hidden]) {
260
+ display: contents;
261
+ }
262
+
263
+ /* ---- The sidebar's tree ---- */
264
+
265
+ /* The tree's pane: its width (the host sets the width it keeps as the
266
+ element's own `width`, else --sidebar-width), and the row's columns (the
267
+ chevron's slot, the node's glyph, its name, one trailing column). A
268
+ size container, so its path bar can wrap when narrow. */
269
+ .tree-pane {
270
+ --pane-grid: var(--icon-md) var(--icon-column) minmax(0, 1fr) auto;
271
+ --tree-indent: var(--space-6);
272
+
273
+ width: var(--sidebar-width);
274
+ min-width: 0;
275
+ container: tree-pane / inline-size;
276
+ }
277
+
278
+ /* The tree's path bar keeps its tools whole at a narrow width, closer than
279
+ a page's, and its title gives way to an ellipsis. */
280
+ .tree-pane .path-tools {
281
+ flex-shrink: 0;
282
+ gap: var(--space-1);
283
+ }
284
+
285
+ .tree-pane .path-tools > .path-star {
286
+ margin-right: 0;
287
+ }
288
+
289
+ .tree-pane .crumb.here {
290
+ flex-shrink: 1;
291
+ min-width: calc(2ch + var(--space-4));
292
+ }
293
+
294
+ /* Narrower than its title and its tools side by side, the path bar takes
295
+ a line for each: the title keeps its own, whole, and the tools wrap
296
+ under it from the left. */
297
+ @container tree-pane (width < 238px) {
298
+ .tree-pane .pane-path-row {
299
+ flex: none;
300
+ flex-wrap: wrap;
301
+ }
302
+
303
+ .tree-pane .pane-crumbs {
304
+ flex: 1 0 100%;
305
+ height: var(--pane-path-height);
306
+ }
307
+
308
+ .tree-pane .path-tools {
309
+ flex: 1 1 100%;
310
+ flex-wrap: wrap;
311
+ padding: 0 var(--space-2) var(--space-2) var(--space-4);
312
+ }
313
+ }
314
+
315
+ /* A row stepped in by its level (`--tree-level`). */
316
+ .tree .row {
317
+ width: 100%;
318
+ padding-left: calc(var(--pane-row-inset) + var(--tree-level, 0) * var(--tree-indent));
319
+ }
320
+
321
+ /* A band over the rows it holds (a server over its databases, a project
322
+ over its commands): the strip's ground and a hairline under it, its name
323
+ column as wide as the name. */
324
+ .tree .row.tree-band {
325
+ grid-template-columns: var(--icon-md) var(--icon-column) minmax(6ch, max-content) minmax(0, 1fr);
326
+ border-bottom: var(--line) solid var(--border);
327
+ }
328
+
329
+ .tree .row.tree-band:not(.cursor) {
330
+ background: var(--strip);
331
+ }
332
+
333
+ /* A quiet cursor on a band (another pane focused, or the window behind)
334
+ frames the band on its own ground. */
335
+ :where(
336
+ :root[data-window-inactive] .listing-root,
337
+ .listing-root:has(.pane.active) .pane:not(.active, .active .pane)
338
+ )
339
+ .tree
340
+ .row.tree-band.cursor {
341
+ --row-fill: var(--strip);
342
+ }
343
+
344
+ /* The disclosure chevron in a row's first column (`TreeToggle`). */
345
+ .tree-chev {
346
+ display: inline-flex;
347
+ align-items: center;
348
+ justify-content: center;
349
+ padding: 0;
350
+ border: 0;
351
+ border-radius: var(--radius-xs);
352
+ background: none;
353
+ color: inherit;
354
+ }
355
+
356
+ .tree-chev:hover {
357
+ background: var(--hover-wash);
358
+ color: var(--text);
359
+ }
360
+
361
+ .tree-chev:active {
362
+ background: var(--pressed-wash);
363
+ box-shadow: var(--press-frost);
364
+ }
365
+
366
+ .tree-glyph {
367
+ display: inline-flex;
368
+ align-items: center;
369
+ color: var(--row-meta-text);
370
+ }
371
+
372
+ .tree-name {
373
+ min-width: 0;
374
+ overflow: hidden;
375
+ text-overflow: ellipsis;
376
+ }
377
+
378
+ /* A group's name reads as a heading over its rows. */
379
+ .tree .row.tree-group .tree-name {
380
+ color: var(--text-dim);
381
+ }
382
+
383
+ /* Words after a name, quieter. */
384
+ .tree-detail {
385
+ color: var(--row-meta-text);
386
+ }
387
+
388
+ /* On a cursor or marked row the quiet words take the surface's text. */
389
+ .row:is(.cursor, .marked):where(:not(.selected)) :is(.tree-detail, .tree-glyph),
390
+ .tree-tool.cursor,
391
+ .tree-tool.cursor .tree-note-glyph {
392
+ color: var(--text-on-surface);
393
+ }
394
+
395
+ /* A row's own tool (Hide) shows on the cursor row only, which a click and
396
+ the keys both move; it never appears under a passing pointer. */
397
+ .tree-row-tool {
398
+ margin-left: var(--space-2);
399
+ visibility: hidden;
400
+ }
401
+
402
+ .tree .row.cursor .tree-row-tool {
403
+ visibility: visible;
404
+ }
405
+
406
+ /* A row that is not a node (a filter field, a pager, a note), at its
407
+ row's indent, in the small size. */
408
+ .tree-tool {
409
+ display: flex;
410
+ align-items: center;
411
+ gap: var(--space-3);
412
+ min-height: var(--row-height);
413
+ padding: var(--space-1) var(--pane-row-inset) var(--space-1)
414
+ calc(var(--pane-row-inset) + var(--tree-level, 0) * var(--tree-indent));
415
+ box-sizing: border-box;
416
+ color: var(--row-meta-text);
417
+ font-size: var(--font-size-small);
418
+ }
419
+
420
+ .tree-tool.cursor {
421
+ background: var(--cursor-row);
422
+ }
423
+
424
+ /* A read that failed: the glyph beside the reason, which wraps, and the
425
+ action under the reason at its edge. */
426
+ .tree-tool.danger {
427
+ display: grid;
428
+ grid-template-columns: var(--icon-column) minmax(0, 1fr);
429
+ column-gap: var(--space-3);
430
+ row-gap: var(--space-1);
431
+ align-items: start;
432
+ font-family: var(--font-ui);
433
+ }
434
+
435
+ .tree-tool.danger > .tree-note-glyph {
436
+ display: inline-flex;
437
+ align-items: center;
438
+ height: var(--line-height-compact);
439
+ color: var(--danger);
440
+ }
441
+
442
+ .tree-tool.danger .tree-note-text {
443
+ grid-column: 2;
444
+ overflow: visible;
445
+ white-space: normal;
446
+ overflow-wrap: break-word;
447
+ }
448
+
449
+ .tree-tool.danger > :last-child {
450
+ grid-column: 2;
451
+ justify-self: start;
452
+ }
453
+
454
+ .tree-tool.danger > .pane-act:last-child {
455
+ margin-inline-start: calc(-1 * var(--space-2));
456
+ }
457
+
458
+ /* A note under a node starts past the chevron's slot. */
459
+ .tree-tool.tree-note {
460
+ padding-left: calc(
461
+ var(--pane-row-inset) + var(--tree-level, 0) * var(--tree-indent) + var(--icon-md)
462
+ );
463
+ }
464
+
465
+ /* A heading over a group of rows further down the tree. */
466
+ .tree-tool.tree-heading {
467
+ margin-top: var(--space-3);
468
+ padding-block: var(--space-3) var(--space-2);
469
+ border-top: var(--line) solid var(--border);
470
+ }
471
+
472
+ .tree-tool.tree-heading .tree-note-text {
473
+ white-space: normal;
474
+ }
475
+
476
+ .tree-note-glyph {
477
+ width: var(--icon-column);
478
+ color: var(--row-meta-text);
479
+ }
480
+
481
+ .tree-note-text {
482
+ min-width: 0;
483
+ overflow: hidden;
484
+ text-overflow: ellipsis;
485
+ white-space: nowrap;
486
+ }
487
+
488
+ /* The tree's filter line: a bare field that fills its row, the row
489
+ underlined in the accent while the field holds the keyboard. */
490
+ .tree-tool:has(.tree-filter-input:focus-visible) {
491
+ box-shadow: inset 0 calc(-1 * var(--line-strong)) 0 var(--accent);
492
+ }
493
+
494
+ .tree-filter-input {
495
+ flex: 1;
496
+ min-width: 0;
497
+ height: var(--control-height-xs);
498
+ padding: 0 var(--space-2);
499
+ border: 0;
500
+ outline: 0;
501
+ background: none;
502
+ color: var(--text);
503
+ font: inherit;
504
+ font-size: var(--font-size-small);
505
+ text-overflow: ellipsis;
506
+ }
507
+
508
+ /* ---- A pane's quick row ---- */
509
+
510
+ /* A row of quiet buttons under a pane's path bar (FilterChips: the tree's
511
+ Running and Updates filters): each a word with its glyph and count, and
512
+ `aria-pressed="true"` while its filter is on. */
513
+ .pane-quick-row {
514
+ display: flex;
515
+ gap: var(--space-2);
516
+ padding: var(--space-2) var(--pane-row-inset);
517
+ border-bottom: var(--line) solid var(--border);
518
+ }
519
+
520
+ .pane-quick-button {
521
+ display: inline-flex;
522
+ align-items: center;
523
+ gap: var(--space-2);
524
+ padding: var(--space-1) var(--space-3);
525
+ border: none;
526
+ border-radius: var(--radius-md);
527
+ font: inherit;
528
+ font-size: var(--font-size-small);
529
+ }
530
+
531
+ /* Its rest face weighs nothing, so the quiet track item's hover and press
532
+ (.quiet-track-item) paint over it. */
533
+ :where(.pane-quick-button) {
534
+ background: none;
535
+ color: var(--row-meta-text);
536
+ }
537
+
538
+ .pane-quick-button[aria-pressed='true'] {
539
+ background: var(--accent-wash-strong);
540
+ color: var(--text);
541
+ }
542
+
543
+ .pane-quick-count {
544
+ color: var(--row-meta-text);
545
+ font-variant-numeric: tabular-nums;
546
+ }
547
+
548
+ /* A warning under a pane's path bar, over its rows (PaneWarning). */
549
+ .pane-warning {
550
+ margin: 0;
551
+ padding: var(--space-2) var(--pane-row-inset);
552
+ border-bottom: var(--line) solid var(--border);
553
+ color: var(--row-meta-text);
554
+ font-size: var(--font-size-small);
555
+ }
556
+
557
+ /* ---- The dock ---- */
558
+
559
+ /* A pane in the dock under the main pane: the divide over it, its bar,
560
+ then its body. Closed, it takes no room. */
561
+ .window-dock {
562
+ position: relative;
563
+ min-height: var(--bar-height-lg);
564
+ margin-bottom: var(--space-3);
565
+ overflow: visible;
566
+ }
567
+
568
+ .window-dock.closed {
569
+ display: none;
570
+ }
571
+
572
+ /* The divide stands in the ground over the dock and sets its height. */
573
+ .window-dock > .pane-splitter {
574
+ position: absolute;
575
+ inset: calc(-1 * var(--space-3)) 0 auto;
576
+ margin: 0;
577
+ cursor: row-resize;
578
+ }
579
+
580
+ .dock-bar {
581
+ display: flex;
582
+ flex: none;
583
+ flex-wrap: wrap;
584
+ align-items: center;
585
+ gap: var(--space-1) var(--space-5);
586
+ padding: var(--space-1) var(--space-4);
587
+ border-bottom: var(--line) solid var(--border);
588
+ font-size: var(--font-size-small);
589
+ }
590
+
591
+ .dock-body {
592
+ position: relative;
593
+ display: flex;
594
+ flex: 1;
595
+ flex-direction: column;
596
+ min-height: 0;
597
+ overflow: auto;
598
+ }
599
+
600
+ /* A dock's log: entries over a hairline each, the newest at the foot;
601
+ entries far from the foot skip layout until scrolled to. */
602
+ .dock-log {
603
+ flex: 1;
604
+ min-height: 0;
605
+ margin: 0;
606
+ padding: var(--space-2) var(--space-4);
607
+ overflow: auto;
608
+ list-style: none;
609
+ font-size: var(--font-size-small);
610
+ }
611
+
612
+ .dock-log-empty {
613
+ padding: var(--space-1) 0;
614
+ color: var(--text-dim);
615
+ }
616
+
617
+ .dock-log-entry {
618
+ padding: var(--space-1) 0;
619
+ border-top: var(--line) solid var(--border);
620
+ }
621
+
622
+ .dock-log-entry:not(:nth-last-child(-n + 24)) {
623
+ content-visibility: auto;
624
+ contain-intrinsic-size: auto 44px;
625
+ }
626
+
627
+ .dock-log-actions {
628
+ display: flex;
629
+ flex-wrap: wrap;
630
+ align-items: center;
631
+ gap: 0 var(--space-4);
632
+ min-height: var(--control-height-xs);
633
+ }
634
+
635
+ /* What a dock takes typed in, at the log's foot, ringed while it holds
636
+ the keyboard. */
637
+ .dock-input {
638
+ flex: none;
639
+ min-height: var(--control-height);
640
+ max-height: 50%;
641
+ overflow: auto;
642
+ border-top: var(--line) solid var(--border);
643
+ }
644
+
645
+ .dock-input:focus-within {
646
+ outline: var(--focus-ring-width) solid var(--accent);
647
+ outline-offset: var(--focus-offset-inset);
648
+ }
649
+
650
+ /* ---- A list over the pane under it ---- */
651
+
652
+ /* The splitter between a page's list and the pane under it
653
+ (`PaneSplitter`): a thin band over the hairline that divides them, with
654
+ the resize cursor, overlapping both by half its height. */
655
+ .pane-splitter {
656
+ position: relative;
657
+ z-index: var(--z-raised);
658
+ flex: none;
659
+ height: var(--space-3);
660
+ margin-block: calc(-0.5 * var(--space-3));
661
+ cursor: ns-resize;
662
+ touch-action: none;
663
+ }
664
+
665
+ /* The pane under a list: as tall as what it shows until dragged, up to
666
+ 38% of the page and never under seven dense rows. */
667
+ .split-detail {
668
+ display: flex;
669
+ flex: 0 1 auto;
670
+ flex-direction: column;
671
+ max-height: max(38%, calc(7 * var(--row-height-dense)));
672
+ min-height: 0;
673
+ border-top: var(--line) solid var(--border);
674
+ }
675
+
676
+ .split-detail.folded {
677
+ flex: none !important;
678
+ }
679
+
680
+ .split-detail-body {
681
+ display: flex;
682
+ flex: 1 1 auto;
683
+ flex-direction: column;
684
+ gap: var(--space-3);
685
+ min-height: 0;
686
+ padding: var(--space-3) var(--pane-row-inset);
687
+ overflow-y: auto;
688
+ }
689
+
690
+ /* ---- A page's parts ---- */
691
+
692
+ /* A page in the main pane: a column that fills it. */
693
+ .pane-page {
694
+ display: flex;
695
+ flex: 1;
696
+ flex-direction: column;
697
+ min-height: 0;
698
+ }
699
+
700
+ /* A toolbar on one line: its items keep their size, one `grow` item gives
701
+ way, an `end` group stands at the far end, and a `gap` hairline parts
702
+ two groups. */
703
+ .pane-toolbar {
704
+ display: flex;
705
+ flex-wrap: nowrap;
706
+ align-items: center;
707
+ gap: var(--space-2);
708
+ min-width: 0;
709
+ }
710
+
711
+ .pane-toolbar > * {
712
+ flex: none;
713
+ }
714
+
715
+ .pane-toolbar > .pane-toolbar-grow {
716
+ flex: 0 1 auto;
717
+ min-width: 0;
718
+ }
719
+
720
+ .pane-toolbar-end {
721
+ display: inline-flex;
722
+ margin-inline-start: auto;
723
+ }
724
+
725
+ .pane-toolbar-gap {
726
+ align-self: stretch;
727
+ width: var(--line);
728
+ margin-block: var(--space-1);
729
+ margin-inline: var(--space-2);
730
+ background: var(--border);
731
+ }
732
+
733
+ /* A page's filter under its tab strip. */
734
+ .pane-page-filter {
735
+ flex: none;
736
+ padding: var(--space-2) var(--space-3) 0;
737
+ }
738
+
739
+ /* A loading or empty line: its glyph or spinner beside the words. */
740
+ .pane-page-note {
741
+ display: flex;
742
+ align-items: center;
743
+ gap: var(--space-3);
744
+ }
745
+
746
+ .pane-page-note > svg {
747
+ flex: none;
748
+ color: var(--text-dim);
749
+ }
750
+
751
+ /* The one command that answers an empty list, under its empty line. */
752
+ .pane-empty-action {
753
+ padding: var(--space-3) var(--pane-row-inset);
754
+ }
755
+
756
+ /* A heading over one of a page's listings, in the rows' inset (on an
757
+ overline too, whose own margin it replaces). */
758
+ :is(.pane-section-head, .pane-section-head.overline) {
759
+ margin: var(--space-4) var(--pane-row-inset) var(--space-2);
760
+ }
761
+
762
+ /* A bar at a pane's foot, under its list: a select-all bar, a form's
763
+ actions. */
764
+ .pane-foot-bar {
765
+ flex: none;
766
+ padding: var(--space-2) var(--pane-row-inset);
767
+ border-top: var(--line) solid var(--border);
768
+ }
769
+
770
+ /* ---- A status line's notice ---- */
771
+
772
+ /* A message about the window as a pane's status line (StatusNotice): the
773
+ tone's glyph, the words in the text colour cut with an ellipsis. */
774
+ .status-notice {
775
+ display: inline-flex;
776
+ align-items: center;
777
+ gap: var(--space-2);
778
+ min-width: 0;
779
+ color: var(--text);
780
+ font-family: var(--font-ui);
781
+ }
782
+
783
+ .status-notice > svg {
784
+ flex: none;
785
+ color: var(--text-dim);
786
+ }
787
+
788
+ .status-notice.danger > svg {
789
+ color: var(--danger);
790
+ }
791
+
792
+ .status-notice.success > svg {
793
+ color: var(--success);
794
+ }
795
+
796
+ .status-notice-text {
797
+ min-width: 0;
798
+ overflow: hidden;
799
+ text-overflow: ellipsis;
800
+ white-space: nowrap;
801
+ }