@crewlethq/ui 0.130.2 → 0.131.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 (118) hide show
  1. package/dist/AppShell/AppShell.d.ts +47 -196
  2. package/dist/AppShell/index.js +2 -2
  3. package/dist/{AppShell-N5IHITJM.css → AppShell-RPILZZW5.css} +109 -431
  4. package/dist/ArtifactBar/index.js +4 -4
  5. package/dist/ArtifactCard/ArtifactCard.d.ts +13 -39
  6. package/dist/ArtifactCard/index.js +1 -1
  7. package/dist/{ArtifactCard-ZH6KCD5O.css → ArtifactCard-PWMC7RAY.css} +15 -49
  8. package/dist/ArtifactMakeRow/ArtifactMakeRow.d.ts +3 -16
  9. package/dist/AvatarPicker/index.js +5 -5
  10. package/dist/BrandSample/index.js +1 -1
  11. package/dist/{BrandSample-3OSKZAGG.css → BrandSample-WSBT7FQ5.css} +5 -25
  12. package/dist/Breadcrumb/Breadcrumb.d.ts +5 -41
  13. package/dist/Breadcrumb/index.js +1 -1
  14. package/dist/{Breadcrumb-MQJWJVN3.css → Breadcrumb-JDBQXPR5.css} +12 -58
  15. package/dist/Canvas/Canvas.d.ts +52 -228
  16. package/dist/Canvas/geometry.d.ts +31 -139
  17. package/dist/Canvas/index.js +1 -1
  18. package/dist/CanvasBoard/index.js +3 -3
  19. package/dist/CanvasToolbar/index.js +2 -2
  20. package/dist/CodeBlock/index.js +1 -1
  21. package/dist/ColorSwatch/index.js +2 -2
  22. package/dist/CommentThread/CommentThread.d.ts +3 -21
  23. package/dist/CommentThread/index.js +1 -1
  24. package/dist/{CommentThread-544KCZT7.css → CommentThread-YU6VSVS4.css} +2 -4
  25. package/dist/Composer/Composer.d.ts +17 -54
  26. package/dist/ConfirmField/index.js +2 -2
  27. package/dist/Copyable/Copyable.d.ts +2 -11
  28. package/dist/Copyable/index.js +1 -1
  29. package/dist/{Copyable-XMLKKJDT.css → Copyable-U3UJL3BP.css} +9 -32
  30. package/dist/DataGrid/DataGrid.d.ts +46 -136
  31. package/dist/DataGrid/index.js +1 -1
  32. package/dist/DataTable/index.js +2 -2
  33. package/dist/DataView/index.js +3 -3
  34. package/dist/DocTabsEditor/index.js +2 -2
  35. package/dist/{Editor-MEPTWBY5.js → Editor-HDHT5BX2.js} +2 -2
  36. package/dist/GraphCanvas/GraphCanvas.d.ts +22 -79
  37. package/dist/GraphCanvas/index.js +2 -2
  38. package/dist/GraphCanvas/layout.d.ts +10 -35
  39. package/dist/HuePicker/index.js +4 -4
  40. package/dist/InlineCode/InlineCode.d.ts +7 -28
  41. package/dist/InlineCode/index.js +1 -1
  42. package/dist/InlineCode-3KJCBT5I.css +80 -0
  43. package/dist/Link/Link.d.ts +3 -25
  44. package/dist/Link/index.js +1 -1
  45. package/dist/{Link-Y7RHTR6F.css → Link-7AADYG2F.css} +12 -35
  46. package/dist/LinkInterstitial/index.js +2 -2
  47. package/dist/MarkdownEditor/index.js +4 -4
  48. package/dist/MentionMenu/MentionMenu.d.ts +9 -31
  49. package/dist/Menu/Menu.d.ts +9 -91
  50. package/dist/Menu/index.js +1 -1
  51. package/dist/MergeConflicts/index.js +4 -4
  52. package/dist/ObjectHeader/index.js +2 -2
  53. package/dist/OrgTable/index.js +3 -3
  54. package/dist/PropertyList/index.js +3 -3
  55. package/dist/RichEditor/index.js +1 -1
  56. package/dist/SearchTrigger/SearchTrigger.d.ts +8 -36
  57. package/dist/SearchTrigger/index.js +1 -1
  58. package/dist/{SearchTrigger-MME7NIHX.css → SearchTrigger-3HO7D6NP.css} +5 -17
  59. package/dist/SegmentedControl/index.js +3 -3
  60. package/dist/ShareDialog/index.js +1 -1
  61. package/dist/SheetColumnEditor/index.js +5 -5
  62. package/dist/SheetGrid/index.js +2 -2
  63. package/dist/SlideFilmstrip/index.js +2 -2
  64. package/dist/TableCells/index.js +2 -2
  65. package/dist/Tabs/index.js +2 -2
  66. package/dist/ThemeSwitcher/index.js +4 -4
  67. package/dist/TimeRangePicker/index.js +4 -4
  68. package/dist/TreeCanvas/TreeCanvas.d.ts +50 -248
  69. package/dist/TreeCanvas/index.js +2 -2
  70. package/dist/TreeGrid/index.js +2 -2
  71. package/dist/VersionCompare/index.js +4 -4
  72. package/dist/{chunk-O43SIR3W.js → chunk-3QQ3QHQR.js} +1 -1
  73. package/dist/{chunk-MZV45HQB.js → chunk-3T6URIXM.js} +1 -1
  74. package/dist/{chunk-H2QSDZTX.js → chunk-3ZURIGQ7.js} +1 -1
  75. package/dist/{chunk-KQFOPY2P.js → chunk-4H577HEE.js} +1 -1
  76. package/dist/{chunk-3WSDAVE6.js → chunk-5PAABHF7.js} +1 -1
  77. package/dist/{chunk-3DAIOPAV.js → chunk-63NULHGF.js} +1 -1
  78. package/dist/{chunk-NFA7CSCD.js → chunk-6BMPVSUB.js} +1 -1
  79. package/dist/{chunk-JY6WSDUG.js → chunk-AIQHJ2HF.js} +1 -1
  80. package/dist/{chunk-M32NBSS7.js → chunk-B2RTWEZZ.js} +4 -6
  81. package/dist/{chunk-3P24SMTI.js → chunk-B5MCTPXL.js} +1 -1
  82. package/dist/{chunk-V2FD4RPS.js → chunk-BGPHGCDT.js} +1 -1
  83. package/dist/{chunk-QNDXLHBO.js → chunk-CN2EDXAW.js} +1 -1
  84. package/dist/{chunk-MNACKUBB.js → chunk-CX4JXBS3.js} +2 -2
  85. package/dist/{chunk-NLGRDKCK.js → chunk-EPH5EPKN.js} +2 -2
  86. package/dist/{chunk-AKCIF6XN.js → chunk-FEJVDORA.js} +1 -1
  87. package/dist/{chunk-PFTUWDZN.js → chunk-FIH5EMJF.js} +1 -1
  88. package/dist/{chunk-OWYIRWEX.js → chunk-FMRRKLNX.js} +1 -1
  89. package/dist/{chunk-QM2QFKIA.js → chunk-FVXNR63H.js} +2 -2
  90. package/dist/{chunk-2AKVGQ73.js → chunk-GDBROEQ5.js} +1 -1
  91. package/dist/{chunk-NMBGVHGQ.js → chunk-GSLN7WL2.js} +2 -2
  92. package/dist/{chunk-KMIS2R67.js → chunk-HJAX4356.js} +1 -1
  93. package/dist/{chunk-WLCPN22T.js → chunk-HKYLPYVF.js} +1 -1
  94. package/dist/{chunk-Q4JX6UO7.js → chunk-HMEFWPAA.js} +3 -7
  95. package/dist/{chunk-OVFB63RZ.js → chunk-JANUABBT.js} +3 -5
  96. package/dist/{chunk-AIYSPVVZ.js → chunk-JDRBZYIA.js} +1 -1
  97. package/dist/{chunk-7FSIBX4S.js → chunk-JG66SXCX.js} +1 -1
  98. package/dist/{chunk-D2KJ5GQC.js → chunk-N2DCSSYC.js} +2 -2
  99. package/dist/{chunk-2TZNTPF5.js → chunk-NDWXVEY6.js} +2 -4
  100. package/dist/{chunk-QFE6T6GW.js → chunk-P4QAS5TS.js} +1 -1
  101. package/dist/{chunk-JKFA2F7J.js → chunk-R4YUMULC.js} +1 -1
  102. package/dist/{chunk-E3AFQTWT.js → chunk-SRPV3EAJ.js} +1 -1
  103. package/dist/{chunk-K5WTII2H.js → chunk-U67UM3VS.js} +1 -1
  104. package/dist/{chunk-RMGPZQVJ.js → chunk-UTKI2SAM.js} +1 -1
  105. package/dist/{chunk-KUECTV2P.js → chunk-W443OSWT.js} +1 -1
  106. package/dist/{chunk-XHNV272L.js → chunk-W4UJWFCZ.js} +1 -1
  107. package/dist/{chunk-EGHOU7U2.js → chunk-WGAEHKGW.js} +5 -12
  108. package/dist/{chunk-3DGNF2EH.js → chunk-XGZXKG53.js} +2 -2
  109. package/dist/{chunk-MNVIIZQP.js → chunk-YADYQHHW.js} +2 -5
  110. package/dist/{chunk-Y7FPSBCN.js → chunk-YBOGOTYV.js} +1 -1
  111. package/dist/{chunk-ECOWCJHQ.js → chunk-YTDZY3PY.js} +1 -1
  112. package/dist/{chunk-6POROC4M.js → chunk-ZO3MXMAC.js} +1 -1
  113. package/dist/generated/index.js +49 -49
  114. package/dist/index.js +49 -49
  115. package/dist/styles.css +188 -696
  116. package/dist/utils/pathBreaks.d.ts +3 -8
  117. package/package.json +3 -3
  118. package/dist/InlineCode-BEYQFJQT.css +0 -106
