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