@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
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
* description-list has a `description`, a card has `actions` and a `header`
|
|
37
37
|
* — and a descendant rule would restyle theirs.
|
|
38
38
|
*/
|
|
39
|
-
[data-ui
|
|
39
|
+
[data-ui-page-header] {
|
|
40
40
|
--_surface: var(--slotted-page-header-background, var(--slotted-surface, Canvas));
|
|
41
41
|
/* What the root and the title area paint; `plain` takes it away at rest. */
|
|
42
42
|
--_ground: var(--_surface);
|
|
@@ -77,6 +77,14 @@
|
|
|
77
77
|
--_rule-size: var(--slotted-border-width-thin, 1px);
|
|
78
78
|
--_duration: var(--slotted-duration-medium);
|
|
79
79
|
--_easing: var(--slotted-easing-standard, cubic-bezier(0.2, 0, 0, 1));
|
|
80
|
+
/**
|
|
81
|
+
* How the ground changes when `plain` takes it back, or a material takes
|
|
82
|
+
* over, as content passes under the chrome. A duration of nought makes the
|
|
83
|
+
* change instant.
|
|
84
|
+
*/
|
|
85
|
+
--_ground-transition: background-color
|
|
86
|
+
var(--slotted-page-header-ground-duration, var(--_duration))
|
|
87
|
+
var(--slotted-page-header-ground-easing, var(--_easing));
|
|
80
88
|
|
|
81
89
|
background-color: var(--_ground);
|
|
82
90
|
color: var(--_text);
|
|
@@ -98,7 +106,9 @@
|
|
|
98
106
|
* is the slide of the header area under the title and never a fight with
|
|
99
107
|
* the scroll, during which the offset is constant.
|
|
100
108
|
*/
|
|
101
|
-
transition:
|
|
109
|
+
transition:
|
|
110
|
+
inset-block-start var(--_duration) var(--_easing),
|
|
111
|
+
var(--_ground-transition);
|
|
102
112
|
/**
|
|
103
113
|
* Above every other sticky thing on the page — a section's header, a
|
|
104
114
|
* table's column header, a pinned corner — so what a short section pushes
|
|
@@ -117,7 +127,7 @@
|
|
|
117
127
|
overflow-x: clip;
|
|
118
128
|
}
|
|
119
129
|
|
|
120
|
-
[data-ui
|
|
130
|
+
[data-ui-page-header][data-size='sm'] {
|
|
121
131
|
--_heading-size: var(
|
|
122
132
|
--slotted-page-header-heading-size-sm,
|
|
123
133
|
var(--slotted-font-size-xl, 1.125rem)
|
|
@@ -130,7 +140,7 @@
|
|
|
130
140
|
--_snapped-heading-line-height: var(--slotted-line-height-md, 1.5);
|
|
131
141
|
}
|
|
132
142
|
|
|
133
|
-
[data-ui
|
|
143
|
+
[data-ui-page-header][data-size='lg'] {
|
|
134
144
|
--_heading-size: var(
|
|
135
145
|
--slotted-page-header-heading-size-lg,
|
|
136
146
|
var(--slotted-font-size-3xl, 1.5rem)
|
|
@@ -150,9 +160,9 @@
|
|
|
150
160
|
* and `pressed` is its word. Under `collapse="manual"` the offset is what
|
|
151
161
|
* the scroll would use, so it is zero for good.
|
|
152
162
|
*/
|
|
153
|
-
[data-ui
|
|
154
|
-
[data-ui
|
|
155
|
-
[data-ui
|
|
163
|
+
[data-ui-page-header][data-revealed],
|
|
164
|
+
[data-ui-page-header][data-collapse='manual'],
|
|
165
|
+
[data-ui-page-header]:has([data-part-pin][data-pressed]) {
|
|
156
166
|
inset-block-start: var(--_sticky-inset);
|
|
157
167
|
}
|
|
158
168
|
|
|
@@ -166,7 +176,7 @@
|
|
|
166
176
|
* ground would show the page through its title. The hairline stays in
|
|
167
177
|
* both: it is where the chrome ends.
|
|
168
178
|
*/
|
|
169
|
-
[data-ui
|
|
179
|
+
[data-ui-page-header][data-variant='plain']:not([data-stuck]) {
|
|
170
180
|
--_ground: transparent;
|
|
171
181
|
}
|
|
172
182
|
|
|
@@ -179,19 +189,21 @@
|
|
|
179
189
|
* sat an inset down over the content under it. The title area paints its
|
|
180
190
|
* own ground, so its top corners follow the root's, and it slides with it.
|
|
181
191
|
*/
|
|
182
|
-
[data-ui
|
|
192
|
+
[data-ui-page-header][data-variant='floating'] {
|
|
183
193
|
--_radius: var(--slotted-page-header-radius, var(--slotted-radius-lg, 8px));
|
|
184
194
|
|
|
185
195
|
border: var(--_rule-size) solid var(--_rule);
|
|
186
196
|
border-radius: var(--_radius);
|
|
187
197
|
box-sizing: border-box;
|
|
188
198
|
}
|
|
189
|
-
[data-ui
|
|
199
|
+
[data-ui-page-header][data-variant='floating'] > * > [data-part-title-area] {
|
|
190
200
|
border-start-end-radius: calc(var(--_radius) - var(--_rule-size));
|
|
191
201
|
border-start-start-radius: calc(var(--_radius) - var(--_rule-size));
|
|
192
|
-
transition:
|
|
202
|
+
transition:
|
|
203
|
+
inset-block-start var(--_duration) var(--_easing),
|
|
204
|
+
var(--_ground-transition);
|
|
193
205
|
}
|
|
194
|
-
[data-ui
|
|
206
|
+
[data-ui-page-header][data-variant='floating'][data-stuck] {
|
|
195
207
|
--_sticky-inset: var(--slotted-page-header-inset, var(--slotted-space-4, 0.5rem));
|
|
196
208
|
|
|
197
209
|
box-shadow: var(--slotted-page-header-shadow, var(--slotted-shadow-sm));
|
|
@@ -203,14 +215,14 @@
|
|
|
203
215
|
* record's header and tabs held 40 per cent of the screen for the whole
|
|
204
216
|
* scroll. `relative` and not `static`, so the root keeps the stacking the
|
|
205
217
|
* pill straddling its edge relies on, at an offset of nought. The binding
|
|
206
|
-
* writes the attribute from the
|
|
207
|
-
*
|
|
218
|
+
* writes the attribute from the frame's width, so a header in a narrow pane
|
|
219
|
+
* of a wide frame still sticks inside the pane.
|
|
208
220
|
*/
|
|
209
|
-
[data-ui
|
|
221
|
+
[data-ui-page-header][data-compact] {
|
|
210
222
|
inset-block-start: 0;
|
|
211
223
|
position: relative;
|
|
212
224
|
}
|
|
213
|
-
[data-ui
|
|
225
|
+
[data-ui-page-header][data-compact] > * > [data-part-title-area] {
|
|
214
226
|
inset-block-start: 0;
|
|
215
227
|
position: relative;
|
|
216
228
|
}
|
|
@@ -222,7 +234,7 @@
|
|
|
222
234
|
* renders to align its rows to the page's measure, and it is not named,
|
|
223
235
|
* because a family does not select another family's identity.
|
|
224
236
|
*/
|
|
225
|
-
[data-ui
|
|
237
|
+
[data-ui-page-header] > * > [data-part-title-area] {
|
|
226
238
|
background-color: var(--_ground);
|
|
227
239
|
display: flex;
|
|
228
240
|
flex-direction: column;
|
|
@@ -231,9 +243,61 @@
|
|
|
231
243
|
overflow-anchor: none;
|
|
232
244
|
padding-block: var(--_padding-block) var(--slotted-space-4, 0.5rem);
|
|
233
245
|
position: sticky;
|
|
246
|
+
transition: var(--_ground-transition);
|
|
234
247
|
z-index: 2;
|
|
235
248
|
}
|
|
236
249
|
|
|
250
|
+
/**
|
|
251
|
+
* The title area paints the ground only where something passes under it:
|
|
252
|
+
* the header area, which it covers while it collapses. Without one, the
|
|
253
|
+
* root's ground is the one layer under the title, so a ground with alpha is
|
|
254
|
+
* composited once — painted on both, 0.5 read as 0.75. With a header area
|
|
255
|
+
* the title keeps its own ground, because a title that let the area show
|
|
256
|
+
* through would print the area's words under its own.
|
|
257
|
+
*/
|
|
258
|
+
[data-ui-page-header]:not(:has(> * > [data-part-header-area])) > * > [data-part-title-area] {
|
|
259
|
+
background-color: transparent;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Stuck, the chrome stands over the content, and a theme may blur what passes
|
|
264
|
+
* under it: `--slotted-page-header-backdrop-filter`, `none` unless set. It
|
|
265
|
+
* composes with a ground that has alpha, which is what lets the content show
|
|
266
|
+
* at all. The filter is the stuck state's alone, so a `plain` header,
|
|
267
|
+
* transparent at rest, filters nothing at rest.
|
|
268
|
+
*/
|
|
269
|
+
[data-ui-page-header][data-stuck] {
|
|
270
|
+
-webkit-backdrop-filter: var(--slotted-page-header-backdrop-filter, var(--_backdrop, none));
|
|
271
|
+
backdrop-filter: var(--slotted-page-header-backdrop-filter, var(--_backdrop, none));
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* `material`: stuck, the chrome is the theme's material — the ground
|
|
276
|
+
* `--slotted-surface-material` and the filter `--slotted-material-backdrop`
|
|
277
|
+
* — in every variant. At rest each variant keeps its own ground. The family
|
|
278
|
+
* tokens still win, and the pill keeps the opaque surface, because half of
|
|
279
|
+
* it hangs below the root over content the root's filter does not reach.
|
|
280
|
+
* The theme makes both material tokens opaque under reduced transparency.
|
|
281
|
+
*/
|
|
282
|
+
[data-ui-page-header][data-material][data-stuck] {
|
|
283
|
+
--_ground: var(
|
|
284
|
+
--slotted-page-header-background,
|
|
285
|
+
var(--slotted-surface-material, var(--_surface))
|
|
286
|
+
);
|
|
287
|
+
--_backdrop: var(--slotted-material-backdrop, none);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* A reader who asked for less transparency gets none of the effect, and under
|
|
292
|
+
* forced colors the ground is the system's and the blur has nothing to add.
|
|
293
|
+
*/
|
|
294
|
+
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
|
|
295
|
+
[data-ui-page-header][data-stuck] {
|
|
296
|
+
-webkit-backdrop-filter: none;
|
|
297
|
+
backdrop-filter: none;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
237
301
|
/**
|
|
238
302
|
* The pill straddles the chrome's edge, so whatever ends at that edge
|
|
239
303
|
* keeps half a pill clear of it: the title area, because stuck the edge
|
|
@@ -242,11 +306,11 @@
|
|
|
242
306
|
* because a padding that changed at the snap would move the tabs by that
|
|
243
307
|
* much at the moment the header area left.
|
|
244
308
|
*/
|
|
245
|
-
[data-ui
|
|
309
|
+
[data-ui-page-header]:has([data-part-controls] > *) > * > [data-part-title-area] {
|
|
246
310
|
padding-block-end: calc(var(--slotted-space-4, 0.5rem) + var(--_control-size) / 2);
|
|
247
311
|
}
|
|
248
312
|
|
|
249
|
-
[data-ui
|
|
313
|
+
[data-ui-page-header] > * > [data-part-title-area] > [data-part-nav] {
|
|
250
314
|
align-items: center;
|
|
251
315
|
color: var(--_muted);
|
|
252
316
|
display: flex;
|
|
@@ -255,7 +319,7 @@
|
|
|
255
319
|
line-height: var(--slotted-line-height-sm, 1.45);
|
|
256
320
|
min-inline-size: 0;
|
|
257
321
|
}
|
|
258
|
-
[data-ui
|
|
322
|
+
[data-ui-page-header] > * > [data-part-title-area] > [data-part-nav]:empty {
|
|
259
323
|
display: none;
|
|
260
324
|
}
|
|
261
325
|
/**
|
|
@@ -264,11 +328,11 @@
|
|
|
264
328
|
* breadcrumbs go and the arrow is what remains. A consumer writes both
|
|
265
329
|
* once and the width decides.
|
|
266
330
|
*/
|
|
267
|
-
[data-ui
|
|
331
|
+
[data-ui-page-header]
|
|
268
332
|
> *
|
|
269
|
-
> [data-part
|
|
270
|
-
> [data-part
|
|
271
|
-
> [data-part
|
|
333
|
+
> [data-part-title-area]
|
|
334
|
+
> [data-part-nav]
|
|
335
|
+
> [data-part-back]:has(~ [data-part-breadcrumbs]:not(:empty)) {
|
|
272
336
|
display: none;
|
|
273
337
|
}
|
|
274
338
|
|
|
@@ -276,9 +340,11 @@
|
|
|
276
340
|
* The way back. A link or a button the consumer renders; the arrow is the
|
|
277
341
|
* family's, the `arrow-left` Glyph element the binding puts before the
|
|
278
342
|
* label, and it points along the reading direction, so its `directional`
|
|
279
|
-
* box mirrors it in a right-to-left document.
|
|
343
|
+
* box mirrors it in a right-to-left document. It is styled in the nav part
|
|
344
|
+
* and directly in the title area, where a page without breadcrumbs puts it.
|
|
280
345
|
*/
|
|
281
|
-
[data-ui
|
|
346
|
+
[data-ui-page-header] > * > [data-part-title-area] > [data-part-back],
|
|
347
|
+
[data-ui-page-header] > * > [data-part-title-area] > [data-part-nav] > [data-part-back] {
|
|
282
348
|
--slotted-icon-size: var(--_icon-size);
|
|
283
349
|
|
|
284
350
|
align-items: center;
|
|
@@ -298,15 +364,19 @@
|
|
|
298
364
|
text-decoration: none;
|
|
299
365
|
transition: color var(--slotted-duration-short) var(--_easing);
|
|
300
366
|
}
|
|
367
|
+
/* Outside the nav part nothing sets the row's type or keeps the column from
|
|
368
|
+
stretching the link across the title area. */
|
|
369
|
+
[data-ui-page-header] > * > [data-part-title-area] > [data-part-back] {
|
|
370
|
+
align-self: flex-start;
|
|
371
|
+
font-size: var(--slotted-font-size-sm, 0.8125rem);
|
|
372
|
+
line-height: var(--slotted-line-height-sm, 1.45);
|
|
373
|
+
}
|
|
301
374
|
/* On a finger the way back is a full target among 44-pixel controls: it
|
|
302
375
|
reaches the comfortable size by padding and gives it back as a negative
|
|
303
376
|
margin, so the nav row keeps its height and nothing under it moves. */
|
|
304
377
|
@media (pointer: coarse) {
|
|
305
|
-
[data-ui
|
|
306
|
-
|
|
307
|
-
> [data-part='title-area']
|
|
308
|
-
> [data-part='nav']
|
|
309
|
-
> [data-part='back'] {
|
|
378
|
+
[data-ui-page-header] > * > [data-part-title-area] > [data-part-back],
|
|
379
|
+
[data-ui-page-header] > * > [data-part-title-area] > [data-part-nav] > [data-part-back] {
|
|
310
380
|
--_reach: max(
|
|
311
381
|
0px,
|
|
312
382
|
calc((var(--slotted-target-comfortable, 44px) - var(--slotted-target-min, 24px)) / 2)
|
|
@@ -316,27 +386,28 @@
|
|
|
316
386
|
padding-block: var(--_reach);
|
|
317
387
|
}
|
|
318
388
|
}
|
|
319
|
-
[data-ui
|
|
389
|
+
[data-ui-page-header]
|
|
320
390
|
> *
|
|
321
|
-
> [data-part
|
|
322
|
-
> [data-part
|
|
323
|
-
> [data-part
|
|
391
|
+
> [data-part-title-area]
|
|
392
|
+
> [data-part-nav]
|
|
393
|
+
> [data-part-back]:not([data-disabled]):not(:disabled):hover,
|
|
394
|
+
[data-ui-page-header]
|
|
395
|
+
> *
|
|
396
|
+
> [data-part-title-area]
|
|
397
|
+
> [data-part-back]:not([data-disabled]):not(:disabled):hover {
|
|
324
398
|
color: var(--_text);
|
|
325
399
|
}
|
|
326
|
-
[data-ui
|
|
400
|
+
[data-ui-page-header]
|
|
327
401
|
> *
|
|
328
|
-
> [data-part
|
|
329
|
-
> [data-part
|
|
330
|
-
> [data-part
|
|
402
|
+
> [data-part-title-area]
|
|
403
|
+
> [data-part-nav]
|
|
404
|
+
> [data-part-back]:focus-visible,
|
|
405
|
+
[data-ui-page-header] > * > [data-part-title-area] > [data-part-back]:focus-visible {
|
|
331
406
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
332
407
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
333
408
|
}
|
|
334
409
|
|
|
335
|
-
[data-ui
|
|
336
|
-
> *
|
|
337
|
-
> [data-part='title-area']
|
|
338
|
-
> [data-part='nav']
|
|
339
|
-
> [data-part='breadcrumbs'] {
|
|
410
|
+
[data-ui-page-header] > * > [data-part-title-area] > [data-part-nav] > [data-part-breadcrumbs] {
|
|
340
411
|
min-inline-size: 0;
|
|
341
412
|
}
|
|
342
413
|
|
|
@@ -345,7 +416,7 @@
|
|
|
345
416
|
* navigation pushed to the end. Everything after the title wraps under it
|
|
346
417
|
* when the width runs out, in the order it has in the DOM.
|
|
347
418
|
*/
|
|
348
|
-
[data-ui
|
|
419
|
+
[data-ui-page-header] > * > [data-part-title-area] > [data-part-title-row] {
|
|
349
420
|
align-items: flex-start;
|
|
350
421
|
display: flex;
|
|
351
422
|
flex-wrap: wrap;
|
|
@@ -353,13 +424,9 @@
|
|
|
353
424
|
min-inline-size: 0;
|
|
354
425
|
}
|
|
355
426
|
|
|
356
|
-
[data-ui
|
|
357
|
-
> *
|
|
358
|
-
> [data-part='title-area']
|
|
359
|
-
> [data-part='title-row']
|
|
360
|
-
> [data-part='visual'] {
|
|
427
|
+
[data-ui-page-header] > * > [data-part-title-area] > [data-part-title-row] > [data-part-visual] {
|
|
361
428
|
align-items: center;
|
|
362
|
-
/* On the title's first line, as Primer's LeadingVisual:
|
|
429
|
+
/* On the title's first line, as Primer's LeadingVisual: centerd on the
|
|
363
430
|
whole column it sank beside the second line of a wrapped title. */
|
|
364
431
|
align-self: flex-start;
|
|
365
432
|
display: inline-flex;
|
|
@@ -372,11 +439,7 @@
|
|
|
372
439
|
* aligned to the text" asks for — and the subheading, forced to a full
|
|
373
440
|
* row, takes the line under it.
|
|
374
441
|
*/
|
|
375
|
-
[data-ui
|
|
376
|
-
> *
|
|
377
|
-
> [data-part='title-area']
|
|
378
|
-
> [data-part='title-row']
|
|
379
|
-
> [data-part='title'] {
|
|
442
|
+
[data-ui-page-header] > * > [data-part-title-area] > [data-part-title-row] > [data-part-title] {
|
|
380
443
|
align-items: center;
|
|
381
444
|
column-gap: var(--slotted-space-4, 0.5rem);
|
|
382
445
|
display: flex;
|
|
@@ -403,12 +466,12 @@
|
|
|
403
466
|
* width to the flex algorithm that is not the width it then paints, and the
|
|
404
467
|
* marks beside it ran past the container in the first capture.
|
|
405
468
|
*/
|
|
406
|
-
[data-ui
|
|
469
|
+
[data-ui-page-header]
|
|
407
470
|
> *
|
|
408
|
-
> [data-part
|
|
409
|
-
> [data-part
|
|
410
|
-
> [data-part
|
|
411
|
-
> [data-part
|
|
471
|
+
> [data-part-title-area]
|
|
472
|
+
> [data-part-title-row]
|
|
473
|
+
> [data-part-title]
|
|
474
|
+
> [data-part-heading] {
|
|
412
475
|
-webkit-box-orient: vertical;
|
|
413
476
|
color: var(--_text);
|
|
414
477
|
display: -webkit-box;
|
|
@@ -429,12 +492,12 @@
|
|
|
429
492
|
/* No transition on the size: text re-rasterised on every frame of a
|
|
430
493
|
font-size change blurs and settles with a jolt, so the step is a cut. */
|
|
431
494
|
}
|
|
432
|
-
[data-ui
|
|
495
|
+
[data-ui-page-header]:not([data-expanded])
|
|
433
496
|
> *
|
|
434
|
-
> [data-part
|
|
435
|
-
> [data-part
|
|
436
|
-
> [data-part
|
|
437
|
-
> [data-part
|
|
497
|
+
> [data-part-title-area]
|
|
498
|
+
> [data-part-title-row]
|
|
499
|
+
> [data-part-title]
|
|
500
|
+
> [data-part-heading] {
|
|
438
501
|
display: block;
|
|
439
502
|
flex: 0 1 auto;
|
|
440
503
|
font-size: var(--_snapped-heading-size);
|
|
@@ -443,33 +506,33 @@
|
|
|
443
506
|
white-space: nowrap;
|
|
444
507
|
}
|
|
445
508
|
|
|
446
|
-
[data-ui
|
|
509
|
+
[data-ui-page-header]
|
|
447
510
|
> *
|
|
448
|
-
> [data-part
|
|
449
|
-
> [data-part
|
|
450
|
-
> [data-part
|
|
451
|
-
> [data-part
|
|
511
|
+
> [data-part-title-area]
|
|
512
|
+
> [data-part-title-row]
|
|
513
|
+
> [data-part-title]
|
|
514
|
+
> [data-part-marks] {
|
|
452
515
|
align-items: center;
|
|
453
516
|
display: inline-flex;
|
|
454
517
|
flex-wrap: wrap;
|
|
455
518
|
gap: var(--slotted-space-2, 0.25rem);
|
|
456
519
|
min-inline-size: 0;
|
|
457
520
|
}
|
|
458
|
-
[data-ui
|
|
521
|
+
[data-ui-page-header]
|
|
459
522
|
> *
|
|
460
|
-
> [data-part
|
|
461
|
-
> [data-part
|
|
462
|
-
> [data-part
|
|
463
|
-
> [data-part
|
|
523
|
+
> [data-part-title-area]
|
|
524
|
+
> [data-part-title-row]
|
|
525
|
+
> [data-part-title]
|
|
526
|
+
> [data-part-marks]:empty {
|
|
464
527
|
display: none;
|
|
465
528
|
}
|
|
466
529
|
|
|
467
|
-
[data-ui
|
|
530
|
+
[data-ui-page-header]
|
|
468
531
|
> *
|
|
469
|
-
> [data-part
|
|
470
|
-
> [data-part
|
|
471
|
-
> [data-part
|
|
472
|
-
> [data-part
|
|
532
|
+
> [data-part-title-area]
|
|
533
|
+
> [data-part-title-row]
|
|
534
|
+
> [data-part-title]
|
|
535
|
+
> [data-part-subheading] {
|
|
473
536
|
-webkit-box-orient: vertical;
|
|
474
537
|
color: var(--_muted);
|
|
475
538
|
display: -webkit-box;
|
|
@@ -485,30 +548,26 @@
|
|
|
485
548
|
text-wrap: pretty;
|
|
486
549
|
}
|
|
487
550
|
/* Snapped, the bar has one line to give it. */
|
|
488
|
-
[data-ui
|
|
551
|
+
[data-ui-page-header]:not([data-expanded])
|
|
489
552
|
> *
|
|
490
|
-
> [data-part
|
|
491
|
-
> [data-part
|
|
492
|
-
> [data-part
|
|
493
|
-
> [data-part
|
|
553
|
+
> [data-part-title-area]
|
|
554
|
+
> [data-part-title-row]
|
|
555
|
+
> [data-part-title]
|
|
556
|
+
> [data-part-subheading] {
|
|
494
557
|
display: block;
|
|
495
558
|
overflow: hidden;
|
|
496
559
|
text-overflow: ellipsis;
|
|
497
560
|
white-space: nowrap;
|
|
498
561
|
}
|
|
499
562
|
|
|
500
|
-
[data-ui
|
|
501
|
-
> *
|
|
502
|
-
> [data-part='title-area']
|
|
503
|
-
> [data-part='title-row']
|
|
504
|
-
> [data-part='actions'] {
|
|
563
|
+
[data-ui-page-header] > * > [data-part-title-area] > [data-part-title-row] > [data-part-actions] {
|
|
505
564
|
align-items: center;
|
|
506
565
|
display: flex;
|
|
507
566
|
flex: 0 1 auto;
|
|
508
567
|
/* Loose buttons wrap rather than breaking their own words; a toolbar in
|
|
509
568
|
here folds what does not fit into its menu before that happens. */
|
|
510
569
|
flex-wrap: wrap;
|
|
511
|
-
gap: var(--slotted-
|
|
570
|
+
gap: var(--slotted-action-gap, 8px);
|
|
512
571
|
min-inline-size: 0;
|
|
513
572
|
}
|
|
514
573
|
|
|
@@ -522,20 +581,20 @@
|
|
|
522
581
|
* that scrolls — written from the same public tokens; a framed bar keeps
|
|
523
582
|
* its box.
|
|
524
583
|
*/
|
|
525
|
-
[data-ui
|
|
584
|
+
[data-ui-page-header]
|
|
526
585
|
> *
|
|
527
|
-
> [data-part
|
|
528
|
-
> [data-part
|
|
529
|
-
> [data-part
|
|
530
|
-
> [data-ui
|
|
586
|
+
> [data-part-title-area]
|
|
587
|
+
> [data-part-title-row]
|
|
588
|
+
> [data-part-actions]
|
|
589
|
+
> [data-ui-toolbar]:not([data-variant='outline']) {
|
|
531
590
|
margin-block: calc(-1 * var(--slotted-toolbar-inset, var(--slotted-space-2, 0.25rem)));
|
|
532
591
|
}
|
|
533
|
-
[data-ui
|
|
592
|
+
[data-ui-page-header]
|
|
534
593
|
> *
|
|
535
|
-
> [data-part
|
|
536
|
-
> [data-part
|
|
537
|
-
> [data-part
|
|
538
|
-
> [data-ui
|
|
594
|
+
> [data-part-title-area]
|
|
595
|
+
> [data-part-title-row]
|
|
596
|
+
> [data-part-actions]
|
|
597
|
+
> [data-ui-toolbar]:not([data-variant='outline']):is(
|
|
539
598
|
[data-overflow='menu'],
|
|
540
599
|
[data-overflow='scroll']
|
|
541
600
|
) {
|
|
@@ -564,12 +623,10 @@
|
|
|
564
623
|
* its observer never fired, and the actions stayed folded after the window
|
|
565
624
|
* widened again, while a fresh load at the same width showed them all.
|
|
566
625
|
*/
|
|
567
|
-
[data-ui
|
|
626
|
+
[data-ui-page-header]
|
|
568
627
|
> *
|
|
569
|
-
> [data-part
|
|
570
|
-
> [data-part
|
|
571
|
-
> [data-part='actions'] > [data-ui='toolbar'][data-overflow='menu']
|
|
572
|
-
) {
|
|
628
|
+
> [data-part-title-area]
|
|
629
|
+
> [data-part-title-row]:has(> [data-part-actions] > [data-ui-toolbar][data-overflow='menu']) {
|
|
573
630
|
flex-wrap: nowrap;
|
|
574
631
|
}
|
|
575
632
|
/* The title starts from its own width, not from the basis a wrapping row gives it, at every
|
|
@@ -580,48 +637,42 @@
|
|
|
580
637
|
of 420, and the toolbar beside them folded every command into its menu next to empty room. As
|
|
581
638
|
a grid — the heading and its marks on the first line, the subheading across both columns
|
|
582
639
|
under them — the title is as wide as its widest line. */
|
|
583
|
-
[data-ui
|
|
640
|
+
[data-ui-page-header]
|
|
584
641
|
> *
|
|
585
|
-
> [data-part
|
|
586
|
-
> [data-part
|
|
587
|
-
|
|
588
|
-
)
|
|
589
|
-
> [data-part='title'] {
|
|
642
|
+
> [data-part-title-area]
|
|
643
|
+
> [data-part-title-row]:has(> [data-part-actions] > [data-ui-toolbar][data-overflow='menu'])
|
|
644
|
+
> [data-part-title] {
|
|
590
645
|
align-items: center;
|
|
591
646
|
display: grid;
|
|
592
647
|
flex: 0 1 auto;
|
|
593
648
|
grid-template-columns: minmax(0, auto) auto;
|
|
594
649
|
justify-content: start;
|
|
595
650
|
}
|
|
596
|
-
[data-ui
|
|
651
|
+
[data-ui-page-header]
|
|
597
652
|
> *
|
|
598
|
-
> [data-part
|
|
599
|
-
> [data-part
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
> [data-part='title']
|
|
603
|
-
> [data-part='heading'] {
|
|
653
|
+
> [data-part-title-area]
|
|
654
|
+
> [data-part-title-row]:has(> [data-part-actions] > [data-ui-toolbar][data-overflow='menu'])
|
|
655
|
+
> [data-part-title]
|
|
656
|
+
> [data-part-heading] {
|
|
604
657
|
grid-column: 1;
|
|
605
658
|
}
|
|
606
|
-
[data-ui
|
|
659
|
+
[data-ui-page-header]
|
|
607
660
|
> *
|
|
608
|
-
> [data-part
|
|
609
|
-
> [data-part
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
> [data-part='title']
|
|
613
|
-
> [data-part='subheading'] {
|
|
661
|
+
> [data-part-title-area]
|
|
662
|
+
> [data-part-title-row]:has(> [data-part-actions] > [data-ui-toolbar][data-overflow='menu'])
|
|
663
|
+
> [data-part-title]
|
|
664
|
+
> [data-part-subheading] {
|
|
614
665
|
grid-column: 1 / -1;
|
|
615
666
|
}
|
|
616
667
|
/* The cluster starts from nothing and grows into what the title leaves, so its width follows
|
|
617
668
|
the row's in both directions. It never gives way below its menu's trigger, a medium control,
|
|
618
669
|
and the toolbar's inset on either side: under it the trigger stood past the screen's edge on
|
|
619
670
|
a phone. */
|
|
620
|
-
[data-ui
|
|
671
|
+
[data-ui-page-header]
|
|
621
672
|
> *
|
|
622
|
-
> [data-part
|
|
623
|
-
> [data-part
|
|
624
|
-
> [data-part
|
|
673
|
+
> [data-part-title-area]
|
|
674
|
+
> [data-part-title-row]
|
|
675
|
+
> [data-part-actions]:has(> [data-ui-toolbar][data-overflow='menu']) {
|
|
625
676
|
flex: 1 1 0%;
|
|
626
677
|
min-inline-size: calc(
|
|
627
678
|
var(--slotted-control-height-md, 34px) + 2 *
|
|
@@ -638,12 +689,12 @@
|
|
|
638
689
|
stand at the end of the row as they did when the cluster was their own width. `safe`, because
|
|
639
690
|
a bar of pinned controls wider than the room scrolls, and overflow at the start of a scroll
|
|
640
691
|
container cannot be scrolled to. */
|
|
641
|
-
[data-ui
|
|
692
|
+
[data-ui-page-header]
|
|
642
693
|
> *
|
|
643
|
-
> [data-part
|
|
644
|
-
> [data-part
|
|
645
|
-
> [data-part
|
|
646
|
-
> [data-ui
|
|
694
|
+
> [data-part-title-area]
|
|
695
|
+
> [data-part-title-row]
|
|
696
|
+
> [data-part-actions]
|
|
697
|
+
> [data-ui-toolbar][data-overflow='menu'] {
|
|
647
698
|
flex: 1 1 0%;
|
|
648
699
|
justify-content: safe flex-end;
|
|
649
700
|
}
|
|
@@ -652,11 +703,11 @@
|
|
|
652
703
|
* Previous and next record, after the actions and set apart from them by a
|
|
653
704
|
* rule, which is where sap.f puts navigationActions.
|
|
654
705
|
*/
|
|
655
|
-
[data-ui
|
|
706
|
+
[data-ui-page-header]
|
|
656
707
|
> *
|
|
657
|
-
> [data-part
|
|
658
|
-
> [data-part
|
|
659
|
-
> [data-part
|
|
708
|
+
> [data-part-title-area]
|
|
709
|
+
> [data-part-title-row]
|
|
710
|
+
> [data-part-navigation] {
|
|
660
711
|
align-items: center;
|
|
661
712
|
border-inline-start: var(--_rule-size) solid var(--_rule);
|
|
662
713
|
display: flex;
|
|
@@ -676,12 +727,12 @@
|
|
|
676
727
|
* for the other direction. The glyphs mirror; the order is already the
|
|
677
728
|
* row's.
|
|
678
729
|
*/
|
|
679
|
-
[data-ui
|
|
730
|
+
[data-ui-page-header]
|
|
680
731
|
> *
|
|
681
|
-
> [data-part
|
|
682
|
-
> [data-part
|
|
683
|
-
> [data-part
|
|
684
|
-
:is(svg, [data-ui
|
|
732
|
+
> [data-part-title-area]
|
|
733
|
+
> [data-part-title-row]
|
|
734
|
+
> [data-part-navigation]:dir(rtl)
|
|
735
|
+
:is(svg, [data-ui-icon]) {
|
|
685
736
|
scale: -1 1;
|
|
686
737
|
}
|
|
687
738
|
|
|
@@ -692,7 +743,7 @@
|
|
|
692
743
|
* to 0fr — the content's own height at every frame, nothing measured — as
|
|
693
744
|
* collapsible does. Figure and content share the row.
|
|
694
745
|
*/
|
|
695
|
-
[data-ui
|
|
746
|
+
[data-ui-page-header] > * > [data-part-header-area] {
|
|
696
747
|
display: grid;
|
|
697
748
|
grid-template-columns: auto minmax(0, 1fr);
|
|
698
749
|
grid-template-rows: 1fr;
|
|
@@ -702,10 +753,10 @@
|
|
|
702
753
|
grid-template-rows var(--_duration) var(--_easing),
|
|
703
754
|
opacity var(--_duration) var(--_easing);
|
|
704
755
|
}
|
|
705
|
-
[data-ui
|
|
756
|
+
[data-ui-page-header] > * > [data-part-header-area]:not(:has([data-part-figure])) {
|
|
706
757
|
grid-template-columns: minmax(0, 1fr);
|
|
707
758
|
}
|
|
708
|
-
[data-ui
|
|
759
|
+
[data-ui-page-header] > * > [data-part-header-area] > * {
|
|
709
760
|
min-block-size: 0;
|
|
710
761
|
}
|
|
711
762
|
|
|
@@ -715,26 +766,24 @@
|
|
|
715
766
|
* offset is what hides the area — a 0fr row there would shorten the root
|
|
716
767
|
* under the reader and jump the scroll by the area's height.
|
|
717
768
|
*/
|
|
718
|
-
[data-ui
|
|
719
|
-
> *
|
|
720
|
-
> [data-part='header-area'] {
|
|
769
|
+
[data-ui-page-header]:not([data-expanded]):not([data-scrolled]) > * > [data-part-header-area] {
|
|
721
770
|
grid-template-rows: 0fr;
|
|
722
771
|
opacity: 0;
|
|
723
772
|
}
|
|
724
|
-
[data-ui
|
|
773
|
+
[data-ui-page-header]:not([data-expanded]):not([data-scrolled])
|
|
725
774
|
> *
|
|
726
|
-
> [data-part
|
|
775
|
+
> [data-part-header-area]
|
|
727
776
|
> * {
|
|
728
777
|
overflow: clip;
|
|
729
778
|
}
|
|
730
779
|
|
|
731
|
-
[data-ui
|
|
780
|
+
[data-ui-page-header] > * > [data-part-header-area] > [data-part-figure] {
|
|
732
781
|
display: flex;
|
|
733
782
|
padding-block-end: var(--_padding-block);
|
|
734
783
|
padding-inline-end: var(--slotted-space-6, 1rem);
|
|
735
784
|
}
|
|
736
785
|
|
|
737
|
-
[data-ui
|
|
786
|
+
[data-ui-page-header] > * > [data-part-header-area] > [data-part-content] {
|
|
738
787
|
display: flex;
|
|
739
788
|
flex-direction: column;
|
|
740
789
|
gap: var(--_gap);
|
|
@@ -742,11 +791,11 @@
|
|
|
742
791
|
padding-block-end: var(--_padding-block);
|
|
743
792
|
}
|
|
744
793
|
|
|
745
|
-
[data-ui
|
|
794
|
+
[data-ui-page-header]
|
|
746
795
|
> *
|
|
747
|
-
> [data-part
|
|
748
|
-
> [data-part
|
|
749
|
-
> [data-part
|
|
796
|
+
> [data-part-header-area]
|
|
797
|
+
> [data-part-content]
|
|
798
|
+
> [data-part-description] {
|
|
750
799
|
-webkit-box-orient: vertical;
|
|
751
800
|
color: var(--_muted);
|
|
752
801
|
display: -webkit-box;
|
|
@@ -761,14 +810,14 @@
|
|
|
761
810
|
|
|
762
811
|
/* The half pill the header area's columns keep clear of the edge; see the
|
|
763
812
|
title area's reservation above. After the columns' own rules, so it wins. */
|
|
764
|
-
[data-ui
|
|
813
|
+
[data-ui-page-header]:has([data-part-controls] > *)
|
|
765
814
|
> *
|
|
766
|
-
> [data-part
|
|
767
|
-
> [data-part
|
|
768
|
-
[data-ui
|
|
815
|
+
> [data-part-header-area]
|
|
816
|
+
> [data-part-figure],
|
|
817
|
+
[data-ui-page-header]:has([data-part-controls] > *)
|
|
769
818
|
> *
|
|
770
|
-
> [data-part
|
|
771
|
-
> [data-part
|
|
819
|
+
> [data-part-header-area]
|
|
820
|
+
> [data-part-content] {
|
|
772
821
|
padding-block-end: calc(var(--_padding-block) + var(--_control-size) / 2);
|
|
773
822
|
}
|
|
774
823
|
|
|
@@ -777,9 +826,9 @@
|
|
|
777
826
|
* reserved would keep the area 27 pixels tall: the reservation goes with
|
|
778
827
|
* the content, and the pill straddles the title area's own reservation.
|
|
779
828
|
*/
|
|
780
|
-
[data-ui
|
|
829
|
+
[data-ui-page-header]:not([data-expanded]):not([data-scrolled])
|
|
781
830
|
> *
|
|
782
|
-
> [data-part
|
|
831
|
+
> [data-part-header-area]
|
|
783
832
|
> * {
|
|
784
833
|
padding-block: 0;
|
|
785
834
|
}
|
|
@@ -797,7 +846,7 @@
|
|
|
797
846
|
* The row is `relative` and the pill `absolute`, so the tabs under it lay
|
|
798
847
|
* out as if it were not there; the pill overlaps their top edge.
|
|
799
848
|
*/
|
|
800
|
-
[data-ui
|
|
849
|
+
[data-ui-page-header] > * > [data-part-controls] {
|
|
801
850
|
block-size: 0;
|
|
802
851
|
position: relative;
|
|
803
852
|
/* Above the title area, and above the wait drawn on the same edge. */
|
|
@@ -810,16 +859,14 @@
|
|
|
810
859
|
* Without tabs the root's edge is where the pill sits, and no second rule
|
|
811
860
|
* is drawn.
|
|
812
861
|
*/
|
|
813
|
-
[data-ui
|
|
814
|
-
> *
|
|
815
|
-
> [data-part='controls']::before {
|
|
862
|
+
[data-ui-page-header]:has(> * > [data-part-tabs]:not(:empty)) > * > [data-part-controls]::before {
|
|
816
863
|
border-block-start: var(--_rule-size) solid var(--_rule);
|
|
817
864
|
content: '';
|
|
818
865
|
inset-block-start: 0;
|
|
819
866
|
inset-inline: -50vw;
|
|
820
867
|
position: absolute;
|
|
821
868
|
}
|
|
822
|
-
[data-ui
|
|
869
|
+
[data-ui-page-header] > * > [data-part-controls] > * {
|
|
823
870
|
/* The pill is a control on the hairline: it keeps the surface in every variant. */
|
|
824
871
|
background-color: var(--_surface);
|
|
825
872
|
border: var(--_rule-size) solid var(--_rule);
|
|
@@ -842,8 +889,8 @@
|
|
|
842
889
|
* and nothing else does; press goes one step further; both hold back for a
|
|
843
890
|
* disabled control.
|
|
844
891
|
*/
|
|
845
|
-
[data-ui
|
|
846
|
-
[data-ui
|
|
892
|
+
[data-ui-page-header] > * > [data-part-controls] > * > [data-part-toggle],
|
|
893
|
+
[data-ui-page-header] > * > [data-part-controls] > * > [data-part-pin] {
|
|
847
894
|
/* One step above the nav row's arrow: a mark on a hairline pill reads
|
|
848
895
|
thin at the small step, and the reviewer asked for weight. The marks
|
|
849
896
|
are the Glyph elements the bindings render — `chevron-down` in the
|
|
@@ -869,20 +916,15 @@
|
|
|
869
916
|
background-color var(--slotted-duration-short) var(--_easing),
|
|
870
917
|
color var(--slotted-duration-short) var(--_easing);
|
|
871
918
|
}
|
|
872
|
-
[data-ui
|
|
873
|
-
> *
|
|
874
|
-
> [data-part='controls']
|
|
875
|
-
> *
|
|
876
|
-
> [data-part='toggle']
|
|
877
|
-
> [data-ui='icon'] {
|
|
919
|
+
[data-ui-page-header] > * > [data-part-controls] > * > [data-part-toggle] > [data-ui-icon] {
|
|
878
920
|
transition: rotate var(--slotted-duration-short) var(--_easing);
|
|
879
921
|
}
|
|
880
|
-
[data-ui
|
|
922
|
+
[data-ui-page-header][data-expanded]
|
|
881
923
|
> *
|
|
882
|
-
> [data-part
|
|
924
|
+
> [data-part-controls]
|
|
883
925
|
> *
|
|
884
|
-
> [data-part
|
|
885
|
-
> [data-ui
|
|
926
|
+
> [data-part-toggle]
|
|
927
|
+
> [data-ui-icon] {
|
|
886
928
|
rotate: 180deg;
|
|
887
929
|
}
|
|
888
930
|
/**
|
|
@@ -892,54 +934,38 @@
|
|
|
892
934
|
* read, so the pin is not offered — the binding writes the fact and lets a
|
|
893
935
|
* held header go — and below 600 pixels the sheet hides it on its own.
|
|
894
936
|
*/
|
|
895
|
-
[data-ui
|
|
937
|
+
[data-ui-page-header][data-tall] > * > [data-part-controls] > * > [data-part-pin] {
|
|
896
938
|
display: none;
|
|
897
939
|
}
|
|
898
|
-
[data-ui
|
|
940
|
+
[data-ui-page-header] > * > [data-part-controls] > * > [data-part-pin][data-pressed] {
|
|
899
941
|
background-color: var(--slotted-tone-accent-surface, transparent);
|
|
900
942
|
color: var(--slotted-tone-accent-text, LinkText);
|
|
901
943
|
}
|
|
902
|
-
[data-ui
|
|
944
|
+
[data-ui-page-header]
|
|
903
945
|
> *
|
|
904
|
-
> [data-part
|
|
946
|
+
> [data-part-controls]
|
|
905
947
|
> *
|
|
906
|
-
> [data-part
|
|
948
|
+
> [data-part-pin][data-pressed]:not(:disabled):hover {
|
|
907
949
|
background-color: var(--slotted-tone-accent-subtle-hover, ButtonFace);
|
|
908
950
|
color: var(--slotted-tone-accent-text, LinkText);
|
|
909
951
|
}
|
|
910
952
|
|
|
911
|
-
[data-ui
|
|
912
|
-
|
|
913
|
-
> [data-part='controls']
|
|
914
|
-
> *
|
|
915
|
-
> [data-part='toggle']:not(:disabled):hover,
|
|
916
|
-
[data-ui='page-header']
|
|
917
|
-
> *
|
|
918
|
-
> [data-part='controls']
|
|
919
|
-
> *
|
|
920
|
-
> [data-part='pin']:not(:disabled):hover {
|
|
953
|
+
[data-ui-page-header] > * > [data-part-controls] > * > [data-part-toggle]:not(:disabled):hover,
|
|
954
|
+
[data-ui-page-header] > * > [data-part-controls] > * > [data-part-pin]:not(:disabled):hover {
|
|
921
955
|
background-color: var(--slotted-tone-secondary-subtle-hover, ButtonFace);
|
|
922
956
|
color: var(--_text);
|
|
923
957
|
}
|
|
924
|
-
[data-ui
|
|
925
|
-
|
|
926
|
-
> [data-part='controls']
|
|
927
|
-
> *
|
|
928
|
-
> [data-part='toggle']:not(:disabled):active,
|
|
929
|
-
[data-ui='page-header']
|
|
930
|
-
> *
|
|
931
|
-
> [data-part='controls']
|
|
932
|
-
> *
|
|
933
|
-
> [data-part='pin']:not(:disabled):active {
|
|
958
|
+
[data-ui-page-header] > * > [data-part-controls] > * > [data-part-toggle]:not(:disabled):active,
|
|
959
|
+
[data-ui-page-header] > * > [data-part-controls] > * > [data-part-pin]:not(:disabled):active {
|
|
934
960
|
background-color: var(--slotted-tone-secondary-subtle-active, ButtonFace);
|
|
935
961
|
}
|
|
936
|
-
[data-ui
|
|
937
|
-
[data-ui
|
|
962
|
+
[data-ui-page-header] > * > [data-part-controls] > * > [data-part-toggle]:focus-visible,
|
|
963
|
+
[data-ui-page-header] > * > [data-part-controls] > * > [data-part-pin]:focus-visible {
|
|
938
964
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
939
965
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
940
966
|
}
|
|
941
|
-
[data-ui
|
|
942
|
-
[data-ui
|
|
967
|
+
[data-ui-page-header] > * > [data-part-controls] > * > [data-part-toggle]:disabled,
|
|
968
|
+
[data-ui-page-header] > * > [data-part-controls] > * > [data-part-pin]:disabled {
|
|
943
969
|
color: var(--slotted-disabled-foreground, GrayText);
|
|
944
970
|
cursor: default;
|
|
945
971
|
}
|
|
@@ -951,18 +977,18 @@
|
|
|
951
977
|
* why it needs no sticky of its own. The pill above it needs the room its
|
|
952
978
|
* lower half takes, so the slot starts half a control down.
|
|
953
979
|
*/
|
|
954
|
-
[data-ui
|
|
980
|
+
[data-ui-page-header] > * > [data-part-tabs] {
|
|
955
981
|
/* The root's bottom edge is the tabs' track: one line, the whole width. */
|
|
956
982
|
--slotted-tabs-track-color: transparent;
|
|
957
983
|
|
|
958
984
|
min-inline-size: 0;
|
|
959
985
|
padding-block-start: calc(var(--_control-size) / 2 + var(--slotted-space-2, 0.25rem));
|
|
960
986
|
}
|
|
961
|
-
[data-ui
|
|
987
|
+
[data-ui-page-header] > * > [data-part-tabs]:empty {
|
|
962
988
|
display: none;
|
|
963
989
|
}
|
|
964
990
|
/* Without a pill the tabs sit on the rule. */
|
|
965
|
-
[data-ui
|
|
991
|
+
[data-ui-page-header] > * > [data-part-controls]:empty + [data-part-tabs] {
|
|
966
992
|
padding-block-start: 0;
|
|
967
993
|
}
|
|
968
994
|
|
|
@@ -976,16 +1002,16 @@
|
|
|
976
1002
|
* The attribute is written twice, beside `data-part`, on purpose: the
|
|
977
1003
|
* deepest part rule sets `display` with six attribute selectors, and this
|
|
978
1004
|
* one has to outweigh it for any part at any depth, so it carries six as
|
|
979
|
-
* well and comes later. It is
|
|
1005
|
+
* well and comes later. It is honored on parts, which is where a consumer
|
|
980
1006
|
* writes it.
|
|
981
1007
|
*/
|
|
982
|
-
[data-ui
|
|
1008
|
+
[data-ui-page-header][data-expanded]
|
|
983
1009
|
> *
|
|
984
|
-
> [data-part
|
|
1010
|
+
> [data-part-title-area]
|
|
985
1011
|
[data-part][data-when='snapped'][data-when],
|
|
986
|
-
[data-ui
|
|
1012
|
+
[data-ui-page-header]:not([data-expanded])
|
|
987
1013
|
> *
|
|
988
|
-
> [data-part
|
|
1014
|
+
> [data-part-title-area]
|
|
989
1015
|
[data-part][data-when='expanded'][data-when] {
|
|
990
1016
|
display: none;
|
|
991
1017
|
}
|
|
@@ -998,31 +1024,31 @@
|
|
|
998
1024
|
* of the text it replaces, which is what keeps the height still when the
|
|
999
1025
|
* title arrives.
|
|
1000
1026
|
*/
|
|
1001
|
-
[data-ui
|
|
1027
|
+
[data-ui-page-header][data-loading]
|
|
1002
1028
|
> *
|
|
1003
|
-
> [data-part
|
|
1004
|
-
> [data-part
|
|
1005
|
-
> [data-part
|
|
1006
|
-
> [data-part
|
|
1029
|
+
> [data-part-title-area]
|
|
1030
|
+
> [data-part-title-row]
|
|
1031
|
+
> [data-part-title]
|
|
1032
|
+
> [data-part-heading] {
|
|
1007
1033
|
/* The width a title has, and no growth: grown, the heading pushed the
|
|
1008
1034
|
marks to the far end and they jumped back beside it when the title
|
|
1009
1035
|
arrived. The bar is what the words will be. */
|
|
1010
1036
|
--slotted-skeleton-inline-size: 24ch;
|
|
1011
1037
|
flex: 0 1 auto;
|
|
1012
1038
|
}
|
|
1013
|
-
[data-ui
|
|
1039
|
+
[data-ui-page-header][data-loading]
|
|
1014
1040
|
> *
|
|
1015
|
-
> [data-part
|
|
1016
|
-
> [data-part
|
|
1017
|
-
> [data-part
|
|
1018
|
-
> [data-part
|
|
1041
|
+
> [data-part-title-area]
|
|
1042
|
+
> [data-part-title-row]
|
|
1043
|
+
> [data-part-title]
|
|
1044
|
+
> [data-part-subheading] {
|
|
1019
1045
|
--slotted-skeleton-inline-size: 32ch;
|
|
1020
1046
|
}
|
|
1021
|
-
[data-ui
|
|
1047
|
+
[data-ui-page-header][data-loading]
|
|
1022
1048
|
> *
|
|
1023
|
-
> [data-part
|
|
1024
|
-
> [data-part
|
|
1025
|
-
> [data-part
|
|
1049
|
+
> [data-part-header-area]
|
|
1050
|
+
> [data-part-content]
|
|
1051
|
+
> [data-part-description] {
|
|
1026
1052
|
--slotted-skeleton-inline-size: 40ch;
|
|
1027
1053
|
}
|
|
1028
1054
|
|
|
@@ -1036,26 +1062,37 @@
|
|
|
1036
1062
|
* the lines the container's own breakout part spans — so the bar is the
|
|
1037
1063
|
* header's width, as the line is, and not the measure's.
|
|
1038
1064
|
*
|
|
1039
|
-
*
|
|
1040
|
-
*
|
|
1041
|
-
*
|
|
1042
|
-
*
|
|
1043
|
-
*
|
|
1044
|
-
* which is why the frame does not clip.
|
|
1065
|
+
* With a pill over the tabs it stands on the edge the pill straddles, the
|
|
1066
|
+
* line the reader already sees as the chrome's end. Otherwise it is the
|
|
1067
|
+
* root's own hairline, under the tabs when there are tabs: it is the only
|
|
1068
|
+
* line there is. The bar stands on the frame's block-end edge and its
|
|
1069
|
+
* thickness rises above it, which is why the frame does not clip.
|
|
1045
1070
|
*
|
|
1046
1071
|
* A snapped header keeps its edge on screen, and the frame keeps its place
|
|
1047
1072
|
* beside the controls, so the bar stays with it. Above the title area,
|
|
1048
1073
|
* whose ground would cover the bar's upper pixel once the area has slid
|
|
1049
1074
|
* under the title; below the controls, whose pill straddles the same line.
|
|
1075
|
+
*
|
|
1076
|
+
* The place is the stylesheet's, not the order the parts are written in:
|
|
1077
|
+
* the frame is the last row, on the root's hairline, and with a pill over
|
|
1078
|
+
* the tabs the tabs move after it, so the frame is the row under the
|
|
1079
|
+
* controls. Written before the tabs with no pill, the frame was a row of
|
|
1080
|
+
* its own between the title and the strip, over no line.
|
|
1050
1081
|
*/
|
|
1051
|
-
[data-ui
|
|
1082
|
+
[data-ui-page-header] > * > [data-part-progress] {
|
|
1052
1083
|
block-size: var(--_rule-size);
|
|
1053
1084
|
grid-column: full;
|
|
1054
1085
|
margin-block-end: calc(-1 * var(--_rule-size));
|
|
1086
|
+
order: 1;
|
|
1055
1087
|
pointer-events: none;
|
|
1056
1088
|
position: relative;
|
|
1057
1089
|
z-index: 3;
|
|
1058
1090
|
}
|
|
1091
|
+
[data-ui-page-header]:has(> * > [data-part-controls]):has(> * > [data-part-tabs]:not(:empty))
|
|
1092
|
+
> *
|
|
1093
|
+
> [data-part-tabs] {
|
|
1094
|
+
order: 2;
|
|
1095
|
+
}
|
|
1059
1096
|
|
|
1060
1097
|
/**
|
|
1061
1098
|
* One wait at a time. The title's skeleton is the first load, and a
|
|
@@ -1064,8 +1101,8 @@
|
|
|
1064
1101
|
* inside it. The second rule reads an ARIA state rather than another
|
|
1065
1102
|
* family's identity, so any region a consumer marks busy takes it.
|
|
1066
1103
|
*/
|
|
1067
|
-
[data-ui
|
|
1068
|
-
[aria-busy='true'] [data-ui
|
|
1104
|
+
[data-ui-page-header][data-loading] > * > [data-part-progress],
|
|
1105
|
+
[aria-busy='true'] [data-ui-page-header] > * > [data-part-progress] {
|
|
1069
1106
|
display: none;
|
|
1070
1107
|
}
|
|
1071
1108
|
|
|
@@ -1079,7 +1116,7 @@
|
|
|
1079
1116
|
* against the component's own width rather than the viewport.
|
|
1080
1117
|
*/
|
|
1081
1118
|
@container page-header (width < 600px) {
|
|
1082
|
-
[data-ui
|
|
1119
|
+
[data-ui-page-header] {
|
|
1083
1120
|
--_heading-size: var(
|
|
1084
1121
|
--slotted-page-header-heading-size-sm,
|
|
1085
1122
|
var(--slotted-font-size-xl, 1.125rem)
|
|
@@ -1091,29 +1128,25 @@
|
|
|
1091
1128
|
);
|
|
1092
1129
|
--_snapped-heading-line-height: var(--slotted-line-height-md, 1.5);
|
|
1093
1130
|
}
|
|
1094
|
-
[data-ui
|
|
1131
|
+
[data-ui-page-header]
|
|
1095
1132
|
> *
|
|
1096
|
-
> [data-part
|
|
1097
|
-
> [data-part
|
|
1098
|
-
> [data-part
|
|
1099
|
-
~ [data-part
|
|
1133
|
+
> [data-part-title-area]
|
|
1134
|
+
> [data-part-nav]
|
|
1135
|
+
> [data-part-back]
|
|
1136
|
+
~ [data-part-breadcrumbs] {
|
|
1100
1137
|
display: none;
|
|
1101
1138
|
}
|
|
1102
|
-
[data-ui
|
|
1139
|
+
[data-ui-page-header]
|
|
1103
1140
|
> *
|
|
1104
|
-
> [data-part
|
|
1105
|
-
> [data-part
|
|
1106
|
-
> [data-part
|
|
1141
|
+
> [data-part-title-area]
|
|
1142
|
+
> [data-part-nav]
|
|
1143
|
+
> [data-part-back]:has(~ [data-part-breadcrumbs]:not(:empty)) {
|
|
1107
1144
|
display: inline-flex;
|
|
1108
1145
|
}
|
|
1109
|
-
[data-ui
|
|
1146
|
+
[data-ui-page-header] > * > [data-part-controls] > * > [data-part-pin] {
|
|
1110
1147
|
display: none;
|
|
1111
1148
|
}
|
|
1112
|
-
[data-ui
|
|
1113
|
-
> *
|
|
1114
|
-
> [data-part='title-area']
|
|
1115
|
-
> [data-part='title-row']
|
|
1116
|
-
> [data-part='title'] {
|
|
1149
|
+
[data-ui-page-header] > * > [data-part-title-area] > [data-part-title-row] > [data-part-title] {
|
|
1117
1150
|
flex: 1 1 0;
|
|
1118
1151
|
min-inline-size: 60%;
|
|
1119
1152
|
}
|
|
@@ -1123,57 +1156,79 @@
|
|
|
1123
1156
|
* title that leaves it room, the grown box put one button at its own
|
|
1124
1157
|
* start, mid-row, off the edge every other width aligns it to.
|
|
1125
1158
|
*/
|
|
1126
|
-
[data-ui
|
|
1159
|
+
[data-ui-page-header]
|
|
1127
1160
|
> *
|
|
1128
|
-
> [data-part
|
|
1129
|
-
> [data-part
|
|
1130
|
-
> [data-part
|
|
1161
|
+
> [data-part-title-area]
|
|
1162
|
+
> [data-part-title-row]
|
|
1163
|
+
> [data-part-actions] {
|
|
1131
1164
|
flex: 1 1 auto;
|
|
1132
1165
|
justify-content: flex-end;
|
|
1133
1166
|
}
|
|
1134
1167
|
/* The marks take a line of their own under the heading: beside it their break depends on
|
|
1135
1168
|
what they say, which the waiting header cannot know, and the header grew when it landed. */
|
|
1136
|
-
[data-ui
|
|
1169
|
+
[data-ui-page-header]
|
|
1137
1170
|
> *
|
|
1138
|
-
> [data-part
|
|
1139
|
-
> [data-part
|
|
1140
|
-
> [data-part
|
|
1141
|
-
> [data-part
|
|
1171
|
+
> [data-part-title-area]
|
|
1172
|
+
> [data-part-title-row]
|
|
1173
|
+
> [data-part-title]
|
|
1174
|
+
> [data-part-marks] {
|
|
1142
1175
|
flex-basis: 100%;
|
|
1143
1176
|
}
|
|
1144
|
-
[data-ui
|
|
1177
|
+
[data-ui-page-header]
|
|
1145
1178
|
> *
|
|
1146
|
-
> [data-part
|
|
1147
|
-
> [data-part
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
> [data-part='title']
|
|
1151
|
-
> [data-part='marks'] {
|
|
1179
|
+
> [data-part-title-area]
|
|
1180
|
+
> [data-part-title-row]:has(> [data-part-actions] > [data-ui-toolbar][data-overflow='menu'])
|
|
1181
|
+
> [data-part-title]
|
|
1182
|
+
> [data-part-marks] {
|
|
1152
1183
|
grid-column: 1 / -1;
|
|
1153
1184
|
}
|
|
1185
|
+
/* A rich title — a visual, marks or a subheading — leaves a whole row free under it, and a toolbar
|
|
1186
|
+
that folds takes that row: beside the title it had the 40 per cent the title left, and
|
|
1187
|
+
folded every action on a 390 pixel phone. Beside a plain title it stays on the title row. */
|
|
1188
|
+
[data-ui-page-header]
|
|
1189
|
+
> *
|
|
1190
|
+
> [data-part-title-area]
|
|
1191
|
+
> [data-part-title-row]:has(
|
|
1192
|
+
> [data-part-actions] > [data-ui-toolbar][data-overflow='menu']
|
|
1193
|
+
):has(
|
|
1194
|
+
> [data-part-visual],
|
|
1195
|
+
> [data-part-title] > :is([data-part-subheading], [data-part-marks]:not(:empty))
|
|
1196
|
+
) {
|
|
1197
|
+
flex-wrap: wrap;
|
|
1198
|
+
}
|
|
1199
|
+
[data-ui-page-header]
|
|
1200
|
+
> *
|
|
1201
|
+
> [data-part-title-area]
|
|
1202
|
+
> [data-part-title-row]:has(
|
|
1203
|
+
> [data-part-visual],
|
|
1204
|
+
> [data-part-title] > :is([data-part-subheading], [data-part-marks]:not(:empty))
|
|
1205
|
+
)
|
|
1206
|
+
> [data-part-actions]:has(> [data-ui-toolbar][data-overflow='menu']) {
|
|
1207
|
+
flex: 1 1 100%;
|
|
1208
|
+
}
|
|
1154
1209
|
/* One line, as snapped: the phone has no second one to give it. */
|
|
1155
|
-
[data-ui
|
|
1210
|
+
[data-ui-page-header]
|
|
1156
1211
|
> *
|
|
1157
|
-
> [data-part
|
|
1158
|
-
> [data-part
|
|
1159
|
-
> [data-part
|
|
1160
|
-
> [data-part
|
|
1212
|
+
> [data-part-title-area]
|
|
1213
|
+
> [data-part-title-row]
|
|
1214
|
+
> [data-part-title]
|
|
1215
|
+
> [data-part-subheading] {
|
|
1161
1216
|
display: block;
|
|
1162
1217
|
text-overflow: ellipsis;
|
|
1163
1218
|
white-space: nowrap;
|
|
1164
1219
|
}
|
|
1165
|
-
[data-ui
|
|
1220
|
+
[data-ui-page-header]
|
|
1166
1221
|
> *
|
|
1167
|
-
> [data-part
|
|
1168
|
-
> [data-part
|
|
1169
|
-
> [data-part
|
|
1222
|
+
> [data-part-title-area]
|
|
1223
|
+
> [data-part-title-row]
|
|
1224
|
+
> [data-part-navigation] {
|
|
1170
1225
|
border-inline-start: 0;
|
|
1171
1226
|
padding-inline-start: 0;
|
|
1172
1227
|
}
|
|
1173
|
-
[data-ui
|
|
1228
|
+
[data-ui-page-header] > * > [data-part-header-area] {
|
|
1174
1229
|
grid-template-columns: minmax(0, 1fr);
|
|
1175
1230
|
}
|
|
1176
|
-
[data-ui
|
|
1231
|
+
[data-ui-page-header] > * > [data-part-header-area] > [data-part-figure] {
|
|
1177
1232
|
padding-block-end: var(--_gap);
|
|
1178
1233
|
padding-inline-end: 0;
|
|
1179
1234
|
}
|