@@ -1,50 +1,22 @@
1
1
  /*
2
- * The application frame: a rail on the FRAME, and the screen on a SHEET that
3
- * floats beside it.
4
- *
5
- * The rail's width and the bar's height are read from the token layer through
6
- * two component variables, so an application with a narrower rail sets ONE
7
- * value rather than repeating a number in its own stylesheet, which is what
8
- * every consumer of the passive shell had to do.
9
- *
10
- * THE SHEET IS INSET FROM THE FRAME, rounded, and drawn round with the plain
11
- * hairline, which is the approved design's frame: the rail stands on the
12
- * lowest rung and the screen a rung above it, so where the navigation ends
13
- * and the page begins is a difference of ground, a line and a corner rather
14
- * than a divider the rail draws. The inset is --size-shell-inset on the
15
- * sheet's top, right and bottom; the rail is the gap on its left. The sheet clips what it holds to its corner, and the ONE scroller is
16
- * inside it, so a screen scrolls under the bar and never past the corner.
17
- *
18
- * The breakpoint is written out because a media query cannot read a custom
19
- * property. It is the shell step from @crewlethq/tokens, and the CSS check
20
- * compares the literal against the token. The query is STRICTLY UNDER it,
21
- * (width < 1024px): the step is the rail, the inset and the sheet's floor
22
- * added up, so at exactly that width the rail still fits, and the component's
23
- * own matchMedia asks the same question.
2
+ * The application frame: the rail on the frame, the screen on a sheet inset
3
+ * beside it. The breakpoint is written out (a media query cannot read a token)
4
+ * as strictly under the shell step; the CSS check compares it to the token.
24
5
  */
25
6
 
