@slotted/styles 0.1.0-beta.3 → 0.1.0-beta.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +13 -1
- package/src/accordion/accordion.css +11 -11
- package/src/action-bar/action-bar.css +47 -44
- package/src/action-bar/action-bar.tokens.json +1 -0
- package/src/action-sheet/action-sheet.css +39 -39
- package/src/alert/alert.css +96 -96
- package/src/alert/alert.tokens.json +5 -0
- package/src/app-shell/app-shell.css +455 -328
- package/src/app-shell/app-shell.tokens.json +5 -2
- package/src/aspect-ratio/aspect-ratio.css +9 -9
- package/src/attachment/attachment.css +118 -114
- package/src/avatar/avatar.css +96 -66
- package/src/avatar/avatar.tokens.json +7 -0
- package/src/avatar-group/avatar-group.css +22 -23
- package/src/badge/badge.css +54 -46
- package/src/badge/badge.tokens.json +5 -0
- package/src/breadcrumb/breadcrumb.css +52 -52
- package/src/button/button.css +137 -89
- package/src/button/button.tokens.json +5 -0
- package/src/button-group/button-group.css +80 -79
- package/src/button-group/button-group.tokens.json +1 -0
- package/src/calendar/calendar.css +139 -109
- package/src/calendar/calendar.tokens.json +5 -1
- package/src/card/card.css +68 -65
- package/src/carousel/carousel.css +158 -169
- package/src/cascader/cascader.css +158 -157
- package/src/cascader/cascader.tokens.json +1 -0
- package/src/chart/chart.css +288 -267
- package/src/chart/chart.tokens.json +4 -0
- package/src/checkbox/checkbox.css +143 -148
- package/src/checkbox-group/checkbox-group.css +7 -7
- package/src/code-block/code-block.css +85 -89
- package/src/collapsible/collapsible.css +76 -80
- package/src/color-picker/color-picker.css +106 -114
- package/src/column-manager/column-manager.css +111 -119
- package/src/combobox/combobox.css +203 -130
- package/src/combobox/combobox.tokens.json +3 -0
- package/src/command-palette/command-palette.css +155 -102
- package/src/command-palette/command-palette.tokens.json +2 -0
- package/src/container/container.css +27 -27
- package/src/context-menu/context-menu.css +9 -9
- package/src/currency-field/currency-field.css +119 -119
- package/src/currency-field/currency-field.tokens.json +1 -0
- package/src/dashboard-grid/dashboard-grid.css +185 -115
- package/src/data-grid/data-grid.css +598 -496
- package/src/data-grid/data-grid.tokens.json +5 -1
- package/src/data-list/data-list.css +82 -71
- package/src/data-list/data-list.tokens.json +2 -1
- package/src/date-field/date-field.css +62 -57
- package/src/date-field/date-field.tokens.json +1 -0
- package/src/date-picker/date-picker.css +117 -58
- package/src/date-picker/date-picker.tokens.json +5 -0
- package/src/date-range-picker/date-range-picker.css +157 -127
- package/src/date-range-picker/date-range-picker.tokens.json +4 -0
- package/src/datetime-field/datetime-field.css +90 -90
- package/src/datetime-field/datetime-field.tokens.json +1 -0
- package/src/datetime-picker/datetime-picker.css +123 -70
- package/src/datetime-picker/datetime-picker.tokens.json +4 -1
- package/src/datetime-range-picker/datetime-range-picker.css +191 -163
- package/src/datetime-range-picker/datetime-range-picker.tokens.json +4 -0
- package/src/description-list/description-list.css +105 -75
- package/src/description-list/description-list.tokens.json +1 -0
- package/src/detail-panel/detail-panel.css +86 -71
- package/src/detail-panel/detail-panel.tokens.json +2 -0
- package/src/dialog/dialog.css +434 -198
- package/src/dialog/dialog.tokens.json +7 -0
- package/src/divider/divider.css +20 -20
- package/src/drawer/drawer.css +597 -236
- package/src/drawer/drawer.tokens.json +13 -0
- package/src/entity-picker/entity-picker.css +323 -270
- package/src/entity-picker/entity-picker.tokens.json +3 -0
- package/src/event-calendar/event-calendar.css +357 -399
- package/src/field/field.css +106 -93
- package/src/field/field.tokens.json +2 -0
- package/src/field-group/field-group.css +43 -33
- package/src/field-group/field-group.tokens.json +3 -0
- package/src/filter-bar/filter-bar.css +200 -216
- package/src/form/form.css +99 -25
- package/src/form/form.tokens.json +5 -0
- package/src/fullscreen/fullscreen.css +26 -27
- package/src/grid/grid.css +29 -29
- package/src/highlight/highlight.css +11 -11
- package/src/hover-card/hover-card.css +9 -9
- package/src/icon/icon.css +67 -20
- package/src/icon/icon.tokens.json +1 -0
- package/src/image/image.css +42 -42
- package/src/import-export-center/import-export-center.css +144 -165
- package/src/inline/inline.css +28 -28
- package/src/inline-message/inline-message.css +162 -86
- package/src/inline-message/inline-message.tokens.json +4 -0
- package/src/kbd/kbd.css +62 -50
- package/src/kbd/kbd.tokens.json +3 -0
- package/src/link/link.css +54 -33
- package/src/link/link.tokens.json +4 -0
- package/src/list/list.css +23 -23
- package/src/list-item/list-item.css +89 -75
- package/src/list-item/list-item.tokens.json +7 -0
- package/src/listbox/listbox.css +71 -70
- package/src/listbox/listbox.tokens.json +0 -1
- package/src/loading-overlay/loading-overlay.css +86 -103
- package/src/markdown/markdown.css +20 -20
- package/src/media-viewer/media-viewer.css +790 -0
- package/src/media-viewer/media-viewer.tokens.json +53 -0
- package/src/menu/menu.css +162 -82
- package/src/menu/menu.tokens.json +2 -1
- package/src/menubar/menubar.css +16 -16
- package/src/message/message.css +1250 -1253
- package/src/message/message.tokens.json +5 -0
- package/src/message-scroller/message-scroller.css +323 -320
- package/src/multi-select/multi-select.css +230 -172
- package/src/multi-select/multi-select.tokens.json +2 -0
- package/src/navigation-menu/navigation-menu.css +169 -190
- package/src/notification-center/notification-center.css +153 -161
- package/src/notification-center/notification-center.tokens.json +3 -0
- package/src/number-field/number-field.css +93 -93
- package/src/number-field/number-field.tokens.json +1 -0
- package/src/otp-input/otp-input.css +74 -64
- package/src/otp-input/otp-input.tokens.json +1 -0
- package/src/page/page.css +41 -27
- package/src/page/page.tokens.json +1 -0
- package/src/page-header/page-header.css +341 -286
- package/src/page-header/page-header.tokens.json +5 -0
- package/src/pagination/pagination.css +75 -79
- package/src/popover/popover.css +81 -64
- package/src/popover/popover.tokens.json +1 -0
- package/src/progress-indicator/progress-indicator.css +192 -136
- package/src/progress-indicator/progress-indicator.tokens.json +1 -0
- package/src/prompt-composer/prompt-composer.css +260 -113
- package/src/prompt-composer/prompt-composer.tokens.json +15 -0
- package/src/prose/prose.css +77 -82
- package/src/radio-group/radio-group.css +107 -112
- package/src/rating/rating.css +146 -142
- package/src/rating/rating.tokens.json +1 -0
- package/src/result-state/result-state.css +94 -101
- package/src/runtime-properties.mjs +19 -6
- package/src/saved-views/saved-views.css +43 -49
- package/src/scroll-area/scroll-area.css +44 -37
- package/src/section/section.css +178 -43
- package/src/section/section.tokens.json +8 -2
- package/src/segmented-control/segmented-control.css +210 -133
- package/src/segmented-control/segmented-control.tokens.json +7 -11
- package/src/select/select.css +210 -147
- package/src/select/select.tokens.json +3 -0
- package/src/side-navigation/side-navigation.css +193 -196
- package/src/side-navigation/side-navigation.tokens.json +1 -0
- package/src/skeleton/skeleton.css +57 -58
- package/src/slider/slider.css +101 -103
- package/src/sparkline/sparkline.css +75 -53
- package/src/sparkline/sparkline.tokens.json +2 -0
- package/src/spinner/spinner.css +83 -180
- package/src/spinner/spinner.tokens.json +0 -1
- package/src/split-button/split-button.css +34 -35
- package/src/split-button/split-button.tokens.json +1 -0
- package/src/splitter/splitter.css +47 -48
- package/src/stack/stack.css +25 -25
- package/src/stat-card/stat-card.css +415 -245
- package/src/stat-card/stat-card.tokens.json +8 -0
- package/src/status-indicator/status-indicator.css +124 -100
- package/src/status-indicator/status-indicator.tokens.json +0 -3
- package/src/stepper/stepper.css +78 -82
- package/src/switch/switch.css +100 -106
- package/src/table/table.css +270 -198
- package/src/table/table.tokens.json +2 -0
- package/src/table-of-contents/table-of-contents.css +60 -59
- package/src/table-of-contents/table-of-contents.tokens.json +1 -0
- package/src/tabs/tabs.css +327 -294
- package/src/tabs/tabs.tokens.json +7 -1
- package/src/tag/tag.css +109 -88
- package/src/tag/tag.tokens.json +10 -0
- package/src/tags-input/tags-input.css +152 -87
- package/src/tags-input/tags-input.tokens.json +7 -1
- package/src/text-field/text-field.css +146 -148
- package/src/text-field/text-field.tokens.json +1 -0
- package/src/textarea/textarea.css +38 -33
- package/src/textarea/textarea.tokens.json +1 -0
- package/src/time-field/time-field.css +82 -77
- package/src/time-field/time-field.tokens.json +1 -0
- package/src/time-picker/time-picker.css +116 -64
- package/src/time-picker/time-picker.tokens.json +4 -1
- package/src/time-range-picker/time-range-picker.css +168 -140
- package/src/time-range-picker/time-range-picker.tokens.json +4 -0
- package/src/timeline/timeline.css +280 -292
- package/src/timeline/timeline.tokens.json +5 -0
- package/src/toast/toast.css +138 -121
- package/src/toast/toast.tokens.json +6 -0
- package/src/toggle/toggle.css +34 -38
- package/src/toggle-group/toggle-group.css +73 -77
- package/src/toolbar/toolbar.css +33 -38
- package/src/tooltip/tooltip.css +65 -39
- package/src/tooltip/tooltip.tokens.json +1 -0
- package/src/top-navigation/top-navigation.css +252 -268
- package/src/tour/tour.css +64 -73
- package/src/transfer/transfer.css +164 -168
- package/src/tree/tree.css +113 -121
- package/src/typography/typography.css +42 -38
- package/src/typography/typography.tokens.json +1 -0
- package/src/upload/upload.css +256 -257
- package/src/visually-hidden/visually-hidden.css +1 -1
- package/src/wizard/wizard.css +187 -199
|
@@ -29,8 +29,10 @@
|
|
|
29
29
|
* by restating the custom property the field reads, so the frame is the one
|
|
30
30
|
* box a reader sees and the field's stylesheet is not reached into.
|
|
31
31
|
*/
|
|
32
|
-
[data-ui
|
|
32
|
+
[data-ui-date-range-picker][data-part-root] {
|
|
33
33
|
display: block;
|
|
34
|
+
/* In a flex row the item's basis is its content, not the whole row. */
|
|
35
|
+
flex-basis: content;
|
|
34
36
|
/* The anchor the positioner measures is the control, and a block root
|
|
35
37
|
lets the frame take the width the form gave it. */
|
|
36
38
|
inline-size: 100%;
|
|
@@ -43,7 +45,7 @@
|
|
|
43
45
|
* tokens for the ground, so a form holding a date and a range shows one
|
|
44
46
|
* frame twice rather than two frames.
|
|
45
47
|
*/
|
|
46
|
-
[data-ui
|
|
48
|
+
[data-ui-date-range-picker] [data-part-control] {
|
|
47
49
|
--_font-size: var(--slotted-control-font-size-md, 13px);
|
|
48
50
|
--_height: var(--slotted-control-height-md, 34px);
|
|
49
51
|
--_padding-inline: var(--slotted-control-padding-inline-md, 13px);
|
|
@@ -109,7 +111,7 @@
|
|
|
109
111
|
* an in-flow trigger was the first thing to be pushed, and the guaranteed
|
|
110
112
|
* way in was the first thing lost.
|
|
111
113
|
*/
|
|
112
|
-
[data-ui
|
|
114
|
+
[data-ui-date-range-picker] [data-part-control] {
|
|
113
115
|
--_action-inset: max(
|
|
114
116
|
0px,
|
|
115
117
|
calc(var(--_padding-inline) - (var(--_action-size) - var(--_icon-size)) / 2)
|
|
@@ -122,11 +124,11 @@
|
|
|
122
124
|
);
|
|
123
125
|
}
|
|
124
126
|
|
|
125
|
-
[data-ui
|
|
127
|
+
[data-ui-date-range-picker] [data-part-control]:has(> [data-part-clear]) {
|
|
126
128
|
--_actions: 2;
|
|
127
129
|
}
|
|
128
130
|
|
|
129
|
-
[data-ui
|
|
131
|
+
[data-ui-date-range-picker][data-part-root][data-size='sm'] [data-part-control] {
|
|
130
132
|
--_font-size: var(--slotted-control-font-size-sm, 12px);
|
|
131
133
|
--_height: var(--slotted-control-height-sm, 30px);
|
|
132
134
|
--_padding-inline: var(--slotted-control-padding-inline-sm, 11px);
|
|
@@ -134,7 +136,7 @@
|
|
|
134
136
|
--_icon-size: var(--slotted-control-icon-size-sm, 14px);
|
|
135
137
|
}
|
|
136
138
|
|
|
137
|
-
[data-ui
|
|
139
|
+
[data-ui-date-range-picker][data-part-root][data-size='lg'] [data-part-control] {
|
|
138
140
|
--_font-size: var(--slotted-control-font-size-lg, 14px);
|
|
139
141
|
--_height: var(--slotted-control-height-lg, 38px);
|
|
140
142
|
--_padding-inline: var(--slotted-control-padding-inline-lg, 15px);
|
|
@@ -147,7 +149,7 @@
|
|
|
147
149
|
* The three steps `text-field` set, through the field's own variant tokens,
|
|
148
150
|
* so a theme that retunes `subtle` for one date retunes it for two.
|
|
149
151
|
*/
|
|
150
|
-
[data-ui
|
|
152
|
+
[data-ui-date-range-picker][data-part-root][data-variant='subtle'] [data-part-control] {
|
|
151
153
|
background-color: var(
|
|
152
154
|
--slotted-date-range-picker-subtle-background,
|
|
153
155
|
var(--slotted-surface-sunken, Canvas)
|
|
@@ -158,7 +160,7 @@
|
|
|
158
160
|
);
|
|
159
161
|
}
|
|
160
162
|
|
|
161
|
-
[data-ui
|
|
163
|
+
[data-ui-date-range-picker][data-part-root][data-variant='plain'] [data-part-control] {
|
|
162
164
|
background-color: transparent;
|
|
163
165
|
border-color: transparent;
|
|
164
166
|
border-radius: var(--slotted-radius-none, 0px);
|
|
@@ -172,8 +174,8 @@
|
|
|
172
174
|
* field's border, inline padding, hover wash, invalid edge and focus ring
|
|
173
175
|
* are all zeroed here, and the frame answers each of them once for both.
|
|
174
176
|
*/
|
|
175
|
-
[data-ui
|
|
176
|
-
[data-ui
|
|
177
|
+
[data-ui-date-range-picker] [data-part-start],
|
|
178
|
+
[data-ui-date-range-picker] [data-part-end] {
|
|
177
179
|
--slotted-control-border-width: 0px;
|
|
178
180
|
--slotted-control-padding-inline-sm: 0px;
|
|
179
181
|
--slotted-control-padding-inline-md: 0px;
|
|
@@ -200,8 +202,8 @@
|
|
|
200
202
|
* the reader is in the control — the panel open, or focus inside the frame —
|
|
201
203
|
* because at rest there is no "next press" for it to name.
|
|
202
204
|
*/
|
|
203
|
-
[data-ui
|
|
204
|
-
[data-ui
|
|
205
|
+
[data-ui-date-range-picker] [data-part-start]::after,
|
|
206
|
+
[data-ui-date-range-picker] [data-part-end]::after {
|
|
205
207
|
background-color: var(
|
|
206
208
|
--slotted-date-range-picker-current-color,
|
|
207
209
|
var(--slotted-tone-accent-solid)
|
|
@@ -218,17 +220,17 @@
|
|
|
218
220
|
var(--slotted-control-transition-easing);
|
|
219
221
|
}
|
|
220
222
|
|
|
221
|
-
[data-ui
|
|
223
|
+
[data-ui-date-range-picker][data-part-root]:is(
|
|
222
224
|
[data-open],
|
|
223
|
-
:has([data-part
|
|
225
|
+
:has([data-part-control]:focus-within)
|
|
224
226
|
)
|
|
225
|
-
:is([data-part
|
|
227
|
+
:is([data-part-start], [data-part-end])[data-current]::after {
|
|
226
228
|
opacity: 1;
|
|
227
229
|
}
|
|
228
230
|
|
|
229
231
|
/* A dash between the two ends, in the adornment's ink: it annotates, and a
|
|
230
232
|
reader looking for either date should not have to step over it. */
|
|
231
|
-
[data-ui
|
|
233
|
+
[data-ui-date-range-picker] [data-part-separator] {
|
|
232
234
|
color: var(--slotted-date-range-picker-separator-color, var(--slotted-text-muted, GrayText));
|
|
233
235
|
flex: 0 0 auto;
|
|
234
236
|
padding-inline: var(--slotted-space-2, 0.25rem);
|
|
@@ -241,8 +243,8 @@
|
|
|
241
243
|
* trigger is always drawn: ChromeOS turns `Alt`+`ArrowDown` into `PageDown`
|
|
242
244
|
* before the browser sees it, so the chord cannot be the only way in.
|
|
243
245
|
*/
|
|
244
|
-
[data-ui
|
|
245
|
-
[data-ui
|
|
246
|
+
[data-ui-date-range-picker] [data-part-clear],
|
|
247
|
+
[data-ui-date-range-picker] [data-part-trigger] {
|
|
246
248
|
--slotted-icon-size: var(--_icon-size);
|
|
247
249
|
|
|
248
250
|
align-items: center;
|
|
@@ -256,7 +258,7 @@
|
|
|
256
258
|
display: inline-flex;
|
|
257
259
|
flex: 0 0 auto;
|
|
258
260
|
inline-size: var(--_action-size);
|
|
259
|
-
/*
|
|
261
|
+
/* Centerd on the first line of the frame, whichever line the end is on. */
|
|
260
262
|
inset-block-start: calc((var(--_height) - var(--_border-width) * 2 - var(--_action-size)) / 2);
|
|
261
263
|
inset-inline-end: var(--_action-inset);
|
|
262
264
|
justify-content: center;
|
|
@@ -270,7 +272,7 @@
|
|
|
270
272
|
-webkit-tap-highlight-color: transparent;
|
|
271
273
|
}
|
|
272
274
|
|
|
273
|
-
[data-ui
|
|
275
|
+
[data-ui-date-range-picker] [data-part-clear] {
|
|
274
276
|
inset-inline-end: calc(
|
|
275
277
|
var(--_action-inset) + var(--_action-size) + var(--slotted-space-1, 0.125rem)
|
|
276
278
|
);
|
|
@@ -278,8 +280,8 @@
|
|
|
278
280
|
|
|
279
281
|
/* The hit area, recovered outside the paint, exactly as every other inner
|
|
280
282
|
control in the library recovers it. */
|
|
281
|
-
[data-ui
|
|
282
|
-
[data-ui
|
|
283
|
+
[data-ui-date-range-picker] [data-part-clear]::after,
|
|
284
|
+
[data-ui-date-range-picker] [data-part-trigger]::after {
|
|
283
285
|
content: '';
|
|
284
286
|
inset: min(0px, calc((100% - var(--slotted-target-min, 24px)) / 2));
|
|
285
287
|
position: absolute;
|
|
@@ -290,16 +292,15 @@
|
|
|
290
292
|
the hit area above grows to 44 pixels around them. Side by side, neither
|
|
291
293
|
button reaches across the edge the two share. */
|
|
292
294
|
@media (pointer: coarse) {
|
|
293
|
-
[data-ui
|
|
295
|
+
[data-ui-date-range-picker] :is([data-part-clear], [data-part-trigger])::after {
|
|
294
296
|
inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
|
|
295
297
|
}
|
|
296
298
|
|
|
297
|
-
[data-ui
|
|
298
|
-
[data-part='clear']:has(+ [data-part='trigger']:not([hidden]))::after {
|
|
299
|
+
[data-ui-date-range-picker] [data-part-clear]:has(+ [data-part-trigger]:not([hidden]))::after {
|
|
299
300
|
inset-inline-end: 0;
|
|
300
301
|
}
|
|
301
302
|
|
|
302
|
-
[data-ui
|
|
303
|
+
[data-ui-date-range-picker] [data-part-clear]:not([hidden]) + [data-part-trigger]::after {
|
|
303
304
|
inset-inline-start: 0;
|
|
304
305
|
}
|
|
305
306
|
}
|
|
@@ -309,16 +310,16 @@
|
|
|
309
310
|
chevron while the surface is open: what opens is a month, not a list, and
|
|
310
311
|
the trigger goes on saying what kind of value it holds. */
|
|
311
312
|
|
|
312
|
-
[data-ui
|
|
313
|
-
[data-ui
|
|
313
|
+
[data-ui-date-range-picker] [data-part-clear]:hover:not(:disabled):not([data-disabled]),
|
|
314
|
+
[data-ui-date-range-picker] [data-part-trigger]:hover:not(:disabled):not([data-disabled]) {
|
|
314
315
|
background-color: var(
|
|
315
316
|
--slotted-date-range-picker-action-hover-background,
|
|
316
317
|
var(--slotted-tone-secondary-subtle-hover)
|
|
317
318
|
);
|
|
318
319
|
}
|
|
319
320
|
|
|
320
|
-
[data-ui
|
|
321
|
-
[data-ui
|
|
321
|
+
[data-ui-date-range-picker] [data-part-clear]:active:not(:disabled):not([data-disabled]),
|
|
322
|
+
[data-ui-date-range-picker] [data-part-trigger]:active:not(:disabled):not([data-disabled]) {
|
|
322
323
|
background-color: var(
|
|
323
324
|
--slotted-date-range-picker-action-active-background,
|
|
324
325
|
var(--slotted-tone-secondary-subtle-active)
|
|
@@ -327,14 +328,14 @@
|
|
|
327
328
|
|
|
328
329
|
/* Their own rings: tabbing from the last segment to a button has to move
|
|
329
330
|
something visible, and the frame's ring would sit still. */
|
|
330
|
-
[data-ui
|
|
331
|
-
[data-ui
|
|
331
|
+
[data-ui-date-range-picker] [data-part-clear]:focus-visible,
|
|
332
|
+
[data-ui-date-range-picker] [data-part-trigger]:focus-visible {
|
|
332
333
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
333
334
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
334
335
|
}
|
|
335
336
|
|
|
336
|
-
[data-ui
|
|
337
|
-
[data-ui
|
|
337
|
+
[data-ui-date-range-picker] [data-part-clear]:disabled,
|
|
338
|
+
[data-ui-date-range-picker] [data-part-trigger]:disabled {
|
|
338
339
|
color: var(--slotted-disabled-foreground);
|
|
339
340
|
cursor: not-allowed;
|
|
340
341
|
}
|
|
@@ -345,30 +346,30 @@
|
|
|
345
346
|
* one it can meet, which is the order `STATE_PRECEDENCE` sets.
|
|
346
347
|
*/
|
|
347
348
|
|
|
348
|
-
[data-ui
|
|
349
|
+
[data-ui-date-range-picker][data-part-root]:not([data-disabled]):not([data-readonly]):not(
|
|
349
350
|
[data-invalid]
|
|
350
351
|
)
|
|
351
|
-
[data-part
|
|
352
|
+
[data-part-control]:hover {
|
|
352
353
|
border-color: var(
|
|
353
354
|
--slotted-date-range-picker-hover-border-color,
|
|
354
355
|
var(--slotted-tone-accent-border)
|
|
355
356
|
);
|
|
356
357
|
}
|
|
357
358
|
|
|
358
|
-
[data-ui
|
|
359
|
+
[data-ui-date-range-picker][data-part-root][data-variant='subtle']:not([data-disabled]):not(
|
|
359
360
|
[data-readonly]
|
|
360
361
|
):not([data-invalid])
|
|
361
|
-
[data-part
|
|
362
|
+
[data-part-control]:hover {
|
|
362
363
|
background-color: var(
|
|
363
364
|
--slotted-date-range-picker-subtle-hover-background,
|
|
364
365
|
var(--slotted-tone-secondary-subtle-hover)
|
|
365
366
|
);
|
|
366
367
|
}
|
|
367
368
|
|
|
368
|
-
[data-ui
|
|
369
|
+
[data-ui-date-range-picker][data-part-root][data-variant='plain']:not([data-disabled]):not(
|
|
369
370
|
[data-readonly]
|
|
370
371
|
):not([data-invalid])
|
|
371
|
-
[data-part
|
|
372
|
+
[data-part-control]:hover {
|
|
372
373
|
background-color: var(
|
|
373
374
|
--slotted-date-range-picker-plain-hover-background,
|
|
374
375
|
var(--slotted-tone-secondary-subtle-hover)
|
|
@@ -386,9 +387,9 @@
|
|
|
386
387
|
* records: every part of a segmented field is a `div`, and a browser refuses
|
|
387
388
|
* `:focus-visible` on a `div` a pointer focused.
|
|
388
389
|
*/
|
|
389
|
-
[data-ui
|
|
390
|
-
[data-part
|
|
391
|
-
:has(> [data-part
|
|
390
|
+
[data-ui-date-range-picker]
|
|
391
|
+
[data-part-control]:focus-within:not(
|
|
392
|
+
:has(> [data-part-clear]:focus, > [data-part-trigger]:focus)
|
|
392
393
|
) {
|
|
393
394
|
box-shadow: var(--slotted-control-shadow-focus-geometry, 0 1px 4px -1px)
|
|
394
395
|
var(--slotted-focus-ring-color, Highlight);
|
|
@@ -403,9 +404,9 @@
|
|
|
403
404
|
* shadow that appears only under focus is a cell that changes size when it
|
|
404
405
|
* is used.
|
|
405
406
|
*/
|
|
406
|
-
[data-ui
|
|
407
|
-
[data-part
|
|
408
|
-
:has(> [data-part
|
|
407
|
+
[data-ui-date-range-picker][data-part-root][data-variant='plain']
|
|
408
|
+
[data-part-control]:focus-within:not(
|
|
409
|
+
:has(> [data-part-clear]:focus, > [data-part-trigger]:focus)
|
|
409
410
|
) {
|
|
410
411
|
box-shadow: none;
|
|
411
412
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
@@ -414,14 +415,14 @@
|
|
|
414
415
|
/* Invalid outranks hover and is written after it. The ring is retargeted
|
|
415
416
|
rather than repainted, so the frame's outline and the ring on the two
|
|
416
417
|
buttons all move at once. */
|
|
417
|
-
[data-ui
|
|
418
|
+
[data-ui-date-range-picker][data-part-root][data-invalid] {
|
|
418
419
|
--slotted-focus-ring-color: var(
|
|
419
420
|
--slotted-date-range-picker-invalid-focus-ring-color,
|
|
420
421
|
var(--slotted-focus-ring-color-invalid, Highlight)
|
|
421
422
|
);
|
|
422
423
|
}
|
|
423
424
|
|
|
424
|
-
[data-ui
|
|
425
|
+
[data-ui-date-range-picker][data-part-root][data-invalid] [data-part-control] {
|
|
425
426
|
--_invalid-edge-width: var(
|
|
426
427
|
--slotted-date-range-picker-invalid-edge-width,
|
|
427
428
|
var(--slotted-control-invalid-edge-width, 1px)
|
|
@@ -437,7 +438,7 @@
|
|
|
437
438
|
var(--slotted-tone-danger-border)
|
|
438
439
|
);
|
|
439
440
|
/*
|
|
440
|
-
* Width as well as
|
|
441
|
+
* Width as well as color (WCAG 1.4.1), the edge `text-field` draws: in
|
|
441
442
|
* `high-contrast` the danger border is the resting edge's black. The line
|
|
442
443
|
* is a shadow inside the border, so neither box nor text moves, and it
|
|
443
444
|
* takes the resting lift's place.
|
|
@@ -445,9 +446,9 @@
|
|
|
445
446
|
box-shadow: var(--_invalid-edge);
|
|
446
447
|
}
|
|
447
448
|
|
|
448
|
-
[data-ui
|
|
449
|
-
[data-part
|
|
450
|
-
:has(> [data-part
|
|
449
|
+
[data-ui-date-range-picker][data-invalid]
|
|
450
|
+
[data-part-control]:focus-within:not(
|
|
451
|
+
:has(> [data-part-clear]:focus, > [data-part-trigger]:focus)
|
|
451
452
|
) {
|
|
452
453
|
box-shadow:
|
|
453
454
|
var(--_invalid-edge),
|
|
@@ -455,9 +456,9 @@
|
|
|
455
456
|
var(--slotted-focus-ring-color, Highlight);
|
|
456
457
|
}
|
|
457
458
|
|
|
458
|
-
[data-ui
|
|
459
|
-
[data-part
|
|
460
|
-
:has(> [data-part
|
|
459
|
+
[data-ui-date-range-picker][data-part-root][data-variant='plain'][data-invalid]
|
|
460
|
+
[data-part-control]:focus-within:not(
|
|
461
|
+
:has(> [data-part-clear]:focus, > [data-part-trigger]:focus)
|
|
461
462
|
) {
|
|
462
463
|
/* The ring lies inside the box here, over the border and an edge as wide as
|
|
463
464
|
it; the edge reaches past the ring. */
|
|
@@ -469,28 +470,28 @@
|
|
|
469
470
|
}
|
|
470
471
|
|
|
471
472
|
/*
|
|
472
|
-
* Forced
|
|
473
|
+
* Forced colors remove every box shadow, and the edge with them. The
|
|
473
474
|
* width comes back as an outline inside the border, and a focused invalid
|
|
474
475
|
* control draws its ring double, which a valid ring is not.
|
|
475
476
|
*/
|
|
476
477
|
@media (forced-colors: active) {
|
|
477
|
-
[data-ui
|
|
478
|
+
[data-ui-date-range-picker][data-part-root][data-invalid] [data-part-control] {
|
|
478
479
|
outline: var(--_invalid-edge-width) solid CanvasText;
|
|
479
480
|
outline-offset: calc(-1 * (var(--_border-width) + var(--_invalid-edge-width)));
|
|
480
481
|
}
|
|
481
482
|
|
|
482
|
-
[data-ui
|
|
483
|
-
[data-part
|
|
484
|
-
:has(> [data-part
|
|
483
|
+
[data-ui-date-range-picker][data-invalid]
|
|
484
|
+
[data-part-control]:focus-within:not(
|
|
485
|
+
:has(> [data-part-clear]:focus, > [data-part-trigger]:focus)
|
|
485
486
|
) {
|
|
486
487
|
outline: calc(var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)) double
|
|
487
488
|
var(--slotted-focus-ring-color, Highlight);
|
|
488
489
|
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
489
490
|
}
|
|
490
491
|
|
|
491
|
-
[data-ui
|
|
492
|
-
[data-part
|
|
493
|
-
:has(> [data-part
|
|
492
|
+
[data-ui-date-range-picker][data-part-root][data-variant='plain'][data-invalid]
|
|
493
|
+
[data-part-control]:focus-within:not(
|
|
494
|
+
:has(> [data-part-clear]:focus, > [data-part-trigger]:focus)
|
|
494
495
|
) {
|
|
495
496
|
outline: calc(var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)) double
|
|
496
497
|
var(--slotted-focus-ring-color, Highlight);
|
|
@@ -502,7 +503,7 @@
|
|
|
502
503
|
|
|
503
504
|
/* Read-only stays focusable, readable and copyable, and must not be
|
|
504
505
|
mistakable for disabled: the ground says "not yours to change". */
|
|
505
|
-
[data-ui
|
|
506
|
+
[data-ui-date-range-picker][data-part-root][data-readonly] [data-part-control] {
|
|
506
507
|
background-color: var(
|
|
507
508
|
--slotted-date-range-picker-readonly-background,
|
|
508
509
|
var(--slotted-tone-secondary-subtle-hover)
|
|
@@ -510,9 +511,9 @@
|
|
|
510
511
|
cursor: default;
|
|
511
512
|
}
|
|
512
513
|
|
|
513
|
-
/* Muted to the
|
|
514
|
+
/* Muted to the color the theme measures rather than faded by opacity: a
|
|
514
515
|
disabled form still has to say what it holds. */
|
|
515
|
-
[data-ui
|
|
516
|
+
[data-ui-date-range-picker][data-part-root][data-disabled] [data-part-control] {
|
|
516
517
|
background-color: var(
|
|
517
518
|
--slotted-date-range-picker-disabled-background,
|
|
518
519
|
var(--slotted-disabled-background)
|
|
@@ -526,7 +527,7 @@
|
|
|
526
527
|
cursor: not-allowed;
|
|
527
528
|
}
|
|
528
529
|
|
|
529
|
-
[data-ui
|
|
530
|
+
[data-ui-date-range-picker][data-part-root][data-disabled] [data-part-separator] {
|
|
530
531
|
color: var(--slotted-disabled-foreground);
|
|
531
532
|
}
|
|
532
533
|
|
|
@@ -535,7 +536,7 @@
|
|
|
535
536
|
* What `packages/core/src/positioner` writes `position`, `left` and `top`
|
|
536
537
|
* onto. The painted surface is one element in, as every overlay is built.
|
|
537
538
|
*/
|
|
538
|
-
[data-ui
|
|
539
|
+
[data-ui-date-range-picker][data-part-positioner] {
|
|
539
540
|
/* Only the block inset: the positioner writes `left` and never `right`,
|
|
540
541
|
and `inset-inline-start` would resolve to `right` in a right-to-left
|
|
541
542
|
document and win over the measured value. */
|
|
@@ -559,19 +560,16 @@
|
|
|
559
560
|
translate var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
560
561
|
}
|
|
561
562
|
|
|
562
|
-
[data-ui
|
|
563
|
+
[data-ui-date-range-picker][data-part-positioner][data-side='top'] {
|
|
563
564
|
translate: 0 var(--_enter-distance);
|
|
564
565
|
}
|
|
565
566
|
|
|
566
567
|
/* A lateral side has no block direction to arrive from, so it only fades. */
|
|
567
|
-
[data-ui
|
|
568
|
-
[data-side='left'],
|
|
569
|
-
[data-side='right']
|
|
570
|
-
) {
|
|
568
|
+
[data-ui-date-range-picker][data-part-positioner]:is([data-side='left'], [data-side='right']) {
|
|
571
569
|
translate: 0 0;
|
|
572
570
|
}
|
|
573
571
|
|
|
574
|
-
[data-ui
|
|
572
|
+
[data-ui-date-range-picker][data-part-positioner][data-open] {
|
|
575
573
|
opacity: 1;
|
|
576
574
|
translate: 0 0;
|
|
577
575
|
transition: none;
|
|
@@ -581,16 +579,16 @@
|
|
|
581
579
|
`select` records: a transition starts from the style the browser computed
|
|
582
580
|
last, and the positioner writes `data-side` in the same style update as
|
|
583
581
|
the family opens the layer. Only a layer the positioner placed arrives. */
|
|
584
|
-
[data-ui
|
|
582
|
+
[data-ui-date-range-picker][data-part-positioner][data-open][data-positioned] {
|
|
585
583
|
animation: slotted-date-range-picker-enter-down var(--slotted-duration-medium)
|
|
586
584
|
var(--slotted-easing-enter);
|
|
587
585
|
}
|
|
588
586
|
|
|
589
|
-
[data-ui
|
|
587
|
+
[data-ui-date-range-picker][data-part-positioner][data-open][data-positioned][data-side='top'] {
|
|
590
588
|
animation-name: slotted-date-range-picker-enter-up;
|
|
591
589
|
}
|
|
592
590
|
|
|
593
|
-
[data-ui
|
|
591
|
+
[data-ui-date-range-picker][data-part-positioner][data-open][data-positioned]:is(
|
|
594
592
|
[data-side='left'],
|
|
595
593
|
[data-side='right']
|
|
596
594
|
) {
|
|
@@ -619,25 +617,25 @@
|
|
|
619
617
|
|
|
620
618
|
/* Stillness keeps the fade and drops the movement. */
|
|
621
619
|
@media (prefers-reduced-motion: reduce) {
|
|
622
|
-
[data-ui
|
|
623
|
-
[data-ui
|
|
624
|
-
[data-ui
|
|
625
|
-
[data-ui
|
|
620
|
+
[data-ui-date-range-picker][data-part-positioner],
|
|
621
|
+
[data-ui-date-range-picker][data-part-positioner][data-side='top'],
|
|
622
|
+
[data-ui-date-range-picker][data-part-positioner][data-side='left'],
|
|
623
|
+
[data-ui-date-range-picker][data-part-positioner][data-side='right'] {
|
|
626
624
|
translate: 0 0;
|
|
627
625
|
transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
628
626
|
}
|
|
629
627
|
|
|
630
|
-
[data-ui
|
|
631
|
-
[data-ui
|
|
632
|
-
[data-ui
|
|
633
|
-
[data-ui
|
|
628
|
+
[data-ui-date-range-picker][data-part-positioner][data-open][data-positioned],
|
|
629
|
+
[data-ui-date-range-picker][data-part-positioner][data-open][data-positioned][data-side='top'],
|
|
630
|
+
[data-ui-date-range-picker][data-part-positioner][data-open][data-positioned][data-side='left'],
|
|
631
|
+
[data-ui-date-range-picker][data-part-positioner][data-open][data-positioned][data-side='right'] {
|
|
634
632
|
animation-name: slotted-date-range-picker-fade;
|
|
635
633
|
}
|
|
636
634
|
}
|
|
637
635
|
|
|
638
636
|
/* The anchor scrolled out of its own clipper. The calendar is still open and
|
|
639
637
|
still belongs to a control the reader can no longer see. */
|
|
640
|
-
[data-ui
|
|
638
|
+
[data-ui-date-range-picker][data-part-positioner][data-detached] {
|
|
641
639
|
visibility: hidden;
|
|
642
640
|
}
|
|
643
641
|
|
|
@@ -647,7 +645,7 @@
|
|
|
647
645
|
* `date-picker` records: a percentage flex basis against a shrink-wrapped
|
|
648
646
|
* container makes the surface wider than anything in it.
|
|
649
647
|
*/
|
|
650
|
-
[data-ui
|
|
648
|
+
[data-ui-date-range-picker] [data-part-content] {
|
|
651
649
|
background-color: var(
|
|
652
650
|
--slotted-date-range-picker-surface,
|
|
653
651
|
var(--slotted-surface-raised, Canvas)
|
|
@@ -686,7 +684,7 @@
|
|
|
686
684
|
* has no width of its own to ask about, which is the rule `datetime-picker`
|
|
687
685
|
* records for its own two panels.
|
|
688
686
|
*/
|
|
689
|
-
[data-ui
|
|
687
|
+
[data-ui-date-range-picker] [data-part-panels] {
|
|
690
688
|
align-items: flex-start;
|
|
691
689
|
display: flex;
|
|
692
690
|
flex-wrap: wrap;
|
|
@@ -695,7 +693,7 @@
|
|
|
695
693
|
min-inline-size: 0;
|
|
696
694
|
}
|
|
697
695
|
|
|
698
|
-
[data-ui
|
|
696
|
+
[data-ui-date-range-picker] [data-part-panels] > [data-ui-calendar] {
|
|
699
697
|
flex: 0 1 auto;
|
|
700
698
|
}
|
|
701
699
|
|
|
@@ -704,8 +702,7 @@
|
|
|
704
702
|
* What the reader has so far, and how long it is. The two ends are drawn
|
|
705
703
|
* as they stand, the one not yet chosen as its placeholder, and the length
|
|
706
704
|
* answers the question the reader is actually asking while the run is
|
|
707
|
-
* being drawn
|
|
708
|
-
* §12 records.
|
|
705
|
+
* being drawn.
|
|
709
706
|
*
|
|
710
707
|
* It renders at the panel's width and contributes nothing to it, by the
|
|
711
708
|
* pair `datetime-picker` records: `inline-size: 0` takes the band out of the
|
|
@@ -713,7 +710,7 @@
|
|
|
713
710
|
* own width, so the calendar decides how wide the panel is and the band
|
|
714
711
|
* wraps inside whatever it decides.
|
|
715
712
|
*/
|
|
716
|
-
[data-ui
|
|
713
|
+
[data-ui-date-range-picker] [data-part-head] {
|
|
717
714
|
box-sizing: border-box;
|
|
718
715
|
inline-size: 0;
|
|
719
716
|
min-inline-size: 100%;
|
|
@@ -738,8 +735,8 @@
|
|
|
738
735
|
/* The two ends and the dash between them are one run, and the run does not
|
|
739
736
|
break inside itself: "12 Sep –" on one line and "16 Sep" on the next is a
|
|
740
737
|
range read twice. */
|
|
741
|
-
[data-ui
|
|
742
|
-
[data-ui
|
|
738
|
+
[data-ui-date-range-picker] [data-part-head] > [data-part-head-start],
|
|
739
|
+
[data-ui-date-range-picker] [data-part-head] > [data-part-head-end] {
|
|
743
740
|
color: var(--slotted-date-range-picker-content-color, var(--slotted-text, CanvasText));
|
|
744
741
|
font-size: var(--slotted-font-size-sm, 13px);
|
|
745
742
|
font-variant-numeric: tabular-nums;
|
|
@@ -760,16 +757,16 @@
|
|
|
760
757
|
/* The end not yet written, drawn as its placeholder beside the one that is;
|
|
761
758
|
and the pending one, which is a proposal and reads as the band's own
|
|
762
759
|
proposal in the calendar does. */
|
|
763
|
-
[data-ui
|
|
764
|
-
[data-part
|
|
765
|
-
:is([data-part
|
|
760
|
+
[data-ui-date-range-picker]
|
|
761
|
+
[data-part-head]
|
|
762
|
+
:is([data-part-head-start], [data-part-head-end])[data-placeholder] {
|
|
766
763
|
color: var(--slotted-date-range-picker-placeholder-color, var(--slotted-text-muted, GrayText));
|
|
767
764
|
font-weight: var(--slotted-font-weight-regular, 400);
|
|
768
765
|
}
|
|
769
766
|
|
|
770
|
-
[data-ui
|
|
771
|
-
[data-part
|
|
772
|
-
:is([data-part
|
|
767
|
+
[data-ui-date-range-picker]
|
|
768
|
+
[data-part-head]
|
|
769
|
+
:is([data-part-head-start], [data-part-head-end])[data-pending] {
|
|
773
770
|
color: var(--slotted-date-range-picker-pending-color, var(--slotted-tone-accent-text));
|
|
774
771
|
}
|
|
775
772
|
|
|
@@ -779,7 +776,7 @@
|
|
|
779
776
|
* keeps the tone and drops a step of weight, the way the calendar's pending
|
|
780
777
|
* band keeps the tint and drops a step of share.
|
|
781
778
|
*/
|
|
782
|
-
[data-ui
|
|
779
|
+
[data-ui-date-range-picker] [data-part-length] {
|
|
783
780
|
color: var(--slotted-date-range-picker-length-color, var(--slotted-tone-accent-text));
|
|
784
781
|
font-size: var(--slotted-font-size-sm, 13px);
|
|
785
782
|
font-variant-numeric: tabular-nums;
|
|
@@ -792,19 +789,19 @@
|
|
|
792
789
|
white-space: nowrap;
|
|
793
790
|
}
|
|
794
791
|
|
|
795
|
-
[data-ui
|
|
792
|
+
[data-ui-date-range-picker] [data-part-length][data-pending] {
|
|
796
793
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
797
794
|
}
|
|
798
795
|
|
|
799
796
|
/* An empty length still holds its line, so the band does not grow a row
|
|
800
797
|
when the first end is chosen. */
|
|
801
|
-
[data-ui
|
|
798
|
+
[data-ui-date-range-picker] [data-part-length]:empty::before {
|
|
802
799
|
content: '\200B';
|
|
803
800
|
}
|
|
804
801
|
|
|
805
802
|
/* The limit, on a row of its own under the ends: a rule the grid enforces
|
|
806
803
|
is a rule the band names. */
|
|
807
|
-
[data-ui
|
|
804
|
+
[data-ui-date-range-picker] [data-part-limit] {
|
|
808
805
|
color: var(--slotted-date-range-picker-limit-color, var(--slotted-text-muted, GrayText));
|
|
809
806
|
flex-basis: 100%;
|
|
810
807
|
font-size: var(--slotted-font-size-xs, 11px);
|
|
@@ -817,7 +814,7 @@
|
|
|
817
814
|
* and a library that guessed at one would be guessing at a fiscal year. It
|
|
818
815
|
* ships the column they stand in and the button each one is.
|
|
819
816
|
*/
|
|
820
|
-
[data-ui
|
|
817
|
+
[data-ui-date-range-picker] [data-part-presets] {
|
|
821
818
|
align-items: stretch;
|
|
822
819
|
display: flex;
|
|
823
820
|
/* It grows: beside the grid it takes what the surface leaves, and alone
|
|
@@ -832,11 +829,11 @@
|
|
|
832
829
|
|
|
833
830
|
/**
|
|
834
831
|
* One shortcut. Quiet — no edge, the surface's ink — and reading from the
|
|
835
|
-
* start edge: stretched and
|
|
832
|
+
* start edge: stretched and centerd, four labels form a ragged column with
|
|
836
833
|
* no left edge to run down. Selected, it takes the accent's subtle ground
|
|
837
834
|
* and text, which is the pair `calendar` gives a day inside the run.
|
|
838
835
|
*/
|
|
839
|
-
[data-ui
|
|
836
|
+
[data-ui-date-range-picker] [data-part-preset] {
|
|
840
837
|
appearance: none;
|
|
841
838
|
background-color: transparent;
|
|
842
839
|
border: 0;
|
|
@@ -859,21 +856,21 @@
|
|
|
859
856
|
-webkit-tap-highlight-color: transparent;
|
|
860
857
|
}
|
|
861
858
|
|
|
862
|
-
[data-ui
|
|
859
|
+
[data-ui-date-range-picker] [data-part-preset]:hover:not(:disabled):not([data-selected]) {
|
|
863
860
|
background-color: var(
|
|
864
861
|
--slotted-date-range-picker-preset-hover-background,
|
|
865
862
|
var(--slotted-tone-secondary-subtle-hover)
|
|
866
863
|
);
|
|
867
864
|
}
|
|
868
865
|
|
|
869
|
-
[data-ui
|
|
866
|
+
[data-ui-date-range-picker] [data-part-preset]:active:not(:disabled):not([data-selected]) {
|
|
870
867
|
background-color: var(
|
|
871
868
|
--slotted-date-range-picker-preset-active-background,
|
|
872
869
|
var(--slotted-tone-secondary-subtle-active)
|
|
873
870
|
);
|
|
874
871
|
}
|
|
875
872
|
|
|
876
|
-
[data-ui
|
|
873
|
+
[data-ui-date-range-picker] [data-part-preset][data-selected] {
|
|
877
874
|
background-color: var(
|
|
878
875
|
--slotted-date-range-picker-preset-selected-background,
|
|
879
876
|
var(--slotted-tone-accent-subtle-hover)
|
|
@@ -882,17 +879,17 @@
|
|
|
882
879
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
883
880
|
}
|
|
884
881
|
|
|
885
|
-
[data-ui
|
|
882
|
+
[data-ui-date-range-picker] [data-part-preset]:focus-visible {
|
|
886
883
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
887
884
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
888
885
|
}
|
|
889
886
|
|
|
890
|
-
[data-ui
|
|
887
|
+
[data-ui-date-range-picker] [data-part-preset]:disabled {
|
|
891
888
|
color: var(--slotted-disabled-foreground);
|
|
892
889
|
cursor: not-allowed;
|
|
893
890
|
}
|
|
894
891
|
|
|
895
|
-
[data-ui
|
|
892
|
+
[data-ui-date-range-picker] [data-part-footer] {
|
|
896
893
|
box-sizing: border-box;
|
|
897
894
|
inline-size: 0;
|
|
898
895
|
min-inline-size: 100%;
|
|
@@ -917,7 +914,7 @@
|
|
|
917
914
|
* decision is testable without a device.
|
|
918
915
|
*/
|
|
919
916
|
@media (max-width: 480px) and (pointer: coarse) {
|
|
920
|
-
[data-ui
|
|
917
|
+
[data-ui-date-range-picker][data-part-positioner][data-presentation='sheet'] {
|
|
921
918
|
/* A sheet is not placed against an anchor, it is placed against the
|
|
922
919
|
screen. */
|
|
923
920
|
inset: auto 0 0;
|
|
@@ -925,12 +922,12 @@
|
|
|
925
922
|
translate: 0 var(--slotted-space-9, 2rem);
|
|
926
923
|
}
|
|
927
924
|
|
|
928
|
-
[data-ui
|
|
925
|
+
[data-ui-date-range-picker][data-part-positioner][data-presentation='sheet'][data-open] {
|
|
929
926
|
translate: 0 0;
|
|
930
927
|
}
|
|
931
928
|
|
|
932
|
-
[data-ui
|
|
933
|
-
[data-part
|
|
929
|
+
[data-ui-date-range-picker][data-part-positioner][data-presentation='sheet']
|
|
930
|
+
[data-part-content] {
|
|
934
931
|
border-end-end-radius: 0;
|
|
935
932
|
border-end-start-radius: 0;
|
|
936
933
|
border-inline: 0;
|
|
@@ -942,39 +939,72 @@
|
|
|
942
939
|
justify-content: center;
|
|
943
940
|
}
|
|
944
941
|
|
|
945
|
-
[data-ui
|
|
946
|
-
[data-part
|
|
942
|
+
[data-ui-date-range-picker][data-part-positioner][data-presentation='sheet']
|
|
943
|
+
[data-part-presets] {
|
|
947
944
|
/* Beside the grid there is no room for a column of shortcuts, so they
|
|
948
945
|
become a row above it and keep their labels. */
|
|
949
946
|
flex-direction: row;
|
|
950
947
|
flex-wrap: wrap;
|
|
951
948
|
}
|
|
949
|
+
|
|
950
|
+
/**
|
|
951
|
+
* The grip every bottom sheet carries, in the drawer's geometry and line
|
|
952
|
+
* color: a pill three rem by a quarter, centerd in a row one target tall
|
|
953
|
+
* that the content keeps clear at its top. A pull down on it dismisses the
|
|
954
|
+
* sheet; Escape and the press outside stay the accessible ways out.
|
|
955
|
+
*/
|
|
956
|
+
[data-ui-date-range-picker][data-part-positioner][data-presentation='sheet']
|
|
957
|
+
> [data-part-content] {
|
|
958
|
+
padding-block-start: var(--slotted-target-min, 24px);
|
|
959
|
+
position: relative;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
[data-ui-date-range-picker][data-part-positioner][data-presentation='sheet']
|
|
963
|
+
> [data-part-content]
|
|
964
|
+
> [data-part-grip] {
|
|
965
|
+
background-clip: content-box;
|
|
966
|
+
background-color: var(
|
|
967
|
+
--slotted-drawer-resizer-line-color,
|
|
968
|
+
var(--slotted-border-strong, ButtonBorder)
|
|
969
|
+
);
|
|
970
|
+
block-size: var(--slotted-space-2, 0.25rem);
|
|
971
|
+
border-radius: var(--slotted-radius-full, 9999px);
|
|
972
|
+
box-sizing: content-box;
|
|
973
|
+
cursor: grab;
|
|
974
|
+
inline-size: var(--slotted-space-11, 3rem);
|
|
975
|
+
inset-block-start: 0;
|
|
976
|
+
inset-inline: 0;
|
|
977
|
+
margin-inline: auto;
|
|
978
|
+
padding-block: calc((var(--slotted-target-min, 24px) - var(--slotted-space-2, 0.25rem)) / 2);
|
|
979
|
+
position: absolute;
|
|
980
|
+
touch-action: none;
|
|
981
|
+
}
|
|
952
982
|
}
|
|
953
983
|
|
|
954
984
|
@media (forced-colors: active) {
|
|
955
|
-
/* A transparent border has no system
|
|
985
|
+
/* A transparent border has no system color to be remapped to, so the
|
|
956
986
|
`plain` frame would lose its only edge where an edge matters most. */
|
|
957
|
-
[data-ui
|
|
987
|
+
[data-ui-date-range-picker][data-part-root][data-variant='plain'] [data-part-control] {
|
|
958
988
|
border-color: ButtonBorder;
|
|
959
989
|
}
|
|
960
990
|
|
|
961
|
-
/* The underline is painted with a background, and forced
|
|
991
|
+
/* The underline is painted with a background, and forced colors replace
|
|
962
992
|
a background that is not one of the system's own. */
|
|
963
|
-
[data-ui
|
|
964
|
-
[data-ui
|
|
993
|
+
[data-ui-date-range-picker] [data-part-start]::after,
|
|
994
|
+
[data-ui-date-range-picker] [data-part-end]::after {
|
|
965
995
|
forced-color-adjust: none;
|
|
966
996
|
}
|
|
967
997
|
|
|
968
998
|
/* The underline keeps its ink as the text's own: a tone has nothing to
|
|
969
999
|
map to here, and `currentcolor` is whatever the system gave the frame. */
|
|
970
|
-
[data-ui
|
|
971
|
-
[data-ui
|
|
1000
|
+
[data-ui-date-range-picker] [data-part-start]::after,
|
|
1001
|
+
[data-ui-date-range-picker] [data-part-end]::after {
|
|
972
1002
|
background-color: currentcolor;
|
|
973
1003
|
}
|
|
974
1004
|
|
|
975
1005
|
/* A tinted ground has nothing to tint in a palette the system replaced;
|
|
976
1006
|
the selected shortcut takes the pair the system keeps legible. */
|
|
977
|
-
[data-ui
|
|
1007
|
+
[data-ui-date-range-picker] [data-part-preset][data-selected] {
|
|
978
1008
|
background-color: Highlight;
|
|
979
1009
|
color: HighlightText;
|
|
980
1010
|
forced-color-adjust: none;
|