@slotted/styles 0.1.0-beta.4 → 0.1.0-beta.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +21 -1
- package/src/accordion/accordion.css +31 -13
- package/src/accordion/accordion.tokens.json +2 -0
- package/src/action-bar/action-bar.css +47 -44
- package/src/action-bar/action-bar.tokens.json +1 -0
- package/src/action-sheet/action-sheet.css +39 -39
- package/src/alert/alert.css +97 -97
- package/src/alert/alert.tokens.json +6 -1
- package/src/app-shell/app-shell.css +472 -342
- package/src/app-shell/app-shell.tokens.json +6 -3
- package/src/aspect-ratio/aspect-ratio.css +24 -23
- package/src/attachment/attachment.css +118 -114
- package/src/avatar/avatar.css +97 -67
- package/src/avatar/avatar.tokens.json +8 -0
- package/src/avatar-group/avatar-group.css +22 -23
- package/src/badge/badge.css +58 -47
- package/src/badge/badge.tokens.json +6 -0
- package/src/breadcrumb/breadcrumb.css +52 -52
- package/src/button/button.css +408 -93
- package/src/button/button.tokens.json +13 -0
- package/src/button-group/button-group.css +80 -79
- package/src/button-group/button-group.tokens.json +1 -0
- package/src/calendar/calendar.css +594 -267
- package/src/calendar/calendar.tokens.json +35 -3
- package/src/card/card.css +133 -70
- package/src/card/card.tokens.json +1 -0
- package/src/carousel/carousel.css +158 -169
- package/src/cascader/cascader.css +174 -159
- package/src/cascader/cascader.tokens.json +2 -0
- package/src/chart/chart.css +300 -271
- package/src/chart/chart.tokens.json +5 -0
- package/src/checkbox/checkbox.css +190 -148
- package/src/checkbox/checkbox.tokens.json +4 -0
- package/src/checkbox-group/checkbox-group.css +7 -7
- package/src/clock/clock.css +246 -0
- package/src/clock/clock.tokens.json +44 -0
- package/src/code-block/code-block.css +85 -89
- package/src/collapsible/collapsible.css +273 -85
- package/src/collapsible/collapsible.tokens.json +6 -0
- package/src/color-picker/color-picker.css +106 -114
- package/src/column-manager/column-manager.css +111 -119
- package/src/combobox/combobox.css +219 -132
- package/src/combobox/combobox.tokens.json +4 -0
- package/src/command-palette/command-palette.css +214 -102
- package/src/command-palette/command-palette.tokens.json +4 -0
- package/src/container/container.css +27 -27
- package/src/context-menu/context-menu.css +9 -9
- package/src/currency-field/currency-field.css +119 -119
- package/src/currency-field/currency-field.tokens.json +1 -0
- package/src/dashboard-grid/dashboard-grid.css +231 -115
- package/src/dashboard-grid/dashboard-grid.tokens.json +3 -1
- package/src/data-grid/data-grid.css +637 -496
- package/src/data-grid/data-grid.tokens.json +5 -1
- package/src/data-list/data-list.css +93 -76
- package/src/data-list/data-list.tokens.json +2 -1
- package/src/date-field/date-field.css +62 -57
- package/src/date-field/date-field.tokens.json +1 -0
- package/src/date-picker/date-picker.css +31 -269
- package/src/date-picker/date-picker.tokens.json +1 -21
- package/src/date-range-picker/date-range-picker.css +72 -528
- package/src/date-range-picker/date-range-picker.tokens.json +1 -37
- package/src/datetime-field/datetime-field.css +90 -90
- package/src/datetime-field/datetime-field.tokens.json +1 -0
- package/src/datetime-picker/datetime-picker.css +49 -711
- package/src/datetime-picker/datetime-picker.tokens.json +1 -50
- package/src/datetime-range-picker/datetime-range-picker.css +60 -985
- package/src/datetime-range-picker/datetime-range-picker.tokens.json +1 -67
- package/src/description-list/description-list.css +120 -76
- package/src/description-list/description-list.tokens.json +1 -0
- package/src/detail-panel/detail-panel.css +86 -71
- package/src/detail-panel/detail-panel.tokens.json +2 -0
- package/src/dialog/dialog.css +462 -199
- package/src/dialog/dialog.tokens.json +10 -0
- package/src/divider/divider.css +20 -20
- package/src/drawer/drawer.css +736 -237
- package/src/drawer/drawer.tokens.json +15 -0
- package/src/entity-picker/entity-picker.css +402 -272
- package/src/entity-picker/entity-picker.tokens.json +6 -0
- package/src/event-calendar/event-calendar.css +357 -399
- package/src/field/field.css +106 -93
- package/src/field/field.tokens.json +2 -0
- package/src/field-group/field-group.css +58 -38
- package/src/field-group/field-group.tokens.json +3 -0
- package/src/filter-bar/filter-bar.css +224 -216
- package/src/floating-panel/floating-panel.css +147 -0
- package/src/floating-panel/floating-panel.tokens.json +32 -0
- package/src/form/form.css +103 -26
- package/src/form/form.tokens.json +6 -1
- package/src/fullscreen/fullscreen.css +26 -27
- package/src/grid/grid.css +32 -31
- package/src/highlight/highlight.css +11 -11
- package/src/hover-card/hover-card.css +9 -9
- package/src/icon/icon.css +67 -20
- package/src/icon/icon.tokens.json +1 -0
- package/src/image/image.css +42 -42
- package/src/import-export-center/import-export-center.css +147 -168
- package/src/import-export-center/import-export-center.tokens.json +1 -0
- package/src/inline/inline.css +29 -29
- package/src/inline-message/inline-message.css +162 -86
- package/src/inline-message/inline-message.tokens.json +5 -0
- package/src/kbd/kbd.css +63 -51
- package/src/kbd/kbd.tokens.json +4 -0
- package/src/link/link.css +54 -33
- package/src/link/link.tokens.json +4 -0
- package/src/list/list.css +55 -24
- package/src/list/list.tokens.json +2 -0
- package/src/list-item/list-item.css +195 -80
- package/src/list-item/list-item.tokens.json +10 -0
- package/src/listbox/listbox.css +121 -72
- package/src/listbox/listbox.tokens.json +6 -1
- package/src/loading-overlay/loading-overlay.css +86 -103
- package/src/markdown/markdown.css +20 -20
- package/src/media-viewer/media-viewer.css +790 -0
- package/src/media-viewer/media-viewer.tokens.json +53 -0
- package/src/menu/menu.css +166 -83
- package/src/menu/menu.tokens.json +3 -1
- package/src/menubar/menubar.css +16 -16
- package/src/message/message.css +1296 -1243
- package/src/message/message.tokens.json +14 -0
- package/src/message-scroller/message-scroller.css +323 -320
- package/src/meter/meter.css +136 -0
- package/src/meter/meter.tokens.json +23 -0
- package/src/multi-select/multi-select.css +246 -174
- package/src/multi-select/multi-select.tokens.json +3 -0
- package/src/navigation-menu/navigation-menu.css +170 -191
- package/src/navigation-menu/navigation-menu.tokens.json +1 -0
- package/src/notification-center/notification-center.css +155 -163
- package/src/notification-center/notification-center.tokens.json +4 -0
- package/src/number-field/number-field.css +93 -93
- package/src/number-field/number-field.tokens.json +1 -0
- package/src/otp-input/otp-input.css +74 -64
- package/src/otp-input/otp-input.tokens.json +1 -0
- package/src/page/page.css +109 -31
- package/src/page/page.tokens.json +8 -0
- package/src/page-header/page-header.css +342 -287
- package/src/page-header/page-header.tokens.json +6 -1
- package/src/pagination/pagination.css +75 -79
- package/src/picker-panel/picker-panel.css +1074 -0
- package/src/picker-panel/picker-panel.tokens.json +77 -0
- package/src/popover/popover.css +85 -65
- package/src/popover/popover.tokens.json +2 -0
- package/src/progress-indicator/progress-indicator.css +194 -137
- package/src/progress-indicator/progress-indicator.tokens.json +1 -0
- package/src/prompt-composer/prompt-composer.css +274 -116
- package/src/prompt-composer/prompt-composer.tokens.json +15 -0
- package/src/prose/prose.css +77 -82
- package/src/radio-group/radio-group.css +107 -112
- package/src/rating/rating.css +147 -143
- package/src/rating/rating.tokens.json +2 -0
- package/src/result-state/result-state.css +95 -102
- package/src/result-state/result-state.tokens.json +1 -0
- package/src/runtime-properties.mjs +44 -6
- package/src/saved-views/saved-views.css +43 -49
- package/src/scroll-area/scroll-area.css +50 -37
- package/src/section/section.css +311 -46
- package/src/section/section.tokens.json +13 -1
- package/src/segmented-control/segmented-control.css +221 -133
- package/src/segmented-control/segmented-control.tokens.json +7 -11
- package/src/select/select.css +226 -149
- package/src/select/select.tokens.json +4 -0
- package/src/side-navigation/side-navigation.css +204 -201
- package/src/side-navigation/side-navigation.tokens.json +2 -0
- package/src/skeleton/skeleton.css +76 -58
- package/src/slider/slider.css +108 -104
- package/src/slider/slider.tokens.json +1 -0
- package/src/sparkline/sparkline.css +75 -53
- package/src/sparkline/sparkline.tokens.json +2 -0
- package/src/spinner/spinner.css +83 -180
- package/src/spinner/spinner.tokens.json +0 -1
- package/src/split-button/split-button.css +34 -35
- package/src/split-button/split-button.tokens.json +1 -0
- package/src/splitter/splitter.css +47 -48
- package/src/stack/stack.css +26 -26
- package/src/stat-card/stat-card.css +420 -245
- package/src/stat-card/stat-card.tokens.json +8 -0
- package/src/status-indicator/status-indicator.css +126 -101
- package/src/status-indicator/status-indicator.tokens.json +0 -3
- package/src/stepper/stepper.css +78 -82
- package/src/switch/switch.css +143 -125
- package/src/switch/switch.tokens.json +4 -0
- package/src/table/table.css +653 -222
- package/src/table/table.tokens.json +10 -0
- package/src/table-of-contents/table-of-contents.css +60 -59
- package/src/table-of-contents/table-of-contents.tokens.json +1 -0
- package/src/tabs/tabs.css +327 -294
- package/src/tabs/tabs.tokens.json +7 -1
- package/src/tag/tag.css +113 -89
- package/src/tag/tag.tokens.json +11 -0
- package/src/tags-input/tags-input.css +152 -87
- package/src/tags-input/tags-input.tokens.json +7 -1
- package/src/text-field/text-field.css +146 -148
- package/src/text-field/text-field.tokens.json +1 -0
- package/src/textarea/textarea.css +38 -33
- package/src/textarea/textarea.tokens.json +1 -0
- package/src/time-field/time-field.css +82 -77
- package/src/time-field/time-field.tokens.json +1 -0
- package/src/time-picker/time-picker.css +30 -519
- package/src/time-picker/time-picker.tokens.json +1 -38
- package/src/time-range-picker/time-range-picker.css +53 -895
- package/src/time-range-picker/time-range-picker.tokens.json +1 -66
- package/src/timeline/timeline.css +280 -292
- package/src/timeline/timeline.tokens.json +5 -0
- package/src/toast/toast.css +139 -122
- package/src/toast/toast.tokens.json +7 -0
- package/src/toggle/toggle.css +34 -38
- package/src/toggle-group/toggle-group.css +73 -77
- package/src/toolbar/toolbar.css +49 -40
- package/src/toolbar/toolbar.tokens.json +2 -1
- package/src/tooltip/tooltip.css +95 -39
- package/src/tooltip/tooltip.tokens.json +1 -0
- package/src/top-navigation/top-navigation.css +253 -269
- package/src/top-navigation/top-navigation.tokens.json +1 -0
- package/src/tour/tour.css +68 -74
- package/src/tour/tour.tokens.json +1 -0
- package/src/transfer/transfer.css +164 -168
- package/src/tree/tree.css +118 -122
- package/src/typography/typography.css +67 -38
- package/src/typography/typography.tokens.json +2 -0
- package/src/upload/upload.css +256 -257
- package/src/visually-hidden/visually-hidden.css +1 -1
- package/src/wizard/wizard.css +187 -199
|
@@ -0,0 +1,1074 @@
|
|
|
1
|
+
@layer slotted.components {
|
|
2
|
+
/**
|
|
3
|
+
* ── The panel the date and time pickers share ──────────────────────────
|
|
4
|
+
*
|
|
5
|
+
* ┌─ positioner ─ the layer ──────────────────────────────────────────┐
|
|
6
|
+
* │ ┌─ content ─ role="dialog" ─────────────────────────────────────┐ │
|
|
7
|
+
* │ │ ┌─ root ────────────────────────────────────────────────────┐ │ │
|
|
8
|
+
* │ │ │ rail │ main │ side │ │ │
|
|
9
|
+
* │ │ │ presets │ head · range-head │ time-head │ │ │
|
|
10
|
+
* │ │ │ group │ body ─ calendar or clock │ body ─ clock │ │ │
|
|
11
|
+
* │ │ │ jump │ clocks ─ clock │ clock │ │ │ │
|
|
12
|
+
* │ │ ├───────────┴─────────────────────────────┴─────────────────┤ │ │
|
|
13
|
+
* │ │ │ footer ─ hint clear · apply │ │ │
|
|
14
|
+
* │ │ └───────────────────────────────────────────────────────────┘ │ │
|
|
15
|
+
* │ └───────────────────────────────────────────────────────────────┘ │
|
|
16
|
+
* └───────────────────────────────────────────────────────────────────┘
|
|
17
|
+
*
|
|
18
|
+
* One grid in six families: a rail of shortcuts, and modules of one width.
|
|
19
|
+
* A module holds one month or one clock, so a panel is as wide as what it
|
|
20
|
+
* asks for: one module for a day or a time, two for both, or for a run.
|
|
21
|
+
*
|
|
22
|
+
* `calendar`, `clock` and the fields inside keep their own `data-ui`, and
|
|
23
|
+
* nothing here restyles a day, an hour or a segment.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/* ── The layer ────────────────────────────────────────────────────────
|
|
27
|
+
*
|
|
28
|
+
* What `packages/core/src/positioner` writes `position`, `left` and `top`
|
|
29
|
+
* onto. The painted surface is one element in, as `tooltip`, `popover`,
|
|
30
|
+
* `menu` and `select` are all built.
|
|
31
|
+
*/
|
|
32
|
+
[data-ui-picker-panel][data-part-positioner] {
|
|
33
|
+
/* Only the block inset: the positioner writes `left` and never `right`,
|
|
34
|
+
and `inset-inline-start` would resolve to `right` in a right-to-left
|
|
35
|
+
document and win over the measured value. */
|
|
36
|
+
position: absolute;
|
|
37
|
+
inset-block-start: 0;
|
|
38
|
+
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
isolation: isolate;
|
|
41
|
+
/* The layer is only a frame around the surface; the surface takes the
|
|
42
|
+
pointer, and the frame must not swallow a press meant for the page. */
|
|
43
|
+
pointer-events: none;
|
|
44
|
+
z-index: calc(var(--slotted-z-index-popover, 1100) + var(--slotted-layer-depth, 0));
|
|
45
|
+
|
|
46
|
+
/* The layer arrives along the axis it opens on and never along the inline
|
|
47
|
+
one, which is the rule `select` records: a scale from the corner the
|
|
48
|
+
positioner named as origin moved the far edge and read as an entrance
|
|
49
|
+
from the side. */
|
|
50
|
+
--_enter-distance: var(--slotted-space-2, 0.25rem);
|
|
51
|
+
translate: 0 calc(-1 * var(--_enter-distance));
|
|
52
|
+
transition: translate var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
[data-ui-picker-panel][data-part-positioner][data-side='top'] {
|
|
56
|
+
translate: 0 var(--_enter-distance);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* A lateral side has no block direction to arrive from, so it only fades. */
|
|
60
|
+
[data-ui-picker-panel][data-part-positioner]:is([data-side='left'], [data-side='right']) {
|
|
61
|
+
translate: 0 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
[data-ui-picker-panel][data-part-positioner][data-open] {
|
|
65
|
+
translate: 0 0;
|
|
66
|
+
transition: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* The entrance is a keyframe animation and not a transition, for the reason
|
|
71
|
+
* `select` records: a transition starts from the style the browser computed
|
|
72
|
+
* last, and the positioner writes `data-side` in the same style update as
|
|
73
|
+
* the family opens the layer.
|
|
74
|
+
*
|
|
75
|
+
* Only a layer the positioner placed arrives. A layer written open in static
|
|
76
|
+
* markup — the harness, a docs snippet — is simply there, and is
|
|
77
|
+
* photographed where it stands.
|
|
78
|
+
*/
|
|
79
|
+
[data-ui-picker-panel][data-part-positioner][data-open][data-positioned] {
|
|
80
|
+
animation: slotted-picker-panel-enter-down var(--slotted-duration-medium)
|
|
81
|
+
var(--slotted-easing-enter);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
[data-ui-picker-panel][data-part-positioner][data-open][data-positioned][data-side='top'] {
|
|
85
|
+
animation-name: slotted-picker-panel-enter-up;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@keyframes slotted-picker-panel-enter-down {
|
|
89
|
+
from {
|
|
90
|
+
translate: 0 calc(-1 * var(--_enter-distance));
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@keyframes slotted-picker-panel-enter-up {
|
|
95
|
+
from {
|
|
96
|
+
translate: 0 var(--_enter-distance);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@keyframes slotted-picker-panel-fade {
|
|
101
|
+
from {
|
|
102
|
+
opacity: 0;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* The fade belongs to the part that paints the surface, and the layer only
|
|
108
|
+
* moves. In Chromium an ancestor with `opacity` below one is the Backdrop Root
|
|
109
|
+
* of what it holds, so a `backdrop-filter` on the content blurs nothing until
|
|
110
|
+
* the layer is opaque and then appears at once. The content's own opacity
|
|
111
|
+
* leaves its own filter drawn on every frame of the motion.
|
|
112
|
+
*/
|
|
113
|
+
[data-ui-picker-panel][data-part-positioner] > [data-part-content] {
|
|
114
|
+
opacity: 0;
|
|
115
|
+
transition: opacity var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
[data-ui-picker-panel][data-part-positioner][data-open] > [data-part-content] {
|
|
119
|
+
opacity: 1;
|
|
120
|
+
transition: none;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
[data-ui-picker-panel][data-part-positioner][data-open][data-positioned] > [data-part-content] {
|
|
124
|
+
animation: slotted-picker-panel-fade var(--slotted-duration-medium) var(--slotted-easing-enter);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* Stillness keeps the fade and drops the movement. */
|
|
128
|
+
@media (prefers-reduced-motion: reduce) {
|
|
129
|
+
[data-ui-picker-panel][data-part-positioner],
|
|
130
|
+
[data-ui-picker-panel][data-part-positioner][data-side='top'],
|
|
131
|
+
[data-ui-picker-panel][data-part-positioner][data-side='left'],
|
|
132
|
+
[data-ui-picker-panel][data-part-positioner][data-side='right'] {
|
|
133
|
+
translate: 0 0;
|
|
134
|
+
transition: translate var(--slotted-duration-short) var(--slotted-easing-exit);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
[data-ui-picker-panel][data-part-positioner][data-open][data-positioned],
|
|
138
|
+
[data-ui-picker-panel][data-part-positioner][data-open][data-positioned][data-side='top'],
|
|
139
|
+
[data-ui-picker-panel][data-part-positioner][data-open][data-positioned][data-side='left'],
|
|
140
|
+
[data-ui-picker-panel][data-part-positioner][data-open][data-positioned][data-side='right'] {
|
|
141
|
+
animation-name: none;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* The anchor scrolled out of its own clipper. The calendar is still open and
|
|
146
|
+
still belongs to a control the reader can no longer see. */
|
|
147
|
+
[data-ui-picker-panel][data-part-positioner][data-detached] {
|
|
148
|
+
visibility: hidden;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* The surface. It is sized by the panel inside it rather than by the control
|
|
153
|
+
* it hangs from, and what a low screen cannot hold it scrolls.
|
|
154
|
+
*/
|
|
155
|
+
[data-ui-picker-panel] [data-part-content] {
|
|
156
|
+
background-color: var(--slotted-picker-panel-surface, var(--slotted-surface-raised, Canvas));
|
|
157
|
+
border: var(--slotted-border-width-thin, 1px) solid
|
|
158
|
+
var(--slotted-picker-panel-border-color, var(--slotted-border-subtle, ButtonBorder));
|
|
159
|
+
border-radius: var(--slotted-picker-panel-radius, var(--slotted-radius-lg, 8px));
|
|
160
|
+
box-shadow: var(--slotted-picker-panel-shadow, var(--slotted-shadow-lg));
|
|
161
|
+
box-sizing: border-box;
|
|
162
|
+
color: var(--slotted-picker-panel-color, var(--slotted-text, CanvasText));
|
|
163
|
+
inline-size: max-content;
|
|
164
|
+
max-block-size: var(--slotted-positioner-available-height, 100dvh);
|
|
165
|
+
max-inline-size: var(--slotted-positioner-available-width, 100vw);
|
|
166
|
+
overflow: auto;
|
|
167
|
+
/* The layer above gave up the pointer; the surface takes it back. */
|
|
168
|
+
pointer-events: auto;
|
|
169
|
+
scrollbar-width: thin;
|
|
170
|
+
/* A theme that paints this surface as a translucent material blurs what moves behind it. */
|
|
171
|
+
-webkit-backdrop-filter: var(--slotted-picker-panel-backdrop-filter, none);
|
|
172
|
+
backdrop-filter: var(--slotted-picker-panel-backdrop-filter, none);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
|
|
176
|
+
[data-ui-picker-panel] [data-part-content] {
|
|
177
|
+
-webkit-backdrop-filter: none;
|
|
178
|
+
backdrop-filter: none;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* ── The grid of the panel ──────────────────────────────────────────── */
|
|
183
|
+
[data-ui-picker-panel][data-part-root] {
|
|
184
|
+
/* One month or one clock: seven cells of a calendar and the air beside them. */
|
|
185
|
+
--_module: var(--slotted-picker-panel-module-size, 280px);
|
|
186
|
+
--_rail: var(--slotted-picker-panel-rail-size, 148px);
|
|
187
|
+
/* What is left of a module by seven days of two pixels over the control. */
|
|
188
|
+
--_pad: var(--slotted-picker-panel-padding, 14px);
|
|
189
|
+
--_head: var(--slotted-picker-panel-head-size, 54px);
|
|
190
|
+
--_footer: var(--slotted-picker-panel-footer-size, 46px);
|
|
191
|
+
--_control: max(
|
|
192
|
+
var(--slotted-target-min, 24px),
|
|
193
|
+
calc(var(--slotted-control-height-md, 34px) - 6px)
|
|
194
|
+
);
|
|
195
|
+
--_icon: var(--slotted-control-icon-size-md, 16px);
|
|
196
|
+
--_edge: var(--slotted-border-width-thin, 1px) solid
|
|
197
|
+
var(--slotted-picker-panel-border-color, var(--slotted-border-subtle, ButtonBorder));
|
|
198
|
+
--_tint: var(
|
|
199
|
+
--slotted-picker-panel-selected-background,
|
|
200
|
+
color-mix(
|
|
201
|
+
in oklab,
|
|
202
|
+
var(--slotted-tone-accent-solid) calc(var(--slotted-highlight-tint-opacity, 0.075) * 200%),
|
|
203
|
+
transparent
|
|
204
|
+
)
|
|
205
|
+
);
|
|
206
|
+
|
|
207
|
+
box-sizing: border-box;
|
|
208
|
+
display: grid;
|
|
209
|
+
font-family: var(--slotted-font-family-sans, sans-serif);
|
|
210
|
+
font-size: var(--slotted-control-font-size-md, 13px);
|
|
211
|
+
font-variant-numeric: tabular-nums;
|
|
212
|
+
grid-template-areas: 'rail main side' 'footer footer footer';
|
|
213
|
+
grid-template-columns: auto auto auto;
|
|
214
|
+
line-height: 1.3;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
[data-ui-picker-panel]
|
|
218
|
+
:is(
|
|
219
|
+
[data-part-preset],
|
|
220
|
+
[data-part-step],
|
|
221
|
+
[data-part-jump-month],
|
|
222
|
+
[data-part-chip],
|
|
223
|
+
[data-part-half-day],
|
|
224
|
+
[data-part-half-time],
|
|
225
|
+
[data-part-clear],
|
|
226
|
+
[data-part-apply],
|
|
227
|
+
[data-part-value],
|
|
228
|
+
[data-part-time-label]
|
|
229
|
+
):where(button) {
|
|
230
|
+
appearance: none;
|
|
231
|
+
background-color: transparent;
|
|
232
|
+
border: 0;
|
|
233
|
+
border-radius: var(--slotted-radius-sm, 4px);
|
|
234
|
+
box-sizing: border-box;
|
|
235
|
+
color: inherit;
|
|
236
|
+
cursor: pointer;
|
|
237
|
+
font: inherit;
|
|
238
|
+
font-variant-numeric: inherit;
|
|
239
|
+
margin: 0;
|
|
240
|
+
min-inline-size: 0;
|
|
241
|
+
padding: 0;
|
|
242
|
+
touch-action: manipulation;
|
|
243
|
+
transition:
|
|
244
|
+
background-color var(--slotted-control-transition-duration)
|
|
245
|
+
var(--slotted-control-transition-easing),
|
|
246
|
+
color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing);
|
|
247
|
+
white-space: nowrap;
|
|
248
|
+
-webkit-tap-highlight-color: transparent;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
[data-ui-picker-panel]
|
|
252
|
+
:is(
|
|
253
|
+
[data-part-preset],
|
|
254
|
+
[data-part-step],
|
|
255
|
+
[data-part-jump-month],
|
|
256
|
+
[data-part-chip],
|
|
257
|
+
[data-part-half-day],
|
|
258
|
+
[data-part-half-time],
|
|
259
|
+
[data-part-clear],
|
|
260
|
+
[data-part-apply],
|
|
261
|
+
[data-part-value],
|
|
262
|
+
[data-part-time-label],
|
|
263
|
+
[data-part-ruler-handle]
|
|
264
|
+
):focus-visible {
|
|
265
|
+
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
266
|
+
outline-offset: var(--slotted-border-width-thin, 1px);
|
|
267
|
+
position: relative;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
[data-ui-picker-panel]
|
|
271
|
+
:is([data-part-preset], [data-part-step], [data-part-jump-month], [data-part-chip]):disabled {
|
|
272
|
+
color: var(--slotted-disabled-foreground, GrayText);
|
|
273
|
+
cursor: not-allowed;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
[data-ui-picker-panel] [data-part-step] {
|
|
277
|
+
--slotted-icon-size: var(--_icon);
|
|
278
|
+
|
|
279
|
+
block-size: var(--_control);
|
|
280
|
+
color: var(--slotted-text-muted, GrayText);
|
|
281
|
+
display: grid;
|
|
282
|
+
flex: none;
|
|
283
|
+
inline-size: var(--_control);
|
|
284
|
+
place-items: center;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/* One glyph, turned: the icon's own mirror composes with it under dir="rtl". */
|
|
288
|
+
[data-ui-picker-panel] [data-part-step][data-direction='previous'] > [data-ui-icon] {
|
|
289
|
+
rotate: 180deg;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
[data-ui-picker-panel]
|
|
293
|
+
:is(
|
|
294
|
+
[data-part-step],
|
|
295
|
+
[data-part-chip],
|
|
296
|
+
[data-part-clear],
|
|
297
|
+
[data-part-jump-month],
|
|
298
|
+
[data-part-half-day],
|
|
299
|
+
[data-part-half-time]
|
|
300
|
+
):hover:not(:disabled):not([data-disabled]):not([data-selected]):not([data-current]) {
|
|
301
|
+
background-color: var(--slotted-tone-secondary-subtle-hover);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
[data-ui-picker-panel]
|
|
305
|
+
:is(
|
|
306
|
+
[data-part-step],
|
|
307
|
+
[data-part-chip],
|
|
308
|
+
[data-part-clear],
|
|
309
|
+
[data-part-jump-month],
|
|
310
|
+
[data-part-half-day],
|
|
311
|
+
[data-part-half-time]
|
|
312
|
+
):active:not(:disabled):not([data-disabled]):not([data-selected]):not([data-current]) {
|
|
313
|
+
background-color: var(--slotted-tone-secondary-subtle-active);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/* ── The rail: shortcuts with their result, and the jump that closes it ── */
|
|
317
|
+
[data-ui-picker-panel] [data-part-rail] {
|
|
318
|
+
background-color: var(
|
|
319
|
+
--slotted-picker-panel-sunken-surface,
|
|
320
|
+
var(--slotted-surface-sunken, ButtonFace)
|
|
321
|
+
);
|
|
322
|
+
border-inline-end: var(--_edge);
|
|
323
|
+
box-sizing: border-box;
|
|
324
|
+
display: flex;
|
|
325
|
+
flex-direction: column;
|
|
326
|
+
gap: var(--slotted-space-4, 0.5rem);
|
|
327
|
+
grid-area: rail;
|
|
328
|
+
inline-size: var(--_rail);
|
|
329
|
+
justify-content: space-between;
|
|
330
|
+
padding: var(--slotted-space-3, 0.375rem);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
[data-ui-picker-panel] [data-part-presets] {
|
|
334
|
+
display: grid;
|
|
335
|
+
gap: var(--slotted-border-width-thin, 1px);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/* Two fixed lines: the name, and what a press writes. */
|
|
339
|
+
[data-ui-picker-panel] [data-part-preset] {
|
|
340
|
+
--slotted-icon-size: var(--_icon);
|
|
341
|
+
|
|
342
|
+
align-content: center;
|
|
343
|
+
block-size: var(--slotted-picker-panel-preset-size, 38px);
|
|
344
|
+
column-gap: var(--slotted-space-2, 0.25rem);
|
|
345
|
+
display: grid;
|
|
346
|
+
grid-template-areas: 'label icon' 'result icon';
|
|
347
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
348
|
+
padding-inline: var(--slotted-space-3, 0.375rem);
|
|
349
|
+
text-align: start;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
[data-ui-picker-panel] [data-part-preset] > [data-ui-icon] {
|
|
353
|
+
align-self: center;
|
|
354
|
+
grid-area: icon;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
[data-ui-picker-panel] :is([data-part-preset-label], [data-part-preset-result]) {
|
|
358
|
+
overflow: hidden;
|
|
359
|
+
text-overflow: ellipsis;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
[data-ui-picker-panel] [data-part-preset-label] {
|
|
363
|
+
font-weight: var(--slotted-font-weight-medium, 500);
|
|
364
|
+
grid-area: label;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
[data-ui-picker-panel] [data-part-preset-result] {
|
|
368
|
+
color: var(--slotted-text-muted, GrayText);
|
|
369
|
+
font-size: var(--slotted-font-size-sm, 0.8125rem);
|
|
370
|
+
grid-area: result;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
[data-ui-picker-panel] [data-part-preset]:hover:not(:disabled):not([data-selected]) {
|
|
374
|
+
background-color: var(--slotted-tone-accent-subtle-hover);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
[data-ui-picker-panel] [data-part-preset]:active:not(:disabled):not([data-selected]) {
|
|
378
|
+
background-color: var(--slotted-tone-accent-subtle-active);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
[data-ui-picker-panel] [data-part-preset][data-selected] {
|
|
382
|
+
background-color: var(--_tint);
|
|
383
|
+
color: var(--slotted-tone-accent-text);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
[data-ui-picker-panel]
|
|
387
|
+
[data-part-preset]:is([data-selected], :disabled)
|
|
388
|
+
[data-part-preset-result] {
|
|
389
|
+
color: inherit;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/* A group takes the height the presets leave, up to the tallest it reads well at. */
|
|
393
|
+
[data-ui-picker-panel] :is([data-part-jump], [data-part-group]) {
|
|
394
|
+
display: grid;
|
|
395
|
+
flex: 1 1 auto;
|
|
396
|
+
gap: var(--slotted-space-2, 0.25rem);
|
|
397
|
+
grid-template-rows: auto 1fr;
|
|
398
|
+
max-block-size: var(--slotted-picker-panel-group-size, 144px);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
[data-ui-picker-panel] [data-part-group-label] {
|
|
402
|
+
color: var(--slotted-text-muted, GrayText);
|
|
403
|
+
font-size: var(--slotted-font-size-sm, 0.8125rem);
|
|
404
|
+
padding-inline: var(--slotted-space-3, 0.375rem);
|
|
405
|
+
white-space: nowrap;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
[data-ui-picker-panel] [data-part-jump-head] {
|
|
409
|
+
align-items: center;
|
|
410
|
+
display: flex;
|
|
411
|
+
justify-content: space-between;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
[data-ui-picker-panel] [data-part-jump-year] {
|
|
415
|
+
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
[data-ui-picker-panel] :is([data-part-jump-grid], [data-part-chips]) {
|
|
419
|
+
display: grid;
|
|
420
|
+
grid-auto-rows: minmax(calc(var(--slotted-target-min, 24px) + 2px), 1fr);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
[data-ui-picker-panel] [data-part-jump-grid] {
|
|
424
|
+
gap: var(--slotted-border-width-thin, 1px);
|
|
425
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
[data-ui-picker-panel] [data-part-chips] {
|
|
429
|
+
gap: var(--slotted-space-2, 0.25rem);
|
|
430
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/* With no shortcut over it, the group takes their place: one length a row. */
|
|
434
|
+
[data-ui-picker-panel] [data-part-group]:first-child {
|
|
435
|
+
max-block-size: none;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
[data-ui-picker-panel] [data-part-group]:first-child > [data-part-chips] {
|
|
439
|
+
grid-template-columns: minmax(0, 1fr);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
[data-ui-picker-panel] :is([data-part-jump-month], [data-part-chip]) {
|
|
443
|
+
font-size: var(--slotted-font-size-sm, 0.8125rem);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
[data-ui-picker-panel] [data-part-jump-month]:not(:disabled, [data-selected], [data-current]) {
|
|
447
|
+
color: var(--slotted-text-muted, GrayText);
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
[data-ui-picker-panel] [data-part-jump-month][data-today] {
|
|
451
|
+
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/* On screen, and holding the value: an outline, and the tint of the value. */
|
|
455
|
+
[data-ui-picker-panel] [data-part-jump-month][data-current] {
|
|
456
|
+
background-color: var(--slotted-surface-raised, Canvas);
|
|
457
|
+
box-shadow: inset 0 0 0 var(--slotted-border-width-thin, 1px)
|
|
458
|
+
var(--slotted-control-border-color, ButtonBorder);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
[data-ui-picker-panel] [data-part-jump-month][data-selected] {
|
|
462
|
+
background-color: var(--_tint);
|
|
463
|
+
color: var(--slotted-tone-accent-text);
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
[data-ui-picker-panel] [data-part-jump-month][data-selected][data-current] {
|
|
467
|
+
box-shadow: inset 0 0 0 var(--slotted-border-width-thin, 1px)
|
|
468
|
+
var(--slotted-tone-accent-border, Highlight);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
[data-ui-picker-panel] [data-part-chip] {
|
|
472
|
+
background-color: var(--slotted-surface-raised, Canvas);
|
|
473
|
+
box-shadow: inset 0 0 0 var(--slotted-border-width-thin, 1px)
|
|
474
|
+
var(--slotted-border-subtle, ButtonBorder);
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
[data-ui-picker-panel] [data-part-chip][data-selected] {
|
|
478
|
+
background-color: var(--slotted-tone-accent-solid);
|
|
479
|
+
color: var(--slotted-tone-accent-on-solid);
|
|
480
|
+
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/* ── The head: the value in words ──────────────────────────────────── */
|
|
484
|
+
[data-ui-picker-panel] [data-part-main] {
|
|
485
|
+
display: flex;
|
|
486
|
+
flex-direction: column;
|
|
487
|
+
grid-area: main;
|
|
488
|
+
min-inline-size: var(--_module);
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
[data-ui-picker-panel] :is([data-part-head], [data-part-time-head]) {
|
|
492
|
+
align-items: center;
|
|
493
|
+
block-size: var(--_head);
|
|
494
|
+
border-block-end: var(--_edge);
|
|
495
|
+
box-sizing: border-box;
|
|
496
|
+
column-gap: var(--slotted-space-4, 0.5rem);
|
|
497
|
+
display: grid;
|
|
498
|
+
flex: none;
|
|
499
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
500
|
+
padding-inline: var(--_pad);
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
[data-ui-picker-panel] :is([data-part-value], [data-part-time-label]) {
|
|
504
|
+
align-self: end;
|
|
505
|
+
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
506
|
+
overflow: hidden;
|
|
507
|
+
text-align: start;
|
|
508
|
+
text-overflow: ellipsis;
|
|
509
|
+
white-space: nowrap;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
[data-ui-picker-panel] [data-part-value] {
|
|
513
|
+
font-size: var(--slotted-font-size-lg, 1rem);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
[data-ui-picker-panel] :is([data-part-meta], [data-part-time-meta]) {
|
|
517
|
+
align-self: start;
|
|
518
|
+
color: var(--slotted-text-muted, GrayText);
|
|
519
|
+
font-size: var(--slotted-font-size-sm, 0.8125rem);
|
|
520
|
+
grid-row: 2;
|
|
521
|
+
overflow: hidden;
|
|
522
|
+
text-overflow: ellipsis;
|
|
523
|
+
white-space: nowrap;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
[data-ui-picker-panel] :is([data-part-steps], [data-part-time-value]) {
|
|
527
|
+
grid-column: 2;
|
|
528
|
+
grid-row: 1 / 3;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
[data-ui-picker-panel] [data-part-steps] {
|
|
532
|
+
align-items: center;
|
|
533
|
+
display: flex;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
[data-ui-picker-panel] :is([data-part-value], [data-part-half-value])[data-empty] {
|
|
537
|
+
color: var(--slotted-text-muted, GrayText);
|
|
538
|
+
font-weight: var(--slotted-font-weight-medium, 500);
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
[data-ui-picker-panel] :is([data-part-value], [data-part-half-value])[data-invalid] {
|
|
542
|
+
color: var(--slotted-tone-danger-text);
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
/* The field of a time, drawn at the size of a value: the field's own tokens. */
|
|
546
|
+
[data-ui-picker-panel] [data-part-time-value] {
|
|
547
|
+
--slotted-control-font-size-sm: var(--slotted-font-size-xl, 1.125rem);
|
|
548
|
+
--slotted-control-padding-inline-sm: var(--slotted-space-2, 0.25rem);
|
|
549
|
+
--slotted-time-field-segment-min-inline-size: 2.4ch;
|
|
550
|
+
|
|
551
|
+
background-color: var(
|
|
552
|
+
--slotted-picker-panel-sunken-surface,
|
|
553
|
+
var(--slotted-surface-sunken, ButtonFace)
|
|
554
|
+
);
|
|
555
|
+
border-radius: var(--slotted-radius-sm, 4px);
|
|
556
|
+
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
/* ── The head of a run: two halves, and its length between them ────── */
|
|
560
|
+
[data-ui-picker-panel] [data-part-range-head] {
|
|
561
|
+
block-size: var(--_head);
|
|
562
|
+
border-block-end: var(--_edge);
|
|
563
|
+
box-sizing: border-box;
|
|
564
|
+
display: grid;
|
|
565
|
+
flex: none;
|
|
566
|
+
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
|
567
|
+
/* The modules decide the width; what is typed in a half is clipped by it. */
|
|
568
|
+
inline-size: 0;
|
|
569
|
+
min-inline-size: 100%;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
/* A child of the head: a datetime field inside a half has halves of its own. */
|
|
573
|
+
[data-ui-picker-panel] [data-part-range-head] > [data-part-half] {
|
|
574
|
+
align-content: center;
|
|
575
|
+
display: grid;
|
|
576
|
+
gap: var(--slotted-border-width-thin, 1px) var(--slotted-space-4, 0.5rem);
|
|
577
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
578
|
+
padding-inline: var(--_pad);
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
[data-ui-picker-panel] :is([data-part-half-label], [data-part-half-meta]) {
|
|
582
|
+
color: var(--slotted-text-muted, GrayText);
|
|
583
|
+
font-size: var(--slotted-font-size-sm, 0.8125rem);
|
|
584
|
+
overflow: hidden;
|
|
585
|
+
text-overflow: ellipsis;
|
|
586
|
+
white-space: nowrap;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
[data-ui-picker-panel] [data-part-half-meta] {
|
|
590
|
+
text-align: end;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
[data-ui-picker-panel] [data-part-half-value] {
|
|
594
|
+
--slotted-control-font-size-sm: var(--slotted-font-size-md, 0.875rem);
|
|
595
|
+
--slotted-control-height-sm: var(--slotted-target-min, 24px);
|
|
596
|
+
--slotted-control-padding-inline-sm: var(--slotted-space-1, 0.125rem);
|
|
597
|
+
|
|
598
|
+
display: flex;
|
|
599
|
+
font-size: var(--slotted-font-size-md, 0.875rem);
|
|
600
|
+
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
601
|
+
gap: var(--slotted-space-2, 0.25rem);
|
|
602
|
+
grid-column: 1 / -1;
|
|
603
|
+
grid-row: 2;
|
|
604
|
+
margin-inline: calc(-1 * var(--slotted-space-2, 0.25rem));
|
|
605
|
+
min-inline-size: 0;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
[data-ui-picker-panel] :is([data-part-half-day], [data-part-half-time]) {
|
|
609
|
+
block-size: var(--slotted-target-min, 24px);
|
|
610
|
+
font-weight: inherit;
|
|
611
|
+
padding-inline: var(--slotted-space-2, 0.25rem);
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
/* The end the next press writes: the tint, and a line that says it without color. */
|
|
615
|
+
[data-ui-picker-panel] [data-part-range-head] > [data-part-half][data-current] {
|
|
616
|
+
background-color: var(--_tint);
|
|
617
|
+
box-shadow: inset 0 calc(-1 * var(--slotted-border-width-thick, 2px)) 0
|
|
618
|
+
var(--slotted-tone-accent-solid, Highlight);
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
[data-ui-picker-panel]
|
|
622
|
+
[data-part-range-head]
|
|
623
|
+
> [data-part-half][data-current]
|
|
624
|
+
:is([data-part-half-label], [data-part-half-meta]) {
|
|
625
|
+
color: var(--slotted-tone-accent-text);
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
[data-ui-picker-panel] [data-part-span] {
|
|
629
|
+
align-items: center;
|
|
630
|
+
border-inline: var(--_edge);
|
|
631
|
+
display: flex;
|
|
632
|
+
padding-inline: var(--slotted-space-2, 0.25rem);
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
/* As wide as the longest length, so the steppers stay put under a press. */
|
|
636
|
+
[data-ui-picker-panel] [data-part-span-text] {
|
|
637
|
+
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
638
|
+
min-inline-size: 7.5em;
|
|
639
|
+
text-align: center;
|
|
640
|
+
white-space: nowrap;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
[data-ui-picker-panel] [data-part-span-text][data-empty] {
|
|
644
|
+
color: var(--slotted-text-muted, GrayText);
|
|
645
|
+
font-weight: var(--slotted-font-weight-medium, 500);
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
/* ── The modules ───────────────────────────────────────────────────── */
|
|
649
|
+
[data-ui-picker-panel] [data-part-body] {
|
|
650
|
+
display: grid;
|
|
651
|
+
flex: 1;
|
|
652
|
+
/* What stands under a clock takes its own height, and the clock the rest. */
|
|
653
|
+
grid-template-rows: 1fr;
|
|
654
|
+
justify-items: center;
|
|
655
|
+
padding: var(--slotted-space-3, 0.375rem) var(--_pad) var(--slotted-space-4, 0.5rem);
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
/* Two months are two modules: the gap is the air of one and of the other. */
|
|
659
|
+
[data-ui-picker-panel] [data-part-body] > [data-ui-calendar] {
|
|
660
|
+
--slotted-calendar-month-gap: calc(var(--_pad) * 2);
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
[data-ui-picker-panel] [data-part-body] > [data-ui-clock] {
|
|
664
|
+
inline-size: 100%;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
[data-ui-picker-panel] [data-part-side] {
|
|
668
|
+
border-inline-start: var(--_edge);
|
|
669
|
+
box-sizing: border-box;
|
|
670
|
+
display: flex;
|
|
671
|
+
flex-direction: column;
|
|
672
|
+
grid-area: side;
|
|
673
|
+
inline-size: var(--_module);
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
/* Two clocks, each under the half of its own end. */
|
|
677
|
+
[data-ui-picker-panel] [data-part-clocks] {
|
|
678
|
+
border-block-start: var(--_edge);
|
|
679
|
+
display: grid;
|
|
680
|
+
flex: 1;
|
|
681
|
+
grid-template-columns: repeat(2, minmax(var(--_module), 1fr));
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
[data-ui-picker-panel] [data-part-clocks] > [data-ui-clock] {
|
|
685
|
+
padding: var(--slotted-space-4, 0.5rem) var(--_pad);
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
[data-ui-picker-panel] [data-part-clocks] > [data-ui-clock] + [data-ui-clock] {
|
|
689
|
+
border-inline-start: var(--_edge);
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
/* The steps from now, on the label column of the clock over them. */
|
|
693
|
+
[data-ui-picker-panel] [data-part-offsets] {
|
|
694
|
+
border-block-start: var(--_edge);
|
|
695
|
+
display: grid;
|
|
696
|
+
gap: var(--slotted-space-1, 0.125rem);
|
|
697
|
+
grid-template-columns: var(--slotted-clock-label-inline-size, 62px) minmax(0, 1fr);
|
|
698
|
+
inline-size: 100%;
|
|
699
|
+
margin-block-start: var(--slotted-space-4, 0.5rem);
|
|
700
|
+
padding-block-start: var(--slotted-space-4, 0.5rem);
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
[data-ui-picker-panel] [data-part-offsets] > [data-part-group-label] {
|
|
704
|
+
align-self: center;
|
|
705
|
+
font-size: var(--slotted-font-size-xs, 0.75rem);
|
|
706
|
+
overflow: hidden;
|
|
707
|
+
padding-inline: 0;
|
|
708
|
+
text-overflow: ellipsis;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
[data-ui-picker-panel] [data-part-offsets] > [data-part-chips] {
|
|
712
|
+
grid-auto-rows: var(--_control);
|
|
713
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
/* ── The ruler: the day as one axis ────────────────────────────────── */
|
|
717
|
+
[data-ui-picker-panel] [data-part-ruler] {
|
|
718
|
+
display: grid;
|
|
719
|
+
flex: none;
|
|
720
|
+
gap: var(--slotted-space-2, 0.25rem);
|
|
721
|
+
padding: var(--slotted-space-4, 0.5rem) var(--_pad) var(--slotted-space-3, 0.375rem);
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
[data-ui-picker-panel] [data-part-ruler-track] {
|
|
725
|
+
background-color: var(
|
|
726
|
+
--slotted-picker-panel-sunken-surface,
|
|
727
|
+
var(--slotted-surface-sunken, ButtonFace)
|
|
728
|
+
);
|
|
729
|
+
block-size: var(--_control);
|
|
730
|
+
border-radius: var(--slotted-radius-md, 6px);
|
|
731
|
+
display: grid;
|
|
732
|
+
grid-template-columns: repeat(24, minmax(0, 1fr));
|
|
733
|
+
position: relative;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
[data-ui-picker-panel] [data-part-ruler-hour]:not(:last-of-type) {
|
|
737
|
+
border-inline-end: var(--_edge);
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
[data-ui-picker-panel] [data-part-ruler-hour][data-unavailable] {
|
|
741
|
+
background-image: repeating-linear-gradient(
|
|
742
|
+
135deg,
|
|
743
|
+
transparent 0 3px,
|
|
744
|
+
var(--slotted-border-subtle, ButtonBorder) 3px 4px
|
|
745
|
+
);
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
[data-ui-picker-panel] [data-part-ruler-band] {
|
|
749
|
+
background-color: var(--slotted-tone-accent-solid, Highlight);
|
|
750
|
+
inset-block: 0;
|
|
751
|
+
position: absolute;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
[data-ui-picker-panel] [data-part-ruler-handle] {
|
|
755
|
+
block-size: 100%;
|
|
756
|
+
cursor: ew-resize;
|
|
757
|
+
inline-size: var(--slotted-target-min, 24px);
|
|
758
|
+
inset-block: 0;
|
|
759
|
+
margin-inline-start: calc(var(--slotted-target-min, 24px) / -2);
|
|
760
|
+
position: absolute;
|
|
761
|
+
touch-action: none;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
[data-ui-picker-panel] [data-part-ruler-handle]:focus-visible {
|
|
765
|
+
border-radius: var(--slotted-radius-sm, 4px);
|
|
766
|
+
position: absolute;
|
|
767
|
+
z-index: 1;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
[data-ui-picker-panel] [data-part-ruler-scale] {
|
|
771
|
+
color: var(--slotted-text-muted, GrayText);
|
|
772
|
+
display: grid;
|
|
773
|
+
font-size: var(--slotted-font-size-xs, 0.75rem);
|
|
774
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
/* ── The footer ────────────────────────────────────────────────────── */
|
|
778
|
+
[data-ui-picker-panel] [data-part-footer] {
|
|
779
|
+
align-items: center;
|
|
780
|
+
background-color: var(
|
|
781
|
+
--slotted-picker-panel-sunken-surface,
|
|
782
|
+
var(--slotted-surface-sunken, ButtonFace)
|
|
783
|
+
);
|
|
784
|
+
block-size: var(--_footer);
|
|
785
|
+
border-block-start: var(--_edge);
|
|
786
|
+
box-sizing: border-box;
|
|
787
|
+
display: flex;
|
|
788
|
+
gap: var(--slotted-space-4, 0.5rem);
|
|
789
|
+
grid-area: footer;
|
|
790
|
+
inset-block-end: 0;
|
|
791
|
+
padding-inline: var(--_pad) var(--slotted-space-4, 0.5rem);
|
|
792
|
+
position: sticky;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
[data-ui-picker-panel] [data-part-hint] {
|
|
796
|
+
align-items: center;
|
|
797
|
+
color: var(--slotted-text-muted, GrayText);
|
|
798
|
+
display: flex;
|
|
799
|
+
flex: 1;
|
|
800
|
+
font-size: var(--slotted-font-size-sm, 0.8125rem);
|
|
801
|
+
/* A hint never widens the panel: it takes what the actions leave. */
|
|
802
|
+
inline-size: 0;
|
|
803
|
+
min-inline-size: 0;
|
|
804
|
+
overflow: hidden;
|
|
805
|
+
text-overflow: ellipsis;
|
|
806
|
+
white-space: nowrap;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
[data-ui-picker-panel] [data-part-hint][data-invalid] {
|
|
810
|
+
color: var(--slotted-tone-danger-text);
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
[data-ui-picker-panel] :is([data-part-clear], [data-part-apply]) {
|
|
814
|
+
block-size: var(--slotted-control-height-sm, 30px);
|
|
815
|
+
flex: none;
|
|
816
|
+
font-weight: var(--slotted-font-weight-semibold, 600);
|
|
817
|
+
padding-inline: var(--slotted-space-5, 0.75rem);
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
[data-ui-picker-panel] [data-part-apply] {
|
|
821
|
+
background-color: var(--slotted-tone-accent-solid);
|
|
822
|
+
color: var(--slotted-tone-accent-on-solid);
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
[data-ui-picker-panel] [data-part-apply]:hover:not(:disabled) {
|
|
826
|
+
background-color: var(--slotted-tone-accent-solid-hover);
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
[data-ui-picker-panel] [data-part-apply]:active:not(:disabled) {
|
|
830
|
+
background-color: var(--slotted-tone-accent-solid-active);
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
[data-ui-picker-panel] :is([data-part-clear], [data-part-apply]):disabled {
|
|
834
|
+
color: var(--slotted-disabled-foreground, GrayText);
|
|
835
|
+
cursor: not-allowed;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
[data-ui-picker-panel] [data-part-apply]:disabled {
|
|
839
|
+
background-color: var(--slotted-disabled-background, ButtonFace);
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
/* ── One column ────────────────────────────────────────────────────────
|
|
843
|
+
*
|
|
844
|
+
* Under the widest panel and its margins, one month or one clock at a time:
|
|
845
|
+
* the day and the time of the head say which, and the shortcuts become a
|
|
846
|
+
* strip over the footer. The parts are the same; the stylesheet decides.
|
|
847
|
+
*/
|
|
848
|
+
@media (max-width: 760px) {
|
|
849
|
+
[data-ui-picker-panel][data-part-root] {
|
|
850
|
+
--_footer: var(--slotted-picker-panel-footer-size, 60px);
|
|
851
|
+
--_module: 0px;
|
|
852
|
+
|
|
853
|
+
grid-template-areas: 'main' 'side' 'rail' 'footer';
|
|
854
|
+
grid-template-columns: minmax(0, 1fr);
|
|
855
|
+
inline-size: min(358px, 100vw);
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
[data-ui-picker-panel] [data-part-rail] {
|
|
859
|
+
border-block-start: var(--_edge);
|
|
860
|
+
border-inline-end: 0;
|
|
861
|
+
inline-size: auto;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
[data-ui-picker-panel] :is([data-part-presets], [data-part-group] > [data-part-chips]) {
|
|
865
|
+
display: flex;
|
|
866
|
+
gap: var(--slotted-space-2, 0.25rem);
|
|
867
|
+
overflow-x: auto;
|
|
868
|
+
scrollbar-width: none;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
[data-ui-picker-panel] :is([data-part-preset], [data-part-chip]) {
|
|
872
|
+
block-size: var(--slotted-target-comfortable, 44px);
|
|
873
|
+
flex: none;
|
|
874
|
+
padding-inline: var(--slotted-space-5, 0.75rem);
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
[data-ui-picker-panel] [data-part-preset]:not([data-selected]) {
|
|
878
|
+
background-color: var(--slotted-surface-raised, Canvas);
|
|
879
|
+
box-shadow: inset 0 0 0 var(--slotted-border-width-thin, 1px)
|
|
880
|
+
var(--slotted-border-subtle, ButtonBorder);
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
[data-ui-picker-panel]
|
|
884
|
+
:is(
|
|
885
|
+
[data-part-jump],
|
|
886
|
+
[data-part-steps],
|
|
887
|
+
[data-part-group] > [data-part-group-label],
|
|
888
|
+
[data-part-span],
|
|
889
|
+
[data-part-ruler],
|
|
890
|
+
[data-part-half-meta]
|
|
891
|
+
) {
|
|
892
|
+
display: none;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
[data-ui-picker-panel] [data-part-body] > [data-ui-calendar] {
|
|
896
|
+
/* A day fills a seventh of the column, and six weeks keep one screen. */
|
|
897
|
+
--slotted-calendar-cell-block-size: calc(var(--slotted-target-comfortable, 44px) - 2px);
|
|
898
|
+
--slotted-calendar-cell-size: calc(var(--slotted-target-comfortable, 44px) + 4px);
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
[data-ui-picker-panel] [data-part-range-head] {
|
|
902
|
+
block-size: 64px;
|
|
903
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
[data-ui-picker-panel] [data-part-range-head] > [data-part-half] ~ [data-part-half] {
|
|
907
|
+
border-inline-start: var(--_edge);
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
[data-ui-picker-panel] [data-part-half-value] {
|
|
911
|
+
gap: 0;
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
[data-ui-picker-panel] :is([data-part-half-day], [data-part-half-time]) {
|
|
915
|
+
block-size: 36px;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
/* The half that is being chosen, of the two the active end has. */
|
|
919
|
+
[data-ui-picker-panel][data-showing='day'] [data-current] [data-part-half-day][data-current],
|
|
920
|
+
[data-ui-picker-panel][data-showing='time'] [data-current] [data-part-half-time][data-current] {
|
|
921
|
+
background-color: var(--slotted-tone-accent-solid);
|
|
922
|
+
color: var(--slotted-tone-accent-on-solid);
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
/* What is not being chosen leaves; its button in the head brings it back. */
|
|
926
|
+
[data-ui-picker-panel][data-kind='datetime'][data-showing='day']
|
|
927
|
+
[data-part-side]
|
|
928
|
+
> [data-part-body],
|
|
929
|
+
[data-ui-picker-panel][data-kind='datetime'][data-showing='time']
|
|
930
|
+
[data-part-main]
|
|
931
|
+
> [data-part-body],
|
|
932
|
+
[data-ui-picker-panel][data-kind='datetime-range'][data-showing='day'] [data-part-clocks],
|
|
933
|
+
[data-ui-picker-panel][data-kind='datetime-range'][data-showing='time']
|
|
934
|
+
[data-part-main]
|
|
935
|
+
> [data-part-body],
|
|
936
|
+
[data-ui-picker-panel] [data-part-clocks] > [data-ui-clock]:not([data-current]) {
|
|
937
|
+
display: none;
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
/* The whole head answers the press; the field of a time stays over it. */
|
|
941
|
+
[data-ui-picker-panel] :is([data-part-head], [data-part-time-head]) {
|
|
942
|
+
position: relative;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
[data-ui-picker-panel] :is([data-part-value], [data-part-time-label]):is(button)::after {
|
|
946
|
+
content: '';
|
|
947
|
+
inset: 0;
|
|
948
|
+
position: absolute;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
[data-ui-picker-panel] [data-part-time-value] {
|
|
952
|
+
position: relative;
|
|
953
|
+
z-index: 1;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
/* A head whose part is away stands on the edge of what follows. */
|
|
957
|
+
[data-ui-picker-panel][data-showing='day'] [data-part-side] > [data-part-time-head],
|
|
958
|
+
[data-ui-picker-panel][data-showing='time'] [data-part-main] > [data-part-head] {
|
|
959
|
+
border-block-end: 0;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
[data-ui-picker-panel] [data-part-side] {
|
|
963
|
+
border-block-start: var(--_edge);
|
|
964
|
+
border-inline-start: 0;
|
|
965
|
+
inline-size: auto;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
[data-ui-picker-panel] [data-part-clocks] {
|
|
969
|
+
border-block-start: 0;
|
|
970
|
+
grid-template-columns: minmax(0, 1fr);
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
[data-ui-picker-panel] [data-part-clocks] > [data-ui-clock] + [data-ui-clock] {
|
|
974
|
+
border-inline-start: 0;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
[data-ui-picker-panel] [data-part-offsets] > [data-part-chips] {
|
|
978
|
+
grid-auto-rows: var(--slotted-target-comfortable, 44px);
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
[data-ui-picker-panel] :is([data-part-clear], [data-part-apply]) {
|
|
982
|
+
block-size: var(--slotted-target-comfortable, 44px);
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
/* ── Narrow, on a finger ──────────────────────────────────────────────
|
|
987
|
+
*
|
|
988
|
+
* A popover on the desktop and a sheet in a narrow viewport. The query is on
|
|
989
|
+
* the viewport rather than on a container because a layer in a portal has no
|
|
990
|
+
* container to ask, and the question really is how much screen there is.
|
|
991
|
+
*/
|
|
992
|
+
@media (max-width: 480px) and (pointer: coarse) {
|
|
993
|
+
[data-ui-picker-panel][data-part-positioner][data-presentation='sheet'] {
|
|
994
|
+
/* A sheet is not placed against an anchor, it is placed against the screen. */
|
|
995
|
+
inset: auto 0 0;
|
|
996
|
+
position: fixed;
|
|
997
|
+
translate: 0 var(--slotted-space-9, 2rem);
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
[data-ui-picker-panel][data-part-positioner][data-presentation='sheet'][data-open] {
|
|
1001
|
+
translate: 0 0;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
[data-ui-picker-panel][data-part-positioner][data-presentation='sheet'] > [data-part-content] {
|
|
1005
|
+
border-block-end: 0;
|
|
1006
|
+
border-end-end-radius: 0;
|
|
1007
|
+
border-end-start-radius: 0;
|
|
1008
|
+
border-inline: 0;
|
|
1009
|
+
inline-size: 100%;
|
|
1010
|
+
max-block-size: 90dvh;
|
|
1011
|
+
max-inline-size: none;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
[data-ui-picker-panel][data-presentation='sheet'] [data-ui-picker-panel][data-part-root] {
|
|
1015
|
+
inline-size: 100%;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
/**
|
|
1019
|
+
* The grip every bottom sheet carries, in the drawer's geometry and line
|
|
1020
|
+
* color: a pill three rem by a quarter, centerd in a row one target tall
|
|
1021
|
+
* that the content keeps clear at its top. A pull down on it dismisses the
|
|
1022
|
+
* sheet; Escape and the press outside stay the accessible ways out.
|
|
1023
|
+
*/
|
|
1024
|
+
[data-ui-picker-panel][data-part-positioner][data-presentation='sheet'] > [data-part-content] {
|
|
1025
|
+
padding-block-start: var(--slotted-target-min, 24px);
|
|
1026
|
+
position: relative;
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
[data-ui-picker-panel][data-part-positioner][data-presentation='sheet']
|
|
1030
|
+
> [data-part-content]
|
|
1031
|
+
> [data-part-grip] {
|
|
1032
|
+
background-clip: content-box;
|
|
1033
|
+
background-color: var(
|
|
1034
|
+
--slotted-drawer-resizer-line-color,
|
|
1035
|
+
var(--slotted-border-strong, ButtonBorder)
|
|
1036
|
+
);
|
|
1037
|
+
block-size: var(--slotted-space-2, 0.25rem);
|
|
1038
|
+
border-radius: var(--slotted-radius-full, 9999px);
|
|
1039
|
+
box-sizing: content-box;
|
|
1040
|
+
cursor: grab;
|
|
1041
|
+
inline-size: var(--slotted-space-11, 3rem);
|
|
1042
|
+
inset-block-start: 0;
|
|
1043
|
+
inset-inline: 0;
|
|
1044
|
+
margin-inline: auto;
|
|
1045
|
+
padding-block: calc((var(--slotted-target-min, 24px) - var(--slotted-space-2, 0.25rem)) / 2);
|
|
1046
|
+
position: absolute;
|
|
1047
|
+
touch-action: none;
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
@media (forced-colors: active) {
|
|
1052
|
+
[data-ui-picker-panel]
|
|
1053
|
+
:is(
|
|
1054
|
+
[data-part-chip][data-selected],
|
|
1055
|
+
[data-part-apply]:not(:disabled),
|
|
1056
|
+
[data-part-ruler-band]
|
|
1057
|
+
) {
|
|
1058
|
+
background-color: Highlight;
|
|
1059
|
+
color: HighlightText;
|
|
1060
|
+
forced-color-adjust: none;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
/* A shadow is not drawn here, and the edge of a length is one. */
|
|
1064
|
+
[data-ui-picker-panel] [data-part-chip]:not([data-selected]) {
|
|
1065
|
+
border: var(--slotted-border-width-thin, 1px) solid ButtonBorder;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
[data-ui-picker-panel] :is([data-part-preset], [data-part-jump-month])[data-selected],
|
|
1069
|
+
[data-ui-picker-panel] [data-part-range-head] > [data-part-half][data-current] {
|
|
1070
|
+
outline: var(--slotted-border-width-thin, 1px) solid Highlight;
|
|
1071
|
+
outline-offset: calc(-1 * var(--slotted-border-width-thin, 1px));
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
}
|