26
7
  .crewlet-app-shell {
27
8
  --crewlet-app-shell-rail: var(--size-shell-rail);
28
9
  --crewlet-app-shell-topbar: var(--size-shell-topbar);
29
- /* THE SHEET'S SIDE INSET, ONE LENGTH: the bar's, the content column's, and
30
- the inset a box that reaches past the column to the sheet's edge keeps
31
- inside itself (a `ListDetail` on a fill screen), one step narrower on a
32
- narrow window. */
10
+ /* The sheet's side inset: the bar's, the content column's and a full-bleed
11
+ box's own, one step narrower on a narrow window. */
33
12
  --crewlet-app-shell-inset: var(--spacing-5);
34
13
  /* What stands on the frame to the sheet's left: the rail's column, or
35
14
  nothing where there is no rail or the rail is a drawer. */
36
15
  --crewlet-app-shell-beside: var(--crewlet-app-shell-rail);
37
16
  /*
38
- * THE ASIDE'S TRACK, while it is a column: the inset it is held off the
39
- * window's edge by at least, and the panel's width and that inset at most.
40
- * THE CAP IS THE GRID'S. The page's sheet takes the host's floor as its
41
- * own track's minimum (`--crewlet-app-shell-aside-reserve`, the page's sheet
42
- * with its own inset and hairlines), and the grid hands the aside what is
43
- * left once the rail and that floor have theirs, up to its width. The rail's
44
- * track is the rail's live width, so while the rail eases between its
45
- * shapes the cap eases with it: a cap computed from the rail's VARIABLE
46
- * named the shape drawn, and jumped at both ends of a fold. With no reserve
47
- * the panel takes the width it was given, as far as the window holds it.
17
+ * The aside's track while it is a column: at least the inset, at most the
18
+ * panel's width plus the inset. The grid caps it at what the rail's live
19
+ * track and the page's floor leave, so the cap eases with a folding rail.
48
20
  */
49
21
  --crewlet-app-shell-aside-track: minmax(
50
22
  var(--size-shell-inset),
@@ -74,11 +46,8 @@
74
46
  past it. A page that can also scroll as a whole carries the rail off the
75
47
  top of the window. */
76
48
  height: 100dvh;
77
- /* CLIPPED, NOT SCROLLABLE. `overflow: hidden` is still a scroll container:
78
- a focus or a scrollIntoView on anything that reaches past the viewport
79
- scrolled the whole shell up, the frame showing as a band under it, and
80
- nothing a reader could do scrolled it back. `clip` cuts the same edge
81
- and offers nothing to scroll (SidePanel's flush body, the same rule). */
49
+ /* `clip`, not `hidden`: a hidden overflow is still a scroll container, and
50
+ a focus past the viewport scrolled the whole shell with no way back. */
82
51
  overflow: clip;
83
52
  /* The FRAME, the lowest rung: what the rail stands on and what shows round
84
53
  the sheet's inset. */
@@ -87,12 +56,8 @@
87
56
  }
88
57
 
89
58
  /*
90
- * A shell with no rail is one column, and the sheet is inset on its left as
91
- * well, from the frame's edge rather than from a rail. The inset is
92
- * the ROOT's padding rather than a second margin rule on the sheet, so the
93
- * narrow block below takes it back with a rule of the same weight declared
94
- * after this one; a margin here would have needed two classes, and would have
95
- * beaten the narrow block's one.
59
+ * No rail: one column, the sheet inset on its left from the frame's edge. The
60
+ * inset is the root's padding so the narrow block takes it back at one weight.
96
61
  */
97
62
  .crewlet-app-shell--no-rail {
98
63
  --crewlet-app-shell-beside: 0px;
@@ -138,14 +103,8 @@
138
103
  }
139
104
 
140
105
  /*
141
- * The rail stands on the FRAME, the application ground, and the screen beside
142
- * it on the sheet: the two lowest rungs, which are what separate the chrome a
143
- * reader navigates with from the page they are reading.
144
- *
145
- * AND IT DRAWS NO EDGE OF ITS OWN in the wide layout. It carried a right
146
- * border when the screen beside it was flush against it; the sheet draws its
147
- * own hairline now, an inset away, and a second line at the rail's edge would
148
- * run the height of the window parallel to it, eight pixels off.
106
+ * The rail stands on the frame, the lowest rung, and draws no edge of its own
107
+ * in the wide layout: the sheet beside it draws its own hairline.
149
108
  */
150
109
  .crewlet-app-shell__rail {
151
110
  /* The fold control's containing block. Re-declared as `fixed` by the
@@ -157,10 +116,8 @@
157
116
  width: var(--crewlet-app-shell-rail);
158
117
  min-height: 0;
159
118
  min-width: 0;
160
- /* THE MOVING EDGE CUTS WHAT IT PASSES. While the rail eases between its
161
- shapes its content keeps the width of the shape drawn (below), and the
162
- edge clips it rather than squeezing it. Across only: a ring or a badge
163
- at a row's top or bottom is never cut. */
119
+ /* While the rail eases, its content keeps the drawn shape's width and the
120
+ moving edge clips it; across only, so a row's ring is never cut. */
164
121
  overflow-x: clip;
165
122
  background: var(--color-surface-frame);
166
123
  transition: width var(--motion-duration-slow) var(--motion-easing-emphasized);
@@ -178,20 +135,8 @@
178
135
  }
179
136
 
180
137
  /*
181
- * The head stands BESIDE the top bar: the inset the sheet is held off the
182
- * frame by, then the bar's own height, so what the head holds (the lockup) is
183
- * centred on the same line as the screen's title in the bar beside it, and the
184
- * first nav row starts level with the top of the screen under the bar. The
185
- * box is sized as a border box whatever the document says, because the height
186
- * is written as the inset plus the bar and the padding is the inset: counted
187
- * outside the height, the head would stand an inset taller than the bar.
188
- *
189
- * AND IT DRAWS NO LINE OF ITS OWN. It carried a bottom border, which put a
190
- * divider across the rail at the same height as the bar's, and the two read as
191
- * one rule running the width of the window with the brand and the screen title
192
- * sitting above it like a second bar. The rail is one column: the bar's line
193
- * belongs to the bar, the rail's right edge is what separates the two, and the
194
- * only rule inside the rail is the one over its foot.
138
+ * The head is the inset plus the bar's height, as a border box, so its lockup
139
+ * centres on the bar's title line. It draws no line: that belongs to the bar.
195
140
  */
196
141
  .crewlet-app-shell__rail-head {
197
142
  display: flex;
@@ -205,19 +150,9 @@
205
150
  }
206
151
 
207
152
  /*
208
- * THE MIDDLE IS THE RAIL'S SCROLLER, and it KEEPS ITS WIDTH WHEN IT SCROLLS.
209
- * It reserved nothing, so when what it holds (a long group of running work)
210
- * grew past the window, the scrollbar took its width out of the content: the
211
- * field and every row ended a bar's width earlier, and the field's words were
212
- * cut beside its shortcut. It reserves the bar's gutter at every height, and
213
- * what stands in it (the field and the nav) gives exactly that width back from
214
- * its end inset (`--crewlet-rail-body-end`, the nav's gutter less the bar), so
215
- * the field and the rows stand where they stood before, scrolling or not.
216
- *
217
- * The bar's width is the middle's own (`--crewlet-rail-scrollbar`, measured by
218
- * `AppShell.Rail`, 0 where scrollbars overlay the content), not the screen's
219
- * gutter, which is 0 beside a flush screen while the middle still reserves its
220
- * bar. A bar wider than the gutter gives back what the gutter has.
153
+ * The rail's scroller reserves its own bar's gutter (`--crewlet-rail-scrollbar`,
154
+ * measured by `AppShell.Rail`) and the field and nav give it back at their end
155
+ * (`--crewlet-rail-body-end`), so they keep one width, scrolling or not.
221
156
  */
222
157
  .crewlet-app-shell__rail-body {
223
158
  --crewlet-rail-body-end: max(0px, calc(var(--size-nav-gutter) - var(--crewlet-rail-scrollbar, 0px)));
@@ -254,11 +189,8 @@
254
189
  }
255
190
 
256
191
  /*
257
- * THE HEAD'S STATUS, at the end of the name's line (`AppShell.RailStatus`):
258
- * the application's state as a dot and a count, its words in its name and
259
- * title. It ends on the nav's gutter, where every row's background ends, and
260
- * it reserves the width of a dot and a two-figure count, so the name beside
261
- * it truncates at one place whether the engine is healthy or has alarms.
192
+ * The head's status (`AppShell.RailStatus`) ends on the nav's gutter and
193
+ * reserves a dot and a two-figure count, so the name truncates at one place.
262
194
  */
263
195
  .crewlet-app-shell__rail-status {
264
196
  display: flex;
@@ -316,17 +248,9 @@
316
248
  }
317
249
 
318
250
  /*
319
- * THE RAIL'S FIELD IS A ROW'S WIDTH, compact: its edges are a nav row's
320
- * highlight edges, the nav's gutter in from each side of the rail, and its
321
- * content stands on a row's content columns through its pad
322
- * (`--crewlet-rail-field-pad`, which the rail variant of `SearchTrigger`
323
- * takes): the glyph on the nav's glyph column and the shortcut ending where a
324
- * row's words end. A row's content is the gutter and the row's pad in; the
325
- * field's is the slot's inset, its own 1px edge and its pad, so the inset at
326
- * each end makes up the difference, which is the gutter.
327
- *
328
- * And it is held off the nav by the nav's own top inset alone, one step, so
329
- * the field and the rows read as one group with the field first.
251
+ * The rail's field spans a nav row's highlight edges, and its pad
252
+ * (`--crewlet-rail-field-pad`) puts its glyph and shortcut on a row's content
253
+ * columns. It is held off the nav by the nav's top inset alone.
330
254
  */
331
255
  .crewlet-app-shell__rail-search {
332
256
  --crewlet-rail-field-pad: calc(var(--size-nav-row-pad) - 1px);
@@ -337,15 +261,9 @@
337
261
  );
338
262
  }
