@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
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
* here restyles a segment or a day cell. This stylesheet owns the box the
|
|
29
29
|
* positioner measures, the trigger inside the field, the layer, and the list.
|
|
30
30
|
*/
|
|
31
|
-
[data-ui
|
|
31
|
+
[data-ui-datetime-picker][data-part-root] {
|
|
32
32
|
display: block;
|
|
33
33
|
/* The anchor the positioner measures is the control, and a block root lets
|
|
34
34
|
the frame take the width the form gave it. */
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
* It draws no frame: the `datetime-field` inside it draws its own, and the
|
|
42
42
|
* trigger is handed to that field's `end` slot by the binding.
|
|
43
43
|
*/
|
|
44
|
-
[data-ui
|
|
44
|
+
[data-ui-datetime-picker] [data-part-control] {
|
|
45
45
|
--_icon-size: var(--slotted-control-icon-size-md, 16px);
|
|
46
46
|
--_height: var(--slotted-control-height-md, 34px);
|
|
47
47
|
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
position: relative;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
[data-ui
|
|
55
|
+
[data-ui-datetime-picker][data-part-root][data-size='sm'] [data-part-control] {
|
|
56
56
|
--_icon-size: var(--slotted-control-icon-size-sm, 14px);
|
|
57
57
|
--_height: var(--slotted-control-height-sm, 30px);
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
[data-ui
|
|
60
|
+
[data-ui-datetime-picker][data-part-root][data-size='lg'] [data-part-control] {
|
|
61
61
|
--_icon-size: var(--slotted-control-icon-size-lg, 18px);
|
|
62
62
|
--_height: var(--slotted-control-height-lg, 38px);
|
|
63
63
|
}
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
* `Alt`+`ArrowDown` into `PageDown` before the browser sees it, so the chord
|
|
77
77
|
* cannot be the only way in.
|
|
78
78
|
*/
|
|
79
|
-
[data-ui
|
|
79
|
+
[data-ui-datetime-picker] [data-part-trigger] {
|
|
80
80
|
--slotted-icon-size: var(--_icon-size);
|
|
81
81
|
|
|
82
82
|
align-items: center;
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
|
|
122
122
|
/* The hit area, recovered outside the paint, exactly as every other inner
|
|
123
123
|
control in the library recovers it. */
|
|
124
|
-
[data-ui
|
|
124
|
+
[data-ui-datetime-picker] [data-part-trigger]::after {
|
|
125
125
|
content: '';
|
|
126
126
|
inset: min(0px, calc((100% - var(--slotted-target-min, 24px)) / 2));
|
|
127
127
|
position: absolute;
|
|
@@ -132,25 +132,25 @@
|
|
|
132
132
|
the hit area above grows to 44 pixels around them. Before the field's
|
|
133
133
|
clear it does not reach across it. */
|
|
134
134
|
@media (pointer: coarse) {
|
|
135
|
-
[data-ui
|
|
135
|
+
[data-ui-datetime-picker] [data-part-trigger]::after {
|
|
136
136
|
inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
[data-ui
|
|
140
|
-
[data-part
|
|
141
|
-
> [data-part
|
|
139
|
+
[data-ui-datetime-picker]
|
|
140
|
+
[data-part-end]:has(+ [data-part-clear]:not([hidden]))
|
|
141
|
+
> [data-part-trigger]::after {
|
|
142
142
|
inset-inline-end: 0;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
[data-ui
|
|
146
|
+
[data-ui-datetime-picker] [data-part-trigger]:hover:not(:disabled):not([data-disabled]) {
|
|
147
147
|
background-color: var(
|
|
148
148
|
--slotted-datetime-picker-trigger-hover-background,
|
|
149
149
|
var(--slotted-tone-secondary-subtle-hover)
|
|
150
150
|
);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
[data-ui
|
|
153
|
+
[data-ui-datetime-picker] [data-part-trigger]:active:not(:disabled):not([data-disabled]) {
|
|
154
154
|
background-color: var(
|
|
155
155
|
--slotted-datetime-picker-trigger-active-background,
|
|
156
156
|
var(--slotted-tone-secondary-subtle-active)
|
|
@@ -159,19 +159,19 @@
|
|
|
159
159
|
|
|
160
160
|
/* Its own ring: tabbing from the last segment to the trigger has to move
|
|
161
161
|
something visible, and the frame's ring would sit still. */
|
|
162
|
-
[data-ui
|
|
162
|
+
[data-ui-datetime-picker] [data-part-trigger]:focus-visible {
|
|
163
163
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
164
164
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
[data-ui
|
|
167
|
+
[data-ui-datetime-picker][data-part-root][data-invalid] {
|
|
168
168
|
--slotted-focus-ring-color: var(
|
|
169
169
|
--slotted-datetime-picker-invalid-focus-ring-color,
|
|
170
170
|
var(--slotted-focus-ring-color-invalid, Highlight)
|
|
171
171
|
);
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
[data-ui
|
|
174
|
+
[data-ui-datetime-picker] [data-part-trigger]:disabled {
|
|
175
175
|
color: var(--slotted-disabled-foreground);
|
|
176
176
|
cursor: not-allowed;
|
|
177
177
|
}
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
* onto. The painted surface is one element in, as every anchored family in
|
|
183
183
|
* the library is built.
|
|
184
184
|
*/
|
|
185
|
-
[data-ui
|
|
185
|
+
[data-ui-datetime-picker][data-part-positioner] {
|
|
186
186
|
/* Only the block inset: the positioner writes `left` and never `right`,
|
|
187
187
|
and `inset-inline-start` would resolve to `right` in a right-to-left
|
|
188
188
|
document and win over the measured value. */
|
|
@@ -206,16 +206,16 @@
|
|
|
206
206
|
translate var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
[data-ui
|
|
209
|
+
[data-ui-datetime-picker][data-part-positioner][data-side='top'] {
|
|
210
210
|
translate: 0 var(--_enter-distance);
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
/* A lateral side has no block direction to arrive from, so it only fades. */
|
|
214
|
-
[data-ui
|
|
214
|
+
[data-ui-datetime-picker][data-part-positioner]:is([data-side='left'], [data-side='right']) {
|
|
215
215
|
translate: 0 0;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
[data-ui
|
|
218
|
+
[data-ui-datetime-picker][data-part-positioner][data-open] {
|
|
219
219
|
opacity: 1;
|
|
220
220
|
translate: 0 0;
|
|
221
221
|
transition: none;
|
|
@@ -229,16 +229,16 @@
|
|
|
229
229
|
* harness, a docs snippet — is simply there, and is photographed where it
|
|
230
230
|
* stands.
|
|
231
231
|
*/
|
|
232
|
-
[data-ui
|
|
232
|
+
[data-ui-datetime-picker][data-part-positioner][data-open][data-positioned] {
|
|
233
233
|
animation: slotted-datetime-picker-enter-down var(--slotted-duration-medium)
|
|
234
234
|
var(--slotted-easing-enter);
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
[data-ui
|
|
237
|
+
[data-ui-datetime-picker][data-part-positioner][data-open][data-positioned][data-side='top'] {
|
|
238
238
|
animation-name: slotted-datetime-picker-enter-up;
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
[data-ui
|
|
241
|
+
[data-ui-datetime-picker][data-part-positioner][data-open][data-positioned]:is(
|
|
242
242
|
[data-side='left'],
|
|
243
243
|
[data-side='right']
|
|
244
244
|
) {
|
|
@@ -267,25 +267,25 @@
|
|
|
267
267
|
|
|
268
268
|
/* Stillness keeps the fade and drops the movement. */
|
|
269
269
|
@media (prefers-reduced-motion: reduce) {
|
|
270
|
-
[data-ui
|
|
271
|
-
[data-ui
|
|
272
|
-
[data-ui
|
|
273
|
-
[data-ui
|
|
270
|
+
[data-ui-datetime-picker][data-part-positioner],
|
|
271
|
+
[data-ui-datetime-picker][data-part-positioner][data-side='top'],
|
|
272
|
+
[data-ui-datetime-picker][data-part-positioner][data-side='left'],
|
|
273
|
+
[data-ui-datetime-picker][data-part-positioner][data-side='right'] {
|
|
274
274
|
translate: 0 0;
|
|
275
275
|
transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
[data-ui
|
|
279
|
-
[data-ui
|
|
280
|
-
[data-ui
|
|
281
|
-
[data-ui
|
|
278
|
+
[data-ui-datetime-picker][data-part-positioner][data-open][data-positioned],
|
|
279
|
+
[data-ui-datetime-picker][data-part-positioner][data-open][data-positioned][data-side='top'],
|
|
280
|
+
[data-ui-datetime-picker][data-part-positioner][data-open][data-positioned][data-side='left'],
|
|
281
|
+
[data-ui-datetime-picker][data-part-positioner][data-open][data-positioned][data-side='right'] {
|
|
282
282
|
animation-name: slotted-datetime-picker-fade;
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
|
|
286
286
|
/* The anchor scrolled out of its own clipper. The panel is still open and
|
|
287
287
|
still belongs to a control the reader can no longer see. */
|
|
288
|
-
[data-ui
|
|
288
|
+
[data-ui-datetime-picker][data-part-positioner][data-detached] {
|
|
289
289
|
visibility: hidden;
|
|
290
290
|
}
|
|
291
291
|
|
|
@@ -301,7 +301,7 @@
|
|
|
301
301
|
* a calendar needs; the two panels wrap instead, which needs no threshold to
|
|
302
302
|
* guess at and cannot be wrong at a width nobody tested.
|
|
303
303
|
*/
|
|
304
|
-
[data-ui
|
|
304
|
+
[data-ui-datetime-picker] [data-part-content] {
|
|
305
305
|
background-color: var(--slotted-datetime-picker-surface, var(--slotted-surface-raised, Canvas));
|
|
306
306
|
border: var(--slotted-border-width-thin, 1px) solid
|
|
307
307
|
var(
|
|
@@ -354,7 +354,7 @@
|
|
|
354
354
|
* The rule under it is what makes this a band rather than a line of text
|
|
355
355
|
* floating over two columns.
|
|
356
356
|
*/
|
|
357
|
-
[data-ui
|
|
357
|
+
[data-ui-datetime-picker] [data-part-head] {
|
|
358
358
|
/**
|
|
359
359
|
* The band renders at the panel's width and contributes nothing to it.
|
|
360
360
|
*
|
|
@@ -413,7 +413,7 @@
|
|
|
413
413
|
* surface's ink and a step of weight, and its digits line up with the list's
|
|
414
414
|
* below it.
|
|
415
415
|
*/
|
|
416
|
-
[data-ui
|
|
416
|
+
[data-ui-datetime-picker] [data-part-head-value] {
|
|
417
417
|
color: var(--slotted-datetime-picker-content-color, var(--slotted-text, CanvasText));
|
|
418
418
|
font-size: var(--slotted-font-size-sm, 13px);
|
|
419
419
|
font-variant-numeric: tabular-nums;
|
|
@@ -430,7 +430,7 @@
|
|
|
430
430
|
* the half they have. It is the family's own answer to a value that is not
|
|
431
431
|
* whole, said where the reader is looking rather than only in the field.
|
|
432
432
|
*/
|
|
433
|
-
[data-ui
|
|
433
|
+
[data-ui-datetime-picker] [data-part-head-value] [data-placeholder] {
|
|
434
434
|
color: var(--slotted-datetime-picker-label-color, var(--slotted-text-muted, GrayText));
|
|
435
435
|
}
|
|
436
436
|
|
|
@@ -452,7 +452,7 @@
|
|
|
452
452
|
* the mark names what it does, and at the control glyph size inside a control
|
|
453
453
|
* it is legible rather than a speck beside a word.
|
|
454
454
|
*/
|
|
455
|
-
[data-ui
|
|
455
|
+
[data-ui-datetime-picker] [data-part-now] {
|
|
456
456
|
align-items: center;
|
|
457
457
|
appearance: none;
|
|
458
458
|
background-color: var(--slotted-datetime-picker-now-background, transparent);
|
|
@@ -491,14 +491,14 @@
|
|
|
491
491
|
* `sm` icon step — takes the muted ink the label does not, so the pair reads
|
|
492
492
|
* as one control with a glyph rather than as two things of equal weight.
|
|
493
493
|
*/
|
|
494
|
-
[data-ui
|
|
494
|
+
[data-ui-datetime-picker] [data-part-now] > [data-ui-icon] {
|
|
495
495
|
/* No system colour: a theme that never loaded should let the mark take the
|
|
496
496
|
label's ink rather than the operating system's own grey, which is the
|
|
497
497
|
rule `fallbacks.test.mjs` holds. */
|
|
498
498
|
color: var(--slotted-datetime-picker-now-icon-color, var(--slotted-text-muted));
|
|
499
499
|
}
|
|
500
500
|
|
|
501
|
-
[data-ui
|
|
501
|
+
[data-ui-datetime-picker] [data-part-now]:hover:not(:disabled):not([data-disabled]) {
|
|
502
502
|
background-color: var(
|
|
503
503
|
--slotted-datetime-picker-now-hover-background,
|
|
504
504
|
var(--slotted-tone-secondary-subtle-hover)
|
|
@@ -509,14 +509,14 @@
|
|
|
509
509
|
);
|
|
510
510
|
}
|
|
511
511
|
|
|
512
|
-
[data-ui
|
|
512
|
+
[data-ui-datetime-picker] [data-part-now]:active:not(:disabled):not([data-disabled]) {
|
|
513
513
|
background-color: var(
|
|
514
514
|
--slotted-datetime-picker-now-active-background,
|
|
515
515
|
var(--slotted-tone-secondary-subtle-active)
|
|
516
516
|
);
|
|
517
517
|
}
|
|
518
518
|
|
|
519
|
-
[data-ui
|
|
519
|
+
[data-ui-datetime-picker] [data-part-now]:focus-visible {
|
|
520
520
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
521
521
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
522
522
|
}
|
|
@@ -527,7 +527,7 @@
|
|
|
527
527
|
* guessing at an industry. What it ships is the row they stand in, at the
|
|
528
528
|
* reading end of the head beside `now`.
|
|
529
529
|
*/
|
|
530
|
-
[data-ui
|
|
530
|
+
[data-ui-datetime-picker] [data-part-presets] {
|
|
531
531
|
align-items: center;
|
|
532
532
|
display: flex;
|
|
533
533
|
flex-wrap: wrap;
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
* setting look like a different component, and what answers the narrow case
|
|
546
546
|
* is `scrollIntoView` on the surface focus lands in.
|
|
547
547
|
*/
|
|
548
|
-
[data-ui
|
|
548
|
+
[data-ui-datetime-picker] [data-part-panels] {
|
|
549
549
|
/**
|
|
550
550
|
* The two columns are told apart by the air between them and by what they
|
|
551
551
|
* hold, not by a rule. A rule would have to be on one inline edge, and the
|
|
@@ -571,7 +571,7 @@
|
|
|
571
571
|
* is the time panel that wraps instead, which is the arrangement this family
|
|
572
572
|
* already draws.
|
|
573
573
|
*/
|
|
574
|
-
[data-ui
|
|
574
|
+
[data-ui-datetime-picker] [data-part-date-panel] {
|
|
575
575
|
flex: 0 0 auto;
|
|
576
576
|
}
|
|
577
577
|
|
|
@@ -587,7 +587,7 @@
|
|
|
587
587
|
* and the column takes it, so the times read as a section rather than as a
|
|
588
588
|
* narrow strip under a wide month.
|
|
589
589
|
*/
|
|
590
|
-
[data-ui
|
|
590
|
+
[data-ui-datetime-picker] [data-part-time-panel] {
|
|
591
591
|
display: flex;
|
|
592
592
|
flex: 1 1 var(--slotted-datetime-picker-time-panel-inline-size, 7rem);
|
|
593
593
|
flex-direction: column;
|
|
@@ -602,7 +602,7 @@
|
|
|
602
602
|
* than truncated: a day of quarter-hours is ninety-six rows and every one of
|
|
603
603
|
* them is choosable.
|
|
604
604
|
*/
|
|
605
|
-
[data-ui
|
|
605
|
+
[data-ui-datetime-picker] [data-part-list] {
|
|
606
606
|
display: flex;
|
|
607
607
|
flex: 1 1 auto;
|
|
608
608
|
flex-direction: column;
|
|
@@ -645,7 +645,7 @@
|
|
|
645
645
|
* say, and repeating it ninety-six times beside a month that already shows it
|
|
646
646
|
* would spend the whole column on one word.
|
|
647
647
|
*/
|
|
648
|
-
[data-ui
|
|
648
|
+
[data-ui-datetime-picker] [data-part-option] {
|
|
649
649
|
align-items: center;
|
|
650
650
|
background-color: transparent;
|
|
651
651
|
border-radius: var(--slotted-datetime-picker-option-radius, var(--slotted-radius-sm, 4px));
|
|
@@ -681,27 +681,27 @@
|
|
|
681
681
|
* down the file its own rule is written. Found by the reviewer at
|
|
682
682
|
* `time-picker`'s visual gate and inherited whole.
|
|
683
683
|
*/
|
|
684
|
-
[data-ui
|
|
685
|
-
[data-part
|
|
684
|
+
[data-ui-datetime-picker]
|
|
685
|
+
[data-part-option]:hover:not([data-disabled]):not([data-selected]):not([data-current]) {
|
|
686
686
|
background-color: var(
|
|
687
687
|
--slotted-datetime-picker-option-hover-background,
|
|
688
688
|
var(--slotted-tone-secondary-subtle-hover)
|
|
689
689
|
);
|
|
690
690
|
}
|
|
691
691
|
|
|
692
|
-
[data-ui
|
|
692
|
+
[data-ui-datetime-picker] [data-part-option][data-current]:not([data-selected]) {
|
|
693
693
|
background-color: var(
|
|
694
694
|
--slotted-datetime-picker-option-current-background,
|
|
695
695
|
var(--slotted-tone-secondary-subtle-active)
|
|
696
696
|
);
|
|
697
697
|
}
|
|
698
698
|
|
|
699
|
-
[data-ui
|
|
699
|
+
[data-ui-datetime-picker] [data-part-option]:focus-visible {
|
|
700
700
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
701
701
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
702
702
|
}
|
|
703
703
|
|
|
704
|
-
[data-ui
|
|
704
|
+
[data-ui-datetime-picker] [data-part-option][data-selected] {
|
|
705
705
|
background-color: var(
|
|
706
706
|
--slotted-datetime-picker-option-selected-background,
|
|
707
707
|
var(--slotted-tone-accent-solid)
|
|
@@ -715,7 +715,7 @@
|
|
|
715
715
|
/* The chosen row still answers the pointer — one step along its own tone,
|
|
716
716
|
rather than the grey every other row takes. A row that swapped colour
|
|
717
717
|
family under the pointer read as a different row. */
|
|
718
|
-
[data-ui
|
|
718
|
+
[data-ui-datetime-picker] [data-part-option][data-selected]:hover:not([data-disabled]) {
|
|
719
719
|
background-color: var(
|
|
720
720
|
--slotted-datetime-picker-option-selected-hover-background,
|
|
721
721
|
var(--slotted-tone-accent-solid-hover)
|
|
@@ -728,7 +728,7 @@
|
|
|
728
728
|
* cannot infer — and it is muted to the colour the theme measures rather than
|
|
729
729
|
* faded by opacity, so it stays readable.
|
|
730
730
|
*/
|
|
731
|
-
[data-ui
|
|
731
|
+
[data-ui-datetime-picker] [data-part-option][data-disabled] {
|
|
732
732
|
background-color: transparent;
|
|
733
733
|
color: var(--slotted-disabled-foreground);
|
|
734
734
|
cursor: not-allowed;
|
|
@@ -740,7 +740,7 @@
|
|
|
740
740
|
* step. It is a sentence rather than an empty box, and it is the state that
|
|
741
741
|
* makes the list worth recomputing as the reader moves through the month.
|
|
742
742
|
*/
|
|
743
|
-
[data-ui
|
|
743
|
+
[data-ui-datetime-picker] [data-part-empty] {
|
|
744
744
|
align-items: center;
|
|
745
745
|
color: var(--slotted-datetime-picker-label-color, var(--slotted-text-muted, GrayText));
|
|
746
746
|
display: flex;
|
|
@@ -752,7 +752,7 @@
|
|
|
752
752
|
text-wrap: balance;
|
|
753
753
|
}
|
|
754
754
|
|
|
755
|
-
[data-ui
|
|
755
|
+
[data-ui-datetime-picker] [data-part-footer] {
|
|
756
756
|
/* The band's rule, for the same reason: a consumer's two buttons are not
|
|
757
757
|
what decides how wide a month is drawn — and `border-box` with it, or the
|
|
758
758
|
padding pushes the last button past the panel's edge. */
|
|
@@ -783,7 +783,7 @@
|
|
|
783
783
|
* ask, and the question really is how much screen there is.
|
|
784
784
|
*/
|
|
785
785
|
@media (max-width: 480px) and (pointer: coarse) {
|
|
786
|
-
[data-ui
|
|
786
|
+
[data-ui-datetime-picker][data-part-positioner][data-presentation='sheet'] {
|
|
787
787
|
/* The positioner's own measurement is overridden here on purpose: a sheet
|
|
788
788
|
is not placed against an anchor, it is placed against the screen. */
|
|
789
789
|
inset: auto 0 0;
|
|
@@ -791,12 +791,11 @@
|
|
|
791
791
|
translate: 0 var(--slotted-space-9, 2rem);
|
|
792
792
|
}
|
|
793
793
|
|
|
794
|
-
[data-ui
|
|
794
|
+
[data-ui-datetime-picker][data-part-positioner][data-presentation='sheet'][data-open] {
|
|
795
795
|
translate: 0 0;
|
|
796
796
|
}
|
|
797
797
|
|
|
798
|
-
[data-ui
|
|
799
|
-
[data-part='content'] {
|
|
798
|
+
[data-ui-datetime-picker][data-part-positioner][data-presentation='sheet'] [data-part-content] {
|
|
800
799
|
border-end-end-radius: 0;
|
|
801
800
|
border-end-start-radius: 0;
|
|
802
801
|
border-inline: 0;
|
|
@@ -813,8 +812,7 @@
|
|
|
813
812
|
/* Stacked under a month, the list gets a shorter run: the reader scrolls
|
|
814
813
|
the sheet to reach it, and a full-height list would put the footer out of
|
|
815
814
|
reach behind ninety-six rows. */
|
|
816
|
-
[data-ui
|
|
817
|
-
[data-part='list'] {
|
|
815
|
+
[data-ui-datetime-picker][data-part-positioner][data-presentation='sheet'] [data-part-list] {
|
|
818
816
|
max-block-size: calc(var(--_row-pitch) * 5.5);
|
|
819
817
|
}
|
|
820
818
|
}
|
|
@@ -823,13 +821,13 @@
|
|
|
823
821
|
/* The chosen row and the highlighted row both lose their painted grounds,
|
|
824
822
|
so each says what it is with a system pair the operating system
|
|
825
823
|
guarantees legible together. */
|
|
826
|
-
[data-ui
|
|
824
|
+
[data-ui-datetime-picker] [data-part-option][data-selected] {
|
|
827
825
|
background-color: Highlight;
|
|
828
826
|
color: HighlightText;
|
|
829
827
|
forced-color-adjust: none;
|
|
830
828
|
}
|
|
831
829
|
|
|
832
|
-
[data-ui
|
|
830
|
+
[data-ui-datetime-picker] [data-part-option][data-current]:not([data-selected]) {
|
|
833
831
|
outline: var(--slotted-focus-ring-width, 2px) solid Highlight;
|
|
834
832
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
835
833
|
}
|