@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
|
@@ -87,6 +87,12 @@ export const RUNTIME_PROPERTY_PREFIXES = [
|
|
|
87
87
|
* file every one of them as unreachable by a theme.
|
|
88
88
|
*/
|
|
89
89
|
'--slotted-tree-depth',
|
|
90
|
+
/**
|
|
91
|
+
* `table` — the rails of ancestors that cross one row of a hierarchy, as
|
|
92
|
+
* layers of a background: `@slotted/core/tree-branches` writes it from the
|
|
93
|
+
* order and the levels of the rows in the document.
|
|
94
|
+
*/
|
|
95
|
+
'--slotted-tree-rails',
|
|
90
96
|
/**
|
|
91
97
|
* `tree` — where one row sits on a windowed canvas, in pixels. It is written
|
|
92
98
|
* only on a row the window does not cover and the family renders anyway: the
|
|
@@ -143,6 +149,8 @@ export const RUNTIME_PROPERTY_PREFIXES = [
|
|
|
143
149
|
'--slotted-data-grid-pinned-bottom-offset',
|
|
144
150
|
'--slotted-data-grid-window-start',
|
|
145
151
|
'--slotted-data-grid-window-total',
|
|
152
|
+
/** The scroller's measured width, which holds a detail, a group row and the empty state to the frame. */
|
|
153
|
+
'--slotted-data-grid-viewport',
|
|
146
154
|
/** The measured body row height, which the skeleton rows take while the rows load. */
|
|
147
155
|
'--slotted-data-grid-loader-row-size',
|
|
148
156
|
'--slotted-data-grid-leading',
|
|
@@ -239,7 +247,7 @@ export const RUNTIME_PROPERTY_PREFIXES = [
|
|
|
239
247
|
/**
|
|
240
248
|
* `rating` — where the spectrum places the mean and the two ends of its 95%
|
|
241
249
|
* interval on the scale, from 1 to the maximum, written on the summary's
|
|
242
|
-
* root from `
|
|
250
|
+
* root from `summarizeRatings`.
|
|
243
251
|
*/
|
|
244
252
|
'--slotted-rating-mean',
|
|
245
253
|
'--slotted-rating-low',
|
|
@@ -283,11 +291,11 @@ export const RUNTIME_PROPERTY_PREFIXES = [
|
|
|
283
291
|
*/
|
|
284
292
|
'--slotted-carousel-overscroll',
|
|
285
293
|
/**
|
|
286
|
-
* `color-picker` — the
|
|
287
|
-
* alpha, the hue it remembers when the
|
|
288
|
-
* thumb stands (saturation and brightness, 0 to 1), how opaque the
|
|
289
|
-
* is (0 to 1), and the
|
|
290
|
-
* root by the binding from the value `@slotted/core/color` parsed; a
|
|
294
|
+
* `color-picker` — the color this instance holds, with and without its
|
|
295
|
+
* alpha, the hue it remembers when the color has none, where the area's
|
|
296
|
+
* thumb stands (saturation and brightness, 0 to 1), how opaque the color
|
|
297
|
+
* is (0 to 1), and the color the panel opened with. Each is written on the
|
|
298
|
+
* root by the binding from the value `@slotted/core/color` parsed; a color
|
|
291
299
|
* the reader picked is a fact about this instance, which no theme can hold.
|
|
292
300
|
*/
|
|
293
301
|
'--slotted-color-picker-color',
|
|
@@ -313,6 +321,36 @@ export const RUNTIME_PROPERTY_PREFIXES = [
|
|
|
313
321
|
'--slotted-navigation-menu-viewport-block-start',
|
|
314
322
|
'--slotted-navigation-menu-arrow-offset',
|
|
315
323
|
'--slotted-navigation-menu-available-inline-size',
|
|
324
|
+
/**
|
|
325
|
+
* `media-viewer` — the box the picture takes at the current level and its
|
|
326
|
+
* quarter turn, measured from the stage and the picture's own size by the
|
|
327
|
+
* binding. The family also owns theme tokens under the same prefix, so each
|
|
328
|
+
* is named one by one.
|
|
329
|
+
*/
|
|
330
|
+
'--slotted-media-viewer-frame-inline-size',
|
|
331
|
+
'--slotted-media-viewer-frame-block-size',
|
|
332
|
+
'--slotted-media-viewer-media-inline-size',
|
|
333
|
+
'--slotted-media-viewer-media-block-size',
|
|
334
|
+
'--slotted-media-viewer-rotation',
|
|
335
|
+
/**
|
|
336
|
+
* `table` — how deep a folded row sits under the rows above it, for the
|
|
337
|
+
* reason `tree-depth` is: a fact about the consumer's data, stated per row.
|
|
338
|
+
* The step is `--slotted-table-tree-indent`, which is a token.
|
|
339
|
+
*/
|
|
340
|
+
'--slotted-table-depth',
|
|
341
|
+
/**
|
|
342
|
+
* `meter` — the share of the track the indicator covers, from the value the
|
|
343
|
+
* consumer states. No theme can know it.
|
|
344
|
+
*/
|
|
345
|
+
'--slotted-meter-ratio',
|
|
346
|
+
/**
|
|
347
|
+
* `sparkline` — where a mark of a position strip or a comparison stands on
|
|
348
|
+
* its axis, as a share from the consumer's data. The family owns theme
|
|
349
|
+
* tokens under the same prefix, so each is named one by one.
|
|
350
|
+
*/
|
|
351
|
+
'--slotted-sparkline-at',
|
|
352
|
+
'--slotted-sparkline-from',
|
|
353
|
+
'--slotted-sparkline-to',
|
|
316
354
|
];
|
|
317
355
|
|
|
318
356
|
/** Whether a custom property is written by script rather than by a theme. */
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* with child combinators so a `label` or a `root` of theirs is never
|
|
20
20
|
* restyled.
|
|
21
21
|
*/
|
|
22
|
-
[data-ui
|
|
22
|
+
[data-ui-saved-views] {
|
|
23
23
|
--_text: var(--slotted-text, CanvasText);
|
|
24
24
|
--_muted: var(--slotted-text-muted, GrayText);
|
|
25
25
|
--_hover: var(--slotted-tone-secondary-subtle-hover, ButtonFace);
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
* The trigger and revert on one row that wraps: at 240 pixels the revert
|
|
49
49
|
* control drops under the trigger rather than pushing it out of the box.
|
|
50
50
|
*/
|
|
51
|
-
[data-ui
|
|
51
|
+
[data-ui-saved-views][data-part-root] {
|
|
52
52
|
display: inline-flex;
|
|
53
53
|
flex-wrap: wrap;
|
|
54
54
|
align-items: center;
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
* control shadow and the control surface, so the view in use reads as a
|
|
63
63
|
* value the reader can change rather than as a heading.
|
|
64
64
|
*/
|
|
65
|
-
[data-ui
|
|
65
|
+
[data-ui-saved-views] > [data-part-trigger] {
|
|
66
66
|
display: inline-flex;
|
|
67
67
|
align-items: center;
|
|
68
68
|
gap: var(--_gap);
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
/** Truncated on one line; the whole name stays in the DOM and in the button's name. */
|
|
89
|
-
[data-ui
|
|
89
|
+
[data-ui-saved-views] > [data-part-trigger] > [data-label] {
|
|
90
90
|
min-inline-size: 0;
|
|
91
91
|
overflow: hidden;
|
|
92
92
|
text-overflow: ellipsis;
|
|
@@ -94,21 +94,21 @@
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
/** The chevron, an `icon` after the name, turning over while the layer is open. */
|
|
97
|
-
[data-ui
|
|
97
|
+
[data-ui-saved-views] > [data-part-trigger] > [data-ui-icon] {
|
|
98
98
|
margin-inline-end: calc(var(--slotted-space-2, 0.25rem) * -1);
|
|
99
99
|
color: var(--_muted);
|
|
100
100
|
transition: rotate var(--_duration) var(--_easing);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
[data-ui
|
|
103
|
+
[data-ui-saved-views][data-open] > [data-part-trigger] > [data-ui-icon] {
|
|
104
104
|
rotate: 180deg;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
[data-ui
|
|
107
|
+
[data-ui-saved-views] > [data-part-trigger]:hover:not(:disabled) {
|
|
108
108
|
background: var(--_hover);
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
[data-ui
|
|
111
|
+
[data-ui-saved-views] > [data-part-trigger]:active:not(:disabled) {
|
|
112
112
|
background: var(--_active);
|
|
113
113
|
transition-duration: var(--slotted-duration-instant);
|
|
114
114
|
}
|
|
@@ -116,9 +116,9 @@
|
|
|
116
116
|
/**
|
|
117
117
|
* The mark: a dot in the accent solid and the word, in the muted ink and
|
|
118
118
|
* the regular weight, so the name stays the loudest thing in the control
|
|
119
|
-
* and the state is never
|
|
119
|
+
* and the state is never color alone.
|
|
120
120
|
*/
|
|
121
|
-
[data-ui
|
|
121
|
+
[data-ui-saved-views] > [data-part-trigger] > [data-part-modified] {
|
|
122
122
|
display: inline-flex;
|
|
123
123
|
flex: none;
|
|
124
124
|
align-items: center;
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
font-weight: var(--slotted-font-weight-regular, 400);
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
[data-ui
|
|
133
|
+
[data-ui-saved-views] > [data-part-trigger] > [data-part-modified]::before {
|
|
134
134
|
content: '';
|
|
135
135
|
flex: none;
|
|
136
136
|
inline-size: var(--slotted-space-4, 0.5rem);
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
/** Revert: a ghost control with the counter-clockwise arrow, at the trigger's height. */
|
|
143
|
-
[data-ui
|
|
143
|
+
[data-ui-saved-views] > [data-part-revert] {
|
|
144
144
|
display: inline-flex;
|
|
145
145
|
align-items: center;
|
|
146
146
|
gap: var(--slotted-space-3, 0.375rem);
|
|
@@ -159,17 +159,17 @@
|
|
|
159
159
|
transition: background-color var(--_duration) var(--_easing);
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
[data-ui
|
|
162
|
+
[data-ui-saved-views] > [data-part-revert]:hover:not(:disabled) {
|
|
163
163
|
background: var(--slotted-tone-accent-subtle-hover, ButtonFace);
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
[data-ui
|
|
166
|
+
[data-ui-saved-views] > [data-part-revert]:active:not(:disabled) {
|
|
167
167
|
background: var(--slotted-tone-accent-subtle-active, ButtonFace);
|
|
168
168
|
transition-duration: var(--slotted-duration-instant);
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
[data-ui
|
|
172
|
-
[data-ui
|
|
171
|
+
[data-ui-saved-views] > [data-part-trigger]:focus-visible,
|
|
172
|
+
[data-ui-saved-views] > [data-part-revert]:focus-visible {
|
|
173
173
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
174
174
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
175
175
|
}
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
* would change width as views are renamed. The padding keeps a row's hover
|
|
183
183
|
* ground off the popover's rounded edge.
|
|
184
184
|
*/
|
|
185
|
-
[data-ui
|
|
185
|
+
[data-ui-saved-views][data-part-panel] {
|
|
186
186
|
display: grid;
|
|
187
187
|
/* One track that grows to the token and gives way to zero: the panel's
|
|
188
188
|
min-content is nothing and its max-content the token, so a popover
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
padding: var(--slotted-space-2, 0.25rem);
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
[data-ui
|
|
196
|
+
[data-ui-saved-views][data-part-panel] > [data-part-list] {
|
|
197
197
|
display: grid;
|
|
198
198
|
gap: var(--slotted-space-1, 0.125rem);
|
|
199
199
|
margin: 0;
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
/** A row: the view's name across, its actions at the inline end. */
|
|
205
|
-
[data-ui
|
|
205
|
+
[data-ui-saved-views][data-part-panel] > [data-part-list] > [data-part-item] {
|
|
206
206
|
display: grid;
|
|
207
207
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
208
208
|
align-items: start;
|
|
@@ -210,9 +210,7 @@
|
|
|
210
210
|
margin: 0;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
[data-ui
|
|
214
|
-
> [data-part='list']
|
|
215
|
-
> [data-part='item'][data-editing] {
|
|
213
|
+
[data-ui-saved-views][data-part-panel] > [data-part-list] > [data-part-item][data-editing] {
|
|
216
214
|
grid-template-columns: minmax(0, 1fr);
|
|
217
215
|
}
|
|
218
216
|
|
|
@@ -224,7 +222,7 @@
|
|
|
224
222
|
* binding draws the check on the view in use alone, and the name keeps the
|
|
225
223
|
* second column whether the check stands before it or not.
|
|
226
224
|
*/
|
|
227
|
-
[data-ui
|
|
225
|
+
[data-ui-saved-views][data-part-panel] [data-part-apply] {
|
|
228
226
|
display: grid;
|
|
229
227
|
grid-template-columns: var(--_icon-size-sm) minmax(0, max-content) auto;
|
|
230
228
|
justify-content: start;
|
|
@@ -253,40 +251,38 @@
|
|
|
253
251
|
* The check, an `icon` on the name's first line and on its text rather than
|
|
254
252
|
* its line box (`docs/build-briefing.md`, Decisions already taken). Its
|
|
255
253
|
* bottom sits on the baseline; the translate lowers it by half its size less
|
|
256
|
-
* half the band, the midpoint of cap height and x-height, so its
|
|
254
|
+
* half the band, the midpoint of cap height and x-height, so its center is
|
|
257
255
|
* the band's.
|
|
258
256
|
*/
|
|
259
|
-
[data-ui
|
|
257
|
+
[data-ui-saved-views][data-part-panel] [data-part-apply] > [data-ui-icon] {
|
|
260
258
|
color: var(--slotted-tone-accent-text);
|
|
261
259
|
translate: 0 calc(var(--_icon-size-sm) / 2 - (1cap + 1ex) / 4);
|
|
262
260
|
}
|
|
263
261
|
|
|
264
|
-
[data-ui
|
|
265
|
-
[data-part='item'][data-current]
|
|
266
|
-
> [data-part='apply'] {
|
|
262
|
+
[data-ui-saved-views][data-part-panel] [data-part-item][data-current] > [data-part-apply] {
|
|
267
263
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
268
264
|
}
|
|
269
265
|
|
|
270
266
|
/** A long name wraps inside the row; nothing is cut. */
|
|
271
|
-
[data-ui
|
|
267
|
+
[data-ui-saved-views][data-part-panel] [data-part-apply] > [data-label] {
|
|
272
268
|
grid-column: 2;
|
|
273
269
|
min-inline-size: 0;
|
|
274
270
|
overflow-wrap: anywhere;
|
|
275
271
|
}
|
|
276
272
|
|
|
277
|
-
[data-ui
|
|
278
|
-
[data-ui
|
|
273
|
+
[data-ui-saved-views][data-part-panel] [data-part-apply]:hover:not(:disabled),
|
|
274
|
+
[data-ui-saved-views][data-part-panel] [data-part-actions]:hover:not(:disabled) {
|
|
279
275
|
background: var(--_hover);
|
|
280
276
|
}
|
|
281
277
|
|
|
282
|
-
[data-ui
|
|
283
|
-
[data-ui
|
|
278
|
+
[data-ui-saved-views][data-part-panel] [data-part-apply]:active:not(:disabled),
|
|
279
|
+
[data-ui-saved-views][data-part-panel] [data-part-actions]:active:not(:disabled) {
|
|
284
280
|
background: var(--_active);
|
|
285
281
|
transition-duration: var(--slotted-duration-instant);
|
|
286
282
|
}
|
|
287
283
|
|
|
288
284
|
/** The pin: the view a visit opens on. The word beside it is for the ear only. */
|
|
289
|
-
[data-ui
|
|
285
|
+
[data-ui-saved-views][data-part-panel] [data-part-apply] > [data-part-default-mark] {
|
|
290
286
|
/* A flex box, so the pin `icon` inside is laid out as an item and not on
|
|
291
287
|
a line of its own that would stand taller than the mark. */
|
|
292
288
|
display: flex;
|
|
@@ -299,9 +295,7 @@
|
|
|
299
295
|
color: var(--_muted);
|
|
300
296
|
}
|
|
301
297
|
|
|
302
|
-
[data-ui
|
|
303
|
-
[data-part='default-mark']
|
|
304
|
-
> span:not([data-ui='icon']) {
|
|
298
|
+
[data-ui-saved-views][data-part-panel] [data-part-default-mark] > span:not([data-ui-icon]) {
|
|
305
299
|
position: absolute;
|
|
306
300
|
inline-size: 1px;
|
|
307
301
|
block-size: 1px;
|
|
@@ -314,7 +308,7 @@
|
|
|
314
308
|
* The row's menu: a square at the small control height with the ellipsis
|
|
315
309
|
* `icon`, muted at rest and on the text ink under the pointer.
|
|
316
310
|
*/
|
|
317
|
-
[data-ui
|
|
311
|
+
[data-ui-saved-views][data-part-panel] [data-part-actions] {
|
|
318
312
|
display: inline-grid;
|
|
319
313
|
place-items: center;
|
|
320
314
|
box-sizing: border-box;
|
|
@@ -332,14 +326,14 @@
|
|
|
332
326
|
color var(--_duration) var(--_easing);
|
|
333
327
|
}
|
|
334
328
|
|
|
335
|
-
[data-ui
|
|
336
|
-
[data-ui
|
|
329
|
+
[data-ui-saved-views][data-part-panel] [data-part-actions][data-open],
|
|
330
|
+
[data-ui-saved-views][data-part-panel] [data-part-actions]:hover:not(:disabled) {
|
|
337
331
|
color: var(--_text);
|
|
338
332
|
}
|
|
339
333
|
|
|
340
334
|
/** Drawn inward: the rows sit one space step apart and an outward ring would cross the next. */
|
|
341
|
-
[data-ui
|
|
342
|
-
[data-ui
|
|
335
|
+
[data-ui-saved-views][data-part-panel] [data-part-apply]:focus-visible,
|
|
336
|
+
[data-ui-saved-views][data-part-panel] [data-part-actions]:focus-visible {
|
|
343
337
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
344
338
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
345
339
|
}
|
|
@@ -351,8 +345,8 @@
|
|
|
351
345
|
* view; and the confirmation, in the row being deleted. Both stand on the
|
|
352
346
|
* sunken surface so the row reads as one being edited.
|
|
353
347
|
*/
|
|
354
|
-
[data-ui
|
|
355
|
-
[data-ui
|
|
348
|
+
[data-ui-saved-views][data-part-panel] [data-part-form],
|
|
349
|
+
[data-ui-saved-views][data-part-panel] [data-part-confirm] {
|
|
356
350
|
display: grid;
|
|
357
351
|
gap: var(--slotted-space-4, 0.5rem);
|
|
358
352
|
margin: 0;
|
|
@@ -361,13 +355,13 @@
|
|
|
361
355
|
background: var(--slotted-surface-sunken, Canvas);
|
|
362
356
|
}
|
|
363
357
|
|
|
364
|
-
[data-ui
|
|
358
|
+
[data-ui-saved-views][data-part-panel] [data-part-confirm] > p {
|
|
365
359
|
margin: 0;
|
|
366
360
|
overflow-wrap: anywhere;
|
|
367
361
|
}
|
|
368
362
|
|
|
369
|
-
[data-ui
|
|
370
|
-
:is([data-part
|
|
363
|
+
[data-ui-saved-views][data-part-panel]
|
|
364
|
+
:is([data-part-form], [data-part-confirm])
|
|
371
365
|
> [data-buttons] {
|
|
372
366
|
display: flex;
|
|
373
367
|
flex-wrap: wrap;
|
|
@@ -376,7 +370,7 @@
|
|
|
376
370
|
}
|
|
377
371
|
|
|
378
372
|
/** Save as new view… then Save, at the inline end, under a rule. */
|
|
379
|
-
[data-ui
|
|
373
|
+
[data-ui-saved-views][data-part-panel] > [data-part-footer] {
|
|
380
374
|
display: flex;
|
|
381
375
|
flex-wrap: wrap;
|
|
382
376
|
justify-content: flex-end;
|
|
@@ -387,7 +381,7 @@
|
|
|
387
381
|
}
|
|
388
382
|
|
|
389
383
|
@media (forced-colors: active) {
|
|
390
|
-
[data-ui
|
|
384
|
+
[data-ui-saved-views] > [data-part-trigger] > [data-part-modified]::before {
|
|
391
385
|
forced-color-adjust: none;
|
|
392
386
|
}
|
|
393
387
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* all hide the native bar — `scrollbar-width: none` plus a
|
|
7
7
|
* `::-webkit-scrollbar` rule — and redraw it from a thumb element kept in
|
|
8
8
|
* sync by a scroll listener and a `ResizeObserver`. That costs the trough
|
|
9
|
-
* click, the scrollbar context menu, the system's own overlay
|
|
9
|
+
* click, the scrollbar context menu, the system's own overlay behavior, and
|
|
10
10
|
* the correct bar before hydration or without JavaScript.
|
|
11
11
|
* `docs/component-features.md` §4 asks for the opposite in this family's own
|
|
12
12
|
* sentence, and `scrollbar-color` reached Baseline in December 2025, so the
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
* mask is not on. `root` is that element: it holds the border, the radius and
|
|
35
35
|
* the maximum, and `viewport` inside it holds the scroll and the veil.
|
|
36
36
|
*/
|
|
37
|
-
[data-ui
|
|
37
|
+
[data-ui-scroll-area] {
|
|
38
38
|
/**
|
|
39
39
|
* How far the veil reaches in from an edge that has content behind it.
|
|
40
40
|
*
|
|
@@ -68,16 +68,22 @@
|
|
|
68
68
|
* automatic minimum is its content, and without the override a scrollport
|
|
69
69
|
* inside a bounded box grows to its content and scrolls nothing.
|
|
70
70
|
*
|
|
71
|
+
* The row is a flexible track, not the implicit `auto` one: an `auto` row
|
|
72
|
+
* sizes to its content and ignores a `max-block-size`, so a box bounded by
|
|
73
|
+
* `maxBlockSize` stopped at the bound while the scrollport overflowed it.
|
|
74
|
+
* A flexible track is the one grid sizing clamps to the container's maximum.
|
|
75
|
+
*
|
|
71
76
|
* The family paints no frame of its own. A border, a radius and a ground
|
|
72
77
|
* are the consumer's, and they go here — on the element the mask is not on.
|
|
73
78
|
*/
|
|
74
79
|
display: grid;
|
|
80
|
+
grid-template-rows: minmax(0, 1fr);
|
|
75
81
|
box-sizing: border-box;
|
|
76
82
|
min-block-size: 0;
|
|
77
83
|
min-inline-size: 0;
|
|
78
84
|
}
|
|
79
85
|
|
|
80
|
-
[data-ui
|
|
86
|
+
[data-ui-scroll-area] > [data-part-viewport] {
|
|
81
87
|
/**
|
|
82
88
|
* One length per logical edge: the veil's reach where that end of the
|
|
83
89
|
* content is out of view, and nothing where it is showing.
|
|
@@ -129,7 +135,7 @@
|
|
|
129
135
|
|
|
130
136
|
/**
|
|
131
137
|
* `thin` rather than `auto`, and it is still the platform's bar: the trough
|
|
132
|
-
* click, the scrollbar context menu and the system's own
|
|
138
|
+
* click, the scrollbar context menu and the system's own behavior all
|
|
133
139
|
* survive it. What it drops is the pair of stepper buttons Chrome draws on
|
|
134
140
|
* Linux and Windows once a scrollbar is themed at all — read in the first
|
|
135
141
|
* capture with a bar visible, they took thirty-two pixels off a hundred and
|
|
@@ -152,10 +158,10 @@
|
|
|
152
158
|
* content. A mask applies to the border box and stays.
|
|
153
159
|
*
|
|
154
160
|
* It is a mask rather than a gradient for the reason `table` wrote when it
|
|
155
|
-
* refused one: a gradient over the content has to be the
|
|
161
|
+
* refused one: a gradient over the content has to be the color of the
|
|
156
162
|
* ground beneath it, so it is wrong on every surface but one and in every
|
|
157
163
|
* scheme but one. A mask fades the content to transparent and needs no ink
|
|
158
|
-
* at all — `#000` here is alpha 1, not a
|
|
164
|
+
* at all — `#000` here is alpha 1, not a color decision.
|
|
159
165
|
*
|
|
160
166
|
* One layer per physical axis, each fading both of its ends, composed with
|
|
161
167
|
* `intersect` so the two alphas multiply at a corner.
|
|
@@ -205,7 +211,7 @@
|
|
|
205
211
|
* attribute form would then paint the veil on the edge the reader can already
|
|
206
212
|
* see.
|
|
207
213
|
*/
|
|
208
|
-
[data-ui
|
|
214
|
+
[data-ui-scroll-area]:dir(rtl) > [data-part-viewport] {
|
|
209
215
|
--_fade-left: var(--_scroll-area-fade-inline-end);
|
|
210
216
|
--_fade-right: var(--_scroll-area-fade-inline-start);
|
|
211
217
|
}
|
|
@@ -220,21 +226,21 @@
|
|
|
220
226
|
* `@supports` is needed for that — an unknown declaration is discarded at
|
|
221
227
|
* parse time and the cascade does the rest.
|
|
222
228
|
*/
|
|
223
|
-
[data-ui
|
|
229
|
+
[data-ui-scroll-area][data-axis='block'] > [data-part-viewport] {
|
|
224
230
|
overflow-x: hidden;
|
|
225
231
|
overflow-y: auto;
|
|
226
232
|
overflow-inline: hidden;
|
|
227
233
|
overflow-block: auto;
|
|
228
234
|
}
|
|
229
235
|
|
|
230
|
-
[data-ui
|
|
236
|
+
[data-ui-scroll-area][data-axis='inline'] > [data-part-viewport] {
|
|
231
237
|
overflow-x: auto;
|
|
232
238
|
overflow-y: hidden;
|
|
233
239
|
overflow-inline: auto;
|
|
234
240
|
overflow-block: hidden;
|
|
235
241
|
}
|
|
236
242
|
|
|
237
|
-
[data-ui
|
|
243
|
+
[data-ui-scroll-area][data-axis='both'] > [data-part-viewport] {
|
|
238
244
|
overflow: auto;
|
|
239
245
|
}
|
|
240
246
|
|
|
@@ -243,17 +249,17 @@
|
|
|
243
249
|
* "reserve the bar whether or not it is needed". It is stated per axis so it
|
|
244
250
|
* does not turn a one-axis area into a two-axis one.
|
|
245
251
|
*/
|
|
246
|
-
[data-ui
|
|
252
|
+
[data-ui-scroll-area][data-scrollbars='always'][data-axis='block'] > [data-part-viewport] {
|
|
247
253
|
overflow-y: scroll;
|
|
248
254
|
overflow-block: scroll;
|
|
249
255
|
}
|
|
250
256
|
|
|
251
|
-
[data-ui
|
|
257
|
+
[data-ui-scroll-area][data-scrollbars='always'][data-axis='inline'] > [data-part-viewport] {
|
|
252
258
|
overflow-x: scroll;
|
|
253
259
|
overflow-inline: scroll;
|
|
254
260
|
}
|
|
255
261
|
|
|
256
|
-
[data-ui
|
|
262
|
+
[data-ui-scroll-area][data-scrollbars='always'][data-axis='both'] > [data-part-viewport] {
|
|
257
263
|
overflow: scroll;
|
|
258
264
|
}
|
|
259
265
|
|
|
@@ -266,7 +272,7 @@
|
|
|
266
272
|
* and why this value is worth having at all: an area with no bar and no veil
|
|
267
273
|
* says nothing.
|
|
268
274
|
*/
|
|
269
|
-
[data-ui
|
|
275
|
+
[data-ui-scroll-area][data-scrollbars='none'] > [data-part-viewport] {
|
|
270
276
|
scrollbar-width: none;
|
|
271
277
|
}
|
|
272
278
|
|
|
@@ -279,7 +285,7 @@
|
|
|
279
285
|
* state — `packages/styles/src/states.test.mjs` — rather than a state this
|
|
280
286
|
* family holds: a scrollport is not a control and has no disabled form.
|
|
281
287
|
*/
|
|
282
|
-
[data-ui
|
|
288
|
+
[data-ui-scroll-area][data-scrollbars='hover'] > [data-part-viewport] {
|
|
283
289
|
scrollbar-color: transparent transparent;
|
|
284
290
|
transition:
|
|
285
291
|
scrollbar-color var(--slotted-duration-short) var(--slotted-easing-standard),
|
|
@@ -289,29 +295,28 @@
|
|
|
289
295
|
--_scroll-area-fade-inline-end var(--slotted-duration-short) var(--slotted-easing-standard);
|
|
290
296
|
}
|
|
291
297
|
|
|
292
|
-
[data-ui
|
|
293
|
-
|
|
294
|
-
[data-ui='scroll-area'][data-scrollbars='hover']:focus-within > [data-part='viewport'] {
|
|
298
|
+
[data-ui-scroll-area][data-scrollbars='hover']:not([data-disabled]):hover > [data-part-viewport],
|
|
299
|
+
[data-ui-scroll-area][data-scrollbars='hover']:focus-within > [data-part-viewport] {
|
|
295
300
|
scrollbar-color: var(--_thumb) var(--_track);
|
|
296
301
|
}
|
|
297
302
|
|
|
298
303
|
/* ── The gutter ────────────────────────────────────────────────────────── */
|
|
299
304
|
|
|
300
|
-
[data-ui
|
|
305
|
+
[data-ui-scroll-area][data-gutter='auto'] > [data-part-viewport] {
|
|
301
306
|
scrollbar-gutter: auto;
|
|
302
307
|
}
|
|
303
308
|
|
|
304
|
-
[data-ui
|
|
309
|
+
[data-ui-scroll-area][data-gutter='both-edges'] > [data-part-viewport] {
|
|
305
310
|
scrollbar-gutter: stable both-edges;
|
|
306
311
|
}
|
|
307
312
|
|
|
308
313
|
/* ── Scroll chaining ───────────────────────────────────────────────────── */
|
|
309
314
|
|
|
310
|
-
[data-ui
|
|
315
|
+
[data-ui-scroll-area][data-overscroll='auto'] > [data-part-viewport] {
|
|
311
316
|
overscroll-behavior: auto;
|
|
312
317
|
}
|
|
313
318
|
|
|
314
|
-
[data-ui
|
|
319
|
+
[data-ui-scroll-area][data-overscroll='none'] > [data-part-viewport] {
|
|
315
320
|
overscroll-behavior: none;
|
|
316
321
|
}
|
|
317
322
|
|
|
@@ -322,31 +327,31 @@
|
|
|
322
327
|
* code block. These come after the two above, so a chosen `none` holds the
|
|
323
328
|
* scrolling axis and lets the other through.
|
|
324
329
|
*/
|
|
325
|
-
[data-ui
|
|
330
|
+
[data-ui-scroll-area][data-axis='inline'] > [data-part-viewport] {
|
|
326
331
|
overscroll-behavior-y: auto;
|
|
327
332
|
overscroll-behavior-block: auto;
|
|
328
333
|
}
|
|
329
334
|
|
|
330
|
-
[data-ui
|
|
335
|
+
[data-ui-scroll-area][data-axis='block'] > [data-part-viewport] {
|
|
331
336
|
overscroll-behavior-x: auto;
|
|
332
337
|
overscroll-behavior-inline: auto;
|
|
333
338
|
}
|
|
334
339
|
|
|
335
340
|
/* ── The veil, edge by edge ────────────────────────────────────────────── */
|
|
336
341
|
|
|
337
|
-
[data-ui
|
|
342
|
+
[data-ui-scroll-area][data-at-block-start] > [data-part-viewport] {
|
|
338
343
|
--_scroll-area-fade-block-start: 0px;
|
|
339
344
|
}
|
|
340
345
|
|
|
341
|
-
[data-ui
|
|
346
|
+
[data-ui-scroll-area][data-at-block-end] > [data-part-viewport] {
|
|
342
347
|
--_scroll-area-fade-block-end: 0px;
|
|
343
348
|
}
|
|
344
349
|
|
|
345
|
-
[data-ui
|
|
350
|
+
[data-ui-scroll-area][data-at-inline-start] > [data-part-viewport] {
|
|
346
351
|
--_scroll-area-fade-inline-start: 0px;
|
|
347
352
|
}
|
|
348
353
|
|
|
349
|
-
[data-ui
|
|
354
|
+
[data-ui-scroll-area][data-at-inline-end] > [data-part-viewport] {
|
|
350
355
|
--_scroll-area-fade-inline-end: 0px;
|
|
351
356
|
}
|
|
352
357
|
|
|
@@ -355,7 +360,7 @@
|
|
|
355
360
|
* scroller holds what the reader has already passed, and a product that
|
|
356
361
|
* would rather not dim it says so here.
|
|
357
362
|
*/
|
|
358
|
-
[data-ui
|
|
363
|
+
[data-ui-scroll-area][data-fade='end'] > [data-part-viewport] {
|
|
359
364
|
--_scroll-area-fade-block-start: 0px;
|
|
360
365
|
--_scroll-area-fade-inline-start: 0px;
|
|
361
366
|
}
|
|
@@ -365,7 +370,7 @@
|
|
|
365
370
|
* the element on its own compositing layer, and a long list pays for that on
|
|
366
371
|
* every frame.
|
|
367
372
|
*/
|
|
368
|
-
[data-ui
|
|
373
|
+
[data-ui-scroll-area][data-fade='none'] > [data-part-viewport],
|
|
369
374
|
/**
|
|
370
375
|
* A vertical writing mode turns the box, and a gradient cannot be given a
|
|
371
376
|
* logical direction. Rather than veil the wrong two edges, the family veils
|
|
@@ -373,7 +378,7 @@
|
|
|
373
378
|
* affordance there draws it from them. The binding writes `data-sideways`
|
|
374
379
|
* because only script can read a writing mode.
|
|
375
380
|
*/
|
|
376
|
-
[data-ui
|
|
381
|
+
[data-ui-scroll-area][data-sideways] > [data-part-viewport] {
|
|
377
382
|
mask-image: none;
|
|
378
383
|
}
|
|
379
384
|
|
|
@@ -391,7 +396,7 @@
|
|
|
391
396
|
* `min-inline-size: fit-content` so a row wider than the scrollport widens
|
|
392
397
|
* this box with it, and the inset survives at the far end.
|
|
393
398
|
*/
|
|
394
|
-
[data-ui
|
|
399
|
+
[data-ui-scroll-area] > [data-part-viewport] > [data-part-content] {
|
|
395
400
|
box-sizing: border-box;
|
|
396
401
|
min-inline-size: fit-content;
|
|
397
402
|
padding: var(--slotted-scroll-area-inset, var(--slotted-space-5, 0.75rem));
|
|
@@ -410,8 +415,16 @@
|
|
|
410
415
|
*
|
|
411
416
|
* `:has()` rather than `:focus-within`, because a link inside the content is
|
|
412
417
|
* focus *within* the area and is not the area being focused.
|
|
418
|
+
*
|
|
419
|
+
* The ring is drawn for a focus from the keyboard: a click on the content
|
|
420
|
+
* focuses the viewport too, and the next Shift would make it match
|
|
421
|
+
* `:focus-visible` (`createFocusOrigin`). The browser's own ring on the
|
|
422
|
+
* viewport is suppressed: the frame draws the one ring.
|
|
413
423
|
*/
|
|
414
|
-
[data-ui
|
|
424
|
+
[data-ui-scroll-area] > [data-part-viewport]:focus {
|
|
425
|
+
outline: none;
|
|
426
|
+
}
|
|
427
|
+
[data-ui-scroll-area]:has(> [data-part-viewport]:focus-visible[data-focus-origin='keyboard']) {
|
|
415
428
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
416
429
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
417
430
|
}
|
|
@@ -425,8 +438,8 @@
|
|
|
425
438
|
* sentence.
|
|
426
439
|
*/
|
|
427
440
|
@media print {
|
|
428
|
-
[data-ui
|
|
429
|
-
[data-ui
|
|
441
|
+
[data-ui-scroll-area],
|
|
442
|
+
[data-ui-scroll-area] > [data-part-viewport] {
|
|
430
443
|
max-block-size: none;
|
|
431
444
|
max-inline-size: none;
|
|
432
445
|
overflow: visible;
|
|
@@ -435,12 +448,12 @@
|
|
|
435
448
|
}
|
|
436
449
|
|
|
437
450
|
/**
|
|
438
|
-
* The system owns the palette under forced
|
|
451
|
+
* The system owns the palette under forced colors, and a veil over system
|
|
439
452
|
* text is a legibility loss with nothing bought. The scrollbar goes back to
|
|
440
453
|
* the system's own, which is what `scrollbar-color: auto` means.
|
|
441
454
|
*/
|
|
442
455
|
@media (forced-colors: active) {
|
|
443
|
-
[data-ui
|
|
456
|
+
[data-ui-scroll-area] > [data-part-viewport] {
|
|
444
457
|
mask-image: none;
|
|
445
458
|
scrollbar-color: auto;
|
|
446
459
|
}
|