@slotted/styles 0.1.0-beta.3 → 0.1.0-beta.30
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/package.json +13 -1
- package/src/accordion/accordion.css +11 -11
- package/src/action-bar/action-bar.css +47 -44
- package/src/action-bar/action-bar.tokens.json +1 -0
- package/src/action-sheet/action-sheet.css +39 -39
- package/src/alert/alert.css +96 -96
- package/src/alert/alert.tokens.json +5 -0
- package/src/app-shell/app-shell.css +455 -328
- package/src/app-shell/app-shell.tokens.json +5 -2
- package/src/aspect-ratio/aspect-ratio.css +9 -9
- package/src/attachment/attachment.css +118 -114
- package/src/avatar/avatar.css +96 -66
- package/src/avatar/avatar.tokens.json +7 -0
- package/src/avatar-group/avatar-group.css +22 -23
- package/src/badge/badge.css +54 -46
- package/src/badge/badge.tokens.json +5 -0
- package/src/breadcrumb/breadcrumb.css +52 -52
- package/src/button/button.css +137 -89
- package/src/button/button.tokens.json +5 -0
- package/src/button-group/button-group.css +80 -79
- package/src/button-group/button-group.tokens.json +1 -0
- package/src/calendar/calendar.css +139 -109
- package/src/calendar/calendar.tokens.json +5 -1
- package/src/card/card.css +68 -65
- package/src/carousel/carousel.css +158 -169
- package/src/cascader/cascader.css +158 -157
- package/src/cascader/cascader.tokens.json +1 -0
- package/src/chart/chart.css +288 -267
- package/src/chart/chart.tokens.json +4 -0
- package/src/checkbox/checkbox.css +143 -148
- package/src/checkbox-group/checkbox-group.css +7 -7
- package/src/code-block/code-block.css +85 -89
- package/src/collapsible/collapsible.css +76 -80
- package/src/color-picker/color-picker.css +106 -114
- package/src/column-manager/column-manager.css +111 -119
- package/src/combobox/combobox.css +203 -130
- package/src/combobox/combobox.tokens.json +3 -0
- package/src/command-palette/command-palette.css +155 -102
- package/src/command-palette/command-palette.tokens.json +2 -0
- package/src/container/container.css +27 -27
- package/src/context-menu/context-menu.css +9 -9
- package/src/currency-field/currency-field.css +119 -119
- package/src/currency-field/currency-field.tokens.json +1 -0
- package/src/dashboard-grid/dashboard-grid.css +185 -115
- package/src/data-grid/data-grid.css +598 -496
- package/src/data-grid/data-grid.tokens.json +5 -1
- package/src/data-list/data-list.css +82 -71
- package/src/data-list/data-list.tokens.json +2 -1
- package/src/date-field/date-field.css +62 -57
- package/src/date-field/date-field.tokens.json +1 -0
- package/src/date-picker/date-picker.css +117 -58
- package/src/date-picker/date-picker.tokens.json +5 -0
- package/src/date-range-picker/date-range-picker.css +157 -127
- package/src/date-range-picker/date-range-picker.tokens.json +4 -0
- package/src/datetime-field/datetime-field.css +90 -90
- package/src/datetime-field/datetime-field.tokens.json +1 -0
- package/src/datetime-picker/datetime-picker.css +123 -70
- package/src/datetime-picker/datetime-picker.tokens.json +4 -1
- package/src/datetime-range-picker/datetime-range-picker.css +191 -163
- package/src/datetime-range-picker/datetime-range-picker.tokens.json +4 -0
- package/src/description-list/description-list.css +105 -75
- package/src/description-list/description-list.tokens.json +1 -0
- package/src/detail-panel/detail-panel.css +86 -71
- package/src/detail-panel/detail-panel.tokens.json +2 -0
- package/src/dialog/dialog.css +434 -198
- package/src/dialog/dialog.tokens.json +7 -0
- package/src/divider/divider.css +20 -20
- package/src/drawer/drawer.css +597 -236
- package/src/drawer/drawer.tokens.json +13 -0
- package/src/entity-picker/entity-picker.css +323 -270
- package/src/entity-picker/entity-picker.tokens.json +3 -0
- package/src/event-calendar/event-calendar.css +357 -399
- package/src/field/field.css +106 -93
- package/src/field/field.tokens.json +2 -0
- package/src/field-group/field-group.css +43 -33
- package/src/field-group/field-group.tokens.json +3 -0
- package/src/filter-bar/filter-bar.css +200 -216
- package/src/form/form.css +99 -25
- package/src/form/form.tokens.json +5 -0
- package/src/fullscreen/fullscreen.css +26 -27
- package/src/grid/grid.css +29 -29
- package/src/highlight/highlight.css +11 -11
- package/src/hover-card/hover-card.css +9 -9
- package/src/icon/icon.css +67 -20
- package/src/icon/icon.tokens.json +1 -0
- package/src/image/image.css +42 -42
- package/src/import-export-center/import-export-center.css +144 -165
- package/src/inline/inline.css +28 -28
- package/src/inline-message/inline-message.css +162 -86
- package/src/inline-message/inline-message.tokens.json +4 -0
- package/src/kbd/kbd.css +62 -50
- package/src/kbd/kbd.tokens.json +3 -0
- package/src/link/link.css +54 -33
- package/src/link/link.tokens.json +4 -0
- package/src/list/list.css +23 -23
- package/src/list-item/list-item.css +89 -75
- package/src/list-item/list-item.tokens.json +7 -0
- package/src/listbox/listbox.css +71 -70
- package/src/listbox/listbox.tokens.json +0 -1
- package/src/loading-overlay/loading-overlay.css +86 -103
- package/src/markdown/markdown.css +20 -20
- package/src/media-viewer/media-viewer.css +790 -0
- package/src/media-viewer/media-viewer.tokens.json +53 -0
- package/src/menu/menu.css +162 -82
- package/src/menu/menu.tokens.json +2 -1
- package/src/menubar/menubar.css +16 -16
- package/src/message/message.css +1250 -1253
- package/src/message/message.tokens.json +5 -0
- package/src/message-scroller/message-scroller.css +323 -320
- package/src/multi-select/multi-select.css +230 -172
- package/src/multi-select/multi-select.tokens.json +2 -0
- package/src/navigation-menu/navigation-menu.css +169 -190
- package/src/notification-center/notification-center.css +153 -161
- package/src/notification-center/notification-center.tokens.json +3 -0
- package/src/number-field/number-field.css +93 -93
- package/src/number-field/number-field.tokens.json +1 -0
- package/src/otp-input/otp-input.css +74 -64
- package/src/otp-input/otp-input.tokens.json +1 -0
- package/src/page/page.css +41 -27
- package/src/page/page.tokens.json +1 -0
- package/src/page-header/page-header.css +341 -286
- package/src/page-header/page-header.tokens.json +5 -0
- package/src/pagination/pagination.css +75 -79
- package/src/popover/popover.css +81 -64
- package/src/popover/popover.tokens.json +1 -0
- package/src/progress-indicator/progress-indicator.css +192 -136
- package/src/progress-indicator/progress-indicator.tokens.json +1 -0
- package/src/prompt-composer/prompt-composer.css +260 -113
- package/src/prompt-composer/prompt-composer.tokens.json +15 -0
- package/src/prose/prose.css +77 -82
- package/src/radio-group/radio-group.css +107 -112
- package/src/rating/rating.css +146 -142
- package/src/rating/rating.tokens.json +1 -0
- package/src/result-state/result-state.css +94 -101
- package/src/runtime-properties.mjs +19 -6
- package/src/saved-views/saved-views.css +43 -49
- package/src/scroll-area/scroll-area.css +44 -37
- package/src/section/section.css +178 -43
- package/src/section/section.tokens.json +8 -2
- package/src/segmented-control/segmented-control.css +210 -133
- package/src/segmented-control/segmented-control.tokens.json +7 -11
- package/src/select/select.css +210 -147
- package/src/select/select.tokens.json +3 -0
- package/src/side-navigation/side-navigation.css +193 -196
- package/src/side-navigation/side-navigation.tokens.json +1 -0
- package/src/skeleton/skeleton.css +57 -58
- package/src/slider/slider.css +101 -103
- package/src/sparkline/sparkline.css +75 -53
- package/src/sparkline/sparkline.tokens.json +2 -0
- package/src/spinner/spinner.css +83 -180
- package/src/spinner/spinner.tokens.json +0 -1
- package/src/split-button/split-button.css +34 -35
- package/src/split-button/split-button.tokens.json +1 -0
- package/src/splitter/splitter.css +47 -48
- package/src/stack/stack.css +25 -25
- package/src/stat-card/stat-card.css +415 -245
- package/src/stat-card/stat-card.tokens.json +8 -0
- package/src/status-indicator/status-indicator.css +124 -100
- package/src/status-indicator/status-indicator.tokens.json +0 -3
- package/src/stepper/stepper.css +78 -82
- package/src/switch/switch.css +100 -106
- package/src/table/table.css +270 -198
- package/src/table/table.tokens.json +2 -0
- package/src/table-of-contents/table-of-contents.css +60 -59
- package/src/table-of-contents/table-of-contents.tokens.json +1 -0
- package/src/tabs/tabs.css +327 -294
- package/src/tabs/tabs.tokens.json +7 -1
- package/src/tag/tag.css +109 -88
- package/src/tag/tag.tokens.json +10 -0
- package/src/tags-input/tags-input.css +152 -87
- package/src/tags-input/tags-input.tokens.json +7 -1
- package/src/text-field/text-field.css +146 -148
- package/src/text-field/text-field.tokens.json +1 -0
- package/src/textarea/textarea.css +38 -33
- package/src/textarea/textarea.tokens.json +1 -0
- package/src/time-field/time-field.css +82 -77
- package/src/time-field/time-field.tokens.json +1 -0
- package/src/time-picker/time-picker.css +116 -64
- package/src/time-picker/time-picker.tokens.json +4 -1
- package/src/time-range-picker/time-range-picker.css +168 -140
- package/src/time-range-picker/time-range-picker.tokens.json +4 -0
- package/src/timeline/timeline.css +280 -292
- package/src/timeline/timeline.tokens.json +5 -0
- package/src/toast/toast.css +138 -121
- package/src/toast/toast.tokens.json +6 -0
- package/src/toggle/toggle.css +34 -38
- package/src/toggle-group/toggle-group.css +73 -77
- package/src/toolbar/toolbar.css +33 -38
- package/src/tooltip/tooltip.css +65 -39
- package/src/tooltip/tooltip.tokens.json +1 -0
- package/src/top-navigation/top-navigation.css +252 -268
- package/src/tour/tour.css +64 -73
- package/src/transfer/transfer.css +164 -168
- package/src/tree/tree.css +113 -121
- package/src/typography/typography.css +42 -38
- package/src/typography/typography.tokens.json +1 -0
- package/src/upload/upload.css +256 -257
- package/src/visually-hidden/visually-hidden.css +1 -1
- package/src/wizard/wizard.css +187 -199
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* The outer frame of a route: the regions that do not change when the
|
|
4
4
|
* content does.
|
|
5
5
|
*
|
|
6
|
-
* div[data-ui
|
|
6
|
+
* div[data-ui-app-shell]
|
|
7
7
|
* ├─ skip ▸ a · a · a
|
|
8
|
-
* ├─ banner ▸ brand ▸ nav-toggle · … |
|
|
8
|
+
* ├─ banner ▸ brand ▸ nav-toggle · … | center ▸ … | actions ▸ …
|
|
9
9
|
* ├─ nav ▸ nav-header · nav-body · nav-footer
|
|
10
10
|
* ├─ scrim
|
|
11
11
|
* ├─ main ▸ page ▸ …
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
* focus and the scroll position where the reader left them; Carbon remounts
|
|
68
68
|
* its side nav between the two and loses both.
|
|
69
69
|
*/
|
|
70
|
-
[data-ui
|
|
70
|
+
[data-ui-app-shell] {
|
|
71
71
|
/**
|
|
72
72
|
* The air around anything the frame holds. Composed from the control gap
|
|
73
73
|
* rather than stated on the space scale, so it answers density: a dense
|
|
@@ -82,6 +82,16 @@
|
|
|
82
82
|
/** The box a row's mark occupies: a control's own size, so the two agree. */
|
|
83
83
|
--_row-mark: var(--slotted-app-shell-row-mark-size, var(--slotted-control-height-md, 34px));
|
|
84
84
|
--_row-gap: var(--slotted-control-gap-md, 8px);
|
|
85
|
+
/**
|
|
86
|
+
* How far a focus ring drawn outside a control reaches past its box: the
|
|
87
|
+
* ring's width and its offset, 4px with the default theme. The three parts
|
|
88
|
+
* of the navigation column pad their inline sides by it, because the body
|
|
89
|
+
* scrolls and clips at its padding box, and a full-width control's ring
|
|
90
|
+
* stood outside that box on both sides.
|
|
91
|
+
*/
|
|
92
|
+
--_row-ring-inset: calc(
|
|
93
|
+
var(--slotted-focus-ring-width, 2px) + var(--slotted-focus-ring-offset, 2px)
|
|
94
|
+
);
|
|
85
95
|
|
|
86
96
|
/**
|
|
87
97
|
* A row's type. A list of destinations is text and not a control, so it
|
|
@@ -122,7 +132,7 @@
|
|
|
122
132
|
--_aside-size: var(--slotted-app-shell-aside-size-md, 20rem);
|
|
123
133
|
/**
|
|
124
134
|
* A rail is one mark column with a row's inset on each side, so a closed
|
|
125
|
-
* region is exactly as wide as the marks it holds and reads as a
|
|
135
|
+
* region is exactly as wide as the marks it holds and reads as a centerd
|
|
126
136
|
* strip rather than as a column with its air on one side.
|
|
127
137
|
*/
|
|
128
138
|
--_rail-size: var(
|
|
@@ -145,7 +155,7 @@
|
|
|
145
155
|
* strip a reader sees; each other plane gives the region an edge — the
|
|
146
156
|
* screen's, a card's, a seam — and a row whose ground meets an edge reads
|
|
147
157
|
* as a column with no padding. The inset is on both sides, so the closed
|
|
148
|
-
* strip stays
|
|
158
|
+
* strip stays centerd in itself, and the closed width is written once,
|
|
149
159
|
* from both, for every plane.
|
|
150
160
|
*/
|
|
151
161
|
--_nav-inset: 0px;
|
|
@@ -201,7 +211,7 @@
|
|
|
201
211
|
--_elevation: var(--slotted-app-shell-elevation, var(--slotted-shadow-xs));
|
|
202
212
|
/**
|
|
203
213
|
* The line a seam draws, stated once. `separation="tone"` sets it to
|
|
204
|
-
* `none` and the forced-
|
|
214
|
+
* `none` and the forced-colors block below sets it back, so every seam
|
|
205
215
|
* rule is written once and reads the axis through this property.
|
|
206
216
|
*/
|
|
207
217
|
--_seam: var(--_rule-width) solid var(--_rule);
|
|
@@ -219,7 +229,7 @@
|
|
|
219
229
|
background-color: var(--_frame);
|
|
220
230
|
/**
|
|
221
231
|
* A wash or a photograph behind the frame is a theme's decision, not a
|
|
222
|
-
* prop: one layer over the frame's
|
|
232
|
+
* prop: one layer over the frame's color, sized to cover the frame and
|
|
223
233
|
* nothing when the token is unset.
|
|
224
234
|
*/
|
|
225
235
|
background-image: var(--slotted-app-shell-frame-image, none);
|
|
@@ -271,16 +281,16 @@
|
|
|
271
281
|
position: relative;
|
|
272
282
|
}
|
|
273
283
|
|
|
274
|
-
[data-ui
|
|
284
|
+
[data-ui-app-shell][data-nav-size='sm'] {
|
|
275
285
|
--_nav-size: var(--slotted-app-shell-nav-size-sm, 13rem);
|
|
276
286
|
}
|
|
277
|
-
[data-ui
|
|
287
|
+
[data-ui-app-shell][data-nav-size='lg'] {
|
|
278
288
|
--_nav-size: var(--slotted-app-shell-nav-size-lg, 18rem);
|
|
279
289
|
}
|
|
280
|
-
[data-ui
|
|
290
|
+
[data-ui-app-shell][data-aside-size='sm'] {
|
|
281
291
|
--_aside-size: var(--slotted-app-shell-aside-size-sm, 16rem);
|
|
282
292
|
}
|
|
283
|
-
[data-ui
|
|
293
|
+
[data-ui-app-shell][data-aside-size='lg'] {
|
|
284
294
|
--_aside-size: var(--slotted-app-shell-aside-size-lg, 26rem);
|
|
285
295
|
}
|
|
286
296
|
|
|
@@ -292,7 +302,7 @@
|
|
|
292
302
|
* toolbar makes `100vh` taller than the space there is, and `100dvh` is the
|
|
293
303
|
* space there is.
|
|
294
304
|
*/
|
|
295
|
-
[data-ui
|
|
305
|
+
[data-ui-app-shell][data-scroll='content'] {
|
|
296
306
|
block-size: 100%;
|
|
297
307
|
/**
|
|
298
308
|
* Both axes, under `content` alone: the shell's height is the space it was
|
|
@@ -311,14 +321,14 @@
|
|
|
311
321
|
* focused: the reader who does not need it never meets it, and the reader
|
|
312
322
|
* who does finds it before the chrome.
|
|
313
323
|
*/
|
|
314
|
-
[data-ui
|
|
324
|
+
[data-ui-app-shell] > [data-part-skip] {
|
|
315
325
|
inset-block-start: 0;
|
|
316
326
|
inset-inline-start: 0;
|
|
317
327
|
position: absolute;
|
|
318
328
|
z-index: var(--slotted-z-index-popover, 1100);
|
|
319
329
|
}
|
|
320
330
|
|
|
321
|
-
[data-ui
|
|
331
|
+
[data-ui-app-shell] > [data-part-skip] > a {
|
|
322
332
|
background-color: var(--_canvas);
|
|
323
333
|
border: var(--_rule-width) solid var(--_rule);
|
|
324
334
|
border-radius: var(--slotted-control-radius, 4px);
|
|
@@ -338,7 +348,7 @@
|
|
|
338
348
|
white-space: nowrap;
|
|
339
349
|
}
|
|
340
350
|
|
|
341
|
-
[data-ui
|
|
351
|
+
[data-ui-app-shell] > [data-part-skip] > a:focus-visible {
|
|
342
352
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
343
353
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
344
354
|
translate: 0 0;
|
|
@@ -359,7 +369,7 @@
|
|
|
359
369
|
* in the family reads the query — the bar carries an application's own search
|
|
360
370
|
* and its own account, and those are the things that shed a label first.
|
|
361
371
|
*/
|
|
362
|
-
[data-ui
|
|
372
|
+
[data-ui-app-shell] > [data-part-banner] {
|
|
363
373
|
align-items: center;
|
|
364
374
|
background-color: var(--slotted-app-shell-banner-surface, transparent);
|
|
365
375
|
color: var(
|
|
@@ -376,7 +386,7 @@
|
|
|
376
386
|
padding-inline: var(--_edge);
|
|
377
387
|
}
|
|
378
388
|
|
|
379
|
-
[data-ui
|
|
389
|
+
[data-ui-app-shell] [data-part-brand] {
|
|
380
390
|
align-items: center;
|
|
381
391
|
display: flex;
|
|
382
392
|
flex: 0 1 auto;
|
|
@@ -395,13 +405,13 @@
|
|
|
395
405
|
* shortens instead; the control is exempt, because a control that shrinks
|
|
396
406
|
* below its target is a defect of a different kind.
|
|
397
407
|
*/
|
|
398
|
-
[data-ui
|
|
408
|
+
[data-ui-app-shell] [data-part-brand] > *:not([data-part-nav-toggle]) {
|
|
399
409
|
min-inline-size: 0;
|
|
400
410
|
overflow: var(--slotted-app-shell-brand-overflow, hidden);
|
|
401
411
|
text-overflow: ellipsis;
|
|
402
412
|
white-space: var(--slotted-app-shell-brand-wrap, nowrap);
|
|
403
413
|
}
|
|
404
|
-
[data-ui
|
|
414
|
+
[data-ui-app-shell] > [data-part-banner] > [data-part-actions] {
|
|
405
415
|
align-items: center;
|
|
406
416
|
display: flex;
|
|
407
417
|
flex: 0 1 auto;
|
|
@@ -414,9 +424,9 @@
|
|
|
414
424
|
* A control keeps its width. Left to shrink with the cluster, a button in a
|
|
415
425
|
* bar too narrow for it broke its own label one letter per line, which is a
|
|
416
426
|
* defect of a different kind from a bar that has run out of room. What runs
|
|
417
|
-
* out of room is the middle, which is what `
|
|
427
|
+
* out of room is the middle, which is what `center` is for.
|
|
418
428
|
*/
|
|
419
|
-
[data-ui
|
|
429
|
+
[data-ui-app-shell] > [data-part-banner] > [data-part-actions] > * {
|
|
420
430
|
flex-shrink: 0;
|
|
421
431
|
}
|
|
422
432
|
|
|
@@ -428,7 +438,7 @@
|
|
|
428
438
|
* is the consumer's; that it may be narrower than what it holds is the
|
|
429
439
|
* shell's, for the reason `actions` carries `min-inline-size: 0`.
|
|
430
440
|
*/
|
|
431
|
-
[data-ui
|
|
441
|
+
[data-ui-app-shell] > [data-part-banner] > [data-part-center] {
|
|
432
442
|
align-items: center;
|
|
433
443
|
display: flex;
|
|
434
444
|
flex: 1 1 auto;
|
|
@@ -442,7 +452,7 @@
|
|
|
442
452
|
* destination shows at that width — a mark alone, a mark and a word — is
|
|
443
453
|
* `side-navigation`'s decision to take against the room it has.
|
|
444
454
|
*/
|
|
445
|
-
[data-ui
|
|
455
|
+
[data-ui-app-shell] > [data-part-nav] {
|
|
446
456
|
background-color: var(--slotted-app-shell-nav-surface, transparent);
|
|
447
457
|
box-sizing: border-box;
|
|
448
458
|
color: var(
|
|
@@ -487,25 +497,43 @@
|
|
|
487
497
|
* two-line block its own air; without it both were crushed against the group
|
|
488
498
|
* heading below and the frame's footer beneath.
|
|
489
499
|
*/
|
|
490
|
-
[data-ui
|
|
491
|
-
[data-ui
|
|
500
|
+
[data-ui-app-shell] > [data-part-nav] > [data-part-nav-header],
|
|
501
|
+
[data-ui-app-shell] > [data-part-nav] > [data-part-nav-footer] {
|
|
492
502
|
align-items: center;
|
|
493
503
|
display: flex;
|
|
494
504
|
flex: 0 0 auto;
|
|
495
505
|
gap: var(--_row-gap);
|
|
496
506
|
min-block-size: var(--_rail-size);
|
|
497
507
|
min-inline-size: 0;
|
|
508
|
+
/**
|
|
509
|
+
* The gutter the body reserves, reserved here too. `scrollbar-gutter`
|
|
510
|
+
* applies to a scroll container only, and `hidden` is the overflow that
|
|
511
|
+
* makes one without a bar of its own: with classic scrollbars the body's
|
|
512
|
+
* content box ended one bar width (10px in Chrome) before the head's and
|
|
513
|
+
* the foot's. Nothing is clipped that was drawn before: the ring inset
|
|
514
|
+
* keeps a control's focus ring inside the padding box. The bar's width is
|
|
515
|
+
* the body's, or the gutter is the platform's full bar (15px in Chrome).
|
|
516
|
+
*/
|
|
517
|
+
overflow: hidden;
|
|
498
518
|
padding-block: var(--_row-inset);
|
|
519
|
+
scrollbar-gutter: stable;
|
|
520
|
+
scrollbar-width: thin;
|
|
499
521
|
}
|
|
500
522
|
/**
|
|
501
523
|
* The inset is the rows', not the region's: on the parts, a seam drawn by
|
|
502
524
|
* one of them — the rule over the foot — still runs the column's full width,
|
|
503
525
|
* and a strip of the rail's own beside the column needs none.
|
|
504
526
|
*/
|
|
505
|
-
[data-ui
|
|
506
|
-
> [data-part
|
|
507
|
-
> :is([data-part
|
|
508
|
-
|
|
527
|
+
[data-ui-app-shell]
|
|
528
|
+
> [data-part-nav]
|
|
529
|
+
> :is([data-part-nav-header], [data-part-nav-body], [data-part-nav-footer]) {
|
|
530
|
+
/**
|
|
531
|
+
* Published where it pads, beside the row geometry the root publishes:
|
|
532
|
+
* `side-navigation` reads it to keep its rows' box on the edge it had,
|
|
533
|
+
* and a row it reaches outside these parts reads nothing.
|
|
534
|
+
*/
|
|
535
|
+
--slotted-app-shell-row-ring-inset: var(--_row-ring-inset);
|
|
536
|
+
padding-inline: calc(var(--_nav-inset) + var(--_row-ring-inset));
|
|
509
537
|
}
|
|
510
538
|
/**
|
|
511
539
|
* The body scrolls the way `scroll-area` scrolls, and for the reasons written
|
|
@@ -513,7 +541,7 @@
|
|
|
513
541
|
* list overflows, so a destination added at the bottom moves no row
|
|
514
542
|
* sideways. `scrollbar-width: thin` is still the platform's bar — the trough
|
|
515
543
|
* click and the context menu survive — and it is what makes the bar the
|
|
516
|
-
* family's to
|
|
544
|
+
* family's to color: an overlay bar drawn by the platform over the rows sat
|
|
517
545
|
* on the chevron of every parent, because a row ends one inset from the
|
|
518
546
|
* column's edge and the platform's bar is wider than that inset. A thin
|
|
519
547
|
* classic bar stands in the gutter instead, beside the rows.
|
|
@@ -522,7 +550,7 @@
|
|
|
522
550
|
* between open and rail, the rows stand wider than the body, and an `auto`
|
|
523
551
|
* inline axis drew a horizontal bar for the length of the transition.
|
|
524
552
|
*/
|
|
525
|
-
[data-ui
|
|
553
|
+
[data-ui-app-shell] > [data-part-nav] > [data-part-nav-body] {
|
|
526
554
|
align-items: stretch;
|
|
527
555
|
display: flex;
|
|
528
556
|
flex: 1 1 auto;
|
|
@@ -540,7 +568,7 @@
|
|
|
540
568
|
scrollbar-width: thin;
|
|
541
569
|
}
|
|
542
570
|
|
|
543
|
-
[data-ui
|
|
571
|
+
[data-ui-app-shell] > [data-part-main] {
|
|
544
572
|
background-color: var(
|
|
545
573
|
--slotted-app-shell-main-surface,
|
|
546
574
|
var(--slotted-app-shell-canvas, var(--slotted-surface, Canvas))
|
|
@@ -560,7 +588,7 @@
|
|
|
560
588
|
min-block-size: 0;
|
|
561
589
|
min-inline-size: 0;
|
|
562
590
|
}
|
|
563
|
-
[data-ui
|
|
591
|
+
[data-ui-app-shell][data-scroll='content'] > [data-part-main] {
|
|
564
592
|
overflow: auto;
|
|
565
593
|
}
|
|
566
594
|
|
|
@@ -577,7 +605,7 @@
|
|
|
577
605
|
* Strict containment keeps the travelling bar's per-frame layout inside
|
|
578
606
|
* this box, and its paint inside the corners.
|
|
579
607
|
*/
|
|
580
|
-
[data-ui
|
|
608
|
+
[data-ui-app-shell] > [data-part-progress] {
|
|
581
609
|
contain: strict;
|
|
582
610
|
grid-area: 2 / 2 / 3 / 3;
|
|
583
611
|
inset-block-start: calc(-1 * var(--_progress-lift, 0px));
|
|
@@ -593,15 +621,15 @@
|
|
|
593
621
|
* with it; the bar holds the top of the viewport once the banner, which is
|
|
594
622
|
* not sticky there, has gone.
|
|
595
623
|
*/
|
|
596
|
-
[data-ui
|
|
624
|
+
[data-ui-app-shell][data-scroll='document'] > [data-part-progress] {
|
|
597
625
|
--slotted-progress-indicator-position: sticky;
|
|
598
626
|
}
|
|
599
627
|
|
|
600
628
|
/** A skip link's destination takes focus; it draws no ring for a pointer. */
|
|
601
|
-
[data-ui
|
|
629
|
+
[data-ui-app-shell] > [data-part-main]:focus {
|
|
602
630
|
outline: none;
|
|
603
631
|
}
|
|
604
|
-
[data-ui
|
|
632
|
+
[data-ui-app-shell] > [data-part-main]:focus-visible {
|
|
605
633
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
606
634
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
607
635
|
}
|
|
@@ -616,7 +644,7 @@
|
|
|
616
644
|
* the thing it shows or nothing — and a region at nought pixels that still
|
|
617
645
|
* lays its children out puts content outside the box that owns it.
|
|
618
646
|
*/
|
|
619
|
-
[data-ui
|
|
647
|
+
[data-ui-app-shell] > [data-part-aside] {
|
|
620
648
|
background-color: var(
|
|
621
649
|
--slotted-app-shell-aside-surface,
|
|
622
650
|
var(--slotted-app-shell-canvas, var(--slotted-surface, Canvas))
|
|
@@ -632,10 +660,10 @@
|
|
|
632
660
|
min-block-size: 0;
|
|
633
661
|
min-inline-size: 0;
|
|
634
662
|
}
|
|
635
|
-
[data-ui
|
|
663
|
+
[data-ui-app-shell][data-scroll='content'] > [data-part-aside] {
|
|
636
664
|
overflow: auto;
|
|
637
665
|
}
|
|
638
|
-
[data-ui
|
|
666
|
+
[data-ui-app-shell]:not([data-aside-mode='overlay']) > [data-part-aside]:not([data-open]) {
|
|
639
667
|
display: none;
|
|
640
668
|
}
|
|
641
669
|
|
|
@@ -646,8 +674,8 @@
|
|
|
646
674
|
* foot holds the actions that close its task. Both stand on the row inset
|
|
647
675
|
* plus the edge, so the title's left edge is the content card's.
|
|
648
676
|
*/
|
|
649
|
-
[data-ui
|
|
650
|
-
[data-ui
|
|
677
|
+
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-header],
|
|
678
|
+
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-footer] {
|
|
651
679
|
align-items: center;
|
|
652
680
|
display: flex;
|
|
653
681
|
flex: 0 0 auto;
|
|
@@ -657,18 +685,18 @@
|
|
|
657
685
|
padding-block: var(--_row-inset);
|
|
658
686
|
padding-inline: calc(var(--_row-inset) + var(--_row-gap));
|
|
659
687
|
}
|
|
660
|
-
[data-ui
|
|
688
|
+
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-header] {
|
|
661
689
|
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
662
690
|
}
|
|
663
691
|
/** The title takes the room and the control keeps its own. */
|
|
664
|
-
[data-ui
|
|
692
|
+
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-header] > :not([data-part]) {
|
|
665
693
|
flex: 1 1 auto;
|
|
666
694
|
min-inline-size: 0;
|
|
667
695
|
overflow: hidden;
|
|
668
696
|
text-overflow: ellipsis;
|
|
669
697
|
white-space: nowrap;
|
|
670
698
|
}
|
|
671
|
-
[data-ui
|
|
699
|
+
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-footer] {
|
|
672
700
|
justify-content: flex-end;
|
|
673
701
|
}
|
|
674
702
|
/**
|
|
@@ -676,7 +704,7 @@
|
|
|
676
704
|
* stands on the inset the head and the foot stand on, so what it holds lines
|
|
677
705
|
* up with the pane's title and no consumer pads it by hand.
|
|
678
706
|
*/
|
|
679
|
-
[data-ui
|
|
707
|
+
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-body] {
|
|
680
708
|
flex: 1 1 auto;
|
|
681
709
|
min-block-size: 0;
|
|
682
710
|
min-inline-size: 0;
|
|
@@ -692,7 +720,7 @@
|
|
|
692
720
|
scrollbar-width: thin;
|
|
693
721
|
}
|
|
694
722
|
/* Content that brings its own inset — a page, a detail panel, a list to the edges. */
|
|
695
|
-
[data-ui
|
|
723
|
+
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-body][data-inset='none'] {
|
|
696
724
|
padding: 0;
|
|
697
725
|
}
|
|
698
726
|
|
|
@@ -707,49 +735,103 @@
|
|
|
707
735
|
* under `scroll="content"`, and a scroll container clips what stands outside
|
|
708
736
|
* it. The strip is the rows' own inset wide, so it covers padding and no
|
|
709
737
|
* content. `::before` is the reach, transparent and the WCAG 2.2 floor wide.
|
|
710
|
-
*
|
|
711
|
-
*
|
|
738
|
+
* Where the pane is a column the strip moves onto the seam or the gutter
|
|
739
|
+
* (the wide query below).
|
|
740
|
+
*
|
|
741
|
+
* It draws the `splitter` family's mark from that family's tokens: two
|
|
742
|
+
* hairlines fading away from a grip, visible at rest. Under the hand, the
|
|
743
|
+
* drag and the keyboard the lines run the strip in the active step, and the
|
|
744
|
+
* keyboard alone adds the ring. The measures are `splitter.css`'s.
|
|
712
745
|
*/
|
|
713
|
-
[data-ui
|
|
746
|
+
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-resizer] {
|
|
714
747
|
--_resizer-thickness: var(--slotted-space-6, 1rem);
|
|
715
748
|
--_resizer-reach: var(--slotted-target-min, 24px);
|
|
749
|
+
--_resizer-gap: min(var(--slotted-space-9, 2rem), 12%);
|
|
750
|
+
--_resizer-dot: var(--slotted-space-2, 0.25rem);
|
|
751
|
+
--_resizer-rest: var(--slotted-splitter-line-color, var(--slotted-border-strong, ButtonBorder));
|
|
752
|
+
--_resizer-active: var(
|
|
753
|
+
--slotted-splitter-line-active-color,
|
|
754
|
+
var(--slotted-text-muted, ButtonText)
|
|
755
|
+
);
|
|
756
|
+
align-items: center;
|
|
716
757
|
background: transparent;
|
|
717
|
-
border: 0 solid transparent;
|
|
718
|
-
border-inline-start-width: var(--slotted-border-width-thick, 2px);
|
|
719
758
|
box-sizing: border-box;
|
|
720
759
|
cursor: col-resize;
|
|
721
760
|
display: none;
|
|
761
|
+
flex-direction: column;
|
|
762
|
+
gap: var(--_resizer-gap);
|
|
722
763
|
inline-size: var(--_resizer-thickness);
|
|
723
764
|
inset-block: 0;
|
|
724
765
|
inset-inline-start: 0;
|
|
766
|
+
justify-content: center;
|
|
725
767
|
position: absolute;
|
|
726
768
|
touch-action: none;
|
|
727
|
-
transition:
|
|
769
|
+
transition: gap var(--_duration) var(--_easing);
|
|
728
770
|
z-index: 1;
|
|
729
771
|
}
|
|
730
|
-
[data-ui
|
|
731
|
-
border-inline-end-width: var(--slotted-border-width-thick, 2px);
|
|
732
|
-
border-inline-start-width: 0;
|
|
772
|
+
[data-ui-app-shell][data-nav-side='end'] > [data-part-aside] > [data-part-aside-resizer] {
|
|
733
773
|
inset-inline-end: 0;
|
|
734
774
|
inset-inline-start: auto;
|
|
735
775
|
}
|
|
736
|
-
[data-ui
|
|
776
|
+
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-resizer]::before {
|
|
737
777
|
content: '';
|
|
738
778
|
inset-block: 0;
|
|
739
779
|
inset-inline: calc((var(--_resizer-reach) - var(--_resizer-thickness)) / -2);
|
|
740
780
|
position: absolute;
|
|
741
781
|
}
|
|
742
|
-
[data-ui
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
--
|
|
749
|
-
var(--
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
782
|
+
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-resizer] > [data-part-line] {
|
|
783
|
+
border-radius: var(--slotted-radius-sm, 2px);
|
|
784
|
+
flex: 0 1 min(var(--slotted-space-12, 4rem), 20%);
|
|
785
|
+
inline-size: var(--slotted-border-width-thin, 1px);
|
|
786
|
+
min-block-size: 0;
|
|
787
|
+
transition:
|
|
788
|
+
flex-basis var(--_duration) var(--_easing),
|
|
789
|
+
background-color var(--_duration) var(--_easing);
|
|
790
|
+
}
|
|
791
|
+
[data-ui-app-shell]
|
|
792
|
+
> [data-part-aside]
|
|
793
|
+
> [data-part-aside-resizer]
|
|
794
|
+
> [data-part-line]:first-child {
|
|
795
|
+
background: linear-gradient(to bottom, transparent, var(--_resizer-rest));
|
|
796
|
+
}
|
|
797
|
+
[data-ui-app-shell]
|
|
798
|
+
> [data-part-aside]
|
|
799
|
+
> [data-part-aside-resizer]
|
|
800
|
+
> [data-part-line]:last-child {
|
|
801
|
+
background: linear-gradient(to top, transparent, var(--_resizer-rest));
|
|
802
|
+
}
|
|
803
|
+
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-resizer] > [data-part-grip] {
|
|
804
|
+
background-image: radial-gradient(circle at center, currentColor 40%, transparent 42%);
|
|
805
|
+
background-repeat: repeat;
|
|
806
|
+
background-size: var(--_resizer-dot) var(--_resizer-dot);
|
|
807
|
+
block-size: calc(3 * var(--_resizer-dot));
|
|
808
|
+
color: var(--_resizer-rest);
|
|
809
|
+
flex: none;
|
|
810
|
+
inline-size: calc(2 * var(--_resizer-dot));
|
|
811
|
+
transition: color var(--_duration) var(--_easing);
|
|
812
|
+
}
|
|
813
|
+
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-resizer]:not([data-disabled]):hover,
|
|
814
|
+
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-resizer]:focus-visible,
|
|
815
|
+
[data-ui-app-shell][data-dragging] > [data-part-aside] > [data-part-aside-resizer] {
|
|
816
|
+
--_resizer-gap: var(--slotted-space-4, 0.5rem);
|
|
817
|
+
--_resizer-rest: var(--_resizer-active);
|
|
818
|
+
}
|
|
819
|
+
[data-ui-app-shell]
|
|
820
|
+
> [data-part-aside]
|
|
821
|
+
> [data-part-aside-resizer]:not([data-disabled]):hover
|
|
822
|
+
> [data-part-line],
|
|
823
|
+
[data-ui-app-shell]
|
|
824
|
+
> [data-part-aside]
|
|
825
|
+
> [data-part-aside-resizer]:focus-visible
|
|
826
|
+
> [data-part-line],
|
|
827
|
+
[data-ui-app-shell][data-dragging]
|
|
828
|
+
> [data-part-aside]
|
|
829
|
+
> [data-part-aside-resizer]
|
|
830
|
+
> [data-part-line] {
|
|
831
|
+
background: var(--_resizer-active);
|
|
832
|
+
flex-basis: 100%;
|
|
833
|
+
}
|
|
834
|
+
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-resizer]:focus-visible {
|
|
753
835
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
754
836
|
outline-offset: calc(-1 * var(--slotted-focus-ring-offset, 2px));
|
|
755
837
|
}
|
|
@@ -758,10 +840,10 @@
|
|
|
758
840
|
* The application's own footer, and the one region a product most often does
|
|
759
841
|
* not have: a bar across the bottom of every route costs a row of the screen
|
|
760
842
|
* for a version string. It exists because `contentinfo` has to be reachable
|
|
761
|
-
* where a product does have one — a
|
|
843
|
+
* where a product does have one — a license, a status, an environment — and
|
|
762
844
|
* it takes only the height of its own line.
|
|
763
845
|
*/
|
|
764
|
-
[data-ui
|
|
846
|
+
[data-ui-app-shell] > [data-part-footer] {
|
|
765
847
|
align-items: center;
|
|
766
848
|
background-color: var(--slotted-app-shell-footer-surface, transparent);
|
|
767
849
|
color: var(
|
|
@@ -783,7 +865,7 @@
|
|
|
783
865
|
* it. What it is a containing block for is the shell rather than the
|
|
784
866
|
* viewport, because `container-type` contains layout.
|
|
785
867
|
*/
|
|
786
|
-
[data-ui
|
|
868
|
+
[data-ui-app-shell] > [data-part-layer] {
|
|
787
869
|
display: contents;
|
|
788
870
|
}
|
|
789
871
|
|
|
@@ -792,12 +874,12 @@
|
|
|
792
874
|
/**
|
|
793
875
|
* Everything the frame holds is a box inset from it by the gutter, and the
|
|
794
876
|
* gutter is a *margin* rather than padding on purpose: the navigation's own
|
|
795
|
-
* box is then the strip a reader sees, so a rail is
|
|
877
|
+
* box is then the strip a reader sees, so a rail is centerd in itself rather
|
|
796
878
|
* than being a column with its air on one side. That was the reviewer's
|
|
797
879
|
* finding — the closed strip had twelve pixels to its right, where the
|
|
798
880
|
* content card begins, and nothing to its left.
|
|
799
881
|
*/
|
|
800
|
-
[data-ui
|
|
882
|
+
[data-ui-app-shell][data-canvas='inset'] > [data-part-nav] {
|
|
801
883
|
/* The navigation stands on the sunken frame, which the secondary tone's
|
|
802
884
|
hover is 0.011 lighter than in the light scheme: a row's hover was the
|
|
803
885
|
frame itself. Both steps are recomputed from the ground it stands on. */
|
|
@@ -818,23 +900,23 @@
|
|
|
818
900
|
margin-block: var(--_gutter);
|
|
819
901
|
margin-inline-start: var(--_gutter);
|
|
820
902
|
}
|
|
821
|
-
[data-ui
|
|
822
|
-
[data-ui
|
|
823
|
-
[data-ui
|
|
824
|
-
[data-ui
|
|
903
|
+
[data-ui-app-shell][data-canvas='floating'] > [data-part-main],
|
|
904
|
+
[data-ui-app-shell][data-canvas='floating'] > [data-part-aside],
|
|
905
|
+
[data-ui-app-shell][data-canvas='inset'] > [data-part-main],
|
|
906
|
+
[data-ui-app-shell][data-canvas='inset'] > [data-part-aside] {
|
|
825
907
|
border: var(--_rule-width) solid var(--_rule);
|
|
826
908
|
border-radius: var(--_radius);
|
|
827
909
|
box-shadow: var(--_elevation);
|
|
828
910
|
margin-block: var(--_gutter);
|
|
829
911
|
margin-inline: var(--_gutter);
|
|
830
912
|
}
|
|
831
|
-
[data-ui
|
|
832
|
-
[data-ui
|
|
913
|
+
[data-ui-app-shell][data-canvas='floating'] > [data-part-aside],
|
|
914
|
+
[data-ui-app-shell][data-canvas='inset'] > [data-part-aside] {
|
|
833
915
|
margin-inline-start: 0;
|
|
834
916
|
}
|
|
835
|
-
[data-ui
|
|
836
|
-
[data-ui
|
|
837
|
-
[data-ui
|
|
917
|
+
[data-ui-app-shell][data-canvas='floating'] > [data-part-footer],
|
|
918
|
+
[data-ui-app-shell][data-canvas='panel'] > [data-part-footer],
|
|
919
|
+
[data-ui-app-shell][data-canvas='inset'] > [data-part-footer] {
|
|
838
920
|
padding-block-start: 0;
|
|
839
921
|
}
|
|
840
922
|
/**
|
|
@@ -845,8 +927,8 @@
|
|
|
845
927
|
* for the seam the gutter used to draw. Keyed on the mode, as every layer
|
|
846
928
|
* rule is; the width answers only for a shell not yet measured, below.
|
|
847
929
|
*/
|
|
848
|
-
[data-ui
|
|
849
|
-
[data-ui
|
|
930
|
+
[data-ui-app-shell][data-canvas='floating'][data-nav-mode='overlay'] > [data-part-main],
|
|
931
|
+
[data-ui-app-shell][data-canvas='inset'][data-nav-mode='overlay'] > [data-part-main] {
|
|
850
932
|
border-block-end: 0;
|
|
851
933
|
border-inline: 0;
|
|
852
934
|
border-radius: 0;
|
|
@@ -861,33 +943,33 @@
|
|
|
861
943
|
* carries the ground. Stated as the same six properties, so a product that
|
|
862
944
|
* repaints one region keeps its choice under either plane.
|
|
863
945
|
*/
|
|
864
|
-
[data-ui
|
|
946
|
+
[data-ui-app-shell][data-canvas='flush'] {
|
|
865
947
|
--_edge: var(--_row-inset);
|
|
866
948
|
--_nav-edges: var(--_seam-width);
|
|
867
949
|
--_nav-inset: var(--_row-inset);
|
|
868
950
|
}
|
|
869
|
-
[data-ui
|
|
951
|
+
[data-ui-app-shell][data-canvas='flush'] > [data-part-banner] {
|
|
870
952
|
background-color: var(
|
|
871
953
|
--slotted-app-shell-banner-surface,
|
|
872
954
|
var(--slotted-app-shell-canvas, var(--slotted-surface, Canvas))
|
|
873
955
|
);
|
|
874
956
|
}
|
|
875
|
-
[data-ui
|
|
957
|
+
[data-ui-app-shell][data-canvas='flush'] > [data-part-nav] {
|
|
876
958
|
background-color: var(
|
|
877
959
|
--slotted-app-shell-nav-surface,
|
|
878
960
|
var(--slotted-app-shell-canvas, var(--slotted-surface, Canvas))
|
|
879
961
|
);
|
|
880
962
|
}
|
|
881
|
-
[data-ui
|
|
963
|
+
[data-ui-app-shell][data-canvas='flush'] > [data-part-main] {
|
|
882
964
|
background-color: var(--slotted-app-shell-main-surface, transparent);
|
|
883
965
|
}
|
|
884
|
-
[data-ui
|
|
966
|
+
[data-ui-app-shell][data-canvas='flush'] > [data-part-aside] {
|
|
885
967
|
background-color: var(
|
|
886
968
|
--slotted-app-shell-aside-surface,
|
|
887
969
|
var(--slotted-app-shell-canvas, var(--slotted-surface, Canvas))
|
|
888
970
|
);
|
|
889
971
|
}
|
|
890
|
-
[data-ui
|
|
972
|
+
[data-ui-app-shell][data-canvas='flush'] > [data-part-footer] {
|
|
891
973
|
background-color: var(
|
|
892
974
|
--slotted-app-shell-footer-surface,
|
|
893
975
|
var(--slotted-app-shell-canvas, var(--slotted-surface, Canvas))
|
|
@@ -896,36 +978,36 @@
|
|
|
896
978
|
/**
|
|
897
979
|
* Block air, the gutter; inline air, the row inset on both sides, from
|
|
898
980
|
* `--_nav-inset`. A padding on one side alone is what put the closed strip
|
|
899
|
-
* off-
|
|
981
|
+
* off-center on this plane once; none at all put every row's ground against
|
|
900
982
|
* the screen's edge and against the seam.
|
|
901
983
|
*/
|
|
902
|
-
[data-ui
|
|
984
|
+
[data-ui-app-shell][data-canvas='flush'] > [data-part-nav] {
|
|
903
985
|
padding-block: var(--_gutter);
|
|
904
986
|
}
|
|
905
|
-
[data-ui
|
|
987
|
+
[data-ui-app-shell][data-canvas='flush'] > [data-part-banner] {
|
|
906
988
|
border-block-end: var(--_seam);
|
|
907
989
|
}
|
|
908
|
-
[data-ui
|
|
990
|
+
[data-ui-app-shell][data-canvas='flush'] > [data-part-footer] {
|
|
909
991
|
border-block-start: var(--_seam);
|
|
910
992
|
}
|
|
911
|
-
[data-ui
|
|
993
|
+
[data-ui-app-shell][data-canvas='flush'] > [data-part-aside] {
|
|
912
994
|
border-block-start: var(--_seam);
|
|
913
995
|
}
|
|
914
996
|
/* The seams inside a region: wherever regions touch without a gutter, which
|
|
915
997
|
is every seam of `flush` and every seam inside the `panel` card. */
|
|
916
|
-
[data-ui
|
|
917
|
-
> [data-part
|
|
918
|
-
> [data-part
|
|
998
|
+
[data-ui-app-shell]:is([data-canvas='flush'], [data-canvas='panel'])
|
|
999
|
+
> [data-part-nav]
|
|
1000
|
+
> [data-part-nav-footer] {
|
|
919
1001
|
border-block-start: var(--_seam);
|
|
920
1002
|
}
|
|
921
|
-
[data-ui
|
|
922
|
-
> [data-part
|
|
923
|
-
> [data-part
|
|
1003
|
+
[data-ui-app-shell]:is([data-canvas='flush'], [data-canvas='panel'])
|
|
1004
|
+
> [data-part-aside]
|
|
1005
|
+
> [data-part-aside-header] {
|
|
924
1006
|
border-block-end: var(--_seam);
|
|
925
1007
|
}
|
|
926
|
-
[data-ui
|
|
927
|
-
> [data-part
|
|
928
|
-
> [data-part
|
|
1008
|
+
[data-ui-app-shell]:is([data-canvas='flush'], [data-canvas='panel'])
|
|
1009
|
+
> [data-part-aside]
|
|
1010
|
+
> [data-part-aside-footer] {
|
|
929
1011
|
border-block-start: var(--_seam);
|
|
930
1012
|
}
|
|
931
1013
|
|
|
@@ -939,7 +1021,7 @@
|
|
|
939
1021
|
* mark column and a row's inset each side, and the card's edge is added to
|
|
940
1022
|
* it rather than taken from the marks.
|
|
941
1023
|
*/
|
|
942
|
-
[data-ui
|
|
1024
|
+
[data-ui-app-shell][data-canvas='floating'] > [data-part-nav] {
|
|
943
1025
|
background-color: var(
|
|
944
1026
|
--slotted-app-shell-nav-surface,
|
|
945
1027
|
var(--slotted-app-shell-canvas, var(--slotted-surface, Canvas))
|
|
@@ -952,12 +1034,12 @@
|
|
|
952
1034
|
}
|
|
953
1035
|
/* A card has an edge the column never had: the rows stand one inset in, as
|
|
954
1036
|
they do on the overlay card, and the bar's rows stand over them. */
|
|
955
|
-
[data-ui
|
|
1037
|
+
[data-ui-app-shell][data-canvas='floating'] {
|
|
956
1038
|
--_edge: calc(var(--_gutter) + var(--_rule-width) + var(--_row-inset));
|
|
957
1039
|
--_nav-edges: calc(2 * var(--_rule-width));
|
|
958
1040
|
--_nav-inset: var(--_row-inset);
|
|
959
1041
|
}
|
|
960
|
-
[data-ui
|
|
1042
|
+
[data-ui-app-shell][data-canvas='floating'][data-nav-side='end'] > [data-part-nav] {
|
|
961
1043
|
margin-inline: 0 var(--_gutter);
|
|
962
1044
|
}
|
|
963
1045
|
|
|
@@ -976,11 +1058,11 @@
|
|
|
976
1058
|
* A layer is a phone's arrangement, and a phone has no room for a frame: the
|
|
977
1059
|
* card goes wherever the navigation is a layer, as the inset card does.
|
|
978
1060
|
*/
|
|
979
|
-
[data-ui
|
|
1061
|
+
[data-ui-app-shell]:is(
|
|
980
1062
|
[data-canvas='floating'],
|
|
981
1063
|
[data-canvas='inset']
|
|
982
1064
|
)[data-primary='main']::before,
|
|
983
|
-
[data-ui
|
|
1065
|
+
[data-ui-app-shell][data-canvas='panel']::before {
|
|
984
1066
|
background-color: var(
|
|
985
1067
|
--slotted-app-shell-main-surface,
|
|
986
1068
|
var(--slotted-app-shell-canvas, var(--slotted-surface))
|
|
@@ -993,17 +1075,14 @@
|
|
|
993
1075
|
margin: var(--_gutter);
|
|
994
1076
|
min-inline-size: 0;
|
|
995
1077
|
}
|
|
996
|
-
[data-ui
|
|
1078
|
+
[data-ui-app-shell][data-canvas='panel']::before {
|
|
997
1079
|
grid-area: 2 / 1 / 3 / -1;
|
|
998
1080
|
margin: 0;
|
|
999
1081
|
}
|
|
1000
|
-
[data-ui
|
|
1001
|
-
[data-primary='nav'],
|
|
1002
|
-
[data-primary='main']
|
|
1003
|
-
)::before {
|
|
1082
|
+
[data-ui-app-shell][data-canvas='panel']:is([data-primary='nav'], [data-primary='main'])::before {
|
|
1004
1083
|
grid-area: 1 / 1 / 3 / -1;
|
|
1005
1084
|
}
|
|
1006
|
-
[data-ui
|
|
1085
|
+
[data-ui-app-shell][data-nav-mode='overlay'][data-canvas]::before {
|
|
1007
1086
|
content: none;
|
|
1008
1087
|
}
|
|
1009
1088
|
|
|
@@ -1015,37 +1094,37 @@
|
|
|
1015
1094
|
* and keeps its ground with the card's lower corners. Between them is a
|
|
1016
1095
|
* seam, and `separation` decides it.
|
|
1017
1096
|
*/
|
|
1018
|
-
[data-ui
|
|
1019
|
-
> [data-part
|
|
1097
|
+
[data-ui-app-shell]:is([data-canvas='floating'], [data-canvas='inset'])[data-primary='main']
|
|
1098
|
+
> [data-part-banner] {
|
|
1020
1099
|
margin-block-start: calc(var(--_gutter) + var(--_rule-width));
|
|
1021
1100
|
margin-inline: calc(var(--_gutter) + var(--_rule-width));
|
|
1022
1101
|
padding-inline: 0;
|
|
1023
1102
|
}
|
|
1024
|
-
[data-ui
|
|
1025
|
-
> [data-part
|
|
1103
|
+
[data-ui-app-shell]:is([data-canvas='floating'], [data-canvas='inset'])[data-primary='main']
|
|
1104
|
+
> [data-part-main] {
|
|
1026
1105
|
border: none;
|
|
1027
1106
|
border-radius: 0 0 var(--_inner-radius) var(--_inner-radius);
|
|
1028
1107
|
box-shadow: none;
|
|
1029
1108
|
margin-block: 0 calc(var(--_gutter) + var(--_rule-width));
|
|
1030
1109
|
margin-inline: calc(var(--_gutter) + var(--_rule-width));
|
|
1031
1110
|
}
|
|
1032
|
-
[data-ui
|
|
1033
|
-
[data-ui
|
|
1034
|
-
[data-ui
|
|
1035
|
-
[data-ui
|
|
1036
|
-
> [data-part
|
|
1111
|
+
[data-ui-app-shell][data-primary='main'] > [data-part-banner],
|
|
1112
|
+
[data-ui-app-shell][data-primary='main'][data-nav-side='end'] > [data-part-banner],
|
|
1113
|
+
[data-ui-app-shell][data-canvas='panel'][data-primary='nav'] > [data-part-banner],
|
|
1114
|
+
[data-ui-app-shell][data-canvas='panel'][data-primary='nav'][data-nav-side='end']
|
|
1115
|
+
> [data-part-banner] {
|
|
1037
1116
|
border-block-end: var(--_seam);
|
|
1038
1117
|
grid-column: 2 / 3;
|
|
1039
1118
|
}
|
|
1040
|
-
[data-ui
|
|
1119
|
+
[data-ui-app-shell][data-primary='main'][data-nav-mode='overlay'] > [data-part-banner] {
|
|
1041
1120
|
margin: 0;
|
|
1042
1121
|
padding-inline: var(--_edge);
|
|
1043
1122
|
}
|
|
1044
|
-
[data-ui
|
|
1123
|
+
[data-ui-app-shell]:is(
|
|
1045
1124
|
[data-canvas='floating'],
|
|
1046
1125
|
[data-canvas='inset']
|
|
1047
1126
|
)[data-primary='main'][data-nav-mode='overlay']
|
|
1048
|
-
> [data-part
|
|
1127
|
+
> [data-part-main] {
|
|
1049
1128
|
border-radius: 0;
|
|
1050
1129
|
margin: 0;
|
|
1051
1130
|
}
|
|
@@ -1064,80 +1143,80 @@
|
|
|
1064
1143
|
* measured below the compact width keeps it for one frame: the root cannot
|
|
1065
1144
|
* query its own width, and that frame is the cost.
|
|
1066
1145
|
*/
|
|
1067
|
-
[data-ui
|
|
1146
|
+
[data-ui-app-shell][data-canvas='panel'] {
|
|
1068
1147
|
--_edge: calc(var(--_rule-width) + var(--_row-inset));
|
|
1069
1148
|
--_nav-edges: var(--_seam-width);
|
|
1070
1149
|
--_nav-inset: var(--_row-inset);
|
|
1071
1150
|
}
|
|
1072
1151
|
/* Once the navigation is a layer the card beside the bar is gone, and the
|
|
1073
1152
|
bar's rows stand where the inset plane's do. */
|
|
1074
|
-
[data-ui
|
|
1075
|
-
[data-ui
|
|
1153
|
+
[data-ui-app-shell][data-canvas='floating'][data-nav-mode='overlay'],
|
|
1154
|
+
[data-ui-app-shell][data-canvas='panel'][data-nav-mode='overlay'] {
|
|
1076
1155
|
--_edge: var(--_gutter);
|
|
1077
1156
|
}
|
|
1078
|
-
[data-ui
|
|
1157
|
+
[data-ui-app-shell][data-canvas='panel']:not([data-nav-mode='overlay']) {
|
|
1079
1158
|
box-sizing: border-box;
|
|
1080
1159
|
padding-block-end: var(--_gutter);
|
|
1081
1160
|
padding-inline: var(--_gutter);
|
|
1082
1161
|
}
|
|
1083
|
-
[data-ui
|
|
1162
|
+
[data-ui-app-shell][data-canvas='panel']:not([data-nav-mode='overlay']):is(
|
|
1084
1163
|
[data-primary='nav'],
|
|
1085
1164
|
[data-primary='main']
|
|
1086
1165
|
) {
|
|
1087
1166
|
padding-block-start: var(--_gutter);
|
|
1088
1167
|
}
|
|
1089
|
-
[data-ui
|
|
1168
|
+
[data-ui-app-shell][data-canvas='panel']:not([data-nav-mode='overlay']) > [data-part-nav] {
|
|
1090
1169
|
border-end-start-radius: var(--_inner-radius);
|
|
1091
1170
|
border-start-start-radius: var(--_inner-radius);
|
|
1092
1171
|
margin: var(--_rule-width) 0 var(--_rule-width) var(--_rule-width);
|
|
1093
1172
|
}
|
|
1094
|
-
[data-ui
|
|
1095
|
-
> [data-part
|
|
1173
|
+
[data-ui-app-shell][data-canvas='panel']:not([data-nav-mode='overlay'])[data-nav-side='end']
|
|
1174
|
+
> [data-part-nav] {
|
|
1096
1175
|
border-radius: 0 var(--_inner-radius) var(--_inner-radius) 0;
|
|
1097
1176
|
margin: var(--_rule-width) var(--_rule-width) var(--_rule-width) 0;
|
|
1098
1177
|
}
|
|
1099
|
-
[data-ui
|
|
1178
|
+
[data-ui-app-shell][data-canvas='panel']:not([data-nav-mode='overlay']) > [data-part-main] {
|
|
1100
1179
|
border-end-end-radius: var(--_inner-radius);
|
|
1101
1180
|
margin-block-end: var(--_rule-width);
|
|
1102
1181
|
margin-inline-end: var(--_rule-width);
|
|
1103
1182
|
}
|
|
1104
|
-
[data-ui
|
|
1105
|
-
> [data-part
|
|
1183
|
+
[data-ui-app-shell][data-canvas='panel'][data-primary='banner']:not([data-nav-mode='overlay'])
|
|
1184
|
+
> [data-part-main] {
|
|
1106
1185
|
border-start-end-radius: var(--_inner-radius);
|
|
1107
1186
|
margin-block-start: var(--_rule-width);
|
|
1108
1187
|
}
|
|
1109
|
-
[data-ui
|
|
1188
|
+
[data-ui-app-shell][data-canvas='panel']:not([data-nav-mode='overlay']):not(
|
|
1110
1189
|
[data-primary='banner']
|
|
1111
1190
|
)
|
|
1112
|
-
> [data-part
|
|
1191
|
+
> [data-part-banner] {
|
|
1113
1192
|
margin-block-start: var(--_rule-width);
|
|
1114
1193
|
margin-inline-end: var(--_rule-width);
|
|
1115
1194
|
}
|
|
1116
1195
|
/* The corner the content shares with the card is the pane's once the pane
|
|
1117
1196
|
stands beside it. */
|
|
1118
|
-
[data-ui
|
|
1119
|
-
> [data-part
|
|
1197
|
+
[data-ui-app-shell][data-canvas='panel']:not([data-nav-mode='overlay']):has(
|
|
1198
|
+
> [data-part-aside][data-open]
|
|
1120
1199
|
)
|
|
1121
|
-
> [data-part
|
|
1200
|
+
> [data-part-main] {
|
|
1122
1201
|
border-end-end-radius: 0;
|
|
1123
1202
|
border-start-end-radius: 0;
|
|
1124
1203
|
margin-inline-end: 0;
|
|
1125
1204
|
}
|
|
1126
|
-
[data-ui
|
|
1127
|
-
> [data-part
|
|
1205
|
+
[data-ui-app-shell][data-canvas='panel']:not([data-nav-mode='overlay']):has(
|
|
1206
|
+
> [data-part-aside][data-open]
|
|
1128
1207
|
)
|
|
1129
|
-
> [data-part
|
|
1208
|
+
> [data-part-banner] {
|
|
1130
1209
|
margin-inline-end: 0;
|
|
1131
1210
|
}
|
|
1132
|
-
[data-ui
|
|
1211
|
+
[data-ui-app-shell][data-canvas='panel']:not([data-nav-mode='overlay']):not(
|
|
1133
1212
|
[data-aside-mode='overlay']
|
|
1134
1213
|
)
|
|
1135
|
-
> [data-part
|
|
1214
|
+
> [data-part-aside] {
|
|
1136
1215
|
border-end-end-radius: var(--_inner-radius);
|
|
1137
1216
|
border-start-end-radius: var(--_inner-radius);
|
|
1138
1217
|
margin: var(--_rule-width) var(--_rule-width) var(--_rule-width) 0;
|
|
1139
1218
|
}
|
|
1140
|
-
[data-ui
|
|
1219
|
+
[data-ui-app-shell][data-canvas='panel'][data-nav-mode='overlay'] > [data-part-main] {
|
|
1141
1220
|
border-block-start: var(--_rule-width) solid var(--_rule);
|
|
1142
1221
|
}
|
|
1143
1222
|
|
|
@@ -1155,14 +1234,14 @@
|
|
|
1155
1234
|
* gives it once the navigation is a layer — the frame is the box of `main`
|
|
1156
1235
|
* and covers that edge already.
|
|
1157
1236
|
*/
|
|
1158
|
-
[data-ui
|
|
1159
|
-
[data-ui
|
|
1237
|
+
[data-ui-app-shell]:is([data-canvas='flush'], [data-primary='main']),
|
|
1238
|
+
[data-ui-app-shell][data-canvas='panel'][data-primary='nav'] {
|
|
1160
1239
|
--_progress-lift: var(--_seam-width);
|
|
1161
1240
|
}
|
|
1162
|
-
[data-ui
|
|
1241
|
+
[data-ui-app-shell][data-canvas='panel'][data-primary='banner'] {
|
|
1163
1242
|
--_progress-lift: var(--_rule-width);
|
|
1164
1243
|
}
|
|
1165
|
-
[data-ui
|
|
1244
|
+
[data-ui-app-shell][data-canvas='panel'][data-nav-mode='overlay'] {
|
|
1166
1245
|
--_progress-lift: 0px;
|
|
1167
1246
|
}
|
|
1168
1247
|
|
|
@@ -1177,50 +1256,62 @@
|
|
|
1177
1256
|
* their originals in the narrow query below. `app-shell.styles.test.mjs`
|
|
1178
1257
|
* holds every rule that gives `main` a margin or a radius to its twin.
|
|
1179
1258
|
*/
|
|
1180
|
-
[data-ui
|
|
1181
|
-
[data-ui
|
|
1259
|
+
[data-ui-app-shell][data-canvas='floating'] > [data-part-progress],
|
|
1260
|
+
[data-ui-app-shell][data-canvas='inset'] > [data-part-progress] {
|
|
1182
1261
|
border-radius: var(--_radius);
|
|
1183
1262
|
margin-block: var(--_gutter);
|
|
1184
1263
|
margin-inline: var(--_gutter);
|
|
1185
1264
|
}
|
|
1186
|
-
[data-ui
|
|
1187
|
-
[data-ui
|
|
1265
|
+
[data-ui-app-shell][data-canvas='floating'][data-nav-mode='overlay'] > [data-part-progress],
|
|
1266
|
+
[data-ui-app-shell][data-canvas='inset'][data-nav-mode='overlay'] > [data-part-progress] {
|
|
1188
1267
|
border-radius: 0;
|
|
1189
1268
|
margin: 0;
|
|
1190
1269
|
}
|
|
1191
|
-
[data-ui
|
|
1192
|
-
> [data-part
|
|
1270
|
+
[data-ui-app-shell]:is([data-canvas='floating'], [data-canvas='inset'])[data-primary='main']
|
|
1271
|
+
> [data-part-progress] {
|
|
1193
1272
|
border-radius: 0 0 var(--_inner-radius) var(--_inner-radius);
|
|
1194
1273
|
margin-block: 0 calc(var(--_gutter) + var(--_rule-width));
|
|
1195
1274
|
margin-inline: calc(var(--_gutter) + var(--_rule-width));
|
|
1196
1275
|
}
|
|
1197
|
-
[data-ui
|
|
1276
|
+
[data-ui-app-shell]:is(
|
|
1198
1277
|
[data-canvas='floating'],
|
|
1199
1278
|
[data-canvas='inset']
|
|
1200
1279
|
)[data-primary='main'][data-nav-mode='overlay']
|
|
1201
|
-
> [data-part
|
|
1280
|
+
> [data-part-progress] {
|
|
1202
1281
|
border-radius: 0;
|
|
1203
1282
|
margin: 0;
|
|
1204
1283
|
}
|
|
1205
|
-
[data-ui
|
|
1206
|
-
> [data-part='progress'] {
|
|
1284
|
+
[data-ui-app-shell][data-canvas='panel']:not([data-nav-mode='overlay']) > [data-part-progress] {
|
|
1207
1285
|
border-end-end-radius: var(--_inner-radius);
|
|
1208
1286
|
margin-block-end: var(--_rule-width);
|
|
1209
1287
|
margin-inline-end: var(--_rule-width);
|
|
1210
1288
|
}
|
|
1211
|
-
[data-ui
|
|
1212
|
-
> [data-part
|
|
1289
|
+
[data-ui-app-shell][data-canvas='panel'][data-primary='banner']:not([data-nav-mode='overlay'])
|
|
1290
|
+
> [data-part-progress] {
|
|
1213
1291
|
border-start-end-radius: var(--_inner-radius);
|
|
1214
1292
|
margin-block-start: var(--_rule-width);
|
|
1215
1293
|
}
|
|
1216
|
-
[data-ui
|
|
1217
|
-
> [data-part
|
|
1294
|
+
[data-ui-app-shell][data-canvas='panel']:not([data-nav-mode='overlay']):has(
|
|
1295
|
+
> [data-part-aside][data-open]
|
|
1218
1296
|
)
|
|
1219
|
-
> [data-part
|
|
1297
|
+
> [data-part-progress] {
|
|
1220
1298
|
border-end-end-radius: 0;
|
|
1221
1299
|
border-start-end-radius: 0;
|
|
1222
1300
|
margin-inline-end: 0;
|
|
1223
1301
|
}
|
|
1302
|
+
|
|
1303
|
+
/**
|
|
1304
|
+
* The seam re-read in each region's scope. `--_seam` declared on the root
|
|
1305
|
+
* holds the root's `--slotted-app-shell-border-color`, so the property written
|
|
1306
|
+
* on a region recolored nothing. Declared again on every region, the chain
|
|
1307
|
+
* resolves where the region stands: a color written there recolors the
|
|
1308
|
+
* seams the region and its parts draw, and `transparent` removes them. The
|
|
1309
|
+
* tone rules below state the same two declarations at a higher specificity.
|
|
1310
|
+
*/
|
|
1311
|
+
[data-ui-app-shell] > [data-part] {
|
|
1312
|
+
--_rule: var(--slotted-app-shell-border-color, var(--slotted-border-subtle, ButtonBorder));
|
|
1313
|
+
--_seam: var(--_rule-width) solid var(--_rule);
|
|
1314
|
+
}
|
|
1224
1315
|
/* ── Separation by tone ──────────────────────────────────────────────── */
|
|
1225
1316
|
|
|
1226
1317
|
/**
|
|
@@ -1238,11 +1329,12 @@
|
|
|
1238
1329
|
* where it is declared, and a region carrying a scheme of its own must mix
|
|
1239
1330
|
* its own ink.
|
|
1240
1331
|
*/
|
|
1241
|
-
[data-ui
|
|
1332
|
+
[data-ui-app-shell][data-separation='tone'],
|
|
1333
|
+
[data-ui-app-shell][data-separation='tone'] > [data-part] {
|
|
1242
1334
|
--_seam: none;
|
|
1243
1335
|
--_seam-width: 0px;
|
|
1244
1336
|
}
|
|
1245
|
-
[data-ui
|
|
1337
|
+
[data-ui-app-shell][data-canvas='flush'][data-separation='tone'] > [data-part-footer] {
|
|
1246
1338
|
--_ground: var(
|
|
1247
1339
|
--slotted-app-shell-footer-surface,
|
|
1248
1340
|
var(
|
|
@@ -1251,8 +1343,8 @@
|
|
|
1251
1343
|
)
|
|
1252
1344
|
);
|
|
1253
1345
|
}
|
|
1254
|
-
[data-ui
|
|
1255
|
-
> [data-part
|
|
1346
|
+
[data-ui-app-shell][data-canvas='flush'][data-separation='tone']:not([data-primary='main'])
|
|
1347
|
+
> [data-part-banner] {
|
|
1256
1348
|
--_ground: var(
|
|
1257
1349
|
--slotted-app-shell-banner-surface,
|
|
1258
1350
|
var(
|
|
@@ -1261,8 +1353,8 @@
|
|
|
1261
1353
|
)
|
|
1262
1354
|
);
|
|
1263
1355
|
}
|
|
1264
|
-
[data-ui
|
|
1265
|
-
> [data-part
|
|
1356
|
+
[data-ui-app-shell]:is([data-canvas='flush'], [data-canvas='panel'])[data-separation='tone']
|
|
1357
|
+
> [data-part-nav] {
|
|
1266
1358
|
--_ground: var(
|
|
1267
1359
|
--slotted-app-shell-nav-surface,
|
|
1268
1360
|
var(
|
|
@@ -1271,8 +1363,8 @@
|
|
|
1271
1363
|
)
|
|
1272
1364
|
);
|
|
1273
1365
|
}
|
|
1274
|
-
[data-ui
|
|
1275
|
-
> [data-part
|
|
1366
|
+
[data-ui-app-shell]:is([data-canvas='flush'], [data-canvas='panel'])[data-separation='tone']
|
|
1367
|
+
> [data-part-aside] {
|
|
1276
1368
|
--_ground: var(
|
|
1277
1369
|
--slotted-app-shell-aside-surface,
|
|
1278
1370
|
var(
|
|
@@ -1281,18 +1373,18 @@
|
|
|
1281
1373
|
)
|
|
1282
1374
|
);
|
|
1283
1375
|
}
|
|
1284
|
-
[data-ui
|
|
1376
|
+
[data-ui-app-shell][data-separation='tone'] > [data-part-nav] > [data-part-nav-rail] {
|
|
1285
1377
|
--_ground: var(
|
|
1286
1378
|
--slotted-app-shell-tone-surface,
|
|
1287
1379
|
color-mix(in oklab, var(--slotted-surface), var(--slotted-text) 4.5%)
|
|
1288
1380
|
);
|
|
1289
1381
|
}
|
|
1290
|
-
[data-ui
|
|
1291
|
-
> [data-part
|
|
1292
|
-
[data-ui
|
|
1293
|
-
[data-ui
|
|
1294
|
-
> :is([data-part
|
|
1295
|
-
[data-ui
|
|
1382
|
+
[data-ui-app-shell][data-canvas='flush'][data-separation='tone']:not([data-primary='main'])
|
|
1383
|
+
> [data-part-banner],
|
|
1384
|
+
[data-ui-app-shell][data-canvas='flush'][data-separation='tone'] > [data-part-footer],
|
|
1385
|
+
[data-ui-app-shell]:is([data-canvas='flush'], [data-canvas='panel'])[data-separation='tone']
|
|
1386
|
+
> :is([data-part-nav], [data-part-aside]),
|
|
1387
|
+
[data-ui-app-shell][data-separation='tone'] > [data-part-nav] > [data-part-nav-rail] {
|
|
1296
1388
|
--slotted-tone-secondary-subtle-hover: color-mix(
|
|
1297
1389
|
in oklab,
|
|
1298
1390
|
var(--_ground),
|
|
@@ -1308,7 +1400,7 @@
|
|
|
1308
1400
|
}
|
|
1309
1401
|
/* The content keeps the surface under a toned frame: on the flush plane it
|
|
1310
1402
|
carried the sunken ground, which is 0.014 from the tone. */
|
|
1311
|
-
[data-ui
|
|
1403
|
+
[data-ui-app-shell][data-canvas='flush'][data-separation='tone'] > [data-part-main] {
|
|
1312
1404
|
background-color: var(
|
|
1313
1405
|
--slotted-app-shell-main-surface,
|
|
1314
1406
|
var(--slotted-app-shell-canvas, var(--slotted-surface, Canvas))
|
|
@@ -1325,15 +1417,15 @@
|
|
|
1325
1417
|
* the strip: the column is cut by the region's own overflow while the width
|
|
1326
1418
|
* moves, and leaves the tab order and the accessibility tree at the end of
|
|
1327
1419
|
* the move — `visibility` steps at the end on the way out and at the start
|
|
1328
|
-
* on the way in. `:has()`
|
|
1420
|
+
* on the way in. `:has()` recognizes the part, so no script writes an
|
|
1329
1421
|
* attribute and a server render has the grid on its first paint.
|
|
1330
1422
|
*/
|
|
1331
|
-
[data-ui
|
|
1423
|
+
[data-ui-app-shell] > [data-part-nav]:has(> [data-part-nav-rail]) {
|
|
1332
1424
|
display: grid;
|
|
1333
1425
|
grid-template-columns: var(--_rail-size) minmax(var(--_nav-size), 1fr);
|
|
1334
1426
|
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
1335
1427
|
}
|
|
1336
|
-
[data-ui
|
|
1428
|
+
[data-ui-app-shell] > [data-part-nav] > [data-part-nav-rail] {
|
|
1337
1429
|
align-items: center;
|
|
1338
1430
|
border-inline-end: var(--_seam);
|
|
1339
1431
|
box-sizing: border-box;
|
|
@@ -1347,63 +1439,70 @@
|
|
|
1347
1439
|
padding-block: var(--_row-inset);
|
|
1348
1440
|
scrollbar-width: none;
|
|
1349
1441
|
}
|
|
1350
|
-
[data-ui
|
|
1351
|
-
> [data-part='nav']:has(> [data-part='nav-rail'])
|
|
1352
|
-
> [data-part='nav-header'] {
|
|
1442
|
+
[data-ui-app-shell] > [data-part-nav]:has(> [data-part-nav-rail]) > [data-part-nav-header] {
|
|
1353
1443
|
grid-area: 1 / 2 / 2 / 3;
|
|
1354
1444
|
}
|
|
1355
|
-
[data-ui
|
|
1445
|
+
[data-ui-app-shell] > [data-part-nav]:has(> [data-part-nav-rail]) > [data-part-nav-body] {
|
|
1356
1446
|
grid-area: 2 / 2 / 3 / 3;
|
|
1357
1447
|
}
|
|
1358
|
-
[data-ui
|
|
1359
|
-
> [data-part='nav']:has(> [data-part='nav-rail'])
|
|
1360
|
-
> [data-part='nav-footer'] {
|
|
1448
|
+
[data-ui-app-shell] > [data-part-nav]:has(> [data-part-nav-rail]) > [data-part-nav-footer] {
|
|
1361
1449
|
grid-area: 3 / 2 / 4 / 3;
|
|
1362
1450
|
}
|
|
1363
1451
|
/* The strip's rule is an edge, and a row whose ground meets it reads as a
|
|
1364
1452
|
column with no padding. */
|
|
1365
|
-
[data-ui
|
|
1366
|
-
> [data-part
|
|
1367
|
-
> :is([data-part
|
|
1368
|
-
padding-inline-start: var(--_row-inset);
|
|
1453
|
+
[data-ui-app-shell]
|
|
1454
|
+
> [data-part-nav]:has(> [data-part-nav-rail])
|
|
1455
|
+
> :is([data-part-nav-header], [data-part-nav-body], [data-part-nav-footer]) {
|
|
1456
|
+
padding-inline-start: calc(var(--_row-inset) + var(--_row-ring-inset));
|
|
1369
1457
|
transition: visibility var(--_duration) step-start;
|
|
1370
1458
|
}
|
|
1371
|
-
[data-ui
|
|
1372
|
-
> [data-part
|
|
1459
|
+
[data-ui-app-shell][data-nav-mode='inline'][data-open]
|
|
1460
|
+
> [data-part-nav]:has(> [data-part-nav-rail]) {
|
|
1373
1461
|
inline-size: calc(var(--_rail-size) + var(--_nav-size) + var(--_nav-edges));
|
|
1374
1462
|
}
|
|
1375
1463
|
/* Closed, the region is the strip and its edges: the strip holds a row's
|
|
1376
1464
|
inset on each side of its marks already. */
|
|
1377
|
-
[data-ui
|
|
1378
|
-
> [data-part
|
|
1465
|
+
[data-ui-app-shell][data-nav-mode='inline']:not([data-open])
|
|
1466
|
+
> [data-part-nav]:has(> [data-part-nav-rail]) {
|
|
1379
1467
|
inline-size: calc(var(--_rail-size) + var(--_nav-edges));
|
|
1380
1468
|
}
|
|
1381
|
-
[data-ui
|
|
1382
|
-
> [data-part
|
|
1383
|
-
> :is([data-part
|
|
1469
|
+
[data-ui-app-shell][data-nav-mode='inline']:not([data-open])
|
|
1470
|
+
> [data-part-nav]:has(> [data-part-nav-rail])
|
|
1471
|
+
> :is([data-part-nav-header], [data-part-nav-body], [data-part-nav-footer]) {
|
|
1384
1472
|
transition: visibility var(--_duration) step-end;
|
|
1385
1473
|
visibility: hidden;
|
|
1386
1474
|
}
|
|
1387
1475
|
/* A closed strip is the region's edge, and the edge is the plane's to draw. */
|
|
1388
|
-
[data-ui
|
|
1389
|
-
> [data-part
|
|
1390
|
-
> [data-part
|
|
1476
|
+
[data-ui-app-shell][data-nav-mode='inline']:not([data-open])
|
|
1477
|
+
> [data-part-nav]
|
|
1478
|
+
> [data-part-nav-rail] {
|
|
1391
1479
|
border-inline-end: none;
|
|
1392
1480
|
}
|
|
1393
1481
|
|
|
1394
|
-
/* ── Forced
|
|
1482
|
+
/* ── Forced colors ──────────────────────────────────────────────────── */
|
|
1395
1483
|
|
|
1396
1484
|
/**
|
|
1397
1485
|
* Every ground is `Canvas` here, so a tone separates nothing: the seams are
|
|
1398
1486
|
* drawn whatever `separation` says. The theme cannot reach a boundary the
|
|
1399
1487
|
* family draws with a ground, which is the case the briefing allows a family
|
|
1400
|
-
* a forced-
|
|
1488
|
+
* a forced-colors rule of its own for.
|
|
1401
1489
|
*/
|
|
1402
1490
|
@media (forced-colors: active) {
|
|
1403
|
-
[data-ui
|
|
1491
|
+
[data-ui-app-shell][data-separation='tone'],
|
|
1492
|
+
[data-ui-app-shell][data-separation='tone'] > [data-part] {
|
|
1404
1493
|
--_seam: var(--_rule-width) solid CanvasText;
|
|
1405
1494
|
--_seam-width: var(--_rule-width);
|
|
1406
1495
|
}
|
|
1496
|
+
/* A gradient resolves to nothing here, so the edge's mark takes flat system colors. */
|
|
1497
|
+
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-resizer] > [data-part-line] {
|
|
1498
|
+
background: ButtonBorder;
|
|
1499
|
+
forced-color-adjust: none;
|
|
1500
|
+
}
|
|
1501
|
+
[data-ui-app-shell] > [data-part-aside] > [data-part-aside-resizer] > [data-part-grip] {
|
|
1502
|
+
background-color: ButtonBorder;
|
|
1503
|
+
background-image: none;
|
|
1504
|
+
forced-color-adjust: none;
|
|
1505
|
+
}
|
|
1407
1506
|
}
|
|
1408
1507
|
|
|
1409
1508
|
/* ── The disclosure controls ─────────────────────────────────────────── */
|
|
@@ -1421,8 +1520,8 @@
|
|
|
1421
1520
|
* The pane's control is the same control: the same box, the same ink, the
|
|
1422
1521
|
* same pair of marks. What differs is which way the artwork faces, below.
|
|
1423
1522
|
*/
|
|
1424
|
-
[data-ui
|
|
1425
|
-
[data-ui
|
|
1523
|
+
[data-ui-app-shell] [data-part-nav-toggle],
|
|
1524
|
+
[data-ui-app-shell] [data-part-aside-toggle] {
|
|
1426
1525
|
--slotted-icon-size: var(--slotted-control-icon-size-md, 16px);
|
|
1427
1526
|
|
|
1428
1527
|
background-color: transparent;
|
|
@@ -1459,37 +1558,31 @@
|
|
|
1459
1558
|
* navigation's turns. The box is not `directional`: which side the region
|
|
1460
1559
|
* stands on is this family's fact, not the reading direction's alone.
|
|
1461
1560
|
*/
|
|
1462
|
-
[data-ui
|
|
1463
|
-
[dir='rtl'] [data-ui
|
|
1464
|
-
[data-ui
|
|
1465
|
-
[dir='rtl']
|
|
1466
|
-
[data-ui='app-shell'][data-nav-side='end']
|
|
1467
|
-
[data-part='aside-toggle']
|
|
1468
|
-
> [data-ui='icon'] {
|
|
1561
|
+
[data-ui-app-shell][data-nav-side='end'] [data-part-nav-toggle] > [data-ui-icon],
|
|
1562
|
+
[dir='rtl'] [data-ui-app-shell] [data-part-nav-toggle] > [data-ui-icon],
|
|
1563
|
+
[data-ui-app-shell]:not([data-nav-side='end']) [data-part-aside-toggle] > [data-ui-icon],
|
|
1564
|
+
[dir='rtl'] [data-ui-app-shell][data-nav-side='end'] [data-part-aside-toggle] > [data-ui-icon] {
|
|
1469
1565
|
scale: -1 1;
|
|
1470
1566
|
}
|
|
1567
|
+
[dir='rtl'] [data-ui-app-shell][data-nav-side='end'] [data-part-nav-toggle] > [data-ui-icon],
|
|
1471
1568
|
[dir='rtl']
|
|
1472
|
-
[data-ui
|
|
1473
|
-
[data-part
|
|
1474
|
-
> [data-ui
|
|
1475
|
-
[dir='rtl']
|
|
1476
|
-
[data-ui='app-shell']:not([data-nav-side='end'])
|
|
1477
|
-
[data-part='aside-toggle']
|
|
1478
|
-
> [data-ui='icon'] {
|
|
1569
|
+
[data-ui-app-shell]:not([data-nav-side='end'])
|
|
1570
|
+
[data-part-aside-toggle]
|
|
1571
|
+
> [data-ui-icon] {
|
|
1479
1572
|
scale: 1 1;
|
|
1480
1573
|
}
|
|
1481
1574
|
|
|
1482
|
-
[data-ui
|
|
1483
|
-
[data-ui
|
|
1575
|
+
[data-ui-app-shell] [data-part-nav-toggle]:enabled:hover,
|
|
1576
|
+
[data-ui-app-shell] [data-part-aside-toggle]:enabled:hover {
|
|
1484
1577
|
background-color: var(--slotted-tone-secondary-subtle-hover, ButtonFace);
|
|
1485
1578
|
color: currentcolor;
|
|
1486
1579
|
}
|
|
1487
|
-
[data-ui
|
|
1488
|
-
[data-ui
|
|
1580
|
+
[data-ui-app-shell] [data-part-nav-toggle]:enabled:active,
|
|
1581
|
+
[data-ui-app-shell] [data-part-aside-toggle]:enabled:active {
|
|
1489
1582
|
background-color: var(--slotted-tone-secondary-subtle-active, ButtonFace);
|
|
1490
1583
|
}
|
|
1491
|
-
[data-ui
|
|
1492
|
-
[data-ui
|
|
1584
|
+
[data-ui-app-shell] [data-part-nav-toggle]:focus-visible,
|
|
1585
|
+
[data-ui-app-shell] [data-part-aside-toggle]:focus-visible {
|
|
1493
1586
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
1494
1587
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
1495
1588
|
}
|
|
@@ -1501,31 +1594,35 @@
|
|
|
1501
1594
|
* mode at any width. The container query further down is the fallback for
|
|
1502
1595
|
* the frame before the binding has measured, and nothing else.
|
|
1503
1596
|
*/
|
|
1504
|
-
|
|
1505
|
-
|
|
1597
|
+
/* The rail holds the parts' ring inset on each side as well, so a control
|
|
1598
|
+
at the mark's size keeps its focus ring inside the body beside the gutter. */
|
|
1599
|
+
[data-ui-app-shell][data-nav-mode='inline'] > [data-part-nav] {
|
|
1600
|
+
inline-size: calc(
|
|
1601
|
+
var(--_rail-size) + 2 * (var(--_nav-inset) + var(--_row-ring-inset)) + var(--_nav-edges)
|
|
1602
|
+
);
|
|
1506
1603
|
}
|
|
1507
|
-
[data-ui
|
|
1604
|
+
[data-ui-app-shell][data-nav-mode='inline'][data-open] > [data-part-nav] {
|
|
1508
1605
|
inline-size: var(--_nav-size);
|
|
1509
1606
|
}
|
|
1510
1607
|
/**
|
|
1511
|
-
* The rail
|
|
1608
|
+
* The rail centers its marks, all three rows together: a head centerd over a
|
|
1512
1609
|
* body that is not reads as two columns in one strip.
|
|
1513
1610
|
*/
|
|
1514
|
-
[data-ui
|
|
1515
|
-
> [data-part
|
|
1516
|
-
> [data-part
|
|
1517
|
-
[data-ui
|
|
1518
|
-
> [data-part
|
|
1519
|
-
> [data-part
|
|
1611
|
+
[data-ui-app-shell][data-nav-mode='inline']:not([data-open])
|
|
1612
|
+
> [data-part-nav]
|
|
1613
|
+
> [data-part-nav-header],
|
|
1614
|
+
[data-ui-app-shell][data-nav-mode='inline']:not([data-open])
|
|
1615
|
+
> [data-part-nav]
|
|
1616
|
+
> [data-part-nav-footer] {
|
|
1520
1617
|
/* Two marks in one end of a rail — the control and the account — stand
|
|
1521
1618
|
one over the other: the rail is one mark column wide, so a row of two
|
|
1522
1619
|
is a row that overflows it. */
|
|
1523
1620
|
flex-wrap: wrap;
|
|
1524
1621
|
justify-content: center;
|
|
1525
1622
|
}
|
|
1526
|
-
[data-ui
|
|
1527
|
-
> [data-part
|
|
1528
|
-
> [data-part
|
|
1623
|
+
[data-ui-app-shell][data-nav-mode='inline']:not([data-open])
|
|
1624
|
+
> [data-part-nav]
|
|
1625
|
+
> [data-part-nav-body] {
|
|
1529
1626
|
align-items: center;
|
|
1530
1627
|
}
|
|
1531
1628
|
/**
|
|
@@ -1538,35 +1635,35 @@
|
|
|
1538
1635
|
* `hidden` does not animate, because it is a removal rather than a change of
|
|
1539
1636
|
* width.
|
|
1540
1637
|
*/
|
|
1541
|
-
[data-ui
|
|
1542
|
-
> [data-part
|
|
1638
|
+
[data-ui-app-shell][data-nav-mode='inline'][data-collapsed-to='hidden']:not([data-open])
|
|
1639
|
+
> [data-part-nav] {
|
|
1543
1640
|
display: none;
|
|
1544
1641
|
}
|
|
1545
1642
|
|
|
1546
|
-
[data-ui
|
|
1643
|
+
[data-ui-app-shell][data-nav-side='end'] > [data-part-nav] {
|
|
1547
1644
|
grid-area: 2 / 3 / 3 / 4;
|
|
1548
1645
|
}
|
|
1549
|
-
[data-ui
|
|
1646
|
+
[data-ui-app-shell][data-canvas='inset'][data-nav-side='end'] > [data-part-nav] {
|
|
1550
1647
|
margin-inline: 0 var(--_gutter);
|
|
1551
1648
|
}
|
|
1552
|
-
[data-ui
|
|
1649
|
+
[data-ui-app-shell][data-canvas='flush'][data-nav-side='end'] > [data-part-nav] {
|
|
1553
1650
|
padding-inline: 0 var(--_gutter);
|
|
1554
1651
|
}
|
|
1555
|
-
[data-ui
|
|
1652
|
+
[data-ui-app-shell]:is([data-canvas='flush'], [data-canvas='panel']) > [data-part-nav] {
|
|
1556
1653
|
border-inline-end: var(--_seam);
|
|
1557
1654
|
}
|
|
1558
|
-
[data-ui
|
|
1559
|
-
> [data-part
|
|
1655
|
+
[data-ui-app-shell]:is([data-canvas='flush'], [data-canvas='panel'])[data-nav-side='end']
|
|
1656
|
+
> [data-part-nav] {
|
|
1560
1657
|
border-inline-end: none;
|
|
1561
1658
|
border-inline-start: var(--_seam);
|
|
1562
1659
|
}
|
|
1563
1660
|
|
|
1564
1661
|
/** Reaching the corner: the navigation spans every row instead. */
|
|
1565
|
-
[data-ui
|
|
1662
|
+
[data-ui-app-shell]:is([data-primary='nav'], [data-primary='main']) > [data-part-nav] {
|
|
1566
1663
|
grid-area: 1 / 1 / -1 / 2;
|
|
1567
1664
|
}
|
|
1568
|
-
[data-ui
|
|
1569
|
-
> [data-part
|
|
1665
|
+
[data-ui-app-shell]:is([data-primary='nav'], [data-primary='main'])[data-nav-side='end']
|
|
1666
|
+
> [data-part-nav] {
|
|
1570
1667
|
grid-area: 1 / 3 / -1 / 4;
|
|
1571
1668
|
}
|
|
1572
1669
|
/**
|
|
@@ -1574,22 +1671,22 @@
|
|
|
1574
1671
|
* and whatever the bar carries sit on one line rather than being two headers
|
|
1575
1672
|
* of different sizes in the same row of the screen.
|
|
1576
1673
|
*/
|
|
1577
|
-
[data-ui
|
|
1578
|
-
> [data-part
|
|
1579
|
-
> [data-part
|
|
1674
|
+
[data-ui-app-shell]:is([data-primary='nav'], [data-primary='main'])
|
|
1675
|
+
> [data-part-nav]
|
|
1676
|
+
> [data-part-nav-header] {
|
|
1580
1677
|
/* The head's own padding is inside the banner's height, or the mark stands
|
|
1581
1678
|
its padding lower than the bar beside it. */
|
|
1582
1679
|
box-sizing: border-box;
|
|
1583
1680
|
min-block-size: var(--_banner-size);
|
|
1584
1681
|
}
|
|
1585
|
-
[data-ui
|
|
1586
|
-
[data-ui
|
|
1682
|
+
[data-ui-app-shell]:is([data-primary='nav'], [data-primary='main']) > [data-part-banner],
|
|
1683
|
+
[data-ui-app-shell]:is([data-primary='nav'], [data-primary='main']) > [data-part-footer] {
|
|
1587
1684
|
grid-column: 2 / -1;
|
|
1588
1685
|
}
|
|
1589
|
-
[data-ui
|
|
1590
|
-
> [data-part
|
|
1591
|
-
[data-ui
|
|
1592
|
-
> [data-part
|
|
1686
|
+
[data-ui-app-shell]:is([data-primary='nav'], [data-primary='main'])[data-nav-side='end']
|
|
1687
|
+
> [data-part-banner],
|
|
1688
|
+
[data-ui-app-shell]:is([data-primary='nav'], [data-primary='main'])[data-nav-side='end']
|
|
1689
|
+
> [data-part-footer] {
|
|
1593
1690
|
grid-column: 1 / -2;
|
|
1594
1691
|
}
|
|
1595
1692
|
/**
|
|
@@ -1598,8 +1695,8 @@
|
|
|
1598
1695
|
* `panel` the banner is inside the card whether the column or the content
|
|
1599
1696
|
* is primary, so `nav` draws what `main` draws there.
|
|
1600
1697
|
*/
|
|
1601
|
-
[data-ui
|
|
1602
|
-
[data-ui
|
|
1698
|
+
[data-ui-app-shell][data-primary='main'] > [data-part-banner],
|
|
1699
|
+
[data-ui-app-shell][data-canvas='panel'][data-primary='nav'] > [data-part-banner] {
|
|
1603
1700
|
grid-column: 2 / 3;
|
|
1604
1701
|
}
|
|
1605
1702
|
|
|
@@ -1620,14 +1717,14 @@
|
|
|
1620
1717
|
* puts the veil over the bar as well: the reader then has no fixed point on
|
|
1621
1718
|
* the screen at all.
|
|
1622
1719
|
*/
|
|
1623
|
-
[data-ui
|
|
1720
|
+
[data-ui-app-shell][data-nav-mode='overlay'] > [data-part-nav] {
|
|
1624
1721
|
/* A layer has an edge on every plane, so its rows stand one inset in. The
|
|
1625
1722
|
inset is read by the parts, which take it from here. */
|
|
1626
1723
|
--_nav-inset: var(--_row-inset);
|
|
1627
1724
|
|
|
1628
1725
|
/* A layer over the content is opaque or it is unreadable, so the plane's
|
|
1629
1726
|
transparent default does not reach it — the product's own choice still
|
|
1630
|
-
does, which is why this is the property and not the
|
|
1727
|
+
does, which is why this is the property and not the color. */
|
|
1631
1728
|
background-color: var(
|
|
1632
1729
|
--slotted-app-shell-nav-surface,
|
|
1633
1730
|
var(--slotted-app-shell-canvas, var(--slotted-surface, Canvas))
|
|
@@ -1649,14 +1746,14 @@
|
|
|
1649
1746
|
visibility: hidden;
|
|
1650
1747
|
z-index: var(--slotted-z-index-overlay, 1000);
|
|
1651
1748
|
}
|
|
1652
|
-
[data-ui
|
|
1749
|
+
[data-ui-app-shell][data-nav-mode='overlay'][data-open] > [data-part-nav] {
|
|
1653
1750
|
transition:
|
|
1654
1751
|
translate var(--_duration) var(--slotted-easing-enter, cubic-bezier(0.05, 0.7, 0.1, 1)),
|
|
1655
1752
|
visibility var(--_duration) step-start;
|
|
1656
1753
|
translate: 0 0;
|
|
1657
1754
|
visibility: visible;
|
|
1658
1755
|
}
|
|
1659
|
-
[data-ui
|
|
1756
|
+
[data-ui-app-shell][data-nav-mode='overlay'][data-nav-side='end'] > [data-part-nav] {
|
|
1660
1757
|
inset-inline-end: 0;
|
|
1661
1758
|
inset-inline-start: auto;
|
|
1662
1759
|
translate: 100% 0;
|
|
@@ -1674,9 +1771,9 @@
|
|
|
1674
1771
|
* three parts: the marks keep one column, and a consumer's header row that
|
|
1675
1772
|
* writes the same inset stays over them.
|
|
1676
1773
|
*/
|
|
1677
|
-
[data-ui
|
|
1678
|
-
[data-ui
|
|
1679
|
-
[data-ui
|
|
1774
|
+
[data-ui-app-shell][data-canvas='floating'][data-nav-mode='overlay'] > [data-part-nav],
|
|
1775
|
+
[data-ui-app-shell][data-canvas='panel'][data-nav-mode='overlay'] > [data-part-nav],
|
|
1776
|
+
[data-ui-app-shell][data-canvas='inset'][data-nav-mode='overlay'] > [data-part-nav] {
|
|
1680
1777
|
border: var(--_rule-width) solid var(--_rule);
|
|
1681
1778
|
border-radius: var(--_radius);
|
|
1682
1779
|
box-shadow: var(--slotted-shadow-lg);
|
|
@@ -1684,14 +1781,14 @@
|
|
|
1684
1781
|
margin-inline-start: var(--_gutter);
|
|
1685
1782
|
translate: calc(-100% - var(--_gutter)) 0;
|
|
1686
1783
|
}
|
|
1687
|
-
[data-ui
|
|
1688
|
-
> [data-part
|
|
1784
|
+
[data-ui-app-shell]:not([data-canvas='flush'])[data-nav-mode='overlay'][data-nav-side='end']
|
|
1785
|
+
> [data-part-nav] {
|
|
1689
1786
|
margin-inline-end: var(--_gutter);
|
|
1690
1787
|
margin-inline-start: 0;
|
|
1691
1788
|
translate: calc(100% + var(--_gutter)) 0;
|
|
1692
1789
|
}
|
|
1693
|
-
[data-ui
|
|
1694
|
-
> [data-part
|
|
1790
|
+
[data-ui-app-shell]:not([data-canvas='flush'])[data-nav-mode='overlay'][data-open]
|
|
1791
|
+
> [data-part-nav] {
|
|
1695
1792
|
translate: 0 0;
|
|
1696
1793
|
}
|
|
1697
1794
|
|
|
@@ -1703,7 +1800,7 @@
|
|
|
1703
1800
|
* every inline distance. It slides in from the end the navigation is not on,
|
|
1704
1801
|
* which is the end the pane stands at as a column.
|
|
1705
1802
|
*/
|
|
1706
|
-
[data-ui
|
|
1803
|
+
[data-ui-app-shell][data-aside-mode='overlay'] > [data-part-aside] {
|
|
1707
1804
|
background-color: var(
|
|
1708
1805
|
--slotted-app-shell-aside-surface,
|
|
1709
1806
|
var(--slotted-app-shell-canvas, var(--slotted-surface, Canvas))
|
|
@@ -1726,21 +1823,21 @@
|
|
|
1726
1823
|
visibility: hidden;
|
|
1727
1824
|
z-index: var(--slotted-z-index-overlay, 1000);
|
|
1728
1825
|
}
|
|
1729
|
-
[data-ui
|
|
1826
|
+
[data-ui-app-shell][data-aside-mode='overlay'] > [data-part-aside][data-open] {
|
|
1730
1827
|
transition:
|
|
1731
1828
|
translate var(--_duration) var(--slotted-easing-enter, cubic-bezier(0.05, 0.7, 0.1, 1)),
|
|
1732
1829
|
visibility var(--_duration) step-start;
|
|
1733
1830
|
translate: 0 0;
|
|
1734
1831
|
visibility: visible;
|
|
1735
1832
|
}
|
|
1736
|
-
[data-ui
|
|
1833
|
+
[data-ui-app-shell][data-aside-mode='overlay'][data-nav-side='end'] > [data-part-aside] {
|
|
1737
1834
|
inset-inline-end: auto;
|
|
1738
1835
|
inset-inline-start: 0;
|
|
1739
1836
|
translate: -100% 0;
|
|
1740
1837
|
}
|
|
1741
|
-
[data-ui
|
|
1742
|
-
[data-ui
|
|
1743
|
-
[data-ui
|
|
1838
|
+
[data-ui-app-shell][data-canvas='floating'][data-aside-mode='overlay'] > [data-part-aside],
|
|
1839
|
+
[data-ui-app-shell][data-canvas='panel'][data-aside-mode='overlay'] > [data-part-aside],
|
|
1840
|
+
[data-ui-app-shell][data-canvas='inset'][data-aside-mode='overlay'] > [data-part-aside] {
|
|
1744
1841
|
border: var(--_rule-width) solid var(--_rule);
|
|
1745
1842
|
border-radius: var(--_radius);
|
|
1746
1843
|
box-shadow: var(--slotted-shadow-lg);
|
|
@@ -1748,14 +1845,14 @@
|
|
|
1748
1845
|
margin-inline-end: var(--_gutter);
|
|
1749
1846
|
translate: calc(100% + var(--_gutter)) 0;
|
|
1750
1847
|
}
|
|
1751
|
-
[data-ui
|
|
1752
|
-
> [data-part
|
|
1848
|
+
[data-ui-app-shell]:not([data-canvas='flush'])[data-aside-mode='overlay'][data-nav-side='end']
|
|
1849
|
+
> [data-part-aside] {
|
|
1753
1850
|
margin-inline-end: 0;
|
|
1754
1851
|
margin-inline-start: var(--_gutter);
|
|
1755
1852
|
translate: calc(-100% - var(--_gutter)) 0;
|
|
1756
1853
|
}
|
|
1757
|
-
[data-ui
|
|
1758
|
-
> [data-part
|
|
1854
|
+
[data-ui-app-shell]:not([data-canvas='flush'])[data-aside-mode='overlay']
|
|
1855
|
+
> [data-part-aside][data-open] {
|
|
1759
1856
|
translate: 0 0;
|
|
1760
1857
|
}
|
|
1761
1858
|
|
|
@@ -1778,10 +1875,12 @@
|
|
|
1778
1875
|
* rather than of mode, so the width answers it and the width alone.
|
|
1779
1876
|
*/
|
|
1780
1877
|
@container slotted-app-shell (inline-size >= 600px) {
|
|
1781
|
-
[data-ui
|
|
1782
|
-
inline-size: calc(
|
|
1878
|
+
[data-ui-app-shell]:not([data-nav-mode]) > [data-part-nav] {
|
|
1879
|
+
inline-size: calc(
|
|
1880
|
+
var(--_rail-size) + 2 * (var(--_nav-inset) + var(--_row-ring-inset)) + var(--_nav-edges)
|
|
1881
|
+
);
|
|
1783
1882
|
}
|
|
1784
|
-
[data-ui
|
|
1883
|
+
[data-ui-app-shell]:not([data-nav-mode])[data-open] > [data-part-nav] {
|
|
1785
1884
|
inline-size: var(--_nav-size);
|
|
1786
1885
|
}
|
|
1787
1886
|
|
|
@@ -1793,63 +1892,91 @@
|
|
|
1793
1892
|
the unit resolves against the shell's own inline size from inside this
|
|
1794
1893
|
`auto` track, where a percentage would resolve against the track the
|
|
1795
1894
|
pane itself sizes. */
|
|
1796
|
-
[data-ui
|
|
1895
|
+
[data-ui-app-shell]:not([data-aside-mode='overlay']) > [data-part-aside] {
|
|
1797
1896
|
grid-area: 2 / 3 / 3 / 4;
|
|
1798
1897
|
inline-size: var(--slotted-app-shell-aside-extent, var(--_aside-size));
|
|
1799
1898
|
position: relative;
|
|
1800
1899
|
}
|
|
1801
|
-
[data-ui
|
|
1802
|
-
> [data-part
|
|
1803
|
-
> [data-part
|
|
1804
|
-
display:
|
|
1900
|
+
[data-ui-app-shell]:not([data-aside-mode='overlay'])
|
|
1901
|
+
> [data-part-aside]
|
|
1902
|
+
> [data-part-aside-resizer]:not([hidden]) {
|
|
1903
|
+
display: flex;
|
|
1805
1904
|
}
|
|
1806
|
-
[data-ui
|
|
1807
|
-
> [data-part='aside'] {
|
|
1905
|
+
[data-ui-app-shell]:not([data-aside-mode='overlay'])[data-nav-side='end'] > [data-part-aside] {
|
|
1808
1906
|
grid-area: 2 / 1 / 3 / 2;
|
|
1809
1907
|
}
|
|
1810
1908
|
/* Under `primary="main"` the pane, as a column, stands beside the card
|
|
1811
1909
|
that holds the banner and the content, so it spans the banner's row. */
|
|
1812
|
-
[data-ui
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
> [data-part='aside'] {
|
|
1910
|
+
[data-ui-app-shell]:not([data-aside-mode='overlay'])[data-primary='main'] > [data-part-aside],
|
|
1911
|
+
[data-ui-app-shell]:not([data-aside-mode='overlay'])[data-canvas='panel'][data-primary='nav']
|
|
1912
|
+
> [data-part-aside] {
|
|
1816
1913
|
grid-row: 1 / 3;
|
|
1817
1914
|
}
|
|
1818
|
-
[data-ui
|
|
1915
|
+
[data-ui-app-shell]:not([data-aside-mode='overlay']):is(
|
|
1819
1916
|
[data-canvas='floating'],
|
|
1820
1917
|
[data-canvas='inset']
|
|
1821
1918
|
)[data-nav-side='end']
|
|
1822
|
-
> [data-part
|
|
1919
|
+
> [data-part-aside] {
|
|
1823
1920
|
margin-inline: var(--_gutter) 0;
|
|
1824
1921
|
}
|
|
1825
|
-
|
|
1826
|
-
|
|
1922
|
+
/* The strip lies on the line between the pane and the content: the seam
|
|
1923
|
+
where they meet, the gutter's center where the gutter separates them.
|
|
1924
|
+
The pane then does not scroll itself — its body does — so it does not
|
|
1925
|
+
clip the half of the strip that stands outside it. */
|
|
1926
|
+
[data-ui-app-shell][data-scroll='content']:not([data-aside-mode='overlay'])
|
|
1927
|
+
> [data-part-aside] {
|
|
1928
|
+
overflow: visible;
|
|
1929
|
+
}
|
|
1930
|
+
[data-ui-app-shell]:not([data-aside-mode='overlay'])
|
|
1931
|
+
> [data-part-aside]
|
|
1932
|
+
> [data-part-aside-resizer] {
|
|
1933
|
+
--_resizer-offset: calc(var(--_seam-width) / -2 - var(--_resizer-thickness) / 2);
|
|
1934
|
+
|
|
1935
|
+
inset-inline-start: var(--_resizer-offset);
|
|
1936
|
+
}
|
|
1937
|
+
[data-ui-app-shell]:not([data-aside-mode='overlay']):is(
|
|
1938
|
+
[data-canvas='floating'],
|
|
1939
|
+
[data-canvas='inset']
|
|
1940
|
+
)
|
|
1941
|
+
> [data-part-aside]
|
|
1942
|
+
> [data-part-aside-resizer] {
|
|
1943
|
+
--_resizer-offset: calc(
|
|
1944
|
+
-1 * (var(--_rule-width) + var(--_gutter) / 2) - var(--_resizer-thickness) / 2
|
|
1945
|
+
);
|
|
1946
|
+
}
|
|
1947
|
+
[data-ui-app-shell]:not([data-aside-mode='overlay'])[data-nav-side='end']
|
|
1948
|
+
> [data-part-aside]
|
|
1949
|
+
> [data-part-aside-resizer] {
|
|
1950
|
+
inset-inline-end: var(--_resizer-offset);
|
|
1951
|
+
inset-inline-start: auto;
|
|
1952
|
+
}
|
|
1953
|
+
[data-ui-app-shell]:not([data-aside-mode='overlay'])[data-canvas='flush'] > [data-part-aside] {
|
|
1827
1954
|
border-block-start: none;
|
|
1828
1955
|
}
|
|
1829
|
-
[data-ui
|
|
1956
|
+
[data-ui-app-shell]:not([data-aside-mode='overlay']):is(
|
|
1830
1957
|
[data-canvas='flush'],
|
|
1831
1958
|
[data-canvas='panel']
|
|
1832
1959
|
)
|
|
1833
|
-
> [data-part
|
|
1960
|
+
> [data-part-aside] {
|
|
1834
1961
|
border-inline-start: var(--_seam);
|
|
1835
1962
|
}
|
|
1836
|
-
[data-ui
|
|
1963
|
+
[data-ui-app-shell]:not([data-aside-mode='overlay']):is(
|
|
1837
1964
|
[data-canvas='flush'],
|
|
1838
1965
|
[data-canvas='panel']
|
|
1839
1966
|
)[data-nav-side='end']
|
|
1840
|
-
> [data-part
|
|
1967
|
+
> [data-part-aside] {
|
|
1841
1968
|
border-inline-end: var(--_seam);
|
|
1842
1969
|
border-inline-start: none;
|
|
1843
1970
|
}
|
|
1844
1971
|
}
|
|
1845
1972
|
|
|
1846
1973
|
@container slotted-app-shell (inline-size < 600px) {
|
|
1847
|
-
[data-ui
|
|
1974
|
+
[data-ui-app-shell]:not([data-nav-mode]) > [data-part-nav] {
|
|
1848
1975
|
display: none;
|
|
1849
1976
|
}
|
|
1850
1977
|
/* The content flush to the frame, as it is once the mode says overlay. */
|
|
1851
|
-
[data-ui
|
|
1852
|
-
[data-ui
|
|
1978
|
+
[data-ui-app-shell]:not([data-nav-mode])[data-canvas='floating'] > [data-part-main],
|
|
1979
|
+
[data-ui-app-shell]:not([data-nav-mode])[data-canvas='inset'] > [data-part-main] {
|
|
1853
1980
|
border-block-end: 0;
|
|
1854
1981
|
border-inline: 0;
|
|
1855
1982
|
border-radius: 0;
|
|
@@ -1859,33 +1986,33 @@
|
|
|
1859
1986
|
/* The card of `primary="main"` goes with the gutter. The root cannot
|
|
1860
1987
|
query its own width, but its pseudo-element is a child of the query
|
|
1861
1988
|
container and reads it. */
|
|
1862
|
-
[data-ui
|
|
1989
|
+
[data-ui-app-shell]:not([data-nav-mode]):is(
|
|
1863
1990
|
[data-canvas='floating'],
|
|
1864
1991
|
[data-canvas='inset']
|
|
1865
1992
|
)[data-primary='main']::before {
|
|
1866
1993
|
content: none;
|
|
1867
1994
|
}
|
|
1868
|
-
[data-ui
|
|
1995
|
+
[data-ui-app-shell]:not([data-nav-mode])[data-primary='main'] > [data-part-banner] {
|
|
1869
1996
|
margin: 0;
|
|
1870
1997
|
padding-inline: var(--_edge);
|
|
1871
1998
|
}
|
|
1872
|
-
[data-ui
|
|
1999
|
+
[data-ui-app-shell]:not([data-nav-mode])[data-canvas='panel'] > [data-part-main] {
|
|
1873
2000
|
border-block-start: var(--_rule-width) solid var(--_rule);
|
|
1874
2001
|
border-radius: 0;
|
|
1875
2002
|
}
|
|
1876
|
-
[data-ui
|
|
1877
|
-
[data-ui
|
|
2003
|
+
[data-ui-app-shell]:not([data-nav-mode])[data-canvas='floating'] > [data-part-progress],
|
|
2004
|
+
[data-ui-app-shell]:not([data-nav-mode])[data-canvas='inset'] > [data-part-progress] {
|
|
1878
2005
|
border-radius: 0;
|
|
1879
2006
|
margin: 0;
|
|
1880
2007
|
}
|
|
1881
|
-
[data-ui
|
|
2008
|
+
[data-ui-app-shell]:not([data-nav-mode])[data-canvas='panel'] > [data-part-progress] {
|
|
1882
2009
|
border-radius: 0;
|
|
1883
2010
|
}
|
|
1884
|
-
[data-ui
|
|
2011
|
+
[data-ui-app-shell]:not([data-aside-mode='overlay']):is(
|
|
1885
2012
|
[data-canvas='floating'],
|
|
1886
2013
|
[data-canvas='inset']
|
|
1887
2014
|
)
|
|
1888
|
-
> [data-part
|
|
2015
|
+
> [data-part-aside] {
|
|
1889
2016
|
margin-inline: var(--_gutter);
|
|
1890
2017
|
}
|
|
1891
2018
|
/* A row under the content takes at most half the shell, so the content
|
|
@@ -1893,14 +2020,14 @@
|
|
|
1893
2020
|
left the content a line high, with the pane scrolling and the content
|
|
1894
2021
|
gone. Only where the shell owns its height; under `document` the page
|
|
1895
2022
|
scrolls and the row takes its content's height. */
|
|
1896
|
-
[data-ui
|
|
1897
|
-
> [data-part
|
|
2023
|
+
[data-ui-app-shell][data-scroll='content']:not([data-aside-mode='overlay'])
|
|
2024
|
+
> [data-part-aside] {
|
|
1898
2025
|
max-block-size: 50cqb;
|
|
1899
2026
|
}
|
|
1900
2027
|
/* The pane as a row under the content, in the inline mode alone: a pane
|
|
1901
2028
|
whose mode is not yet decided draws nothing at a narrow width, the safe
|
|
1902
2029
|
half of the answer, for the reason the navigation draws nothing. */
|
|
1903
|
-
[data-ui
|
|
2030
|
+
[data-ui-app-shell]:not([data-aside-mode]) > [data-part-aside] {
|
|
1904
2031
|
display: none;
|
|
1905
2032
|
}
|
|
1906
2033
|
}
|
|
@@ -1908,7 +2035,7 @@
|
|
|
1908
2035
|
/* ── The veil ────────────────────────────────────────────────────────── */
|
|
1909
2036
|
|
|
1910
2037
|
/** It stops where the panel stops, so the bar above stays a fixed point. */
|
|
1911
|
-
[data-ui
|
|
2038
|
+
[data-ui-app-shell] > [data-part-scrim] {
|
|
1912
2039
|
background-color: var(--_scrim);
|
|
1913
2040
|
grid-area: 2 / 1 / -1 / -1;
|
|
1914
2041
|
inset: 0;
|
|
@@ -1917,8 +2044,8 @@
|
|
|
1917
2044
|
transition: opacity var(--_duration) var(--_easing);
|
|
1918
2045
|
z-index: calc(var(--slotted-z-index-overlay, 1000) - 1);
|
|
1919
2046
|
}
|
|
1920
|
-
[data-ui
|
|
1921
|
-
[data-ui
|
|
2047
|
+
[data-ui-app-shell] > [data-part-scrim][data-status='entering'],
|
|
2048
|
+
[data-ui-app-shell] > [data-part-scrim][data-status='exiting'] {
|
|
1922
2049
|
opacity: 0;
|
|
1923
2050
|
}
|
|
1924
2051
|
}
|