@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.
- package/dist/AppShell/AppShell.d.ts +47 -196
- package/dist/AppShell/index.js +2 -2
- package/dist/{AppShell-N5IHITJM.css → AppShell-RPILZZW5.css} +109 -431
- package/dist/ArtifactBar/index.js +4 -4
- package/dist/ArtifactCard/ArtifactCard.d.ts +13 -39
- package/dist/ArtifactCard/index.js +1 -1
- package/dist/{ArtifactCard-ZH6KCD5O.css → ArtifactCard-PWMC7RAY.css} +15 -49
- package/dist/ArtifactMakeRow/ArtifactMakeRow.d.ts +3 -16
- package/dist/AvatarPicker/index.js +5 -5
- package/dist/BrandSample/index.js +1 -1
- package/dist/{BrandSample-3OSKZAGG.css → BrandSample-WSBT7FQ5.css} +5 -25
- package/dist/Breadcrumb/Breadcrumb.d.ts +5 -41
- package/dist/Breadcrumb/index.js +1 -1
- package/dist/{Breadcrumb-MQJWJVN3.css → Breadcrumb-JDBQXPR5.css} +12 -58
- package/dist/Canvas/Canvas.d.ts +52 -228
- package/dist/Canvas/geometry.d.ts +31 -139
- package/dist/Canvas/index.js +1 -1
- package/dist/CanvasBoard/index.js +3 -3
- package/dist/CanvasToolbar/index.js +2 -2
- package/dist/CodeBlock/index.js +1 -1
- package/dist/ColorSwatch/index.js +2 -2
- package/dist/CommentThread/CommentThread.d.ts +3 -21
- package/dist/CommentThread/index.js +1 -1
- package/dist/{CommentThread-544KCZT7.css → CommentThread-YU6VSVS4.css} +2 -4
- package/dist/Composer/Composer.d.ts +17 -54
- package/dist/ConfirmField/index.js +2 -2
- package/dist/Copyable/Copyable.d.ts +2 -11
- package/dist/Copyable/index.js +1 -1
- package/dist/{Copyable-XMLKKJDT.css → Copyable-U3UJL3BP.css} +9 -32
- package/dist/DataGrid/DataGrid.d.ts +46 -136
- package/dist/DataGrid/index.js +1 -1
- package/dist/DataTable/index.js +2 -2
- package/dist/DataView/index.js +3 -3
- package/dist/DocTabsEditor/index.js +2 -2
- package/dist/{Editor-MEPTWBY5.js → Editor-HDHT5BX2.js} +2 -2
- package/dist/GraphCanvas/GraphCanvas.d.ts +22 -79
- package/dist/GraphCanvas/index.js +2 -2
- package/dist/GraphCanvas/layout.d.ts +10 -35
- package/dist/HuePicker/index.js +4 -4
- package/dist/InlineCode/InlineCode.d.ts +7 -28
- package/dist/InlineCode/index.js +1 -1
- package/dist/InlineCode-3KJCBT5I.css +80 -0
- package/dist/Link/Link.d.ts +3 -25
- package/dist/Link/index.js +1 -1
- package/dist/{Link-Y7RHTR6F.css → Link-7AADYG2F.css} +12 -35
- package/dist/LinkInterstitial/index.js +2 -2
- package/dist/MarkdownEditor/index.js +4 -4
- package/dist/MentionMenu/MentionMenu.d.ts +9 -31
- package/dist/Menu/Menu.d.ts +9 -91
- package/dist/Menu/index.js +1 -1
- package/dist/MergeConflicts/index.js +4 -4
- package/dist/ObjectHeader/index.js +2 -2
- package/dist/OrgTable/index.js +3 -3
- package/dist/PropertyList/index.js +3 -3
- package/dist/RichEditor/index.js +1 -1
- package/dist/SearchTrigger/SearchTrigger.d.ts +8 -36
- package/dist/SearchTrigger/index.js +1 -1
- package/dist/{SearchTrigger-MME7NIHX.css → SearchTrigger-3HO7D6NP.css} +5 -17
- package/dist/SegmentedControl/index.js +3 -3
- package/dist/ShareDialog/index.js +1 -1
- package/dist/SheetColumnEditor/index.js +5 -5
- package/dist/SheetGrid/index.js +2 -2
- package/dist/SlideFilmstrip/index.js +2 -2
- package/dist/TableCells/index.js +2 -2
- package/dist/Tabs/index.js +2 -2
- package/dist/ThemeSwitcher/index.js +4 -4
- package/dist/TimeRangePicker/index.js +4 -4
- package/dist/TreeCanvas/TreeCanvas.d.ts +50 -248
- package/dist/TreeCanvas/index.js +2 -2
- package/dist/TreeGrid/index.js +2 -2
- package/dist/VersionCompare/index.js +4 -4
- package/dist/{chunk-O43SIR3W.js → chunk-3QQ3QHQR.js} +1 -1
- package/dist/{chunk-MZV45HQB.js → chunk-3T6URIXM.js} +1 -1
- package/dist/{chunk-H2QSDZTX.js → chunk-3ZURIGQ7.js} +1 -1
- package/dist/{chunk-KQFOPY2P.js → chunk-4H577HEE.js} +1 -1
- package/dist/{chunk-3WSDAVE6.js → chunk-5PAABHF7.js} +1 -1
- package/dist/{chunk-3DAIOPAV.js → chunk-63NULHGF.js} +1 -1
- package/dist/{chunk-NFA7CSCD.js → chunk-6BMPVSUB.js} +1 -1
- package/dist/{chunk-JY6WSDUG.js → chunk-AIQHJ2HF.js} +1 -1
- package/dist/{chunk-M32NBSS7.js → chunk-B2RTWEZZ.js} +4 -6
- package/dist/{chunk-3P24SMTI.js → chunk-B5MCTPXL.js} +1 -1
- package/dist/{chunk-V2FD4RPS.js → chunk-BGPHGCDT.js} +1 -1
- package/dist/{chunk-QNDXLHBO.js → chunk-CN2EDXAW.js} +1 -1
- package/dist/{chunk-MNACKUBB.js → chunk-CX4JXBS3.js} +2 -2
- package/dist/{chunk-NLGRDKCK.js → chunk-EPH5EPKN.js} +2 -2
- package/dist/{chunk-AKCIF6XN.js → chunk-FEJVDORA.js} +1 -1
- package/dist/{chunk-PFTUWDZN.js → chunk-FIH5EMJF.js} +1 -1
- package/dist/{chunk-OWYIRWEX.js → chunk-FMRRKLNX.js} +1 -1
- package/dist/{chunk-QM2QFKIA.js → chunk-FVXNR63H.js} +2 -2
- package/dist/{chunk-2AKVGQ73.js → chunk-GDBROEQ5.js} +1 -1
- package/dist/{chunk-NMBGVHGQ.js → chunk-GSLN7WL2.js} +2 -2
- package/dist/{chunk-KMIS2R67.js → chunk-HJAX4356.js} +1 -1
- package/dist/{chunk-WLCPN22T.js → chunk-HKYLPYVF.js} +1 -1
- package/dist/{chunk-Q4JX6UO7.js → chunk-HMEFWPAA.js} +3 -7
- package/dist/{chunk-OVFB63RZ.js → chunk-JANUABBT.js} +3 -5
- package/dist/{chunk-AIYSPVVZ.js → chunk-JDRBZYIA.js} +1 -1
- package/dist/{chunk-7FSIBX4S.js → chunk-JG66SXCX.js} +1 -1
- package/dist/{chunk-D2KJ5GQC.js → chunk-N2DCSSYC.js} +2 -2
- package/dist/{chunk-2TZNTPF5.js → chunk-NDWXVEY6.js} +2 -4
- package/dist/{chunk-QFE6T6GW.js → chunk-P4QAS5TS.js} +1 -1
- package/dist/{chunk-JKFA2F7J.js → chunk-R4YUMULC.js} +1 -1
- package/dist/{chunk-E3AFQTWT.js → chunk-SRPV3EAJ.js} +1 -1
- package/dist/{chunk-K5WTII2H.js → chunk-U67UM3VS.js} +1 -1
- package/dist/{chunk-RMGPZQVJ.js → chunk-UTKI2SAM.js} +1 -1
- package/dist/{chunk-KUECTV2P.js → chunk-W443OSWT.js} +1 -1
- package/dist/{chunk-XHNV272L.js → chunk-W4UJWFCZ.js} +1 -1
- package/dist/{chunk-EGHOU7U2.js → chunk-WGAEHKGW.js} +5 -12
- package/dist/{chunk-3DGNF2EH.js → chunk-XGZXKG53.js} +2 -2
- package/dist/{chunk-MNVIIZQP.js → chunk-YADYQHHW.js} +2 -5
- package/dist/{chunk-Y7FPSBCN.js → chunk-YBOGOTYV.js} +1 -1
- package/dist/{chunk-ECOWCJHQ.js → chunk-YTDZY3PY.js} +1 -1
- package/dist/{chunk-6POROC4M.js → chunk-ZO3MXMAC.js} +1 -1
- package/dist/generated/index.js +49 -49
- package/dist/index.js +49 -49
- package/dist/styles.css +188 -696
- package/dist/utils/pathBreaks.d.ts +3 -8
- package/package.json +3 -3
- package/dist/InlineCode-BEYQFJQT.css +0 -106
|
@@ -1,50 +1,22 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* The application frame:
|
|
3
|
-
*
|
|
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
|
-
/*
|
|
30
|
-
|
|
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
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
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
|
-
/*
|
|
78
|
-
a focus
|
|
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
|
-
*
|
|
91
|
-
*
|
|
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
|
|
142
|
-
*
|
|
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
|
-
/*
|
|
161
|
-
|
|
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
|
|
182
|
-
*
|
|
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
|
-
*
|
|
209
|
-
*
|
|
210
|
-
*
|
|
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
|
-
*
|
|
258
|
-
*
|
|
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
|
-
*
|
|
320
|
-
*
|
|
321
|
-
*
|
|
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
|
|
341
|
-
|
|
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
|
|
362
|
-
*
|
|
363
|
-
*
|
|
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
|
|
429
|
-
*
|
|
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
|
|
454
|
-
|
|
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
|
-
*
|
|
473
|
-
*
|
|
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
|
|
484
|
-
|
|
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
|
-
*
|
|
516
|
-
*
|
|
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
|
-
*
|
|
558
|
-
*
|
|
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
|
-
*
|
|
594
|
-
*
|
|
595
|
-
*
|
|
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
|
|
620
|
-
|
|
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
|
-
*
|
|
635
|
-
*
|
|
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
|
-
*
|
|
659
|
-
*
|
|
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
|
-
*
|
|
705
|
-
*
|
|
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
|
-
|
|
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
|
-
*
|
|
748
|
-
*
|
|
749
|
-
*
|
|
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
|
|
770
|
-
*
|
|
771
|
-
*
|
|
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
|
-
*
|
|
804
|
-
* so the shell can read the
|
|
805
|
-
*
|
|
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
|
|
828
|
-
* its pad and
|
|
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
|
|
848
|
-
*
|
|
849
|
-
*
|
|
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
|
|
867
|
-
*
|
|
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
|
-
*
|
|
879
|
-
*
|
|
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
|
-
*
|
|
924
|
-
*
|
|
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
|
-
*
|
|
963
|
-
*
|
|
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
|
-
*
|
|
991
|
-
*
|
|
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
|
-
*
|
|
1002
|
-
*
|
|
1003
|
-
*
|
|
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
|
-
*
|
|
1041
|
-
*
|
|
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
|
-
*
|
|
1063
|
-
*
|
|
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
|
-
*
|
|
1098
|
-
*
|
|
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
|
-
*
|
|
1109
|
-
*
|
|
1110
|
-
*
|
|
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
|
-
|
|
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
|
-
*
|
|
1233
|
-
*
|
|
1234
|
-
*
|
|
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
|
|
1332
|
-
|
|
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
|
-
*
|
|
1345
|
-
*
|
|
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
|
-
*
|
|
1508
|
-
*
|
|
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;
|