@slotted/styles 0.1.0-beta.2 → 0.1.0-beta.21
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 +1 -1
- package/src/accordion/accordion.css +10 -10
- package/src/action-bar/action-bar.css +45 -42
- package/src/action-bar/action-bar.tokens.json +1 -0
- package/src/action-sheet/action-sheet.css +36 -36
- package/src/alert/alert.css +68 -67
- package/src/alert/alert.tokens.json +5 -0
- package/src/app-shell/app-shell.css +452 -314
- package/src/app-shell/app-shell.tokens.json +5 -2
- package/src/aspect-ratio/aspect-ratio.css +9 -9
- package/src/attachment/attachment.css +91 -99
- package/src/avatar/avatar.css +71 -41
- package/src/avatar/avatar.tokens.json +7 -0
- package/src/avatar-group/avatar-group.css +21 -22
- package/src/badge/badge.css +45 -37
- package/src/badge/badge.tokens.json +5 -0
- package/src/breadcrumb/breadcrumb.css +37 -37
- package/src/button/button.css +149 -68
- package/src/button/button.tokens.json +10 -0
- package/src/button-group/button-group.css +79 -74
- package/src/button-group/button-group.tokens.json +2 -0
- package/src/calendar/calendar.css +133 -103
- package/src/calendar/calendar.tokens.json +5 -1
- package/src/card/card.css +54 -61
- package/src/carousel/carousel.css +150 -161
- package/src/cascader/cascader.css +154 -153
- package/src/cascader/cascader.tokens.json +1 -0
- package/src/chart/chart.css +258 -248
- package/src/chart/chart.tokens.json +1 -0
- package/src/checkbox/checkbox.css +119 -124
- package/src/checkbox-group/checkbox-group.css +7 -7
- package/src/code-block/code-block.css +81 -85
- package/src/collapsible/collapsible.css +72 -76
- package/src/color-picker/color-picker.css +83 -91
- package/src/column-manager/column-manager.css +106 -114
- package/src/combobox/combobox.css +157 -124
- package/src/combobox/combobox.tokens.json +2 -0
- package/src/command-palette/command-palette.css +103 -90
- package/src/command-palette/command-palette.tokens.json +1 -0
- package/src/container/container.css +24 -24
- package/src/context-menu/context-menu.css +8 -8
- package/src/currency-field/currency-field.css +212 -88
- package/src/currency-field/currency-field.tokens.json +13 -0
- package/src/dashboard-grid/dashboard-grid.css +184 -114
- package/src/data-grid/data-grid.css +535 -470
- package/src/data-grid/data-grid.tokens.json +4 -0
- package/src/data-list/data-list.css +81 -70
- package/src/data-list/data-list.tokens.json +2 -1
- package/src/date-field/date-field.css +57 -52
- package/src/date-field/date-field.tokens.json +1 -0
- package/src/date-picker/date-picker.css +75 -57
- package/src/date-picker/date-picker.tokens.json +1 -0
- package/src/date-range-picker/date-range-picker.css +116 -118
- package/src/datetime-field/datetime-field.css +80 -80
- package/src/datetime-field/datetime-field.tokens.json +1 -0
- package/src/datetime-picker/datetime-picker.css +63 -63
- package/src/datetime-range-picker/datetime-range-picker.css +151 -156
- package/src/description-list/description-list.css +80 -65
- package/src/detail-panel/detail-panel.css +86 -71
- package/src/detail-panel/detail-panel.tokens.json +2 -0
- package/src/dialog/dialog.css +376 -153
- package/src/dialog/dialog.tokens.json +6 -0
- package/src/divider/divider.css +18 -18
- package/src/drawer/drawer.css +513 -217
- package/src/drawer/drawer.tokens.json +6 -0
- package/src/entity-picker/entity-picker.css +273 -256
- package/src/entity-picker/entity-picker.tokens.json +2 -0
- package/src/event-calendar/event-calendar.css +343 -385
- package/src/field/field.css +74 -78
- package/src/field-group/field-group.css +22 -25
- package/src/filter-bar/filter-bar.css +193 -209
- package/src/form/form.css +34 -24
- package/src/form/form.tokens.json +1 -0
- package/src/fullscreen/fullscreen.css +24 -25
- package/src/grid/grid.css +28 -28
- package/src/highlight/highlight.css +6 -6
- package/src/hover-card/hover-card.css +6 -6
- package/src/icon/icon.css +62 -15
- package/src/icon/icon.tokens.json +1 -0
- package/src/image/image.css +39 -39
- package/src/import-export-center/import-export-center.css +135 -156
- package/src/inline/inline.css +27 -27
- package/src/inline-message/inline-message.css +153 -77
- package/src/inline-message/inline-message.tokens.json +4 -0
- package/src/kbd/kbd.css +48 -36
- package/src/kbd/kbd.tokens.json +3 -0
- package/src/link/link.css +36 -15
- package/src/link/link.tokens.json +4 -0
- package/src/list/list.css +44 -17
- package/src/list/list.tokens.json +4 -0
- package/src/list-item/list-item.css +80 -66
- package/src/list-item/list-item.tokens.json +7 -0
- package/src/listbox/listbox.css +56 -59
- package/src/loading-overlay/loading-overlay.css +75 -92
- package/src/markdown/markdown.css +17 -17
- package/src/menu/menu.css +117 -74
- package/src/menu/menu.tokens.json +1 -0
- package/src/menubar/menubar.css +13 -13
- package/src/message/message.css +192 -202
- package/src/message/message.tokens.json +5 -0
- package/src/message-scroller/message-scroller.css +41 -42
- package/src/multi-select/multi-select.css +177 -160
- package/src/multi-select/multi-select.tokens.json +1 -0
- package/src/navigation-menu/navigation-menu.css +167 -188
- package/src/notification-center/notification-center.css +140 -148
- package/src/notification-center/notification-center.tokens.json +3 -0
- package/src/number-field/number-field.css +83 -83
- package/src/number-field/number-field.tokens.json +1 -0
- package/src/otp-input/otp-input.css +67 -57
- package/src/otp-input/otp-input.tokens.json +1 -0
- package/src/page/page.css +39 -23
- package/src/page/page.tokens.json +1 -0
- package/src/page-header/page-header.css +339 -284
- package/src/page-header/page-header.tokens.json +5 -0
- package/src/pagination/pagination.css +68 -72
- package/src/popover/popover.css +73 -61
- package/src/popover/popover.tokens.json +1 -0
- package/src/progress-indicator/progress-indicator.css +169 -113
- package/src/progress-indicator/progress-indicator.tokens.json +1 -0
- package/src/prompt-composer/prompt-composer.css +251 -104
- package/src/prompt-composer/prompt-composer.tokens.json +15 -0
- package/src/prose/prose.css +71 -75
- package/src/radio-group/radio-group.css +98 -103
- package/src/rating/rating.css +136 -132
- package/src/rating/rating.tokens.json +1 -0
- package/src/result-state/result-state.css +74 -77
- package/src/runtime-properties.mjs +2 -0
- package/src/saved-views/saved-views.css +41 -47
- package/src/scroll-area/scroll-area.css +39 -32
- package/src/section/section.css +178 -43
- package/src/section/section.tokens.json +8 -2
- package/src/segmented-control/segmented-control.css +254 -97
- package/src/segmented-control/segmented-control.tokens.json +15 -11
- package/src/select/select.css +153 -132
- package/src/select/select.tokens.json +2 -0
- package/src/side-navigation/side-navigation.css +179 -182
- package/src/side-navigation/side-navigation.tokens.json +1 -0
- package/src/skeleton/skeleton.css +47 -48
- package/src/slider/slider.css +86 -88
- package/src/sparkline/sparkline.css +62 -40
- 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 +30 -31
- package/src/split-button/split-button.tokens.json +1 -0
- package/src/splitter/splitter.css +35 -35
- package/src/stack/stack.css +24 -24
- package/src/stat-card/stat-card.css +380 -241
- package/src/stat-card/stat-card.tokens.json +5 -0
- package/src/status-indicator/status-indicator.css +107 -82
- package/src/status-indicator/status-indicator.tokens.json +0 -3
- package/src/stepper/stepper.css +58 -62
- package/src/switch/switch.css +86 -92
- package/src/table/table.css +340 -175
- package/src/table/table.tokens.json +6 -0
- package/src/table-of-contents/table-of-contents.css +57 -56
- package/src/table-of-contents/table-of-contents.tokens.json +1 -0
- package/src/tabs/tabs.css +322 -289
- package/src/tabs/tabs.tokens.json +7 -1
- package/src/tag/tag.css +91 -71
- package/src/tag/tag.tokens.json +9 -0
- package/src/tags-input/tags-input.css +147 -82
- package/src/tags-input/tags-input.tokens.json +7 -1
- package/src/text-field/text-field.css +134 -136
- package/src/text-field/text-field.tokens.json +1 -0
- package/src/textarea/textarea.css +33 -28
- package/src/textarea/textarea.tokens.json +1 -0
- package/src/time-field/time-field.css +74 -69
- package/src/time-field/time-field.tokens.json +1 -0
- package/src/time-picker/time-picker.css +58 -58
- package/src/time-range-picker/time-range-picker.css +128 -133
- package/src/timeline/timeline.css +254 -266
- package/src/timeline/timeline.tokens.json +5 -0
- package/src/toast/toast.css +115 -98
- package/src/toast/toast.tokens.json +6 -0
- package/src/toggle/toggle.css +62 -25
- package/src/toggle/toggle.tokens.json +8 -0
- package/src/toggle-group/toggle-group.css +106 -60
- package/src/toggle-group/toggle-group.tokens.json +10 -0
- package/src/toolbar/toolbar.css +30 -35
- package/src/tooltip/tooltip.css +59 -38
- package/src/tooltip/tooltip.tokens.json +1 -0
- package/src/top-navigation/top-navigation.css +243 -259
- package/src/tour/tour.css +51 -60
- package/src/transfer/transfer.css +160 -164
- package/src/tree/tree.css +103 -111
- package/src/typography/typography.css +40 -36
- package/src/typography/typography.tokens.json +1 -0
- package/src/upload/upload.css +224 -224
- package/src/visually-hidden/visually-hidden.css +1 -1
- package/src/wizard/wizard.css +185 -197
|
@@ -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;
|
|
@@ -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)
|
|
@@ -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. */
|
|
@@ -474,23 +475,23 @@
|
|
|
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)
|
|
@@ -512,7 +513,7 @@
|
|
|
512
513
|
|
|
513
514
|
/* Muted to the colour 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
|
|
|
@@ -713,7 +711,7 @@
|
|
|
713
711
|
* own width, so the calendar decides how wide the panel is and the band
|
|
714
712
|
* wraps inside whatever it decides.
|
|
715
713
|
*/
|
|
716
|
-
[data-ui
|
|
714
|
+
[data-ui-date-range-picker] [data-part-head] {
|
|
717
715
|
box-sizing: border-box;
|
|
718
716
|
inline-size: 0;
|
|
719
717
|
min-inline-size: 100%;
|
|
@@ -738,8 +736,8 @@
|
|
|
738
736
|
/* The two ends and the dash between them are one run, and the run does not
|
|
739
737
|
break inside itself: "12 Sep –" on one line and "16 Sep" on the next is a
|
|
740
738
|
range read twice. */
|
|
741
|
-
[data-ui
|
|
742
|
-
[data-ui
|
|
739
|
+
[data-ui-date-range-picker] [data-part-head] > [data-part-head-start],
|
|
740
|
+
[data-ui-date-range-picker] [data-part-head] > [data-part-head-end] {
|
|
743
741
|
color: var(--slotted-date-range-picker-content-color, var(--slotted-text, CanvasText));
|
|
744
742
|
font-size: var(--slotted-font-size-sm, 13px);
|
|
745
743
|
font-variant-numeric: tabular-nums;
|
|
@@ -760,16 +758,16 @@
|
|
|
760
758
|
/* The end not yet written, drawn as its placeholder beside the one that is;
|
|
761
759
|
and the pending one, which is a proposal and reads as the band's own
|
|
762
760
|
proposal in the calendar does. */
|
|
763
|
-
[data-ui
|
|
764
|
-
[data-part
|
|
765
|
-
:is([data-part
|
|
761
|
+
[data-ui-date-range-picker]
|
|
762
|
+
[data-part-head]
|
|
763
|
+
:is([data-part-head-start], [data-part-head-end])[data-placeholder] {
|
|
766
764
|
color: var(--slotted-date-range-picker-placeholder-color, var(--slotted-text-muted, GrayText));
|
|
767
765
|
font-weight: var(--slotted-font-weight-regular, 400);
|
|
768
766
|
}
|
|
769
767
|
|
|
770
|
-
[data-ui
|
|
771
|
-
[data-part
|
|
772
|
-
:is([data-part
|
|
768
|
+
[data-ui-date-range-picker]
|
|
769
|
+
[data-part-head]
|
|
770
|
+
:is([data-part-head-start], [data-part-head-end])[data-pending] {
|
|
773
771
|
color: var(--slotted-date-range-picker-pending-color, var(--slotted-tone-accent-text));
|
|
774
772
|
}
|
|
775
773
|
|
|
@@ -779,7 +777,7 @@
|
|
|
779
777
|
* keeps the tone and drops a step of weight, the way the calendar's pending
|
|
780
778
|
* band keeps the tint and drops a step of share.
|
|
781
779
|
*/
|
|
782
|
-
[data-ui
|
|
780
|
+
[data-ui-date-range-picker] [data-part-length] {
|
|
783
781
|
color: var(--slotted-date-range-picker-length-color, var(--slotted-tone-accent-text));
|
|
784
782
|
font-size: var(--slotted-font-size-sm, 13px);
|
|
785
783
|
font-variant-numeric: tabular-nums;
|
|
@@ -792,19 +790,19 @@
|
|
|
792
790
|
white-space: nowrap;
|
|
793
791
|
}
|
|
794
792
|
|
|
795
|
-
[data-ui
|
|
793
|
+
[data-ui-date-range-picker] [data-part-length][data-pending] {
|
|
796
794
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
797
795
|
}
|
|
798
796
|
|
|
799
797
|
/* An empty length still holds its line, so the band does not grow a row
|
|
800
798
|
when the first end is chosen. */
|
|
801
|
-
[data-ui
|
|
799
|
+
[data-ui-date-range-picker] [data-part-length]:empty::before {
|
|
802
800
|
content: '\200B';
|
|
803
801
|
}
|
|
804
802
|
|
|
805
803
|
/* The limit, on a row of its own under the ends: a rule the grid enforces
|
|
806
804
|
is a rule the band names. */
|
|
807
|
-
[data-ui
|
|
805
|
+
[data-ui-date-range-picker] [data-part-limit] {
|
|
808
806
|
color: var(--slotted-date-range-picker-limit-color, var(--slotted-text-muted, GrayText));
|
|
809
807
|
flex-basis: 100%;
|
|
810
808
|
font-size: var(--slotted-font-size-xs, 11px);
|
|
@@ -817,7 +815,7 @@
|
|
|
817
815
|
* and a library that guessed at one would be guessing at a fiscal year. It
|
|
818
816
|
* ships the column they stand in and the button each one is.
|
|
819
817
|
*/
|
|
820
|
-
[data-ui
|
|
818
|
+
[data-ui-date-range-picker] [data-part-presets] {
|
|
821
819
|
align-items: stretch;
|
|
822
820
|
display: flex;
|
|
823
821
|
/* It grows: beside the grid it takes what the surface leaves, and alone
|
|
@@ -836,7 +834,7 @@
|
|
|
836
834
|
* no left edge to run down. Selected, it takes the accent's subtle ground
|
|
837
835
|
* and text, which is the pair `calendar` gives a day inside the run.
|
|
838
836
|
*/
|
|
839
|
-
[data-ui
|
|
837
|
+
[data-ui-date-range-picker] [data-part-preset] {
|
|
840
838
|
appearance: none;
|
|
841
839
|
background-color: transparent;
|
|
842
840
|
border: 0;
|
|
@@ -859,21 +857,21 @@
|
|
|
859
857
|
-webkit-tap-highlight-color: transparent;
|
|
860
858
|
}
|
|
861
859
|
|
|
862
|
-
[data-ui
|
|
860
|
+
[data-ui-date-range-picker] [data-part-preset]:hover:not(:disabled):not([data-selected]) {
|
|
863
861
|
background-color: var(
|
|
864
862
|
--slotted-date-range-picker-preset-hover-background,
|
|
865
863
|
var(--slotted-tone-secondary-subtle-hover)
|
|
866
864
|
);
|
|
867
865
|
}
|
|
868
866
|
|
|
869
|
-
[data-ui
|
|
867
|
+
[data-ui-date-range-picker] [data-part-preset]:active:not(:disabled):not([data-selected]) {
|
|
870
868
|
background-color: var(
|
|
871
869
|
--slotted-date-range-picker-preset-active-background,
|
|
872
870
|
var(--slotted-tone-secondary-subtle-active)
|
|
873
871
|
);
|
|
874
872
|
}
|
|
875
873
|
|
|
876
|
-
[data-ui
|
|
874
|
+
[data-ui-date-range-picker] [data-part-preset][data-selected] {
|
|
877
875
|
background-color: var(
|
|
878
876
|
--slotted-date-range-picker-preset-selected-background,
|
|
879
877
|
var(--slotted-tone-accent-subtle-hover)
|
|
@@ -882,17 +880,17 @@
|
|
|
882
880
|
font-weight: var(--slotted-font-weight-medium, 500);
|
|
883
881
|
}
|
|
884
882
|
|
|
885
|
-
[data-ui
|
|
883
|
+
[data-ui-date-range-picker] [data-part-preset]:focus-visible {
|
|
886
884
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
887
885
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
888
886
|
}
|
|
889
887
|
|
|
890
|
-
[data-ui
|
|
888
|
+
[data-ui-date-range-picker] [data-part-preset]:disabled {
|
|
891
889
|
color: var(--slotted-disabled-foreground);
|
|
892
890
|
cursor: not-allowed;
|
|
893
891
|
}
|
|
894
892
|
|
|
895
|
-
[data-ui
|
|
893
|
+
[data-ui-date-range-picker] [data-part-footer] {
|
|
896
894
|
box-sizing: border-box;
|
|
897
895
|
inline-size: 0;
|
|
898
896
|
min-inline-size: 100%;
|
|
@@ -917,7 +915,7 @@
|
|
|
917
915
|
* decision is testable without a device.
|
|
918
916
|
*/
|
|
919
917
|
@media (max-width: 480px) and (pointer: coarse) {
|
|
920
|
-
[data-ui
|
|
918
|
+
[data-ui-date-range-picker][data-part-positioner][data-presentation='sheet'] {
|
|
921
919
|
/* A sheet is not placed against an anchor, it is placed against the
|
|
922
920
|
screen. */
|
|
923
921
|
inset: auto 0 0;
|
|
@@ -925,12 +923,12 @@
|
|
|
925
923
|
translate: 0 var(--slotted-space-9, 2rem);
|
|
926
924
|
}
|
|
927
925
|
|
|
928
|
-
[data-ui
|
|
926
|
+
[data-ui-date-range-picker][data-part-positioner][data-presentation='sheet'][data-open] {
|
|
929
927
|
translate: 0 0;
|
|
930
928
|
}
|
|
931
929
|
|
|
932
|
-
[data-ui
|
|
933
|
-
[data-part
|
|
930
|
+
[data-ui-date-range-picker][data-part-positioner][data-presentation='sheet']
|
|
931
|
+
[data-part-content] {
|
|
934
932
|
border-end-end-radius: 0;
|
|
935
933
|
border-end-start-radius: 0;
|
|
936
934
|
border-inline: 0;
|
|
@@ -942,8 +940,8 @@
|
|
|
942
940
|
justify-content: center;
|
|
943
941
|
}
|
|
944
942
|
|
|
945
|
-
[data-ui
|
|
946
|
-
[data-part
|
|
943
|
+
[data-ui-date-range-picker][data-part-positioner][data-presentation='sheet']
|
|
944
|
+
[data-part-presets] {
|
|
947
945
|
/* Beside the grid there is no room for a column of shortcuts, so they
|
|
948
946
|
become a row above it and keep their labels. */
|
|
949
947
|
flex-direction: row;
|
|
@@ -954,27 +952,27 @@
|
|
|
954
952
|
@media (forced-colors: active) {
|
|
955
953
|
/* A transparent border has no system colour to be remapped to, so the
|
|
956
954
|
`plain` frame would lose its only edge where an edge matters most. */
|
|
957
|
-
[data-ui
|
|
955
|
+
[data-ui-date-range-picker][data-part-root][data-variant='plain'] [data-part-control] {
|
|
958
956
|
border-color: ButtonBorder;
|
|
959
957
|
}
|
|
960
958
|
|
|
961
959
|
/* The underline is painted with a background, and forced colours replace
|
|
962
960
|
a background that is not one of the system's own. */
|
|
963
|
-
[data-ui
|
|
964
|
-
[data-ui
|
|
961
|
+
[data-ui-date-range-picker] [data-part-start]::after,
|
|
962
|
+
[data-ui-date-range-picker] [data-part-end]::after {
|
|
965
963
|
forced-color-adjust: none;
|
|
966
964
|
}
|
|
967
965
|
|
|
968
966
|
/* The underline keeps its ink as the text's own: a tone has nothing to
|
|
969
967
|
map to here, and `currentcolor` is whatever the system gave the frame. */
|
|
970
|
-
[data-ui
|
|
971
|
-
[data-ui
|
|
968
|
+
[data-ui-date-range-picker] [data-part-start]::after,
|
|
969
|
+
[data-ui-date-range-picker] [data-part-end]::after {
|
|
972
970
|
background-color: currentcolor;
|
|
973
971
|
}
|
|
974
972
|
|
|
975
973
|
/* A tinted ground has nothing to tint in a palette the system replaced;
|
|
976
974
|
the selected shortcut takes the pair the system keeps legible. */
|
|
977
|
-
[data-ui
|
|
975
|
+
[data-ui-date-range-picker] [data-part-preset][data-selected] {
|
|
978
976
|
background-color: Highlight;
|
|
979
977
|
color: HighlightText;
|
|
980
978
|
forced-color-adjust: none;
|