339
263
 
340
- /* The same gutter the nav takes, so what the foot says lines up with the rows
341
- above it rather than sitting further out.
342
-
343
- THE FOOT IS THE COMPACT STEP. It holds what a reader reaches for rarely (a
344
- settings link, the engine's state), so its rows stand on the small control
345
- step (`--crewlet-rail-foot-row`, 26px, never under the 24px target) on a
346
- half-step gap and a one-step inset, where the nav above keeps its 30px
347
- rows. The account row is the one exception (see below). Only heights
348
- change: every row keeps its order, columns, glyphs and words. */
264
+ /* The foot takes the nav's gutter and the compact step: its rows stand on
265
+ `--crewlet-rail-foot-row` (26px, never under the 24px target), all but the
266
+ account row. */
349
267
  .crewlet-app-shell__rail-foot {
350
268
  --crewlet-rail-foot-gap: calc(var(--spacing-1) / 2);
351
269
  --crewlet-rail-foot-row: var(--size-control-sm);
@@ -358,38 +276,9 @@
358
276
  }
359
277
 
360
278
  /*
361
- * A ROW IN THE RAIL LIKE ANY OTHER, for the foot.
362
- *
363
- * The rail's geometry is in two parts on purpose: the gutter insets the rail,
364
- * which is where a row's background begins, and the row pad insets the content
365
- * inside the row. A control dropped into the foot brings its own inset and
366
- * lands its mark four or five pixels off the line every nav glyph above it
367
- * sits on, which is the one thing a reader notices about a rail without being
368
- * able to say what it is. This takes both halves, so it cannot.
369
- *
370
- * AND SO DOES WHATEVER ELSE LANDS THERE. `AppShell.RailRow` is the row this
371
- * package draws, but the slot takes a control from anywhere and an application
372
- * that already has a status button reaches for that one: the engine drops a
373
- * ghost Button into the foot, which arrived centred in a 263px rail on a
374
- * toolbar's inset. The foot claims a direct child instead, which is the same
375
- * move the nav's badge slot makes on whatever a caller puts in it, and there
376
- * is no second idea of what a row in this rail is.
377
- *
378
- * THE BLOCK INSET IS A STEP, NOT A HEIGHT. A status line is a word with room
379
- * around it rather than a control on the control ladder, so it takes one
380
- * spacing step above and below its own line: 8 + 18 + 8 is 34px at the normal
381
- * density and follows the density from there. --size-row-sm stays under it as
382
- * the floor, because that is the step carrying the 24px a finger can hit, so
383
- * compact density cannot take the target under it.
384
- *
385
- * And the boundary is TRANSPARENT rather than absent, spending one pixel of
386
- * that step rather than adding one on top of it. It spends a pixel of the row
387
- * pad too: added to it, the boundary stood the row's mark and words a pixel
388
- * right of every nav glyph and word above them. A button carries one at every
389
- * variant so that a bordered variant and a borderless one stand the same
390
- * height, and the row this package draws carries the same one for the same
391
- * reason: without it the two rows in one foot are 34px and 36px, and the
392
- * difference is a border nobody can see.
279
+ * A foot row, or any control dropped in the foot, takes the nav's gutter and
280
+ * row pad so its mark lands on the nav's glyph line; a step above and below,
281
+ * floored at --size-row-sm, with the 1px transparent border counted inside.
393
282
  */
394
283
  .crewlet-app-shell__rail-row,
395
284
  .crewlet-app-shell__rail-foot > .crewlet-btn {
@@ -425,18 +314,8 @@
425
314
  }
426
315
 
427
316
  /*
428
- * A CONTROL IN THE FOOT IS A ROW OF THE RAIL'S OWN GRAMMAR: the nav row's 30px
429
- * step, its glyph-to-word gap, its word size and weight, and its secondary ink
430
- * lifting to the primary under the pointer, as Settings above it is drawn. So
431
- * the engine's row under Settings reads as one more row of the rail rather
432
- * than as a caption, its words start on the line the nav's words start on, and
433
- * it keeps one height in every state it says: one line of the compact step.
434
- * A status line the rail only states keeps the quieter caption above, and the
435
- * status block keeps its card.
436
- *
437
- * Its mark takes a nav glyph's width, `sm` (14px), whatever the mark is, so a
438
- * 7px status dot is centred where the glyph above it is centred and the words
439
- * beside it start where "Settings" starts.
317
+ * A control in the foot is drawn as a nav row (step, gap, type, ink), and its
318
+ * mark takes a nav glyph's width (14px) so its words start where the nav's do.
440
319
  */
441
320
  .crewlet-app-shell__rail-row--action:not(.crewlet-app-shell__rail-row--block),
442
321
  .crewlet-app-shell__rail-foot > .crewlet-btn {
@@ -450,10 +329,8 @@
450
329
  line-height: var(--font-line-height-tight);
451
330
  }
452
331
 
453
- /* A dropped control's LEADING mark slot takes the same column: a button's own
454
- slot hugs its mark, which stood the engine's 7px dot 3.5px left of the
455
- glyph column and its words 7px left of "Settings". Its first child only,
456
- because a trailing icon shares the class and ends on the row's end. */
332
+ /* A dropped control's leading mark slot takes the same column. First child
333
+ only: a trailing icon shares the class and ends on the row's end. */
457
334
  .crewlet-app-shell__rail-row--action:not(.crewlet-app-shell__rail-row--block) > .crewlet-app-shell__rail-row-icon,
458
335
  .crewlet-app-shell__rail-foot > .crewlet-btn > .crewlet-btn__icon:first-child {
459
336
  justify-content: center;
@@ -469,10 +346,8 @@
469
346
  }
470
347
 
471
348
  /*
472
- * OPEN IS POINTED AT. The row a panel is open from keeps the hover's lift for
473
- * as long as the panel is open, drawn from `aria-expanded` so the picture and
474
- * what a screen reader is told cannot come apart, as the switcher's trigger
475
- * draws it.
349
+ * The row a panel is open from keeps the hover's lift, drawn from
350
+ * `aria-expanded` so the picture matches what a screen reader is told.
476
351
  */
477
352
  .crewlet-app-shell__rail-row--action:hover,
478
353
  .crewlet-app-shell__rail-row--action[aria-expanded='true'] {
@@ -480,11 +355,8 @@
480
355
  color: var(--color-text-primary);
481
356
  }
482
357
 
483
- /* A row in the foot fills the rail, so its label takes whatever the glyph
484
- leaves it and WRAPS rather than ending in an ellipsis: a status line says
485
- what a node is doing, and what it says is as long as the sentence the
486
- application wrote. Cut, it kept the half that said nothing ("engine
487
- conn…"). */
358
+ /* A foot row's label wraps rather than ending in an ellipsis: a status line
359
+ is a sentence, and cut it keeps the half that says nothing. */
488
360
  .crewlet-app-shell__rail-foot > .crewlet-btn > .crewlet-btn__label {
489
361
  display: block;
490
362
  flex: 1 1 auto;
@@ -512,18 +384,9 @@
512
384
  }
513
385
 
