@slotted/styles 0.1.0-beta.8 → 0.1.0-beta.9
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 +31 -32
- package/src/action-sheet/action-sheet.css +36 -36
- package/src/alert/alert.css +35 -35
- package/src/app-shell/app-shell.css +280 -299
- package/src/aspect-ratio/aspect-ratio.css +9 -9
- package/src/attachment/attachment.css +91 -99
- package/src/avatar/avatar.css +41 -41
- package/src/avatar-group/avatar-group.css +21 -22
- package/src/badge/badge.css +37 -37
- package/src/breadcrumb/breadcrumb.css +37 -37
- package/src/button/button.css +88 -69
- package/src/button-group/button-group.css +69 -73
- package/src/calendar/calendar.css +93 -103
- package/src/card/card.css +54 -61
- package/src/carousel/carousel.css +150 -161
- package/src/cascader/cascader.css +147 -151
- package/src/chart/chart.css +225 -240
- 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 +69 -76
- package/src/color-picker/color-picker.css +83 -91
- package/src/column-manager/column-manager.css +106 -114
- package/src/combobox/combobox.css +99 -101
- package/src/command-palette/command-palette.css +84 -90
- package/src/container/container.css +24 -24
- package/src/context-menu/context-menu.css +8 -8
- package/src/currency-field/currency-field.css +99 -104
- package/src/dashboard-grid/dashboard-grid.css +104 -107
- package/src/data-grid/data-grid.css +458 -456
- package/src/data-grid/data-grid.tokens.json +2 -0
- package/src/data-list/data-list.css +67 -69
- package/src/date-field/date-field.css +50 -50
- package/src/date-picker/date-picker.css +40 -42
- package/src/date-range-picker/date-range-picker.css +114 -118
- package/src/datetime-field/datetime-field.css +73 -78
- package/src/datetime-picker/datetime-picker.css +61 -63
- package/src/datetime-range-picker/datetime-range-picker.css +149 -156
- package/src/description-list/description-list.css +61 -64
- package/src/detail-panel/detail-panel.css +70 -70
- package/src/dialog/dialog.css +300 -148
- package/src/divider/divider.css +18 -18
- package/src/drawer/drawer.css +186 -209
- package/src/entity-picker/entity-picker.css +220 -239
- 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 +21 -24
- 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 +15 -15
- 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 +28 -28
- package/src/kbd/kbd.css +26 -26
- package/src/link/link.css +15 -15
- package/src/list/list.css +20 -20
- package/src/list-item/list-item.css +66 -66
- 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 +63 -65
- package/src/menubar/menubar.css +13 -13
- package/src/message/message.css +174 -202
- package/src/message-scroller/message-scroller.css +41 -42
- package/src/multi-select/multi-select.css +131 -137
- package/src/navigation-menu/navigation-menu.css +167 -188
- package/src/notification-center/notification-center.css +134 -148
- package/src/number-field/number-field.css +76 -81
- package/src/otp-input/otp-input.css +48 -48
- package/src/page/page.css +23 -23
- package/src/page-header/page-header.css +219 -280
- package/src/pagination/pagination.css +68 -72
- package/src/popover/popover.css +40 -49
- package/src/progress-indicator/progress-indicator.css +85 -90
- package/src/prompt-composer/prompt-composer.css +94 -99
- package/src/prose/prose.css +71 -75
- package/src/radio-group/radio-group.css +98 -103
- package/src/rating/rating.css +132 -132
- package/src/result-state/result-state.css +74 -77
- package/src/saved-views/saved-views.css +41 -47
- package/src/scroll-area/scroll-area.css +32 -35
- package/src/section/section.css +16 -16
- package/src/segmented-control/segmented-control.css +77 -79
- package/src/select/select.css +113 -115
- package/src/side-navigation/side-navigation.css +170 -180
- package/src/skeleton/skeleton.css +47 -48
- package/src/slider/slider.css +86 -88
- package/src/sparkline/sparkline.css +32 -32
- package/src/spinner/spinner.css +4 -4
- package/src/split-button/split-button.css +26 -31
- package/src/splitter/splitter.css +35 -35
- package/src/stack/stack.css +24 -24
- package/src/stat-card/stat-card.css +102 -103
- package/src/status-indicator/status-indicator.css +28 -28
- package/src/stepper/stepper.css +58 -62
- package/src/switch/switch.css +86 -92
- package/src/table/table.css +189 -198
- package/src/table-of-contents/table-of-contents.css +51 -54
- package/src/tabs/tabs.css +143 -162
- package/src/tag/tag.css +67 -71
- package/src/tags-input/tags-input.css +124 -74
- package/src/tags-input/tags-input.tokens.json +6 -1
- package/src/text-field/text-field.css +108 -126
- package/src/textarea/textarea.css +26 -26
- package/src/time-field/time-field.css +67 -67
- package/src/time-picker/time-picker.css +56 -58
- package/src/time-range-picker/time-range-picker.css +126 -133
- package/src/timeline/timeline.css +244 -266
- package/src/toast/toast.css +81 -90
- package/src/toggle/toggle.css +29 -33
- package/src/toggle-group/toggle-group.css +67 -71
- package/src/toolbar/toolbar.css +30 -35
- package/src/tooltip/tooltip.css +26 -26
- 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 +36 -36
- package/src/upload/upload.css +224 -224
- package/src/visually-hidden/visually-hidden.css +1 -1
- package/src/wizard/wizard.css +185 -197
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* list, and the length of it is answered by where the panel opens, by
|
|
28
28
|
* type-ahead, and by PageUp and PageDown.
|
|
29
29
|
*/
|
|
30
|
-
[data-ui
|
|
30
|
+
[data-ui-time-picker][data-part-root] {
|
|
31
31
|
display: block;
|
|
32
32
|
/* The anchor the positioner measures is the control, and a block root
|
|
33
33
|
lets the frame take the width the form gave it. */
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
* It draws no frame: the `time-field` inside it draws its own, and the
|
|
41
41
|
* trigger is handed to that field's `end` slot by the binding.
|
|
42
42
|
*/
|
|
43
|
-
[data-ui
|
|
43
|
+
[data-ui-time-picker] [data-part-control] {
|
|
44
44
|
--_icon-size: var(--slotted-control-icon-size-md, 16px);
|
|
45
45
|
--_height: var(--slotted-control-height-md, 34px);
|
|
46
46
|
|
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
position: relative;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
[data-ui
|
|
54
|
+
[data-ui-time-picker][data-part-root][data-size='sm'] [data-part-control] {
|
|
55
55
|
--_icon-size: var(--slotted-control-icon-size-sm, 14px);
|
|
56
56
|
--_height: var(--slotted-control-height-sm, 30px);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
[data-ui
|
|
59
|
+
[data-ui-time-picker][data-part-root][data-size='lg'] [data-part-control] {
|
|
60
60
|
--_icon-size: var(--slotted-control-icon-size-lg, 18px);
|
|
61
61
|
--_height: var(--slotted-control-height-lg, 38px);
|
|
62
62
|
}
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
* does not turn while the surface is open either. It is a `Glyph` the
|
|
78
78
|
* binding draws inside an `icon` box, at the field's icon step.
|
|
79
79
|
*/
|
|
80
|
-
[data-ui
|
|
80
|
+
[data-ui-time-picker] [data-part-trigger] {
|
|
81
81
|
--slotted-icon-size: var(--_icon-size);
|
|
82
82
|
|
|
83
83
|
align-items: center;
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
|
|
123
123
|
/* The hit area, recovered outside the paint, exactly as every other inner
|
|
124
124
|
control in the library recovers it. */
|
|
125
|
-
[data-ui
|
|
125
|
+
[data-ui-time-picker] [data-part-trigger]::after {
|
|
126
126
|
content: '';
|
|
127
127
|
inset: min(0px, calc((100% - var(--slotted-target-min, 24px)) / 2));
|
|
128
128
|
position: absolute;
|
|
@@ -133,25 +133,25 @@
|
|
|
133
133
|
the hit area above grows to 44 pixels around them. Before the field's
|
|
134
134
|
clear it does not reach across it. */
|
|
135
135
|
@media (pointer: coarse) {
|
|
136
|
-
[data-ui
|
|
136
|
+
[data-ui-time-picker] [data-part-trigger]::after {
|
|
137
137
|
inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
[data-ui
|
|
141
|
-
[data-part
|
|
142
|
-
> [data-part
|
|
140
|
+
[data-ui-time-picker]
|
|
141
|
+
[data-part-end]:has(+ [data-part-clear]:not([hidden]))
|
|
142
|
+
> [data-part-trigger]::after {
|
|
143
143
|
inset-inline-end: 0;
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
[data-ui
|
|
147
|
+
[data-ui-time-picker] [data-part-trigger]:hover:not(:disabled):not([data-disabled]) {
|
|
148
148
|
background-color: var(
|
|
149
149
|
--slotted-time-picker-trigger-hover-background,
|
|
150
150
|
var(--slotted-tone-secondary-subtle-hover)
|
|
151
151
|
);
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
[data-ui
|
|
154
|
+
[data-ui-time-picker] [data-part-trigger]:active:not(:disabled):not([data-disabled]) {
|
|
155
155
|
background-color: var(
|
|
156
156
|
--slotted-time-picker-trigger-active-background,
|
|
157
157
|
var(--slotted-tone-secondary-subtle-active)
|
|
@@ -160,19 +160,19 @@
|
|
|
160
160
|
|
|
161
161
|
/* Its own ring: tabbing from the last segment to the trigger has to move
|
|
162
162
|
something visible, and the frame's ring would sit still. */
|
|
163
|
-
[data-ui
|
|
163
|
+
[data-ui-time-picker] [data-part-trigger]:focus-visible {
|
|
164
164
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
165
165
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
[data-ui
|
|
168
|
+
[data-ui-time-picker][data-part-root][data-invalid] {
|
|
169
169
|
--slotted-focus-ring-color: var(
|
|
170
170
|
--slotted-time-picker-invalid-focus-ring-color,
|
|
171
171
|
var(--slotted-focus-ring-color-invalid, Highlight)
|
|
172
172
|
);
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
[data-ui
|
|
175
|
+
[data-ui-time-picker] [data-part-trigger]:disabled {
|
|
176
176
|
color: var(--slotted-disabled-foreground);
|
|
177
177
|
cursor: not-allowed;
|
|
178
178
|
}
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
* onto. The painted surface is one element in, as every anchored family in
|
|
184
184
|
* the library is built.
|
|
185
185
|
*/
|
|
186
|
-
[data-ui
|
|
186
|
+
[data-ui-time-picker][data-part-positioner] {
|
|
187
187
|
/* Only the block inset: the positioner writes `left` and never `right`,
|
|
188
188
|
and `inset-inline-start` would resolve to `right` in a right-to-left
|
|
189
189
|
document and win over the measured value. */
|
|
@@ -207,16 +207,16 @@
|
|
|
207
207
|
translate var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
[data-ui
|
|
210
|
+
[data-ui-time-picker][data-part-positioner][data-side='top'] {
|
|
211
211
|
translate: 0 var(--_enter-distance);
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
/* A lateral side has no block direction to arrive from, so it only fades. */
|
|
215
|
-
[data-ui
|
|
215
|
+
[data-ui-time-picker][data-part-positioner]:is([data-side='left'], [data-side='right']) {
|
|
216
216
|
translate: 0 0;
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
-
[data-ui
|
|
219
|
+
[data-ui-time-picker][data-part-positioner][data-open] {
|
|
220
220
|
opacity: 1;
|
|
221
221
|
translate: 0 0;
|
|
222
222
|
transition: none;
|
|
@@ -230,16 +230,16 @@
|
|
|
230
230
|
* harness, a docs snippet — is simply there, and is photographed where it
|
|
231
231
|
* stands.
|
|
232
232
|
*/
|
|
233
|
-
[data-ui
|
|
233
|
+
[data-ui-time-picker][data-part-positioner][data-open][data-positioned] {
|
|
234
234
|
animation: slotted-time-picker-enter-down var(--slotted-duration-medium)
|
|
235
235
|
var(--slotted-easing-enter);
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
[data-ui
|
|
238
|
+
[data-ui-time-picker][data-part-positioner][data-open][data-positioned][data-side='top'] {
|
|
239
239
|
animation-name: slotted-time-picker-enter-up;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
[data-ui
|
|
242
|
+
[data-ui-time-picker][data-part-positioner][data-open][data-positioned]:is(
|
|
243
243
|
[data-side='left'],
|
|
244
244
|
[data-side='right']
|
|
245
245
|
) {
|
|
@@ -268,25 +268,25 @@
|
|
|
268
268
|
|
|
269
269
|
/* Stillness keeps the fade and drops the movement. */
|
|
270
270
|
@media (prefers-reduced-motion: reduce) {
|
|
271
|
-
[data-ui
|
|
272
|
-
[data-ui
|
|
273
|
-
[data-ui
|
|
274
|
-
[data-ui
|
|
271
|
+
[data-ui-time-picker][data-part-positioner],
|
|
272
|
+
[data-ui-time-picker][data-part-positioner][data-side='top'],
|
|
273
|
+
[data-ui-time-picker][data-part-positioner][data-side='left'],
|
|
274
|
+
[data-ui-time-picker][data-part-positioner][data-side='right'] {
|
|
275
275
|
translate: 0 0;
|
|
276
276
|
transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
277
277
|
}
|
|
278
278
|
|
|
279
|
-
[data-ui
|
|
280
|
-
[data-ui
|
|
281
|
-
[data-ui
|
|
282
|
-
[data-ui
|
|
279
|
+
[data-ui-time-picker][data-part-positioner][data-open][data-positioned],
|
|
280
|
+
[data-ui-time-picker][data-part-positioner][data-open][data-positioned][data-side='top'],
|
|
281
|
+
[data-ui-time-picker][data-part-positioner][data-open][data-positioned][data-side='left'],
|
|
282
|
+
[data-ui-time-picker][data-part-positioner][data-open][data-positioned][data-side='right'] {
|
|
283
283
|
animation-name: slotted-time-picker-fade;
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
/* The anchor scrolled out of its own clipper. The list is still open and
|
|
288
288
|
still belongs to a control the reader can no longer see. */
|
|
289
|
-
[data-ui
|
|
289
|
+
[data-ui-time-picker][data-part-positioner][data-detached] {
|
|
290
290
|
visibility: hidden;
|
|
291
291
|
}
|
|
292
292
|
|
|
@@ -303,7 +303,7 @@
|
|
|
303
303
|
* produce a column too tight to read a time in, and capped so a wide form
|
|
304
304
|
* does not stretch one column of times across a page.
|
|
305
305
|
*/
|
|
306
|
-
[data-ui
|
|
306
|
+
[data-ui-time-picker] [data-part-content] {
|
|
307
307
|
background-color: var(--slotted-time-picker-surface, var(--slotted-surface-raised, Canvas));
|
|
308
308
|
border: var(--slotted-border-width-thin, 1px) solid
|
|
309
309
|
var(--slotted-time-picker-content-border-color, var(--slotted-border-subtle, ButtonBorder));
|
|
@@ -360,7 +360,7 @@
|
|
|
360
360
|
* surface shrink-wraps its two columns instead, capped by the room the
|
|
361
361
|
* positioner measured.
|
|
362
362
|
*/
|
|
363
|
-
[data-ui
|
|
363
|
+
[data-ui-time-picker] [data-part-content]:has([data-part-presets]) {
|
|
364
364
|
grid-template-areas: 'presets head' 'presets list' 'footer footer';
|
|
365
365
|
grid-template-columns: auto minmax(9rem, 1fr);
|
|
366
366
|
inline-size: auto;
|
|
@@ -371,7 +371,7 @@
|
|
|
371
371
|
* The head: one press for the current time, which is what a reader who never
|
|
372
372
|
* discovers that `+` opens an expression still has.
|
|
373
373
|
*/
|
|
374
|
-
[data-ui
|
|
374
|
+
[data-ui-time-picker] [data-part-head] {
|
|
375
375
|
align-items: center;
|
|
376
376
|
display: flex;
|
|
377
377
|
gap: var(--slotted-space-2, 0.25rem);
|
|
@@ -380,7 +380,7 @@
|
|
|
380
380
|
padding-block-end: var(--slotted-space-2, 0.25rem);
|
|
381
381
|
}
|
|
382
382
|
|
|
383
|
-
[data-ui
|
|
383
|
+
[data-ui-time-picker] [data-part-now] {
|
|
384
384
|
appearance: none;
|
|
385
385
|
background-color: transparent;
|
|
386
386
|
border: 0;
|
|
@@ -398,14 +398,14 @@
|
|
|
398
398
|
var(--slotted-control-transition-easing);
|
|
399
399
|
}
|
|
400
400
|
|
|
401
|
-
[data-ui
|
|
401
|
+
[data-ui-time-picker] [data-part-now]:hover:not(:disabled):not([data-disabled]) {
|
|
402
402
|
background-color: var(
|
|
403
403
|
--slotted-time-picker-option-hover-background,
|
|
404
404
|
var(--slotted-tone-secondary-subtle-hover)
|
|
405
405
|
);
|
|
406
406
|
}
|
|
407
407
|
|
|
408
|
-
[data-ui
|
|
408
|
+
[data-ui-time-picker] [data-part-now]:focus-visible {
|
|
409
409
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
410
410
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
411
411
|
}
|
|
@@ -415,7 +415,7 @@
|
|
|
415
415
|
* the shift" is a business clock, and a library that guessed at one would be
|
|
416
416
|
* guessing at an industry. What it ships is the column they stand in.
|
|
417
417
|
*/
|
|
418
|
-
[data-ui
|
|
418
|
+
[data-ui-time-picker] [data-part-presets] {
|
|
419
419
|
align-items: flex-start;
|
|
420
420
|
border-inline-end: var(--slotted-border-width-thin, 1px) solid
|
|
421
421
|
var(--slotted-time-picker-content-border-color, var(--slotted-border-subtle, ButtonBorder));
|
|
@@ -432,7 +432,7 @@
|
|
|
432
432
|
* density and every type step, and scrolled rather than truncated: a day of
|
|
433
433
|
* quarter-hours is ninety-six rows and every one of them is choosable.
|
|
434
434
|
*/
|
|
435
|
-
[data-ui
|
|
435
|
+
[data-ui-time-picker] [data-part-list] {
|
|
436
436
|
display: flex;
|
|
437
437
|
flex-direction: column;
|
|
438
438
|
/**
|
|
@@ -466,7 +466,7 @@
|
|
|
466
466
|
* to read: `09:15` says more at a glance than a `15` in a column of minutes,
|
|
467
467
|
* and the column shape exists for the steps where a flat list cannot.
|
|
468
468
|
*/
|
|
469
|
-
[data-ui
|
|
469
|
+
[data-ui-time-picker] [data-part-option] {
|
|
470
470
|
align-items: center;
|
|
471
471
|
background-color: transparent;
|
|
472
472
|
border-radius: var(--slotted-time-picker-option-radius, var(--slotted-radius-sm, 4px));
|
|
@@ -508,8 +508,8 @@
|
|
|
508
508
|
* `disabled` half of `STATE_PRECEDENCE` and nothing else, which is why this
|
|
509
509
|
* one was found by a reader rather than by a test.
|
|
510
510
|
*/
|
|
511
|
-
[data-ui
|
|
512
|
-
[data-part
|
|
511
|
+
[data-ui-time-picker]
|
|
512
|
+
[data-part-option]:hover:not([data-disabled]):not([data-selected]):not([data-current]) {
|
|
513
513
|
background-color: var(
|
|
514
514
|
--slotted-time-picker-option-hover-background,
|
|
515
515
|
var(--slotted-tone-secondary-subtle-hover)
|
|
@@ -522,19 +522,19 @@
|
|
|
522
522
|
* focusable row in the library draws, inset so it is not clipped by the
|
|
523
523
|
* scroller's own edge. It stands down for the chosen row, which outranks it.
|
|
524
524
|
*/
|
|
525
|
-
[data-ui
|
|
525
|
+
[data-ui-time-picker] [data-part-option][data-current]:not([data-selected]) {
|
|
526
526
|
background-color: var(
|
|
527
527
|
--slotted-time-picker-option-current-background,
|
|
528
528
|
var(--slotted-tone-secondary-subtle-active)
|
|
529
529
|
);
|
|
530
530
|
}
|
|
531
531
|
|
|
532
|
-
[data-ui
|
|
532
|
+
[data-ui-time-picker] [data-part-option]:focus-visible {
|
|
533
533
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
534
534
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
535
535
|
}
|
|
536
536
|
|
|
537
|
-
[data-ui
|
|
537
|
+
[data-ui-time-picker] [data-part-option][data-selected] {
|
|
538
538
|
background-color: var(
|
|
539
539
|
--slotted-time-picker-option-selected-background,
|
|
540
540
|
var(--slotted-tone-accent-solid)
|
|
@@ -549,7 +549,7 @@
|
|
|
549
549
|
* same blue and a visible change. A row that swapped colour family under the
|
|
550
550
|
* pointer read as a different row, and that is the defect this pair replaces.
|
|
551
551
|
*/
|
|
552
|
-
[data-ui
|
|
552
|
+
[data-ui-time-picker] [data-part-option][data-selected]:hover:not([data-disabled]) {
|
|
553
553
|
background-color: var(
|
|
554
554
|
--slotted-time-picker-option-selected-hover-background,
|
|
555
555
|
var(--slotted-tone-accent-solid-hover)
|
|
@@ -562,7 +562,7 @@
|
|
|
562
562
|
* cannot infer — and it is muted to the colour the theme measures rather
|
|
563
563
|
* than faded by opacity, so it stays readable.
|
|
564
564
|
*/
|
|
565
|
-
[data-ui
|
|
565
|
+
[data-ui-time-picker] [data-part-option][data-disabled] {
|
|
566
566
|
background-color: transparent;
|
|
567
567
|
color: var(--slotted-disabled-foreground);
|
|
568
568
|
cursor: not-allowed;
|
|
@@ -573,7 +573,7 @@
|
|
|
573
573
|
* every step. It is a sentence rather than an empty box: MUI draws nothing
|
|
574
574
|
* here and Ant draws an empty column, and both read as a broken component.
|
|
575
575
|
*/
|
|
576
|
-
[data-ui
|
|
576
|
+
[data-ui-time-picker] [data-part-empty] {
|
|
577
577
|
align-items: center;
|
|
578
578
|
color: var(--slotted-time-picker-label-color, var(--slotted-text-muted, GrayText));
|
|
579
579
|
display: flex;
|
|
@@ -585,7 +585,7 @@
|
|
|
585
585
|
text-wrap: balance;
|
|
586
586
|
}
|
|
587
587
|
|
|
588
|
-
[data-ui
|
|
588
|
+
[data-ui-time-picker] [data-part-footer] {
|
|
589
589
|
align-items: center;
|
|
590
590
|
border-block-start: var(--slotted-border-width-thin, 1px) solid
|
|
591
591
|
var(--slotted-time-picker-content-border-color, var(--slotted-border-subtle, ButtonBorder));
|
|
@@ -605,7 +605,7 @@
|
|
|
605
605
|
* ask, and the question really is how much screen there is.
|
|
606
606
|
*/
|
|
607
607
|
@media (max-width: 480px) and (pointer: coarse) {
|
|
608
|
-
[data-ui
|
|
608
|
+
[data-ui-time-picker][data-part-positioner][data-presentation='sheet'] {
|
|
609
609
|
/* The positioner's own measurement is overridden here on purpose: a
|
|
610
610
|
sheet is not placed against an anchor, it is placed against the
|
|
611
611
|
screen. */
|
|
@@ -614,12 +614,11 @@
|
|
|
614
614
|
translate: 0 var(--slotted-space-9, 2rem);
|
|
615
615
|
}
|
|
616
616
|
|
|
617
|
-
[data-ui
|
|
617
|
+
[data-ui-time-picker][data-part-positioner][data-presentation='sheet'][data-open] {
|
|
618
618
|
translate: 0 0;
|
|
619
619
|
}
|
|
620
620
|
|
|
621
|
-
[data-ui
|
|
622
|
-
[data-part='content'] {
|
|
621
|
+
[data-ui-time-picker][data-part-positioner][data-presentation='sheet'] [data-part-content] {
|
|
623
622
|
border-end-end-radius: 0;
|
|
624
623
|
border-end-start-radius: 0;
|
|
625
624
|
border-inline: 0;
|
|
@@ -629,12 +628,11 @@
|
|
|
629
628
|
|
|
630
629
|
/* A sheet has the screen's height to spend, so the list takes more of it
|
|
631
630
|
rather than staying at the popover's eight rows and a half. */
|
|
632
|
-
[data-ui
|
|
631
|
+
[data-ui-time-picker][data-part-positioner][data-presentation='sheet'] [data-part-list] {
|
|
633
632
|
max-block-size: 50vh;
|
|
634
633
|
}
|
|
635
634
|
|
|
636
|
-
[data-ui
|
|
637
|
-
[data-part='presets'] {
|
|
635
|
+
[data-ui-time-picker][data-part-positioner][data-presentation='sheet'] [data-part-presets] {
|
|
638
636
|
/* Beside the list there is no room for a column of shortcuts, so they
|
|
639
637
|
become a row above it and keep their labels. */
|
|
640
638
|
border-inline-end: 0;
|
|
@@ -651,13 +649,13 @@
|
|
|
651
649
|
/* The chosen row and the highlighted row both lose their painted grounds,
|
|
652
650
|
so each says what it is with a system pair the operating system
|
|
653
651
|
guarantees legible together. */
|
|
654
|
-
[data-ui
|
|
652
|
+
[data-ui-time-picker] [data-part-option][data-selected] {
|
|
655
653
|
background-color: Highlight;
|
|
656
654
|
color: HighlightText;
|
|
657
655
|
forced-color-adjust: none;
|
|
658
656
|
}
|
|
659
657
|
|
|
660
|
-
[data-ui
|
|
658
|
+
[data-ui-time-picker] [data-part-option][data-current]:not([data-selected]) {
|
|
661
659
|
outline: var(--slotted-focus-ring-width, 2px) solid Highlight;
|
|
662
660
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
663
661
|
}
|