@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
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* mirrors its state onto the frame rather than styling through, so a control
|
|
17
17
|
* used outside a field looks the same as one inside it.
|
|
18
18
|
*/
|
|
19
|
-
[data-ui
|
|
19
|
+
[data-ui-currency-field][data-part-root] {
|
|
20
20
|
/**
|
|
21
21
|
* Type, height, inline padding, gap and glyph size all come from the
|
|
22
22
|
* control scales — the only ones the theme restates per density — so an
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
* The split buttons are the inner controls `text-field` draws: the glyph
|
|
51
51
|
* plus a step of air, capped at the inner size, inset concentrically — the
|
|
52
52
|
* air beside a button equals the air above and below it, and its corner is
|
|
53
|
-
* the frame's less that air
|
|
53
|
+
* the frame's less that air.
|
|
54
54
|
*/
|
|
55
55
|
--_action-size: var(
|
|
56
56
|
--slotted-currency-field-action-size,
|
|
@@ -101,6 +101,8 @@
|
|
|
101
101
|
font-family: var(--slotted-control-font-family, system-ui, sans-serif);
|
|
102
102
|
font-size: var(--_font-size);
|
|
103
103
|
gap: var(--_gap);
|
|
104
|
+
/* In a flex row the item's basis is its content, not the whole row. */
|
|
105
|
+
flex-basis: content;
|
|
104
106
|
inline-size: 100%;
|
|
105
107
|
/* A control in a grid track narrower than its intrinsic width has to shrink. */
|
|
106
108
|
min-inline-size: 0;
|
|
@@ -126,7 +128,7 @@
|
|
|
126
128
|
* the reader's eye, and under cents-first entry every keystroke rewrites the
|
|
127
129
|
* whole string — so the setting matters more here than anywhere else.
|
|
128
130
|
*/
|
|
129
|
-
[data-ui
|
|
131
|
+
[data-ui-currency-field] > [data-part-input] {
|
|
130
132
|
background-color: transparent;
|
|
131
133
|
/* The frame's border box, not its content box: on a coarse pointer the frame
|
|
132
134
|
is the touch target's height and the control it holds is too. Stretched
|
|
@@ -160,7 +162,7 @@
|
|
|
160
162
|
unicode-bidi: plaintext;
|
|
161
163
|
}
|
|
162
164
|
|
|
163
|
-
[data-ui
|
|
165
|
+
[data-ui-currency-field] > [data-part-input]::placeholder {
|
|
164
166
|
color: var(--slotted-currency-field-placeholder-color, var(--slotted-text-muted, GrayText));
|
|
165
167
|
text-overflow: ellipsis;
|
|
166
168
|
}
|
|
@@ -176,19 +178,19 @@
|
|
|
176
178
|
* means "the document's end edge, whatever the run inside is doing".
|
|
177
179
|
*/
|
|
178
180
|
|
|
179
|
-
[data-ui
|
|
181
|
+
[data-ui-currency-field][data-align='end'] > [data-part-input] {
|
|
180
182
|
text-align: right;
|
|
181
183
|
}
|
|
182
184
|
|
|
183
|
-
[data-ui
|
|
185
|
+
[data-ui-currency-field][data-align='end']:dir(rtl) > [data-part-input] {
|
|
184
186
|
text-align: left;
|
|
185
187
|
}
|
|
186
188
|
|
|
187
|
-
[data-ui
|
|
189
|
+
[data-ui-currency-field][data-align='start'] > [data-part-input] {
|
|
188
190
|
text-align: left;
|
|
189
191
|
}
|
|
190
192
|
|
|
191
|
-
[data-ui
|
|
193
|
+
[data-ui-currency-field][data-align='start']:dir(rtl) > [data-part-input] {
|
|
192
194
|
text-align: right;
|
|
193
195
|
}
|
|
194
196
|
|
|
@@ -198,7 +200,7 @@
|
|
|
198
200
|
* control beside it. One library, one scale.
|
|
199
201
|
*/
|
|
200
202
|
|
|
201
|
-
[data-ui
|
|
203
|
+
[data-ui-currency-field][data-part-root][data-size='sm'] {
|
|
202
204
|
--_font-size: var(--slotted-control-font-size-sm, 12px);
|
|
203
205
|
--_height: var(--slotted-control-height-sm, 30px);
|
|
204
206
|
--_padding-inline: var(--slotted-control-padding-inline-sm, 10px);
|
|
@@ -207,7 +209,7 @@
|
|
|
207
209
|
--_inner-size: var(--slotted-control-inner-size-sm, 22px);
|
|
208
210
|
}
|
|
209
211
|
|
|
210
|
-
[data-ui
|
|
212
|
+
[data-ui-currency-field][data-part-root][data-size='md'] {
|
|
211
213
|
--_font-size: var(--slotted-control-font-size-md, 13px);
|
|
212
214
|
--_height: var(--slotted-control-height-md, 34px);
|
|
213
215
|
--_padding-inline: var(--slotted-control-padding-inline-md, 13px);
|
|
@@ -216,7 +218,7 @@
|
|
|
216
218
|
--_inner-size: var(--slotted-control-inner-size-md, 24px);
|
|
217
219
|
}
|
|
218
220
|
|
|
219
|
-
[data-ui
|
|
221
|
+
[data-ui-currency-field][data-part-root][data-size='lg'] {
|
|
220
222
|
--_font-size: var(--slotted-control-font-size-lg, 14px);
|
|
221
223
|
--_height: var(--slotted-control-height-lg, 38px);
|
|
222
224
|
--_padding-inline: var(--slotted-control-padding-inline-lg, 16px);
|
|
@@ -232,7 +234,7 @@
|
|
|
232
234
|
* nothing at rest, which is what a dense table of amounts needs.
|
|
233
235
|
*/
|
|
234
236
|
|
|
235
|
-
[data-ui
|
|
237
|
+
[data-ui-currency-field][data-part-root][data-variant='subtle'] {
|
|
236
238
|
background-color: var(
|
|
237
239
|
--slotted-currency-field-subtle-background,
|
|
238
240
|
var(--slotted-surface-sunken, Canvas)
|
|
@@ -246,7 +248,7 @@
|
|
|
246
248
|
/* No edge, no lift, no ground and no corner of its own: the cell it sits in
|
|
247
249
|
is the box, the row is the ground, a cell has no corner, and the resting
|
|
248
250
|
shadow would draw the cell where there is none. */
|
|
249
|
-
[data-ui
|
|
251
|
+
[data-ui-currency-field][data-part-root][data-variant='plain'] {
|
|
250
252
|
background-color: transparent;
|
|
251
253
|
border-color: transparent;
|
|
252
254
|
border-radius: var(--slotted-radius-none, 0px);
|
|
@@ -255,11 +257,11 @@
|
|
|
255
257
|
|
|
256
258
|
/**
|
|
257
259
|
* The one rule the theme cannot write for the family. A transparent border
|
|
258
|
-
* has no system
|
|
260
|
+
* has no system color to be remapped to, so the `plain` control would lose
|
|
259
261
|
* its only edge exactly where an edge matters most.
|
|
260
262
|
*/
|
|
261
263
|
@media (forced-colors: active) {
|
|
262
|
-
[data-ui
|
|
264
|
+
[data-ui-currency-field][data-part-root][data-variant='plain'] {
|
|
263
265
|
border-color: ButtonBorder;
|
|
264
266
|
}
|
|
265
267
|
}
|
|
@@ -271,8 +273,8 @@
|
|
|
271
273
|
* holds, is selected with it, is copied with it and is parsed back out of
|
|
272
274
|
* it. This one is none of those things, which is the whole distinction.
|
|
273
275
|
*/
|
|
274
|
-
[data-ui
|
|
275
|
-
[data-ui
|
|
276
|
+
[data-ui-currency-field] > [data-part-start],
|
|
277
|
+
[data-ui-currency-field] > [data-part-end] {
|
|
276
278
|
align-items: center;
|
|
277
279
|
color: var(--slotted-currency-field-adornment-color, var(--slotted-text-muted, GrayText));
|
|
278
280
|
display: inline-flex;
|
|
@@ -290,8 +292,8 @@
|
|
|
290
292
|
--slotted-icon-size: var(--_icon-size);
|
|
291
293
|
}
|
|
292
294
|
|
|
293
|
-
[data-ui
|
|
294
|
-
[data-ui
|
|
295
|
+
[data-ui-currency-field] > [data-part-start] > svg,
|
|
296
|
+
[data-ui-currency-field] > [data-part-end] > svg {
|
|
295
297
|
block-size: var(--_icon-size);
|
|
296
298
|
inline-size: var(--_icon-size);
|
|
297
299
|
}
|
|
@@ -302,8 +304,8 @@
|
|
|
302
304
|
* advance width. An adornment that draws no glyph takes the margin the glyph
|
|
303
305
|
* box already has, on both sides — the measurement `text-field` derived.
|
|
304
306
|
*/
|
|
305
|
-
[data-ui
|
|
306
|
-
[data-ui
|
|
307
|
+
[data-ui-currency-field] > [data-part-start]:not(:has(svg, img, [data-ui-icon])),
|
|
308
|
+
[data-ui-currency-field] > [data-part-end]:not(:has(svg, img, [data-ui-icon])) {
|
|
307
309
|
padding-inline: calc(var(--_icon-size) / 8);
|
|
308
310
|
}
|
|
309
311
|
|
|
@@ -317,12 +319,11 @@
|
|
|
317
319
|
* mark is not a button, it has no ground to change, and the cursor alone
|
|
318
320
|
* said nothing a reader would look at.
|
|
319
321
|
*/
|
|
320
|
-
[data-ui
|
|
321
|
-
> :is([data-part='start'], [data-part='end']):has(> [data-part='scrub']) {
|
|
322
|
+
[data-ui-currency-field] > :is([data-part-start], [data-part-end]):has(> [data-part-scrub]) {
|
|
322
323
|
align-self: stretch;
|
|
323
324
|
}
|
|
324
325
|
|
|
325
|
-
[data-ui
|
|
326
|
+
[data-ui-currency-field] [data-part-scrub] {
|
|
326
327
|
align-items: center;
|
|
327
328
|
align-self: stretch;
|
|
328
329
|
cursor: ew-resize;
|
|
@@ -339,12 +340,12 @@
|
|
|
339
340
|
-webkit-user-select: none;
|
|
340
341
|
}
|
|
341
342
|
|
|
342
|
-
[data-ui
|
|
343
|
-
[data-part
|
|
343
|
+
[data-ui-currency-field]:not([data-disabled]):not([data-readonly])
|
|
344
|
+
[data-part-scrub]:is(:hover, [data-scrubbing]) {
|
|
344
345
|
color: var(--slotted-currency-field-scrub-active-color, var(--slotted-text, CanvasText));
|
|
345
346
|
}
|
|
346
347
|
|
|
347
|
-
[data-ui
|
|
348
|
+
[data-ui-currency-field]:is([data-disabled], [data-readonly]) [data-part-scrub] {
|
|
348
349
|
cursor: default;
|
|
349
350
|
touch-action: auto;
|
|
350
351
|
}
|
|
@@ -357,9 +358,9 @@
|
|
|
357
358
|
* `aria-controls`. Their glyphs are the `Glyph` element the binding
|
|
358
359
|
* renders: a character is never an icon.
|
|
359
360
|
*/
|
|
360
|
-
[data-ui
|
|
361
|
-
[data-ui
|
|
362
|
-
[data-ui
|
|
361
|
+
[data-ui-currency-field] > [data-part-stepper] > button,
|
|
362
|
+
[data-ui-currency-field] > [data-part-decrement],
|
|
363
|
+
[data-ui-currency-field] > [data-part-increment] {
|
|
363
364
|
align-items: center;
|
|
364
365
|
appearance: none;
|
|
365
366
|
background-color: transparent;
|
|
@@ -383,8 +384,8 @@
|
|
|
383
384
|
|
|
384
385
|
/* The `icon` box inside each button is drawn at the control's own icon
|
|
385
386
|
step rather than at the icon family's default. */
|
|
386
|
-
[data-ui
|
|
387
|
-
[data-ui
|
|
387
|
+
[data-ui-currency-field] [data-part-decrement],
|
|
388
|
+
[data-ui-currency-field] [data-part-increment] {
|
|
388
389
|
--slotted-icon-size: var(--_icon-size);
|
|
389
390
|
}
|
|
390
391
|
|
|
@@ -397,7 +398,7 @@
|
|
|
397
398
|
* more do not change with the reading direction, where a chevron along the
|
|
398
399
|
* inline axis would read as "previous" and "next" and would have to mirror.
|
|
399
400
|
*/
|
|
400
|
-
[data-ui
|
|
401
|
+
[data-ui-currency-field][data-stepper='stacked'] [data-part-increment] > [data-ui-icon] {
|
|
401
402
|
rotate: 0.5turn;
|
|
402
403
|
}
|
|
403
404
|
|
|
@@ -410,11 +411,11 @@
|
|
|
410
411
|
* column and its halves are one surface. The paint gives the inset back to
|
|
411
412
|
* the pointer: each half's hit area reaches the frame.
|
|
412
413
|
*/
|
|
413
|
-
[data-ui
|
|
414
|
+
[data-ui-currency-field][data-part-root][data-stepper='stacked'] {
|
|
414
415
|
padding-inline-end: 0;
|
|
415
416
|
}
|
|
416
417
|
|
|
417
|
-
[data-ui
|
|
418
|
+
[data-ui-currency-field] > [data-part-stepper] {
|
|
418
419
|
align-self: stretch;
|
|
419
420
|
box-sizing: content-box;
|
|
420
421
|
display: flex;
|
|
@@ -425,26 +426,26 @@
|
|
|
425
426
|
padding-inline-end: var(--_column-inset);
|
|
426
427
|
}
|
|
427
428
|
|
|
428
|
-
[data-ui
|
|
429
|
+
[data-ui-currency-field] > [data-part-stepper] > button {
|
|
429
430
|
/* Two halves of the column, whatever the frame's height turns out to be. */
|
|
430
431
|
block-size: 50%;
|
|
431
432
|
border-radius: var(--_column-radius);
|
|
432
433
|
inline-size: 100%;
|
|
433
434
|
}
|
|
434
435
|
|
|
435
|
-
[data-ui
|
|
436
|
-
> [data-part
|
|
437
|
-
> :is([data-part
|
|
436
|
+
[data-ui-currency-field]
|
|
437
|
+
> [data-part-stepper]
|
|
438
|
+
> :is([data-part-increment], [data-part-decrement])::after {
|
|
438
439
|
content: '';
|
|
439
440
|
inset-inline: 0 calc(var(--_column-inset) * -1);
|
|
440
441
|
position: absolute;
|
|
441
442
|
}
|
|
442
443
|
|
|
443
|
-
[data-ui
|
|
444
|
+
[data-ui-currency-field] > [data-part-stepper] > [data-part-increment]::after {
|
|
444
445
|
inset-block: calc(var(--_column-inset) * -1) 0;
|
|
445
446
|
}
|
|
446
447
|
|
|
447
|
-
[data-ui
|
|
448
|
+
[data-ui-currency-field] > [data-part-stepper] > [data-part-decrement]::after {
|
|
448
449
|
inset-block: 0 calc(var(--_column-inset) * -1);
|
|
449
450
|
}
|
|
450
451
|
|
|
@@ -459,7 +460,7 @@
|
|
|
459
460
|
* percentage falls back to the `<svg>`'s own square, and two of them plus the
|
|
460
461
|
* divider would stand taller than the value and grow the frame.
|
|
461
462
|
*/
|
|
462
|
-
[data-ui
|
|
463
|
+
[data-ui-currency-field] > [data-part-stepper] > button > [data-ui-icon] {
|
|
463
464
|
block-size: min(var(--_icon-size), 100%);
|
|
464
465
|
contain: size;
|
|
465
466
|
}
|
|
@@ -470,29 +471,29 @@
|
|
|
470
471
|
* frame's padding is that inset on both sides. No rule divides a button from
|
|
471
472
|
* the value: the ground it paints is its edge.
|
|
472
473
|
*/
|
|
473
|
-
[data-ui
|
|
474
|
+
[data-ui-currency-field][data-part-root][data-stepper='split'] {
|
|
474
475
|
gap: 0;
|
|
475
476
|
padding-inline: var(--_inset);
|
|
476
477
|
}
|
|
477
478
|
|
|
478
|
-
[data-ui
|
|
479
|
-
[data-ui
|
|
479
|
+
[data-ui-currency-field][data-stepper='split'] > [data-part-decrement],
|
|
480
|
+
[data-ui-currency-field][data-stepper='split'] > [data-part-increment] {
|
|
480
481
|
block-size: var(--_action-size);
|
|
481
482
|
border-radius: var(--_action-radius);
|
|
482
483
|
inline-size: var(--_action-size);
|
|
483
484
|
}
|
|
484
485
|
|
|
485
|
-
[data-ui
|
|
486
|
+
[data-ui-currency-field][data-stepper='split'] > [data-part-start] {
|
|
486
487
|
padding-inline-start: var(--_gap);
|
|
487
488
|
}
|
|
488
489
|
|
|
489
|
-
[data-ui
|
|
490
|
+
[data-ui-currency-field][data-stepper='split'] > [data-part-end] {
|
|
490
491
|
padding-inline-end: var(--_gap);
|
|
491
492
|
}
|
|
492
493
|
|
|
493
494
|
/**
|
|
494
495
|
* The value keeps its own alignment between the two buttons rather than
|
|
495
|
-
* being
|
|
496
|
+
* being centerd the way a quantity is: a quantity is a token between a minus
|
|
496
497
|
* and a plus, and an amount is still a figure to be compared down a column.
|
|
497
498
|
*
|
|
498
499
|
* Its inset is the frame's own padding rather than the gap the sibling
|
|
@@ -501,7 +502,7 @@
|
|
|
501
502
|
* stepper beside it would otherwise be five pixels off every amount without
|
|
502
503
|
* one — which is the comparison `align="end"` exists to make.
|
|
503
504
|
*/
|
|
504
|
-
[data-ui
|
|
505
|
+
[data-ui-currency-field][data-stepper='split'] > [data-part-input] {
|
|
505
506
|
padding-inline: var(--_padding-inline);
|
|
506
507
|
}
|
|
507
508
|
|
|
@@ -511,8 +512,8 @@
|
|
|
511
512
|
* 24 in both axes. This grows the target to the minimum and leaves a larger
|
|
512
513
|
* one alone — the correction `docs/token-foundation.md` leaves to the family.
|
|
513
514
|
*/
|
|
514
|
-
[data-ui
|
|
515
|
-
[data-ui
|
|
515
|
+
[data-ui-currency-field][data-stepper='split'] > [data-part-decrement]::after,
|
|
516
|
+
[data-ui-currency-field][data-stepper='split'] > [data-part-increment]::after {
|
|
516
517
|
content: '';
|
|
517
518
|
inset: min(0px, calc((100% - var(--slotted-target-min, 24px)) / 2));
|
|
518
519
|
position: absolute;
|
|
@@ -528,14 +529,14 @@
|
|
|
528
529
|
* value's edge and past the frame's.
|
|
529
530
|
*/
|
|
530
531
|
@media (pointer: coarse) {
|
|
531
|
-
[data-ui
|
|
532
|
-
> :is([data-part
|
|
532
|
+
[data-ui-currency-field][data-stepper='split']
|
|
533
|
+
> :is([data-part-decrement], [data-part-increment])::after {
|
|
533
534
|
inset: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
|
|
534
535
|
}
|
|
535
536
|
|
|
536
|
-
[data-ui
|
|
537
|
-
> [data-part
|
|
538
|
-
> :is([data-part
|
|
537
|
+
[data-ui-currency-field]
|
|
538
|
+
> [data-part-stepper]
|
|
539
|
+
> :is([data-part-increment], [data-part-decrement])::after {
|
|
539
540
|
inset-inline: min(0px, calc((100% - var(--slotted-target-comfortable, 44px)) / 2));
|
|
540
541
|
}
|
|
541
542
|
}
|
|
@@ -546,16 +547,16 @@
|
|
|
546
547
|
* ones it can meet, which is the order `STATE_PRECEDENCE` sets.
|
|
547
548
|
*/
|
|
548
549
|
|
|
549
|
-
[data-ui
|
|
550
|
-
[data-ui
|
|
550
|
+
[data-ui-currency-field] [data-part-decrement]:hover:not(:disabled),
|
|
551
|
+
[data-ui-currency-field] [data-part-increment]:hover:not(:disabled) {
|
|
551
552
|
background-color: var(
|
|
552
553
|
--slotted-currency-field-stepper-hover-background,
|
|
553
554
|
var(--slotted-tone-secondary-subtle-hover)
|
|
554
555
|
);
|
|
555
556
|
}
|
|
556
557
|
|
|
557
|
-
[data-ui
|
|
558
|
-
[data-ui
|
|
558
|
+
[data-ui-currency-field] [data-part-decrement]:active:not(:disabled),
|
|
559
|
+
[data-ui-currency-field] [data-part-increment]:active:not(:disabled) {
|
|
559
560
|
background-color: var(
|
|
560
561
|
--slotted-currency-field-stepper-active-background,
|
|
561
562
|
var(--slotted-tone-secondary-subtle-active)
|
|
@@ -566,10 +567,10 @@
|
|
|
566
567
|
* A stepper at its bound is disabled rather than silently inert, so its name
|
|
567
568
|
* still announces and its appearance says why nothing happens. The ground
|
|
568
569
|
* says it as well as the ink: the disabled foreground and the resting
|
|
569
|
-
* stepper
|
|
570
|
+
* stepper color are two steps of one neutral.
|
|
570
571
|
*/
|
|
571
|
-
[data-ui
|
|
572
|
-
[data-ui
|
|
572
|
+
[data-ui-currency-field] [data-part-decrement]:disabled,
|
|
573
|
+
[data-ui-currency-field] [data-part-increment]:disabled {
|
|
573
574
|
background-color: var(
|
|
574
575
|
--slotted-currency-field-stepper-disabled-background,
|
|
575
576
|
var(--slotted-disabled-background)
|
|
@@ -583,15 +584,15 @@
|
|
|
583
584
|
* touch and a screen-reader cursor activating one directly. It sits inside
|
|
584
585
|
* the frame's own edge, so the ring never doubles the border.
|
|
585
586
|
*/
|
|
586
|
-
[data-ui
|
|
587
|
-
[data-ui
|
|
587
|
+
[data-ui-currency-field] [data-part-decrement]:focus-visible,
|
|
588
|
+
[data-ui-currency-field] [data-part-increment]:focus-visible {
|
|
588
589
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
589
590
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
590
591
|
}
|
|
591
592
|
|
|
592
593
|
/* ── Frame states ─────────────────────────────────────────────────────── */
|
|
593
594
|
|
|
594
|
-
[data-ui
|
|
595
|
+
[data-ui-currency-field][data-part-root]:hover:not([data-disabled]):not([data-readonly]):not(
|
|
595
596
|
[data-invalid]
|
|
596
597
|
) {
|
|
597
598
|
border-color: var(
|
|
@@ -600,16 +601,16 @@
|
|
|
600
601
|
);
|
|
601
602
|
}
|
|
602
603
|
|
|
603
|
-
[data-ui
|
|
604
|
-
[data-
|
|
605
|
-
):not([data-
|
|
604
|
+
[data-ui-currency-field][data-part-root][data-variant='subtle']:hover:not([data-disabled]):not(
|
|
605
|
+
[data-readonly]
|
|
606
|
+
):not([data-invalid]) {
|
|
606
607
|
background-color: var(
|
|
607
608
|
--slotted-currency-field-subtle-hover-background,
|
|
608
609
|
var(--slotted-tone-secondary-subtle-hover)
|
|
609
610
|
);
|
|
610
611
|
}
|
|
611
612
|
|
|
612
|
-
[data-ui
|
|
613
|
+
[data-ui-currency-field][data-part-root][data-variant='plain']:hover:not([data-disabled]):not(
|
|
613
614
|
[data-readonly]
|
|
614
615
|
):not([data-invalid]) {
|
|
615
616
|
background-color: var(
|
|
@@ -625,13 +626,13 @@
|
|
|
625
626
|
* matches `:focus-visible` on a text input for a pointer press as well as for
|
|
626
627
|
* a Tab, which is right for a control whose caret is the thing that moved.
|
|
627
628
|
*/
|
|
628
|
-
[data-ui
|
|
629
|
-
/* The resting shadow,
|
|
630
|
-
around it are one
|
|
629
|
+
[data-ui-currency-field][data-part-root]:has(> [data-part-input]:focus-visible) {
|
|
630
|
+
/* The resting shadow, recolored: the lift under the control and the ring
|
|
631
|
+
around it are one color, and the state decides which color that is. */
|
|
631
632
|
box-shadow: var(--slotted-control-shadow-focus-geometry, 0 1px 4px -1px)
|
|
632
633
|
var(--slotted-focus-ring-color, Highlight);
|
|
633
634
|
outline: var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);
|
|
634
|
-
outline-offset: var(--slotted-focus-ring-offset, 2px);
|
|
635
|
+
outline-offset: var(--slotted-control-focus-ring-offset, var(--slotted-focus-ring-offset, 2px));
|
|
635
636
|
}
|
|
636
637
|
|
|
637
638
|
/**
|
|
@@ -641,8 +642,8 @@
|
|
|
641
642
|
* shadow that appears only under focus is a cell that changes size when it
|
|
642
643
|
* is used.
|
|
643
644
|
*/
|
|
644
|
-
[data-ui
|
|
645
|
-
> [data-part
|
|
645
|
+
[data-ui-currency-field][data-part-root][data-variant='plain']:has(
|
|
646
|
+
> [data-part-input]:focus-visible
|
|
646
647
|
) {
|
|
647
648
|
box-shadow: none;
|
|
648
649
|
outline-offset: calc(var(--slotted-focus-ring-offset, 2px) * -1);
|
|
@@ -652,10 +653,10 @@
|
|
|
652
653
|
* Invalid outranks hover and is written after it for that reason. The ring is
|
|
653
654
|
* retargeted rather than repainted: every rule that draws focus reads
|
|
654
655
|
* `--slotted-focus-ring-color`, so pointing that one name at the invalid
|
|
655
|
-
*
|
|
656
|
+
* color on the element moves the outline, the shadow and both steppers'
|
|
656
657
|
* rings at once.
|
|
657
658
|
*/
|
|
658
|
-
[data-ui
|
|
659
|
+
[data-ui-currency-field][data-part-root][data-invalid] {
|
|
659
660
|
--slotted-focus-ring-color: var(
|
|
660
661
|
--slotted-currency-field-invalid-focus-ring-color,
|
|
661
662
|
var(--slotted-focus-ring-color-invalid, Highlight)
|
|
@@ -675,7 +676,7 @@
|
|
|
675
676
|
var(--slotted-tone-danger-border)
|
|
676
677
|
);
|
|
677
678
|
/*
|
|
678
|
-
* Width as well as
|
|
679
|
+
* Width as well as color (WCAG 1.4.1), the edge `text-field` draws: in
|
|
679
680
|
* `high-contrast` the danger border is the resting edge's black. The line
|
|
680
681
|
* is a shadow inside the border, so neither box nor text moves, and it
|
|
681
682
|
* takes the resting lift's place.
|
|
@@ -683,17 +684,15 @@
|
|
|
683
684
|
box-shadow: var(--_invalid-edge);
|
|
684
685
|
}
|
|
685
686
|
|
|
686
|
-
[data-ui
|
|
687
|
-
> [data-part='input']:focus-visible
|
|
688
|
-
) {
|
|
687
|
+
[data-ui-currency-field][data-part-root][data-invalid]:has(> [data-part-input]:focus-visible) {
|
|
689
688
|
box-shadow:
|
|
690
689
|
var(--_invalid-edge),
|
|
691
690
|
var(--slotted-control-shadow-focus-geometry, 0 1px 4px -1px)
|
|
692
691
|
var(--slotted-focus-ring-color, Highlight);
|
|
693
692
|
}
|
|
694
693
|
|
|
695
|
-
[data-ui
|
|
696
|
-
> [data-part
|
|
694
|
+
[data-ui-currency-field][data-part-root][data-variant='plain'][data-invalid]:has(
|
|
695
|
+
> [data-part-input]:focus-visible
|
|
697
696
|
) {
|
|
698
697
|
/* The ring lies inside the box here, over the border and an edge as wide as
|
|
699
698
|
it; the edge reaches past the ring. */
|
|
@@ -706,28 +705,29 @@
|
|
|
706
705
|
}
|
|
707
706
|
|
|
708
707
|
/*
|
|
709
|
-
* Forced
|
|
708
|
+
* Forced colors remove every box shadow, and the edge with them. The
|
|
710
709
|
* width comes back as an outline inside the border, and a focused invalid
|
|
711
710
|
* control draws its ring double, which a valid ring is not.
|
|
712
711
|
*/
|
|
713
712
|
@media (forced-colors: active) {
|
|
714
|
-
[data-ui
|
|
713
|
+
[data-ui-currency-field][data-part-root][data-invalid] {
|
|
715
714
|
outline: var(--_invalid-edge-width) solid CanvasText;
|
|
716
715
|
outline-offset: calc(
|
|
717
716
|
-1 * (var(--slotted-control-border-width, 1px) + var(--_invalid-edge-width))
|
|
718
717
|
);
|
|
719
718
|
}
|
|
720
719
|
|
|
721
|
-
[data-ui
|
|
722
|
-
> [data-part='input']:focus-visible
|
|
723
|
-
) {
|
|
720
|
+
[data-ui-currency-field][data-part-root][data-invalid]:has(> [data-part-input]:focus-visible) {
|
|
724
721
|
outline: calc(var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)) double
|
|
725
722
|
var(--slotted-focus-ring-color, Highlight);
|
|
726
|
-
outline-offset: var(
|
|
723
|
+
outline-offset: var(
|
|
724
|
+
--slotted-control-focus-ring-offset,
|
|
725
|
+
var(--slotted-focus-ring-offset, 2px)
|
|
726
|
+
);
|
|
727
727
|
}
|
|
728
728
|
|
|
729
|
-
[data-ui
|
|
730
|
-
> [data-part
|
|
729
|
+
[data-ui-currency-field][data-part-root][data-variant='plain'][data-invalid]:has(
|
|
730
|
+
> [data-part-input]:focus-visible
|
|
731
731
|
) {
|
|
732
732
|
outline: calc(var(--slotted-focus-ring-width, 2px) + var(--_invalid-edge-width)) double
|
|
733
733
|
var(--slotted-focus-ring-color, Highlight);
|
|
@@ -743,7 +743,7 @@
|
|
|
743
743
|
* ground says "not yours to change", the edge steps down to the separator
|
|
744
744
|
* weight, and the ink stays at full strength.
|
|
745
745
|
*/
|
|
746
|
-
[data-ui
|
|
746
|
+
[data-ui-currency-field][data-part-root][data-readonly] {
|
|
747
747
|
background-color: var(
|
|
748
748
|
--slotted-currency-field-readonly-background,
|
|
749
749
|
var(--slotted-tone-secondary-subtle-hover)
|
|
@@ -760,8 +760,8 @@
|
|
|
760
760
|
* because a control can be disabled by something that never told it so: a
|
|
761
761
|
* disabled `fieldset` disables every control inside it.
|
|
762
762
|
*/
|
|
763
|
-
[data-ui
|
|
764
|
-
[data-ui
|
|
763
|
+
[data-ui-currency-field][data-part-root][data-disabled],
|
|
764
|
+
[data-ui-currency-field][data-part-root]:has(> [data-part-input]:disabled) {
|
|
765
765
|
background-color: var(
|
|
766
766
|
--slotted-currency-field-disabled-background,
|
|
767
767
|
var(--slotted-disabled-background)
|
|
@@ -777,11 +777,11 @@
|
|
|
777
777
|
}
|
|
778
778
|
|
|
779
779
|
/**
|
|
780
|
-
* Muted to the
|
|
780
|
+
* Muted to the color the theme measures rather than faded by opacity: an
|
|
781
781
|
* amount nobody can read is a field nobody can check.
|
|
782
782
|
*/
|
|
783
|
-
[data-ui
|
|
784
|
-
[data-ui
|
|
783
|
+
[data-ui-currency-field][data-part-root][data-disabled] > [data-part-start],
|
|
784
|
+
[data-ui-currency-field][data-part-root][data-disabled] > [data-part-end] {
|
|
785
785
|
color: var(--slotted-disabled-foreground);
|
|
786
786
|
}
|
|
787
787
|
|
|
@@ -796,7 +796,7 @@
|
|
|
796
796
|
* digits; elsewhere the control takes the line and `align` places the
|
|
797
797
|
* amount in it.
|
|
798
798
|
*/
|
|
799
|
-
[data-ui
|
|
799
|
+
[data-ui-currency-field][data-part-root][data-appearance='display'] {
|
|
800
800
|
--_font-size: var(
|
|
801
801
|
--slotted-currency-field-display-font-size,
|
|
802
802
|
var(--slotted-font-size-4xl, 2rem)
|
|
@@ -813,7 +813,7 @@
|
|
|
813
813
|
line-height: var(--slotted-line-height-4xl, 1.2);
|
|
814
814
|
}
|
|
815
815
|
|
|
816
|
-
[data-ui
|
|
816
|
+
[data-ui-currency-field][data-part-root][data-appearance='display'] > [data-part-symbol] {
|
|
817
817
|
color: var(--slotted-currency-field-symbol-color, var(--slotted-text-muted, GrayText));
|
|
818
818
|
flex: none;
|
|
819
819
|
font-size: var(
|
|
@@ -824,18 +824,18 @@
|
|
|
824
824
|
letter-spacing: 0;
|
|
825
825
|
}
|
|
826
826
|
|
|
827
|
-
[data-ui
|
|
827
|
+
[data-ui-currency-field][data-part-root][data-appearance='display'] > [data-part-input] {
|
|
828
828
|
align-self: auto;
|
|
829
829
|
margin-block: 0;
|
|
830
830
|
}
|
|
831
831
|
|
|
832
832
|
@supports (field-sizing: content) {
|
|
833
|
-
[data-ui
|
|
833
|
+
[data-ui-currency-field][data-part-root][data-appearance='display'] {
|
|
834
834
|
inline-size: fit-content;
|
|
835
835
|
max-inline-size: 100%;
|
|
836
836
|
}
|
|
837
837
|
|
|
838
|
-
[data-ui
|
|
838
|
+
[data-ui-currency-field][data-part-root][data-appearance='display'] > [data-part-input] {
|
|
839
839
|
field-sizing: content;
|
|
840
840
|
flex: 0 1 auto;
|
|
841
841
|
min-inline-size: 1ch;
|
|
@@ -843,11 +843,11 @@
|
|
|
843
843
|
}
|
|
844
844
|
|
|
845
845
|
/**
|
|
846
|
-
* No box: a rule under the amount. On focus the rule takes the text
|
|
846
|
+
* No box: a rule under the amount. On focus the rule takes the text color
|
|
847
847
|
* and doubles, which is the focus indicator; invalid, it takes the danger
|
|
848
|
-
*
|
|
848
|
+
* color. No ground, no corner and no resting lift.
|
|
849
849
|
*/
|
|
850
|
-
[data-ui
|
|
850
|
+
[data-ui-currency-field][data-part-root][data-appearance='display'] {
|
|
851
851
|
background-color: transparent;
|
|
852
852
|
border-color: transparent;
|
|
853
853
|
border-block-end-color: var(
|
|
@@ -859,8 +859,8 @@
|
|
|
859
859
|
padding-inline: 0;
|
|
860
860
|
}
|
|
861
861
|
|
|
862
|
-
[data-ui
|
|
863
|
-
> [data-part
|
|
862
|
+
[data-ui-currency-field][data-part-root][data-appearance='display']:has(
|
|
863
|
+
> [data-part-input]:focus-visible
|
|
864
864
|
) {
|
|
865
865
|
border-block-end-color: var(--slotted-text, CanvasText);
|
|
866
866
|
box-shadow: inset 0 calc(-1 * var(--slotted-border-width-thin, 1px)) 0
|
|
@@ -868,39 +868,39 @@
|
|
|
868
868
|
outline: none;
|
|
869
869
|
}
|
|
870
870
|
|
|
871
|
-
[data-ui
|
|
871
|
+
[data-ui-currency-field][data-part-root][data-appearance='display'][data-invalid] {
|
|
872
872
|
border-block-end-color: var(--slotted-tone-danger-border, CanvasText);
|
|
873
873
|
box-shadow: none;
|
|
874
874
|
}
|
|
875
875
|
|
|
876
|
-
[data-ui
|
|
877
|
-
> [data-part
|
|
876
|
+
[data-ui-currency-field][data-part-root][data-appearance='display'][data-invalid]:has(
|
|
877
|
+
> [data-part-input]:focus-visible
|
|
878
878
|
) {
|
|
879
879
|
box-shadow: inset 0 calc(-1 * var(--_invalid-edge-width)) 0 var(--_invalid-edge-color);
|
|
880
880
|
}
|
|
881
881
|
|
|
882
|
-
[data-ui
|
|
883
|
-
> [data-part
|
|
882
|
+
[data-ui-currency-field][data-part-root][data-appearance='display']:has(
|
|
883
|
+
> [data-part-input]:disabled
|
|
884
884
|
) {
|
|
885
885
|
border-block-end-color: var(--slotted-disabled-border, GrayText);
|
|
886
886
|
}
|
|
887
887
|
|
|
888
888
|
@media (forced-colors: active) {
|
|
889
|
-
[data-ui
|
|
889
|
+
[data-ui-currency-field][data-part-root][data-appearance='display'] {
|
|
890
890
|
border-block-end-color: ButtonBorder;
|
|
891
891
|
}
|
|
892
892
|
|
|
893
|
-
/* A shadow is not painted under forced
|
|
893
|
+
/* A shadow is not painted under forced colors, so the doubled rule of
|
|
894
894
|
focus is a wider border there. */
|
|
895
|
-
[data-ui
|
|
896
|
-
> [data-part
|
|
895
|
+
[data-ui-currency-field][data-part-root][data-appearance='display']:has(
|
|
896
|
+
> [data-part-input]:focus-visible
|
|
897
897
|
) {
|
|
898
898
|
border-block-end-color: Highlight;
|
|
899
899
|
border-block-end-width: calc(2 * var(--slotted-border-width-thin, 1px));
|
|
900
900
|
}
|
|
901
901
|
|
|
902
|
-
[data-ui
|
|
903
|
-
> [data-part
|
|
902
|
+
[data-ui-currency-field][data-part-root][data-appearance='display'][data-invalid]:has(
|
|
903
|
+
> [data-part-input]:focus-visible
|
|
904
904
|
) {
|
|
905
905
|
border-block-end-color: Highlight;
|
|
906
906
|
border-block-end-width: calc(
|