514
386
  /*
515
- * THE WORDS AND THE TRAILING VALUE SHARE ONE WRAPPING LINE, and the words are
516
- * never cut.
517
- *
518
- * The words take their own width up to the whole line (`flex-basis: auto`
519
- * with `max-width: 100%`), so the line breaks BEFORE the value exactly when
520
- * the words and the value together are wider than the rail: the value stands
521
- * at the end of the words' line while both fit, and at the start of a line
522
- * of its own under them when they do not. The words grow into what is left
523
- * on their line, which is what puts a value that fits at the row's end
524
- * without a margin that would also push a wrapped one to the far side. And
525
- * words wider than the rail wrap, at any character if they must, rather than
526
- * end in an ellipsis: they are the part of the row that was the point.
387
+ * The words and the trailing value share one wrapping line: the value ends the
388
+ * words' line while both fit and wraps under them when not. The words are
389
+ * never cut; too wide, they break at any character.
527
390
  */
528
391
  .crewlet-app-shell__rail-row-body {
529
392
  display: flex;
@@ -554,13 +417,8 @@
554
417
  }
555
418
 
556
419
  /*
557
- * THE COUNT: how many of something the row reports, after its words, drawn as
558
- * a count in the nav is: the caption step, tabular figures so a count that
559
- * ticks up does not move the words beside it, and a mark half a step off the
560
- * figure. It is the tertiary step, as the nav's is, unless what it counts is
561
- * wrong: a warning count is the warning ink, figure and mark together, which
562
- * @crewlethq/tokens holds to 4.5:1 on the rail and under the hover overlay
563
- * (RAIL_PAINTS), so on the row a panel is open from too.
420
+ * The count: caption step, tabular figures and tertiary ink, or the warning
421
+ * ink for a warning count (4.5:1 on the rail and its hover, per RAIL_PAINTS).
564
422
  */
565
423
  .crewlet-app-shell__rail-row-count {
566
424
  display: inline-flex;
@@ -590,18 +448,9 @@
590
448
  }
591
449
 
592
450
  /*
593
- * THE STATUS BLOCK: a row given a `detail` is the approved design's engine
594
- * status, its words over a second line, on the card rung inside the plain
595
- * hairline, so the one row in the foot that reports on the fleet stands off
596
- * the rows that only go somewhere. The words step up to the primary ink at the
597
- * medium weight, since they are the state, and the detail keeps the row's
598
- * quiet ink a step smaller. Both are set on the snug leading, where the
599
- * design's two lines sit as one block rather than as two rows.
600
- *
601
- * It keeps the row's own inline pad and its transparent-border arithmetic, so
602
- * its mark still lands on the line every nav glyph above it sits on; the block
603
- * inset grows by a pixel for the second line, the design's 10px around the
604
- * words with the border counted in.
451
+ * The status block: a row given a `detail`, its words over a second line on
452
+ * the card rung. It keeps the row's inline pad and transparent border, so its
453
+ * mark still lands on the nav's glyph line.
605
454
  */
606
455
  .crewlet-app-shell__rail-row--block {
607
456
  padding-block: calc(var(--spacing-2) + 1px);
@@ -616,10 +465,8 @@
616
465
  font-weight: var(--font-weight-medium);
617
466
  }
618
467
 
619
- /* The block's mark stands beside its FIRST line, the state it marks. Centred
620
- on the whole block it sat beside the detail line, 19px under the words it
621
- belongs to once a value wrapped under them. One line box tall at the
622
- block's leading, so the dot centres on that line. */
468
+ /* The block's mark is one line box tall beside the first line, the state it
469
+ marks, rather than centred on the whole block. */
623
470
  .crewlet-app-shell__rail-row--block > .crewlet-app-shell__rail-row-icon {
624
471
  align-self: flex-start;
625
472
  height: 1lh;
@@ -631,16 +478,8 @@
631
478
  }
632
479
 
633
480
  /*
634
- * THE SHEET: the bar, a banner, the one scroller and a footer, floated on the
635
- * frame. It stands on --color-surface-background, the sheet rung, inside the
636
- * plain hairline and at the sheet's own corner, a step rounder than every
637
- * card drawn inside it. It clips to that corner, which is what lets the bar
638
- * and the scroller run square to its edges and still be rounded by it.
639
- *
640
- * Physical margins, as every other edge in this file is physical: the drawer
641
- * slides in from the left and the rail's column is the grid's first, so the
642
- * shell is drawn left to right throughout, and one logical margin in it would
643
- * be a promise about a direction nothing else here keeps.
481
+ * The sheet: the bar, a banner, the one scroller and a footer, clipped to its
482
+ * corner. Margins are physical: the shell is drawn left to right throughout.
644
483
  */
645
484
  .crewlet-app-shell__sheet {
646
485
  display: flex;
@@ -655,13 +494,8 @@
655
494
  }
656
495
 
657
496
  /*
658
- * THE BAR'S INSET IS THE CONTENT'S, so a page's first line starts under the
659
- * bar's title and its cards end under the bar's last control. It stood 16px
660
- * from each edge over a content column inset 20px, and at its end the
661
- * content also gives up the scroller's gutter, which the bar, not scrolling,
662
- * did not: with scrollbars drawn in the layout every page's actions ended
663
- * 15px past the cards under them. The gutter is measured by the shell
664
- * (`--crewlet-app-shell-gutter`, 0 where scrollbars overlay the content).
497
+ * The bar's inset is the content's, plus the scroller's gutter at its end
498
+ * (`--crewlet-app-shell-gutter`), so the bar's controls end over the cards.
665
499
  */
666
500
  .crewlet-app-shell__topbar {
667
501
  display: flex;
@@ -701,18 +535,8 @@
701
535
  }
702
536
 
703
537
  /*
704
- * THE one scroll container. Every screen scrolls here, which is what lets a
705
- * router restore a position per history entry.
706
- *
707
- * The gutter is reserved at every height, so navigating between a tall screen
708
- * and a short one does not shift every element sideways by the scrollbar's
709
- * width, which reads as the page jumping on each move.
710
- */
711
- /*
712
- * THE BODY: the row under the bar that the scroller and a peek column share.
713
- * It takes the sheet's remaining height, and the scroller takes the row's
714
- * remaining width, so a sheet with no peek draws exactly as it did before the
715
- * row existed.
538
+ * The body: the row under the bar that the scroller and a peek column share;
539
+ * with no peek it draws as the scroller alone.
716
540
  */
717
541
  .crewlet-app-shell__body {
718
542
  display: flex;
@@ -721,6 +545,8 @@
721
545
  min-height: 0;
722
546
  }
723
547
 
548
+ /* The one scroll container, so a router can restore a position per history
549
+ entry. Its gutter is reserved at every height so pages do not shift. */
724
550
  .crewlet-app-shell__main {
725
551
  flex: 1 1 0%;
726
552
  min-width: 0;
@@ -728,14 +554,8 @@
728
554
  overflow-y: auto;
729
555
  overflow-x: hidden;
730
556
  scrollbar-gutter: stable;
731
- /*
732
- * A SIZE CONTAINER, so a box inside the screen can be as tall as the view
733
- * it scrolls in (`100cqb`): a column that sticks beside the screen
734
- * (`SectionFrame`), a record bounded by the window. The scroller's size is
735
- * the shell's, never its content's, so containing it costs nothing. A box
736
- * inside an inline-size container (a card, a stat row) reaches past it to
737
- * this one for the block axis.
738
- */
557
+ /* A size container, so a box in the screen can be the view's height
558
+ (`100cqb`); its size is the shell's, never its content's. */
739
559
  container-type: size;
740
560
  }
