@bigpixelrocket/uiok 0.1.3 → 0.2.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 (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 +8 -1
  58. package/dist/grid/DataGrid.js +115 -40
  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 +9 -3
@@ -0,0 +1,1073 @@
1
+ /* The shell's shared surfaces: what an app's window draws around its own
2
+ pages and every app of the family draws the same way. A Settings dialog
3
+ (its frame, the sidebar of pages, a page's subsections, the theme picker,
4
+ a file's problems, the update cards and their notes), the update pill's
5
+ failed state, the release channel tag, the About window's layout, the
6
+ sign-in prompts, and the line a part of the window shows when it fails
7
+ to load. None is a component: the app writes the markup with these
8
+ classes (docs/components/shell.md). The header, the brand
9
+ wordmark, the app's icon, window drag regions, and the startup screens
10
+ stay the app's. */
11
+
12
+ /* ---- Settings dialog ---- */
13
+
14
+ /* A fixed frame on uiok's dialog, so switching pages never moves it, that
15
+ fits the smallest window under the title bar (--dialog-inset-top). */
16
+ .dialog.settings-dialog {
17
+ width: min(900px, 100%);
18
+ height: min(620px, 100%);
19
+ }
20
+
21
+ /* The sidebar and the page reach the frame's edges, from the title strip's
22
+ rule down to the legend's hairline. */
23
+ .settings-dialog-body {
24
+ display: grid;
25
+ grid-template-columns: 196px minmax(0, 1fr);
26
+ flex: 1 1 auto;
27
+ min-height: 0;
28
+ margin: calc(-1 * var(--space-6));
29
+ }
30
+
31
+ /* The sidebar of pages, a shade over the frosted frame. It fades at an edge
32
+ while more pages lie past it (.scroll-fade), and the fade would mask a
33
+ border of its own, so the hairline beside it is the page column's. */
34
+ .settings-sidebar {
35
+ overflow-y: auto;
36
+ padding: var(--space-5) var(--space-4);
37
+ background: var(--scrim-strong);
38
+ }
39
+
40
+ .settings-sidebar-group + .settings-sidebar-group {
41
+ margin-top: var(--space-6);
42
+ }
43
+
44
+ /* A group's name is uiok's .overline; the sidebar sets only its place. */
45
+ .settings-sidebar-header {
46
+ display: block;
47
+ margin-bottom: var(--space-1);
48
+ padding: 0 var(--space-4);
49
+ }
50
+
51
+ /* A page's row: its glyph and its title, the chosen one on the current
52
+ item's tint and ring. Its subsections unfold under it on a rail, the one
53
+ in view in the text colour with the rail lit beside it. A name too long
54
+ for the sidebar wraps onto a second compact line rather than losing its
55
+ end, between words, and inside a word only when the word alone cannot
56
+ fit (never with a hyphen the browser guessed). Hover and press are the
57
+ quiet control's shared recipe (styles.css); the chosen row takes
58
+ neither. The focus ring is the base sheet's, drawn inside the row. */
59
+ .settings-sidebar-page,
60
+ .settings-sidebar-subsection {
61
+ display: flex;
62
+ align-items: center;
63
+ gap: var(--space-4);
64
+ width: 100%;
65
+ min-height: var(--bar-height);
66
+ margin: 0;
67
+ padding: var(--space-2) var(--space-4);
68
+ border: 0;
69
+ border-radius: var(--radius-md);
70
+ background: none;
71
+ color: var(--text);
72
+ cursor: default;
73
+ font: inherit;
74
+ font-size: var(--font-size-small);
75
+ line-height: var(--line-height-compact);
76
+ text-align: start;
77
+ overflow-wrap: break-word;
78
+ hyphens: manual;
79
+ transition: var(--transition-control);
80
+ }
81
+
82
+ /* A page's row hangs its parts from the first line, so a name that wraps
83
+ keeps its glyph and chip beside its first line and the glyph column
84
+ stays straight. The block padding centres that one line in the bar. */
85
+ .settings-sidebar-page {
86
+ align-items: flex-start;
87
+ padding-block: calc((var(--bar-height) - var(--line-height-compact)) / 2);
88
+ }
89
+
90
+ .settings-sidebar-page > span {
91
+ min-width: 0;
92
+ }
93
+
94
+ .settings-sidebar-page:focus-visible,
95
+ .settings-sidebar-subsection:focus-visible {
96
+ outline-offset: var(--focus-offset-inset);
97
+ }
98
+
99
+ .settings-sidebar-page[aria-current='page'] {
100
+ background: var(--current-bg);
101
+ box-shadow: inset 0 0 0 var(--line) var(--current-ring);
102
+ }
103
+
104
+ /* A row's glyph is quiet, as every row icon is, and full on the current
105
+ page; the primary colour stays for the dialog's main action. */
106
+ .settings-sidebar-page svg {
107
+ flex: none;
108
+ margin-block: calc((var(--line-height-compact) - var(--icon-md)) / 2);
109
+ color: var(--text-dim);
110
+ }
111
+
112
+ .settings-sidebar-page[aria-current='page'] svg {
113
+ color: var(--text);
114
+ }
115
+
116
+ /* A page's trailing label (the Updates row's offered build) as a warning
117
+ chip. On the current page's tint a second tint would sink its words, so
118
+ there it keeps the outline alone. */
119
+ .settings-sidebar-page > .settings-sidebar-chip {
120
+ display: inline-flex;
121
+ flex: none;
122
+ align-items: center;
123
+ gap: var(--space-2);
124
+ height: calc(var(--line-height-compact) + 2 * var(--line));
125
+ margin-block: calc(-1 * var(--line));
126
+ margin-inline-start: auto;
127
+ padding: 0 var(--space-3);
128
+ overflow: visible;
129
+ border: var(--line) solid var(--warning-line);
130
+ border-radius: var(--radius-pill);
131
+ background: var(--warning-wash-strong);
132
+ color: var(--text);
133
+ font-family: var(--font-mono);
134
+ font-size: var(--font-size-caption);
135
+ font-weight: var(--font-weight-strong);
136
+ font-variant-numeric: tabular-nums;
137
+ white-space: nowrap;
138
+ }
139
+
140
+ .settings-sidebar-page[aria-current='page'] > .settings-sidebar-chip {
141
+ background: none;
142
+ }
143
+
144
+ .settings-sidebar-page .settings-sidebar-chip svg {
145
+ margin-block: 0;
146
+ color: inherit;
147
+ }
148
+
149
+ .settings-sidebar-subsections {
150
+ margin: var(--space-1) 0 var(--space-2) var(--space-8);
151
+ padding-inline-start: var(--space-4);
152
+ border-inline-start: var(--line) solid var(--border-strong);
153
+ }
154
+
155
+ .settings-sidebar-subsection {
156
+ position: relative;
157
+ min-height: var(--row-height-dense);
158
+ padding-block: var(--space-1);
159
+ color: var(--text-dim);
160
+ }
161
+
162
+ .settings-sidebar-subsection[aria-current='location'] {
163
+ color: var(--text);
164
+ font-weight: var(--font-weight-strong);
165
+ }
166
+
167
+ /* The lit rail sits on the hairline: a 2px mark over the 1px line. */
168
+ .settings-sidebar-subsection[aria-current='location']::before {
169
+ content: '';
170
+ position: absolute;
171
+ inset-block: var(--space-2);
172
+ inset-inline-start: calc(-1 * (var(--space-4) + var(--line-strong)));
173
+ width: var(--line-strong);
174
+ border-radius: var(--radius-xs);
175
+ background: var(--accent);
176
+ }
177
+
178
+ /* The page's column: the failed-save alert, which never scrolls, over the
179
+ page, which does, fading at an edge while more lies past it
180
+ (.scroll-fade). */
181
+ .settings-column {
182
+ display: flex;
183
+ flex-direction: column;
184
+ min-width: 0;
185
+ min-height: 0;
186
+ border-inline-start: var(--line) solid var(--border);
187
+ }
188
+
189
+ .settings-page {
190
+ flex: 1 1 auto;
191
+ min-width: 0;
192
+ min-height: 0;
193
+ overflow-y: auto;
194
+ padding: var(--space-6) var(--space-8) var(--space-8);
195
+ }
196
+
197
+ /* A page whose body takes the column's height (Updates), so a part of it
198
+ can scroll in its own box while the rest stays put; the column still
199
+ scrolls once that part reaches its least height. */
200
+ .settings-page.fills {
201
+ display: flex;
202
+ flex-direction: column;
203
+ }
204
+
205
+ .settings-page-title {
206
+ margin: 0 0 var(--space-6);
207
+ color: var(--text);
208
+ font-size: var(--font-size-heading);
209
+ font-weight: var(--font-weight-strong);
210
+ line-height: var(--line-height-body);
211
+ }
212
+
213
+ /* A page's subsections, each a group under its overline with a hairline
214
+ between them. */
215
+ .settings-subsection {
216
+ padding: var(--space-6) 0;
217
+ }
218
+
219
+ .settings-subsection:first-of-type {
220
+ padding-top: 0;
221
+ }
222
+
223
+ .settings-subsection + .settings-subsection {
224
+ border-top: var(--line) solid var(--border);
225
+ }
226
+
227
+ /* The subsection's name is uiok's .overline; only its place is set here. */
228
+ .settings-subsection > .overline,
229
+ .settings-subsection-title {
230
+ margin: 0 0 var(--space-4);
231
+ }
232
+
233
+ /* A page's rows are uiok's .field-grid at the small size the labels are,
234
+ every page on the one 136px label column, so the controls start at the
235
+ same place as the window moves between pages (a lone form sizes its
236
+ column to its labels instead). */
237
+ .settings-page {
238
+ --field-label-width: 136px;
239
+ }
240
+
241
+ .settings-page .field-grid {
242
+ font-size: var(--font-size-small);
243
+ }
244
+
245
+ /* A label's second line, quieter (which band of an appearance is in use). */
246
+ .settings-label-detail {
247
+ display: block;
248
+ color: var(--text-dim);
249
+ font-size: var(--font-size-caption);
250
+ line-height: var(--line-height-compact);
251
+ }
252
+
253
+ /* The status line over every page while a change a settings file could
254
+ not take stands: uiok's danger notice, a plain line set in the page
255
+ column's margins. */
256
+ .settings-save-failure {
257
+ flex: none;
258
+ margin: var(--space-6) var(--space-8) 0;
259
+ }
260
+
261
+ /* ---- Settings files ---- */
262
+
263
+ /* A file's name and the folder's path in the code face, the button at its
264
+ line's end, and a file's problems as uiok's notices under its summary
265
+ (danger, or plain for a note), each with where it is above what is
266
+ wrong. */
267
+ .settings-file-name {
268
+ font-family: var(--font-mono);
269
+ }
270
+
271
+ /* The folder's path is content a user copies (into a terminal, or Go to
272
+ Folder), so it selects as text. */
273
+ .settings-file-path {
274
+ min-width: 0;
275
+ overflow: hidden;
276
+ font-family: var(--font-mono);
277
+ font-size: var(--font-size-small);
278
+ text-overflow: ellipsis;
279
+ white-space: nowrap;
280
+ -webkit-user-select: text;
281
+ user-select: text;
282
+ }
283
+
284
+ .settings-file-action {
285
+ gap: var(--space-2);
286
+ }
287
+
288
+ .settings-file-problems {
289
+ display: grid;
290
+ gap: var(--space-3);
291
+ margin: var(--space-1) 0 0;
292
+ padding: 0;
293
+ list-style: none;
294
+ }
295
+
296
+ /* A problem is the notice's row: its tone glyph, then this text, where it
297
+ is over what is wrong. */
298
+ .settings-file-problem-text {
299
+ display: flex;
300
+ flex-direction: column;
301
+ gap: 1px;
302
+ }
303
+
304
+ /* A problem's place and words are what a user copies to find the line. */
305
+ .settings-file-problem-text {
306
+ -webkit-user-select: text;
307
+ user-select: text;
308
+ }
309
+
310
+ .settings-file-problem.notice:not(.notice-danger) {
311
+ color: var(--text-dim);
312
+ }
313
+
314
+ .settings-file-problem-place {
315
+ color: var(--text-dim);
316
+ font-size: var(--font-size-caption);
317
+ }
318
+
319
+ .settings-file-problem-place code {
320
+ font-family: var(--font-mono);
321
+ font-size: var(--font-size-caption);
322
+ }
323
+
324
+ /* ---- Theme picker ---- */
325
+
326
+ /* An appearance's themes: a grid of miniatures, each with its name under
327
+ it, as wide as the value column allows. The chosen one wears the accent
328
+ ring round its miniature and its name in the text colour and weight; the
329
+ keyboard's focus adds the focus ring outside the frame, so a focused
330
+ choice that is not chosen never reads as chosen. Under the pointer the
331
+ frame's hairline darkens to --text-dim and the name lifts to --text;
332
+ held, the ring goes to a 2px --text ring over the pressed wash and
333
+ shadow, so rest, hover, and press are three distinct pictures on any
334
+ ground, and nothing grows or moves. A choice scrolled into view keeps room for its
335
+ rings. */
336
+ .theme-choices {
337
+ display: grid;
338
+ grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
339
+ gap: var(--space-5) var(--space-6);
340
+ padding-top: var(--space-2);
341
+ }
342
+
343
+ /* The note under the grid keeps clear of the last row, so it reads as the
344
+ band's, not as the last miniature's caption. */
345
+ .theme-choices + .field-note {
346
+ margin-top: var(--space-2);
347
+ }
348
+
349
+ .theme-choice {
350
+ display: flex;
351
+ flex-direction: column;
352
+ gap: var(--space-2);
353
+ min-width: 0;
354
+ margin: 0;
355
+ padding: 0;
356
+ border: 0;
357
+ background: none;
358
+ color: var(--text-dim);
359
+ cursor: default;
360
+ font-family: var(--font-ui);
361
+ font-size: var(--font-size-caption);
362
+ line-height: var(--line-height-compact);
363
+ text-align: center;
364
+ scroll-margin-block: var(--space-8);
365
+ }
366
+
367
+ .theme-choice:focus-visible {
368
+ outline: none;
369
+ }
370
+
371
+ .theme-choice-frame {
372
+ display: block;
373
+ padding: var(--space-1);
374
+ border-radius: var(--radius-lg);
375
+ box-shadow: inset 0 0 0 var(--line) var(--border-strong);
376
+ transition: var(--transition-control);
377
+ }
378
+
379
+ .theme-choice:hover .theme-choice-frame {
380
+ box-shadow: inset 0 0 0 var(--line) var(--text-dim);
381
+ }
382
+
383
+ .theme-choice[aria-checked='true'] .theme-choice-frame {
384
+ box-shadow: inset 0 0 0 var(--line-strong) var(--accent);
385
+ }
386
+
387
+ .theme-choice:active .theme-choice-frame {
388
+ background: var(--pressed-wash);
389
+ box-shadow:
390
+ inset 0 0 0 var(--line-strong) var(--text),
391
+ var(--shadow-pressed);
392
+ }
393
+
394
+ .theme-choice[aria-checked='true']:active .theme-choice-frame {
395
+ box-shadow:
396
+ inset 0 0 0 var(--line-strong) var(--accent),
397
+ var(--shadow-pressed);
398
+ }
399
+
400
+ .theme-choice:focus-visible .theme-choice-frame {
401
+ outline: var(--focus-ring-width) solid var(--accent);
402
+ outline-offset: var(--focus-offset);
403
+ }
404
+
405
+ .theme-choice:hover,
406
+ .theme-choice[aria-checked='true'] {
407
+ color: var(--text);
408
+ }
409
+
410
+ .theme-choice[aria-checked='true'] .theme-choice-name {
411
+ font-weight: var(--font-weight-strong);
412
+ }
413
+
414
+ /* A long name takes a second line rather than losing its end. The name
415
+ reserves the room its strong weight takes: the host repeats the name in
416
+ data-name, and a hidden copy in that weight floats at the name's start
417
+ with no width of its own, so the visible name sets over it and the name
418
+ is as tall as the taller of the two. Choosing a theme then never wraps
419
+ its name or moves the grid. The copy is not read aloud. The name may
420
+ use half the gap to each neighbouring card (cards stand --space-6
421
+ apart), so the longest catalog name sets on one line in either weight
422
+ on the narrowest card. */
423
+ .theme-choice-name {
424
+ display: flow-root;
425
+ margin-inline: calc(var(--space-6) / -2);
426
+ overflow-wrap: break-word;
427
+ text-wrap: balance;
428
+ }
429
+
430
+ .theme-choice-name::before {
431
+ float: inline-start;
432
+ width: 100%;
433
+ margin-inline-end: -100%;
434
+ visibility: hidden;
435
+ font-weight: var(--font-weight-strong);
436
+ content: attr(data-name) / '';
437
+ pointer-events: none;
438
+ user-select: none;
439
+ }
440
+
441
+ /* A theme's miniature window, on an element that wears data-theme-preview,
442
+ so it paints only with the tokens that scope sets (PREVIEW_TOKENS): the
443
+ header strip with three lights, a sidebar on the window's ground with a
444
+ lit row, and a panel holding a line of text, a quieter line, a primary
445
+ chip beside an accent mark, and six of the theme's terminal colours. It
446
+ reads the palette's ground names on purpose: the role aliases resolve on
447
+ the root, so inside a preview scope they would show the worn theme. Its
448
+ parts are a miniature's geometry, in pixels and shares of its size. */
449
+ .theme-preview {
450
+ display: flex;
451
+ flex-direction: column;
452
+ aspect-ratio: 8 / 5;
453
+ overflow: hidden;
454
+ border-radius: var(--radius-md);
455
+ background: var(--bg);
456
+ box-shadow: inset 0 0 0 var(--line) var(--border);
457
+ }
458
+
459
+ .theme-preview-header {
460
+ display: flex;
461
+ flex: none;
462
+ align-items: center;
463
+ height: 12%;
464
+ padding: 0 6%;
465
+ background: var(--bg-header);
466
+ box-shadow: inset 0 calc(-1 * var(--line)) 0 var(--border);
467
+ }
468
+
469
+ .theme-preview-lights {
470
+ display: flex;
471
+ gap: var(--space-2);
472
+ }
473
+
474
+ .theme-preview-lights > span {
475
+ width: 4px;
476
+ height: 4px;
477
+ border-radius: var(--radius-pill);
478
+ }
479
+
480
+ .theme-preview-lights > span:nth-child(1) {
481
+ background: var(--terminal-ansi-1);
482
+ }
483
+
484
+ .theme-preview-lights > span:nth-child(2) {
485
+ background: var(--terminal-ansi-3);
486
+ }
487
+
488
+ .theme-preview-lights > span:nth-child(3) {
489
+ background: var(--terminal-ansi-2);
490
+ }
491
+
492
+ .theme-preview-body {
493
+ display: flex;
494
+ flex: 1 1 auto;
495
+ min-height: 0;
496
+ }
497
+
498
+ .theme-preview-sidebar {
499
+ display: flex;
500
+ flex: 0 0 30%;
501
+ flex-direction: column;
502
+ gap: var(--space-2);
503
+ padding: 8% 5%;
504
+ }
505
+
506
+ .theme-preview-row {
507
+ height: 5px;
508
+ border-radius: var(--radius-xs);
509
+ background: var(--border);
510
+ }
511
+
512
+ .theme-preview-row.lit {
513
+ background: var(--accent);
514
+ }
515
+
516
+ .theme-preview-panel {
517
+ display: flex;
518
+ flex: 1 1 auto;
519
+ flex-direction: column;
520
+ gap: var(--space-2);
521
+ min-width: 0;
522
+ padding: 7% 8%;
523
+ background: var(--bg-panel);
524
+ box-shadow: inset var(--line) 0 0 var(--border);
525
+ }
526
+
527
+ .theme-preview-line {
528
+ height: 3px;
529
+ border-radius: var(--radius-xs);
530
+ }
531
+
532
+ .theme-preview-line.text {
533
+ width: 78%;
534
+ background: var(--text);
535
+ }
536
+
537
+ .theme-preview-line.dim {
538
+ width: 54%;
539
+ background: var(--text-dim);
540
+ }
541
+
542
+ .theme-preview-chips {
543
+ display: flex;
544
+ gap: var(--space-2);
545
+ align-items: center;
546
+ }
547
+
548
+ .theme-preview-chip {
549
+ height: 7px;
550
+ border-radius: var(--radius-sm);
551
+ }
552
+
553
+ .theme-preview-chip.primary {
554
+ width: 34%;
555
+ background: var(--primary);
556
+ }
557
+
558
+ .theme-preview-chip.accent {
559
+ width: 14%;
560
+ background: var(--accent);
561
+ }
562
+
563
+ .theme-preview-swatches {
564
+ display: flex;
565
+ gap: var(--space-2);
566
+ margin-top: auto;
567
+ }
568
+
569
+ .theme-preview-swatch {
570
+ width: 6px;
571
+ height: 6px;
572
+ border-radius: var(--radius-pill);
573
+ }
574
+
575
+ .theme-preview-swatch.ansi-1 {
576
+ background: var(--terminal-ansi-1);
577
+ }
578
+
579
+ .theme-preview-swatch.ansi-2 {
580
+ background: var(--terminal-ansi-2);
581
+ }
582
+
583
+ .theme-preview-swatch.ansi-3 {
584
+ background: var(--terminal-ansi-3);
585
+ }
586
+
587
+ .theme-preview-swatch.ansi-4 {
588
+ background: var(--terminal-ansi-4);
589
+ }
590
+
591
+ .theme-preview-swatch.ansi-5 {
592
+ background: var(--terminal-ansi-5);
593
+ }
594
+
595
+ .theme-preview-swatch.ansi-6 {
596
+ background: var(--terminal-ansi-6);
597
+ }
598
+
599
+ /* ---- Updates ---- */
600
+
601
+ /* The Updates page: the check cadence over the status card, both uiok's
602
+ .card; the rules here lay out what is inside them. */
603
+ .updates-page {
604
+ display: flex;
605
+ flex: 1 1 auto;
606
+ flex-direction: column;
607
+ gap: var(--space-8);
608
+ min-height: 0;
609
+ }
610
+
611
+ /* The check cadence: its label on the left at a Settings row's size, the
612
+ select at the end where the card's verb sits, and the note that follows
613
+ the choice under both. */
614
+ .update-checks {
615
+ display: grid;
616
+ flex: none;
617
+ grid-template-columns: minmax(0, 1fr) auto;
618
+ align-items: center;
619
+ gap: var(--space-2) var(--space-6);
620
+ }
621
+
622
+ .update-checks-label {
623
+ color: var(--text);
624
+ font-size: var(--font-size-small);
625
+ font-weight: var(--font-weight-medium);
626
+ }
627
+
628
+ .update-checks .field-note {
629
+ grid-column: 1 / -1;
630
+ }
631
+
632
+ /* The status card: a glyph in the state's tone, the headline and what it
633
+ means, and the one verb at the end. The head never shrinks: under a long
634
+ What's new list only the list gives way, so a headline or a fact that
635
+ takes two lines never runs into the part below it. The glyph hangs on
636
+ the headline's first line. */
637
+ .update-card {
638
+ display: flex;
639
+ flex: none;
640
+ flex-direction: column;
641
+ gap: var(--space-6);
642
+ }
643
+
644
+ /* With notes at its foot the card fits them, and grows only to the bottom
645
+ of the column, where the list scrolls inside it. */
646
+ .update-card.with-notes {
647
+ flex: 0 1 auto;
648
+ min-height: 0;
649
+ }
650
+
651
+ .update-card-head {
652
+ display: grid;
653
+ flex: none;
654
+ grid-template-columns: var(--icon-lg) minmax(0, 1fr) auto;
655
+ align-items: start;
656
+ column-gap: var(--space-4);
657
+ }
658
+
659
+ .update-card-head > .button {
660
+ margin-top: calc(-1 * var(--space-1));
661
+ }
662
+
663
+ .update-card-glyph {
664
+ width: var(--icon-lg);
665
+ height: var(--icon-lg);
666
+ margin-top: 1px;
667
+ color: var(--text-dim);
668
+ }
669
+
670
+ .update-card[data-tone='busy'] .update-card-glyph,
671
+ .update-card[data-tone='ready'] .update-card-glyph {
672
+ color: var(--accent);
673
+ }
674
+
675
+ .update-card[data-tone='ok'] .update-card-glyph {
676
+ color: var(--success);
677
+ }
678
+
679
+ .update-card[data-tone='warning'] .update-card-glyph {
680
+ color: var(--warning);
681
+ }
682
+
683
+ .update-card[data-tone='error'] .update-card-glyph {
684
+ color: var(--danger);
685
+ }
686
+
687
+ /* A failure is told as RunHeader tells it: the headline in the danger's
688
+ text tone, the reason under it in the body's quiet colour. */
689
+ .update-card[data-tone='error'] .update-card-title {
690
+ color: var(--danger-text);
691
+ }
692
+
693
+ .update-card-said {
694
+ display: grid;
695
+ gap: var(--space-1);
696
+ min-width: 0;
697
+ }
698
+
699
+ .update-card-title {
700
+ color: var(--text);
701
+ font-size: var(--font-size-heading);
702
+ font-weight: var(--font-weight-strong);
703
+ line-height: var(--line-height-body);
704
+ }
705
+
706
+ .update-card-title strong {
707
+ font-weight: var(--font-weight-strong);
708
+ }
709
+
710
+ .update-card-sub {
711
+ min-width: 0;
712
+ color: var(--text-dim);
713
+ font-size: var(--font-size-small);
714
+ line-height: var(--line-height-compact);
715
+ overflow-wrap: anywhere;
716
+ }
717
+
718
+ /* The fact may be what the system said (a host that closed the
719
+ connection), which a user copies into a report. */
720
+ .update-card-sub {
721
+ -webkit-user-select: text;
722
+ user-select: text;
723
+ }
724
+
725
+ .update-card-note {
726
+ margin: 0;
727
+ color: var(--text-dim);
728
+ font-size: var(--font-size-small);
729
+ }
730
+
731
+ /* With a download under it (uiok's RunHeader), the head is the card's
732
+ title: quieter, ruled off, its glyph a size down, centred in the full
733
+ glyph's column so the title starts where it always does. */
734
+ .update-card.with-run .update-card-head {
735
+ padding-bottom: var(--space-5);
736
+ border-bottom: var(--line) solid var(--border);
737
+ }
738
+
739
+ .update-card.with-run .update-card-title {
740
+ font-size: var(--font-size-body);
741
+ }
742
+
743
+ .update-card.with-run .update-card-glyph {
744
+ justify-self: center;
745
+ width: var(--icon-md);
746
+ height: var(--icon-md);
747
+ margin-top: var(--space-1);
748
+ }
749
+
750
+ /* A download under the head, told as the card's failure is: a failed
751
+ download's headline in the danger's text tone, the reason under it in
752
+ the text colour. A clock at the end of the headline shares its size and
753
+ line, so the two sit on one baseline. */
754
+ .update-card .run-header[data-state='failed'] .run-header-headline {
755
+ color: var(--danger-text);
756
+ }
757
+
758
+ .update-card .run-header-reason {
759
+ color: var(--text);
760
+ }
761
+
762
+ .update-card .run-header-figure {
763
+ font-size: var(--font-size-heading);
764
+ line-height: var(--line-height-body);
765
+ }
766
+
767
+ /* What the system returned for a failed download (an error code, a host
768
+ and its port) is a line a user could copy, so it is set in the code face
769
+ at the small size, as every printed system line is. */
770
+ .update-card .run-header-reason {
771
+ font-family: var(--font-mono);
772
+ font-size: var(--font-size-small);
773
+ }
774
+
775
+ /* A download that stopped short shows no empty track, which would read as
776
+ a stalled download; its headline and reason say what happened, and the
777
+ size stays under them. */
778
+ .update-card .run-header[data-state='failed'] .activity-bar {
779
+ display: none;
780
+ }
781
+
782
+ /* What's new, the card's foot under a hairline: it gives up height to the
783
+ column's bottom edge, and its list scrolls. Its heading is uiok's
784
+ .overline. */
785
+ .update-notes {
786
+ display: flex;
787
+ flex: 1 1 auto;
788
+ flex-direction: column;
789
+ gap: var(--space-3);
790
+ min-height: 0;
791
+ padding-top: var(--space-6);
792
+ border-top: var(--line) solid var(--border);
793
+ }
794
+
795
+ .update-notes > .overline {
796
+ margin: 0;
797
+ }
798
+
799
+ /* One sentence per change. A list longer than its box fades at the edge
800
+ where more lies (.scroll-fade) and shows the theme's scrollbar in the
801
+ card's padding; a short list shows neither. A squeezed list keeps its
802
+ first few rows (`--update-note-rows`, three unless the page says fewer),
803
+ so a short one ends at its last. Notes that name areas list each area's
804
+ lines under its heading. */
805
+ .update-notes-list {
806
+ display: grid;
807
+ flex: 1 1 auto;
808
+ align-content: start;
809
+ gap: var(--space-2);
810
+ min-height: calc(
811
+ var(--update-note-rows, 3) * (var(--line-height-compact) + var(--space-2)) - var(--space-2) +
812
+ var(--line)
813
+ );
814
+ margin: 0 calc(-1 * var(--space-3)) 0 0;
815
+ padding: 0 var(--space-3) 0 0;
816
+ overflow-y: auto;
817
+ color: var(--text);
818
+ font-size: var(--font-size-small);
819
+ line-height: var(--line-height-compact);
820
+ list-style: none;
821
+ outline: none;
822
+ }
823
+
824
+ /* A read-only text view that takes focus to scroll by the arrow keys. It
825
+ is a Tab stop, so focus a user moved there with the keyboard shows: the
826
+ frame around it (below) draws the ring, out of the scroll fade's mask,
827
+ which would cut a ring drawn by the list itself. */
828
+ .update-notes-list:focus-visible {
829
+ outline: none;
830
+ }
831
+
832
+ /* The frame a host may wrap the list in (.update-notes-frame) stands out
833
+ by the list's small inset on every side, so the bullets and the last
834
+ line's descenders clear the scroll fade while the text column keeps the
835
+ card's width. It draws the list's focus ring, following its corner. */
836
+ .update-notes-frame {
837
+ display: flex;
838
+ flex: 1 1 auto;
839
+ flex-direction: column;
840
+ min-height: 0;
841
+ margin: calc(-1 * var(--space-1)) calc(-1 * var(--space-3));
842
+ border-radius: var(--radius-sm);
843
+ }
844
+
845
+ .update-notes-frame:has(> .update-notes-list:focus-visible) {
846
+ outline: var(--focus-ring-width) solid var(--accent);
847
+ outline-offset: var(--focus-offset-inset);
848
+ }
849
+
850
+ .update-notes-frame > .update-notes-list {
851
+ margin: 0;
852
+ padding: var(--space-1) var(--space-3);
853
+ }
854
+
855
+ .update-notes-list li {
856
+ position: relative;
857
+ padding-inline-start: var(--space-6);
858
+ }
859
+
860
+ .update-notes-list li::before {
861
+ position: absolute;
862
+ inset-inline-start: var(--space-1);
863
+ color: var(--text-dim);
864
+ content: '•';
865
+ }
866
+
867
+ .update-notes-list.update-notes-groups {
868
+ gap: var(--space-5);
869
+ }
870
+
871
+ /* An area's plain heading over its own lines, bulleted as the flat list is. */
872
+ .update-notes-group {
873
+ display: grid;
874
+ gap: var(--space-2);
875
+ }
876
+
877
+ .update-notes-group ul {
878
+ display: grid;
879
+ gap: var(--space-2);
880
+ margin: 0;
881
+ padding: 0;
882
+ list-style: none;
883
+ }
884
+
885
+ .update-notes-area {
886
+ margin: 0;
887
+ color: var(--text);
888
+ font-size: var(--font-size-small);
889
+ font-weight: var(--font-weight-strong);
890
+ line-height: var(--line-height-compact);
891
+ }
892
+
893
+ /* The update pill in a header: uiok's Button, tonal while a build is
894
+ offered, primary once it is ready, neutral after a failed download. It
895
+ never reports progress. It appears at once, as every control does,
896
+ keeps its words on one line, and after a failed download wears a warning outline (the button's own
897
+ border, so hover and press keep it) and its glyph in the warning mark,
898
+ never its words, which a light theme's amber could not hold at 4.5:1. */
899
+ .shell-update-pill {
900
+ white-space: nowrap;
901
+ }
902
+
903
+ .shell-update-pill[data-state='download-failed'] {
904
+ border-color: var(--warning);
905
+ }
906
+
907
+ .shell-update-pill[data-state='download-failed'] svg {
908
+ color: var(--warning);
909
+ }
910
+
911
+ /* ---- Channel tag ---- */
912
+
913
+ /* The release channel beside a lockup (an About window, a splash) on a
914
+ build that is not the release: small caps on a pill of the channel's
915
+ colour, so a screenshot always says which build it shows. An app that
916
+ colours its channels sets --channel (the hue) and --channel-text (its
917
+ words at 4.5:1 on the pill); without them the tag wears the accent. */
918
+ .channel-tag {
919
+ --channel-tag-bg: color-mix(in srgb, var(--channel, var(--accent)) 14%, transparent);
920
+
921
+ display: inline-flex;
922
+ align-items: center;
923
+ gap: var(--space-2);
924
+ min-width: 0;
925
+ padding: 1px var(--space-3);
926
+ border-radius: var(--radius-pill);
927
+ background: var(--channel-tag-bg);
928
+ color: var(--channel-text, var(--accent-text));
929
+ font: var(--font-weight-strong) var(--font-size-caption) / var(--line-height-compact)
930
+ var(--font-ui);
931
+ letter-spacing: var(--tracking-caps);
932
+ text-transform: uppercase;
933
+ white-space: nowrap;
934
+ }
935
+
936
+ /* ---- About window ---- */
937
+
938
+ /* An About window: a fixed frame the size of the window that never scrolls,
939
+ its content centred in it: the app's icon (sized by the app), its
940
+ lockup, and the version under it in the code face, the one line a reader
941
+ may select and copy. The app adds its window's drag regions. */
942
+ .about-window {
943
+ display: grid;
944
+ box-sizing: border-box;
945
+ height: 100vh;
946
+ overflow: hidden;
947
+ align-content: center;
948
+ justify-items: center;
949
+ gap: var(--space-4);
950
+ padding: var(--space-6);
951
+ font-family: var(--font-ui);
952
+ text-align: center;
953
+ }
954
+
955
+ .about-lockup {
956
+ display: flex;
957
+ align-items: center;
958
+ gap: var(--space-3);
959
+ color: var(--text);
960
+ }
961
+
962
+ .about-version {
963
+ margin: 0;
964
+ color: var(--text-dim);
965
+ font: var(--font-weight-regular) var(--font-size-caption) / var(--line-height-compact)
966
+ var(--font-mono);
967
+ font-variant-numeric: tabular-nums;
968
+ cursor: text;
969
+ user-select: text;
970
+ }
971
+
972
+ /* ---- Sign-in prompts ---- */
973
+
974
+ /* What a connection asks while it signs in: a secret as one row of the
975
+ label column (.field-grid: the label at the leading edge, the field
976
+ beside it, a problem or a choice under the field), or a new host key's
977
+ type and fingerprint in the code face under the question, the
978
+ fingerprint whole on one line where it fits. */
979
+ .dialog.sign-in-dialog {
980
+ width: 420px;
981
+ }
982
+
983
+ /* The label column holds the label whole (the label column's own
984
+ default); each label's line is centred on the dialog's 28px field. */
985
+ .sign-in-dialog .field-grid > .field-label {
986
+ padding-block: calc((var(--control-height) - var(--line-height-compact)) / 2);
987
+ }
988
+
989
+ /* Where and who the prompt signs in to (Server, then Account or Key file)
990
+ stand as rows of the same label column, before the secret's row, so
991
+ they share the field's label edge and label look. A fact's label sits
992
+ on its one line of value, not on a 28px field; the value is dim, one
993
+ line, cut with an ellipsis (the host gives it cutTooltip). */
994
+ .sign-in-dialog .field-grid > .field-label.sign-in-fact {
995
+ padding-block: 0;
996
+ }
997
+
998
+ .sign-in-dialog .sign-in-fact-value {
999
+ min-width: 0;
1000
+ margin: 0;
1001
+ overflow: hidden;
1002
+ color: var(--text-dim);
1003
+ font-size: var(--font-size-small);
1004
+ line-height: var(--line-height-compact);
1005
+ text-overflow: ellipsis;
1006
+ white-space: nowrap;
1007
+ }
1008
+
1009
+ /* A block of its own, so no line box adds room under it. */
1010
+ .sign-in-field {
1011
+ display: block;
1012
+ width: 100%;
1013
+ }
1014
+
1015
+ .sign-in-fingerprint {
1016
+ display: flex;
1017
+ gap: var(--space-5);
1018
+ margin: var(--space-5) 0 0;
1019
+ padding: var(--space-3) var(--space-6);
1020
+ border: var(--line) solid var(--border-strong);
1021
+ border-radius: var(--radius-md);
1022
+ font-size: var(--font-size-small);
1023
+ }
1024
+
1025
+ .sign-in-fingerprint dt {
1026
+ flex: none;
1027
+ color: var(--text-dim);
1028
+ }
1029
+
1030
+ .sign-in-fingerprint dd {
1031
+ min-width: 0;
1032
+ margin: 0;
1033
+ overflow-wrap: anywhere;
1034
+ user-select: text;
1035
+ }
1036
+
1037
+ /* ---- Load failure ---- */
1038
+
1039
+ /* The block a part of the window shows in place of its content when that
1040
+ content failed to load: the failure's glyph (an icon of --icon-xl, as
1041
+ every failure over an empty space has) in the danger tone, a headline,
1042
+ the reason under it, centred. */
1043
+ .space-load-failure {
1044
+ display: flex;
1045
+ flex: 1;
1046
+ flex-direction: column;
1047
+ align-items: center;
1048
+ justify-content: center;
1049
+ gap: var(--space-4);
1050
+ padding: var(--space-16);
1051
+ text-align: center;
1052
+ }
1053
+
1054
+ .space-load-failure > svg {
1055
+ flex: none;
1056
+ color: var(--danger);
1057
+ }
1058
+
1059
+ .space-load-failure strong {
1060
+ font-size: var(--font-size-heading);
1061
+ }
1062
+
1063
+ .space-load-failure p {
1064
+ max-width: 420px;
1065
+ margin: 0;
1066
+ color: var(--text-dim);
1067
+ }
1068
+
1069
+ /* The failure's words, an error a user pastes into a report. */
1070
+ .space-load-failure :is(strong, p) {
1071
+ -webkit-user-select: text;
1072
+ user-select: text;
1073
+ }