741
561
 
@@ -744,13 +564,9 @@
744
564
  the document baseline draws a ring around the whole screen. */
745
565
 
746
566
  /*
747
- * THE CONTENT'S END is room under the last line, so it never reads flush
748
- * against the window's edge. It is a custom property,
749
- * `--crewlet-app-shell-content-end`, because a screen that ends in a bar
750
- * docked to the bottom of the scroller (a setup's footer) IS that edge: the
751
- * bar takes the room back with a negative margin of the same length, and
752
- * sits on the scroller's bottom at the end of a scroll exactly where it stood
753
- * while scrolling, rather than riding the room's height above it.
567
+ * The content's end is room under the last line, a custom property
568
+ * (`--crewlet-app-shell-content-end`) so a bar docked to the scroller's bottom
569
+ * can take it back with a negative margin.
754
570
  */
755
571
  .crewlet-app-shell__content {
756
572
  --crewlet-app-shell-content-end: var(--spacing-10);
@@ -766,24 +582,9 @@
766
582
  }
767
583
 
768
584
  /*
769
- * A screen that draws to the bottom of the window: the scroller stops
770
- * scrolling and the content column takes the height that is left, and the
771
- * whole width, since a screen that fills the window is a frame for panes
772
- * rather than a page of prose (prose inside it keeps its own measure).
773
- *
774
- * THE SCROLLER RESERVES NO GUTTER; THE COLUMN PADS BY IT INSTEAD. Nothing
775
- * scrolls here, so the strip a scrolling screen keeps for its scrollbar is
776
- * only there to hold the content where the bar's controls expect it (the
777
- * bar's end inset counts the gutter). A reserved strip did that, and also
778
- * stood between the sheet's edge and every pane that scrolls on its own: a
779
- * list's detail drew its scrollbar 31px inside the sheet, beside an empty
780
- * strip, and nothing in the screen could paint over a reserved gutter. The
781
- * same length as padding holds the content exactly where it stood, and a box
782
- * standing in the column can reach past padding: the column publishes it as
783
- * `--crewlet-app-shell-bleed-end`, and a `ListDetail` takes it back so its
784
- * scrollbar is the sheet's last pixel. The scrollbar's width is read off the
785
- * shell's gauge here (AppShell.tsx), so the bar keeps its place between a
786
- * fill screen and a scrolling one.
585
+ * A fill screen: the scroller stops scrolling and the column takes the height
586
+ * and width left. The scroller reserves no gutter; the column pads by it and
587
+ * publishes it as `--crewlet-app-shell-bleed-end`, for a pane to reach past.
787
588
  */
788
589
  .crewlet-app-shell--fill .crewlet-app-shell__main {
789
590
  overflow: hidden;
@@ -800,12 +601,9 @@
800
601
  }
801
602
 
802
603
  /*
803
- * THE GAUGE: an empty scroller, never seen, that always draws its scrollbar,
804
- * so the shell can read the scrollbar's width on a fill screen, where the
805
- * screen's own scroller reserves none. It is a row of no height in the
806
- * sheet's column, clipped, so it takes no room and moves nothing; the ruler
807
- * inside it has a height of its own, because a scroller of no height draws
808
- * no scrollbar in Firefox and measured 0 there.
604
+ * The gauge: a clipped, zero-height scroller that always draws its scrollbar,
605
+ * so the shell can read the bar's width on a fill screen. Its ruler has a
606
+ * height of its own, or Firefox draws no scrollbar.
809
607
  */
810
608
  .crewlet-app-shell__gauge {
811
609
  flex: none;
@@ -824,10 +622,8 @@
824
622
  }
825
623
 
826
624
  /*
827
- * A FLUSH SCREEN draws its own frame to the sheet's edges: the column gives up
828
- * its pad and its gap as well, so there is nothing for a box in it to reach
829
- * past. The column is the containing block for a `LayerHost` the screen
830
- * keeps, so its layers fill the screen rather than the window.
625
+ * A flush screen draws its own frame to the sheet's edges, so the column drops
626
+ * its pad and gap. The column contains the screen's `LayerHost`.
831
627
  */
832
628
  .crewlet-app-shell--fill-flush .crewlet-app-shell__content {
833
629
  --crewlet-app-shell-bleed-end: 0px;
@@ -844,29 +640,17 @@
844
640
  }
845
641
 
846
642
  /*
847
- * An open rail paints ONE step above its own veil, at every width: the drawer
848
- * is JavaScript state and its shape is a stylesheet's, so a shell that opens
849
- * it above the breakpoint (a demonstration, a test) must not draw a scrim over
850
- * the rail it just opened.
851
- *
852
- * Z-INDEX ALONE, AND NO POSITION. The rail is a grid item wide and a fixed
853
- * box narrow, and z-index applies to both, so a `position` here would buy
854
- * nothing and cost the narrow layout everything: an attribute selector
855
- * outranks the plain class the media query below re-declares, so a
856
- * `position: relative` written here wins INSIDE that query too, and the open
857
- * drawer leaves the fixed layer to become a grid item that takes the whole
858
- * column and pushes the application into the next row. The suite holds this
859
- * rule over the file rather than over a browser it cannot drive.
643
+ * An open rail paints one step above its veil at every width. Z-index only:
644
+ * this attribute selector outranks the narrow block's, so a `position` here
645
+ * would beat the drawer's `position: fixed` (the suite checks this).
860
646
  */
861
647
  .crewlet-app-shell__rail[data-open='true'] {
862
648
  z-index: calc(var(--crewlet-app-shell-drawer-z) + 1);
863
649
  }
864
650
 
865
651
  /*
866
- * The veil, declared OUTSIDE the breakpoint: a position it takes at one width
867
- * only is a layout participant at every other, and as a plain element in the
868
- * shell's grid it took the rail's column and pushed the application into the
869
- * next row.
652
+ * The veil is declared outside the breakpoint: positioned at one width only,
653
+ * it would be a grid item at every other.
870
654
  */
871
655
  .crewlet-app-shell__veil {
872
656
  position: fixed;
@@ -875,12 +659,8 @@
875
659
  }
876
660
 
877
661
  /*
878
- * THE ASIDE: a second sheet on the frame, to the right of the page's, the
879
- * same ground, hairline and corner, held off the window's top, right and
880
- * bottom by the inset. The seam between the two sheets is the page sheet's
881
- * own end inset, and the grip stands in it (`ResizeHandle`, outside the
882
- * sheet that clips). The sheet clips what it holds to its corner, so the
883
- * panel inside runs square to its edges.
662
+ * The aside: a second sheet right of the page's, inset from the window and
663
+ * clipped to its corner. The grip (`ResizeHandle`) stands in the seam.
884
664
  */
885
665
  .crewlet-app-shell__aside {
886
666
  position: relative;
@@ -920,10 +700,8 @@
920
700
  }
921
701
 
922
702
  /*
923
- * THE OVERLAY: over the page's end edge, lifted off it, behind a veil. It
924
- * keeps the column's corner and inset, so the panel is the same sheet in
925
- * both shapes and only its ground changes, and it never takes the whole
926
- * window: a strip of the page stays in view to say what it is over.
703
+ * The overlay: over the page's end edge behind a veil, with the column's
704
+ * corner and inset, and never the whole window.
927
705
  */
928
706
  .crewlet-app-shell__aside[data-shape='overlay'] {
929
707
  position: fixed;
@@ -959,10 +737,8 @@
959
737
  }
960
738
 
961
739
  /*
962
- * AN ENTRANCE, never an exit: the panel arrives from the edge it stands on,
963
- * and leaves at once when it is closed, so a close is never a wait. The page
964
- * beside a column reflows at once, because a grid track that appears has no
965
- * width to start from.
740
+ * An entrance only: the panel slides in from its edge and leaves at once, so
741
+ * closing never waits.
966
742
  */
967
743
  @keyframes crewlet-app-shell-aside-in {
968
744
  from {
@@ -987,32 +763,17 @@
987
763
  }
988
764
 
989
765
  /*
990
- * THE COMPACT RAIL: the same rail, narrowed to the compact column. One
991
- * variable is the rail's width for the grid, the aside's cap and the drawer
992
- * alike, so folding the rail is this one declaration. The shell writes the
993
- * attribute only where the layout is wide: the drawer under the step is
994
- * always the full list.
766
+ * The compact rail: one variable is the rail's width for the grid, the aside's
767
+ * cap and the drawer. The shell sets `data-rail` only in the wide layout.
995
768
  */
996
769
  .crewlet-app-shell[data-rail='compact'] {
997
770
  --crewlet-app-shell-rail: var(--size-shell-rail-compact);
998
771
  }
999
772
 
1000
773
  /*
1001
- * THE FOLD CONTROL stands on the head's row, before the brand's mark, in both
1002
- * shapes, so it never moves under the pointer that pressed it: chevrons
1003
- * pointing left to fold the rail and right to unfold it.
1004
- *
1005
- * THE CONTROL AND THE MARK ARE ONE PAIR: the control at the target floor
1006
- * (`--size-target-min`, at every density), a step (`--spacing-1`), then the
1007
- * mark, which is a target's size too, the pair centred in the compact column
1008
- * so the 76px column holds both (12 + 24 + 4 + 24 + 12). The control is
1009
- * centred on the bar's line as the mark is: the inset, then half of what the
1010
- * bar leaves round it. The mark's inset below is the same arithmetic from the
1011
- * other side.
1012
- *
1013
- * Quiet until the rail is pointed at: the tertiary ink, which holds 3:1 on
1014
- * the frame, then the secondary, and the ghost's own primary under the
1015
- * pointer. Its ring is drawn inside its own box, clear of the mark beside it.
774
+ * The fold control stands before the brand's mark in both shapes, so it never
775
+ * moves under the pointer: control, a step, then the mark, centred in the
776
+ * 76px compact column (12 + 24 + 4 + 24 + 12).
1016
777
  */
1017
778
  .crewlet-app-shell__fold {
1018
779
  position: absolute;
@@ -1037,12 +798,8 @@
1037
798
  }
1038
799
 
1039
800
  /*
1040
- * THE MARK STANDS WHERE THE COMPACT RAIL'S DOES, in both shapes. With no fold
1041
- * control it is centred over the compact column; beside the fold control it
1042
- * is the second of the pair (above), a step after the control, which is half
1043
- * the column and half the step in. Full, the name follows it; compact, the
1044
- * name is not drawn (the link keeps it as its name and title), and the
1045
- * lockup's end inset is given up, so the mark is all the column holds.
801
+ * The mark stands where the compact rail's does in both shapes. Compact, the
802
+ * name is not drawn (the link keeps it as its name and title).
1046
803
  */
1047
804
  .crewlet-app-shell[data-rail='compact'] .crewlet-app-shell__rail-head > .crewlet-brand {
1048
805
  padding-left: calc((var(--size-shell-rail-compact) - var(--crewlet-brand-mark)) / 2);
@@ -1059,10 +816,8 @@
1059
816
  }
1060
817
 
1061
818
  /*
1062
- * COMPACT, THE STATUS HAS A ROW OF ITS OWN under the mark, a small control
1063
- * step tall, its dot and its count centred in the column: the first thing
1064
- * under the head, before the places, where the fold control stood before it
1065
- * moved to the corner.
819
+ * Compact, the status takes a row of its own under the mark, its dot and
820
+ * count centred in the column.
1066
821
  */
1067
822
  .crewlet-app-shell[data-rail='compact'] .crewlet-app-shell__rail-inner > .crewlet-app-shell__rail-status {
1068
823
  justify-content: center;
@@ -1094,10 +849,8 @@
1094
849
  }
1095
850
 
1096
851
  /*
1097
- * THE COMPACT FACE IS CENTRED ON THE TILES' LINE. It gives up the full row's
1098
- * badge column and the step after it (above): kept, the step stood the face
1099
- * 4px left of the column's centre, in a box 8px wider than the face, so the
1100
- * face sat off the line every tile above it is centred on.
852
+ * The compact face drops the full row's badge column and gap, so it centres
853
+ * on the tiles' line.
1101
854
  */
1102
855
  .crewlet-app-shell__rail-foot .crewlet-account-row--compact .crewlet-account-row__avatar {
1103
856
  width: auto;
@@ -1105,26 +858,9 @@
1105
858
  }
1106
859
 
1107
860
  /*
1108
- * THE RAIL'S MOTION (railMotion.ts). The rail's width eases between the two
1109
- * shapes on the slow step with the emphasized curve, the motion a
1110
- * `DockColumn` opens and closes by, so a column of the frame and a column of
1111
- * a screen move as one. What the rail holds keeps the width of the shape
1112
- * drawn, so the moving edge clips the words rather than squeezing them.
1113
- *
1114
- * FOLDING, the full rail stays drawn, inert, while the edge narrows to the
1115
- * compact column, and its words fade out on the base step; the compact column
1116
- * is drawn when the rail's motion has ended, and fades in on the fast step.
1117
- * UNFOLDING, the full rail is drawn at once and fades in while the edge
1118
- * uncovers it. The brand's mark and the fold control are in the same place in
1119
- * both shapes, so neither fades.
1120
- *
1121
- * THE WORDS LEAVE BY A TRANSITION and arrive by keyframes. A fold takes their
1122
- * opacity to nothing; a fold pressed again mid way (`reverse`) declares
1123
- * nothing of its own, so the same transition takes the opacity back from
1124
- * wherever it had reached. Faded out by keyframes instead, a reversal could
1125
- * only start an entrance from nothing, and the words blinked out and back.
1126
- * The transition is declared only while the rail moves, so nothing else that
1127
- * sets these parts' opacity is eased.
861
+ * The rail's motion (railMotion.ts): its width eases on the slow step, and its
862
+ * words leave by a transition (so a reversed fold eases back) and arrive by
863
+ * keyframes. The transition is declared only while the rail moves.
1128
864
  */
1129
865
  .crewlet-app-shell[data-rail-motion='fold'] > .crewlet-app-shell__rail {
1130
866
  width: var(--size-shell-rail-compact);
@@ -1194,13 +930,7 @@
1194
930
  padding-left: 0;
1195
931
  }
1196
932
 
1197
- /*
1198
- * FULL BLEED. Under the step the rail is not beside the sheet, so there is
1199
- * nothing for the sheet to be held off: the inset, the corner and the
1200
- * hairline all collapse to nothing, and the sheet is the window. A corner
1201
- * kept here would round the screen into the viewport's own corners, and a
1202
- * hairline would draw a line round the window's edge.
1203
- */
933
+ /* Under the step the sheet is the window: no inset, corner or hairline. */
1204
934
  .crewlet-app-shell__sheet {
1205
935
  margin: 0;
1206
936
  border-width: 0;
@@ -1214,12 +944,8 @@
1214
944
  padding-top: 0;
1215
945
  }
1216
946
 
1217
- /*
1218
- * The drawer draws the edge the wide rail does not: it slides over the
1219
- * screen rather than standing beside a sheet that draws its own, and in
1220
- * light the frame and the sheet it covers are close enough that the shadow
1221
- * alone does not say where the drawer ends.
1222
- */
947
+ /* The drawer draws its own edge: it slides over the screen, and in light the
948
+ shadow alone does not say where it ends. */
1223
949
  .crewlet-app-shell__rail {
1224
950
  position: fixed;
1225
951
  inset: 0 auto 0 0;
@@ -1229,16 +955,9 @@
1229
955
  border-right: 1px solid var(--color-border-default);
1230
956
  box-shadow: var(--shadow-xl);
1231
957
  /*
1232
- * HIDDEN, not only moved. A rail translated off screen keeps every link
1233
- * and control in the tab order and in the accessibility tree, so a
1234
- * keyboard reader walks through a dozen stops nobody can see.
1235
- *
1236
- * Visibility is transitioned rather than switched, which is how the
1237
- * hiding waits for the slide out: an in-between value of visibility is
1238
- * `visible` whenever either end of the transition is, so the rail stays
1239
- * drawn for the whole duration and hides at the end. Going the other way
1240
- * the same rule shows it at once, which is what lets the drawer take
1241
- * focus the moment it opens.
958
+ * Hidden, not only moved, so its controls leave the tab order. Visibility
959
+ * transitions, so the rail stays drawn through the slide out and shows at
960
+ * once on open.
1242
961
  */
1243
962
  visibility: hidden;
1244
963
  transition:
@@ -1328,10 +1047,8 @@
1328
1047
  gap: var(--spacing-2);
1329
1048
  min-width: 0;
1330
1049
  padding: var(--spacing-1);
1331
- /* The badge stands 6px in from the row's start, as it does in the rail's
1332
- foot (see below): a step in, a badge's ring (1.5px, 2px out) stood half a
1333
- pixel off the row's hover fill and its current hairline, and read as
1334
- touching them. */
1050
+ /* The badge stands 6px in from the row's start, as in the rail's foot, so
1051
+ its ring clears the row's hover fill and current hairline. */
1335
1052
  padding-inline-start: calc(var(--spacing-1) + var(--spacing-1) / 2);
1336
1053
  border-radius: var(--radius-md);
1337
1054
  color: var(--color-text-primary);
@@ -1341,46 +1058,9 @@
1341
1058
  }
1342
1059
 
1343
1060
  /*
1344
- * In the rail's foot, the account row reaches up across its own padding to
1345
- * half the foot's gap, to meet the row above (HitArea.css).
1346
- *
1347
- * IT IS THE ONE TALL ROW IN THE FOOT. Who is signed in is the row a reader
1348
- * looks for, so it stands half a spacing step under the large control step
1349
- * (`--crewlet-account-row-height`, 42px) around a medium badge (`size="md"`,
1350
- * 32px), where the rows above it keep the compact step. At 44px it read as
1351
- * cramped against the foot's edges, so it gives up the half step and the
1352
- * space around it grows instead (`--crewlet-account-row-pad`, one step above
1353
- * and below, where it was none): the row is slimmer and the foot breathes
1354
- * more. It goes no lower than 42px because the badge's ring (1.5px, 2px out)
1355
- * takes 39px of it, and 42 keeps the ring 1.5px clear of the row's hover fill
1356
- * where 40 would leave half a pixel, which reads as the ring touching it. The
1357
- * badge stands in a column of its own width (`--crewlet-account-row-badge`),
1358
- * centred in it, so a smaller badge a caller hands the row lands where a
1359
- * medium one would, and the column is inset 6px from the row's start, so the
1360
- * badge's ring clears the row's edge on that side too. A 32px badge cannot
1361
- * stand on the nav's 14px glyph column: centred there, its ring (1.5px, 2px
1362
- * out) would cross the row's own edge.
1363
- *
1364
- * The name takes the body's size (`--font-size-compact`, the nav's words) and
1365
- * both lines take the body's leading, a step a 36px row had no room for.
1366
- */
1367
- /*
1368
- * AND THE WORDS TAKE THE ROOM: the name and the detail are what the row is
1369
- * for. The badge's column costs the words 10px over the 14px glyph column, so
1370
- * the link's trailing chevron is not drawn here: it is decoration (hidden from
1371
- * assistive technology, which hears the link or `aria-haspopup`), the row's
1372
- * hover fill and current lift still say it is pressable, and its 16px are what
1373
- * keep the name at least as wide as it was beside the smaller badge. Every gap
1374
- * after the name is the half step, and the controls beside the link
1375
- * (Settings, Preferences) are half a step apart and half a step off it.
1376
- * Outside a rail's foot the row keeps its chevron.
1377
- *
1378
- * THE CONTROLS STAND AS TALL AS THE ROW. Beside a 42px row, the small step's
1379
- * 26px squares floated in the middle of it as two smaller boxes, and their
1380
- * hover fill ended short of the row's on both sides. They take the row's
1381
- * height (`--crewlet-account-row-height`) and keep the small step's width and
1382
- * glyph, so the fill lines up with the row's top and bottom and the words
1383
- * keep every pixel of their column.
1061
+ * The account row is the foot's one tall row: 42px (less, and the badge's ring
1062
+ * meets the hover fill) around a 32px badge in its own column, inset 6px. In
1063
+ * the foot its chevron is hidden and its controls take the row's height.
1384
1064
  */
1385
1065
  .crewlet-app-shell__rail-foot .crewlet-account-row {
1386
1066
  --crewlet-account-row-pad: var(--spacing-1);
@@ -1504,10 +1184,8 @@ button.crewlet-account-row__who:focus-visible {
1504
1184
  }
1505
1185
 
1506
1186
  /*
1507
- * THE COMPACT ACCOUNT: the reader's face alone, centred in the compact rail's
1508
- * foot, the face's own corner carrying the lift, the hover and the ring. It
1509
- * keeps the row's link and menu rules above (hover, current, ring), with no
1510
- * pad of its own, so the box is the face.
1187
+ * The compact account: the reader's face alone, centred in the compact foot,
1188
+ * with the row's link and menu rules and no pad, so the box is the face.
1511
1189
  */
1512
1190
  .crewlet-account-row--compact {
1513
1191
  justify-content: center;