@plexui/styles 0.1.31 → 0.1.33
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/dist/es/components/Accordion/Accordion.module.css +16 -0
- package/dist/es/components/Badge/Badge.module.css +41 -8
- package/dist/es/components/Breadcrumb/Breadcrumb.module.css +1 -1
- package/dist/es/components/Button/Button.module.css +117 -64
- package/dist/es/components/Button/NavigationButton.module.css +27 -0
- package/dist/es/components/Card/Card.module.css +5 -3
- package/dist/es/components/Checkbox/Checkbox.module.css +80 -41
- package/dist/es/components/DataTable/DataTable.module.css +31 -5
- package/dist/es/components/DatePicker/Calendar.module.css +267 -3
- package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +20 -0
- package/dist/es/components/DateRangePicker/Calendar.module.css +205 -3
- package/dist/es/components/Dialog/Dialog.module.css +227 -50
- package/dist/es/components/EmptyMessage/EmptyMessage.module.css +58 -14
- package/dist/es/components/Field/Field.module.css +164 -2
- package/dist/es/components/FieldError/FieldError.module.css +13 -10
- package/dist/es/components/FieldGroup/FieldGroup.module.css +64 -5
- package/dist/es/components/FileUpload/FileUpload.module.css +103 -10
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +25 -14
- package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +20 -14
- package/dist/es/components/Indicator/LoadingIndicator.module.css +41 -6
- package/dist/es/components/Input/Input.module.css +126 -25
- package/dist/es/components/InputGroup/InputGroup.module.css +1 -1
- package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +27 -147
- package/dist/es/components/Menu/Menu.module.css +162 -20
- package/dist/es/components/OTPInput/OTPInput.module.css +11 -3
- package/dist/es/components/Page/Page.module.css +140 -11
- package/dist/es/components/RadioGroup/RadioGroup.module.css +17 -11
- package/dist/es/components/Select/Select.module.css +118 -13
- package/dist/es/components/SelectControl/SelectControl.module.css +83 -11
- package/dist/es/components/ShimmerText/ShimmerText.module.css +7 -0
- package/dist/es/components/Sidebar/Sidebar.module.css +74 -18
- package/dist/es/components/Skeleton/Skeleton.module.css +4 -0
- package/dist/es/components/Slider/Slider.module.css +53 -16
- package/dist/es/components/Sortable/Sortable.module.css +13 -4
- package/dist/es/components/Switch/Switch.module.css +16 -7
- package/dist/es/components/Table/Table.module.css +4 -2
- package/dist/es/components/Tabs/Tabs.module.css +39 -6
- package/dist/es/components/TagInput/TagInput.module.css +64 -19
- package/dist/es/components/TextLink/TextLink.module.css +4 -4
- package/dist/es/components/Textarea/Textarea.module.css +1 -1
- package/dist/es/components/Toast/Toast.module.css +72 -2
- package/dist/es/components/Toolbar/Toolbar.module.css +389 -0
- package/dist/es/components/Tooltip/Tooltip.module.css +1 -1
- package/dist/es/styles/base.css +1 -1
- package/dist/es/styles/mobile-materials.css +27 -0
- package/dist/es/styles/mobile-surfaces.css +39 -0
- package/dist/es/styles/touch.css +287 -54
- package/dist/es/styles/variables-components.css +61 -0
- package/package.json +1 -1
- package/postcss/mixins.mjs +1 -1
|
@@ -19,8 +19,10 @@
|
|
|
19
19
|
background-color: var(--floating-input-background);
|
|
20
20
|
cursor: var(--cursor, text);
|
|
21
21
|
transition: border-color var(--floating-input-transition-duration) ease-in-out;
|
|
22
|
-
}
|
|
23
|
-
|
|
22
|
+
}@media (hover: hover) and (pointer: fine) {
|
|
23
|
+
.FieldFootprint:hover:where(:not(:root[data-input="touch"] *)):not([data-disabled]) {
|
|
24
|
+
border-color: var(--input-state-color, var(--floating-input-border-color-hover));
|
|
25
|
+
}
|
|
24
26
|
}.FieldFootprint[data-focused] {
|
|
25
27
|
--input-state-color: var(--floating-input-border-color-focus);
|
|
26
28
|
}.FieldFootprint[data-invalid] {
|
|
@@ -88,6 +90,7 @@
|
|
|
88
90
|
position: relative;
|
|
89
91
|
z-index: 1;
|
|
90
92
|
}/* Input element */.Input {
|
|
93
|
+
min-width: var(--floating-input-control-min-width, auto);
|
|
91
94
|
background-color: transparent;
|
|
92
95
|
outline: none;
|
|
93
96
|
border: 0;
|
|
@@ -113,6 +116,9 @@
|
|
|
113
116
|
display: flex;
|
|
114
117
|
align-items: center;
|
|
115
118
|
justify-content: center;
|
|
119
|
+
flex-shrink: 0;
|
|
120
|
+
width: var(--floating-input-clear-size, 1em);
|
|
121
|
+
height: var(--floating-input-clear-size, 1em);
|
|
116
122
|
padding: 0;
|
|
117
123
|
margin: 0;
|
|
118
124
|
border: none;
|
|
@@ -123,15 +129,17 @@
|
|
|
123
129
|
position: relative;
|
|
124
130
|
z-index: 1;
|
|
125
131
|
transition: color 150ms ease;
|
|
126
|
-
}
|
|
127
|
-
|
|
132
|
+
}@media (hover: hover) and (pointer: fine) {
|
|
133
|
+
.ClearButton:hover:where(:not(:root[data-input="touch"] *)) {
|
|
134
|
+
color: var(--color-text);
|
|
135
|
+
}
|
|
128
136
|
}/* Password reveal toggle — circular ghost button hugging the right edge */.RevealButton {
|
|
129
137
|
display: flex;
|
|
130
138
|
align-items: center;
|
|
131
139
|
justify-content: center;
|
|
132
140
|
flex-shrink: 0;
|
|
133
|
-
width: 32px;
|
|
134
|
-
height: 32px;
|
|
141
|
+
width: var(--floating-input-reveal-size, 32px);
|
|
142
|
+
height: var(--floating-input-reveal-size, 32px);
|
|
135
143
|
margin: 0 -10px 0 0;
|
|
136
144
|
padding: 0;
|
|
137
145
|
border: none;
|
|
@@ -145,9 +153,11 @@
|
|
|
145
153
|
transition:
|
|
146
154
|
color 150ms ease,
|
|
147
155
|
background-color 150ms ease;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
|
|
156
|
+
}@media (hover: hover) and (pointer: fine) {
|
|
157
|
+
.RevealButton:hover:where(:not(:root[data-input="touch"] *)) {
|
|
158
|
+
color: var(--color-text);
|
|
159
|
+
background-color: var(--color-background-secondary-ghost-hover);
|
|
160
|
+
}
|
|
151
161
|
}/* End adornment slot */.EndAdornment {
|
|
152
162
|
display: flex;
|
|
153
163
|
align-items: center;
|
|
@@ -155,11 +165,11 @@
|
|
|
155
165
|
position: relative;
|
|
156
166
|
z-index: 1;
|
|
157
167
|
}.ErrorMessage {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
168
|
+
/* Keep the desktop text-only error; mobile row context controls its icon. */
|
|
169
|
+
--field-error-icon-display: none;
|
|
170
|
+
--field-error-margin-bottom: 0px;
|
|
171
|
+
--field-error-padding-inline: var(--floating-input-gutter);
|
|
172
|
+
margin-top: var(--mobile-field-error-offset, 0.25rem);
|
|
163
173
|
}.Description {
|
|
164
174
|
color: var(--color-text-secondary);
|
|
165
175
|
font-size: var(--field-error-font-size);
|
|
@@ -186,6 +196,7 @@
|
|
|
186
196
|
.FieldFootprint[data-multiline].HasValue .LabelPositioner {
|
|
187
197
|
transform: translateY(calc(var(--floating-input-height) / -2));
|
|
188
198
|
}.Textarea {
|
|
199
|
+
min-width: var(--floating-input-control-min-width, auto);
|
|
189
200
|
background-color: transparent;
|
|
190
201
|
outline: none;
|
|
191
202
|
border: 0;
|
|
@@ -24,15 +24,17 @@
|
|
|
24
24
|
-webkit-user-select: none;
|
|
25
25
|
-moz-user-select: none;
|
|
26
26
|
user-select: none;
|
|
27
|
-
}
|
|
28
|
-
|
|
27
|
+
}@media (hover: hover) and (pointer: fine) {
|
|
28
|
+
.FieldFootprint:hover:where(:not(:root[data-input="touch"] *)):not([data-disabled]) {
|
|
29
|
+
border-color: var(--input-state-color, var(--floating-input-border-color-hover));
|
|
30
|
+
}
|
|
29
31
|
}.FieldFootprint[data-focused] {
|
|
30
32
|
--input-state-color: var(--floating-input-border-color-focus);
|
|
31
33
|
}.FieldFootprint[data-open] {
|
|
32
34
|
--input-state-color: var(--floating-input-border-color-focus);
|
|
33
35
|
}.FieldFootprint[data-invalid] {
|
|
34
36
|
--input-state-color: var(--floating-input-border-color-invalid);
|
|
35
|
-
}/* Focus ring */.FieldFootprint:focus-visible {
|
|
37
|
+
}/* Focus ring */.FieldFootprint:focus-visible:not([data-menu-pointer-focus]) {
|
|
36
38
|
outline: 2px solid var(--color-ring);
|
|
37
39
|
outline-offset: 1px;
|
|
38
40
|
}/* Label container - positioned absolutely */.TypeableLabel {
|
|
@@ -118,10 +120,13 @@
|
|
|
118
120
|
|
|
119
121
|
position: relative;
|
|
120
122
|
opacity: 0.75;
|
|
121
|
-
}.FieldFootprint
|
|
122
|
-
.FieldFootprint[data-open] .Clear,
|
|
123
|
+
}.FieldFootprint[data-open] .Clear,
|
|
123
124
|
.Clear:focus-visible {
|
|
124
125
|
opacity: 1;
|
|
126
|
+
}@media (hover: hover) and (pointer: fine) {
|
|
127
|
+
.FieldFootprint:hover:where(:not(:root[data-input="touch"] *)):not([data-disabled]) .Clear {
|
|
128
|
+
opacity: 1;
|
|
129
|
+
}
|
|
125
130
|
}/* Dropdown icon — matches SelectControl 3xl: 9×13 */.DropdownIcon {
|
|
126
131
|
position: relative;
|
|
127
132
|
flex-shrink: 0;
|
|
@@ -130,18 +135,19 @@
|
|
|
130
135
|
color: var(--color-text-secondary);
|
|
131
136
|
opacity: 0.75;
|
|
132
137
|
transition: opacity var(--floating-input-transition-duration) ease-in-out;
|
|
133
|
-
}
|
|
134
|
-
|
|
138
|
+
}@media (hover: hover) and (pointer: fine) {
|
|
139
|
+
.FieldFootprint:hover:where(:not(:root[data-input="touch"] *)):not([data-disabled]) .DropdownIcon {
|
|
140
|
+
opacity: 1;
|
|
141
|
+
}
|
|
135
142
|
}.FieldFootprint[data-open] .DropdownIcon {
|
|
136
143
|
opacity: 1;
|
|
137
|
-
}/*
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
margin-top: 0.25rem;
|
|
142
|
-
padding-inline-start: var(--floating-input-gutter);
|
|
144
|
+
}/* Shared error composition, with the desktop text-only appearance. */.ErrorMessage {
|
|
145
|
+
--field-error-icon-display: none;
|
|
146
|
+
--field-error-margin-bottom: 0.5rem;
|
|
147
|
+
--field-error-padding-inline: var(--floating-input-gutter);
|
|
148
|
+
margin-top: var(--mobile-field-error-offset, 0.25rem);
|
|
143
149
|
}.ErrorMessage:last-child {
|
|
144
|
-
margin-bottom: 0.5rem;
|
|
150
|
+
margin-bottom: var(--mobile-field-error-margin-bottom, 0.5rem);
|
|
145
151
|
}/* =============================================
|
|
146
152
|
Shape: the rounded box of the other fields
|
|
147
153
|
============================================= */.Root:not([data-pill]) {
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
@layer components {.LoadingIndicator {
|
|
2
2
|
display: inline-block;
|
|
3
3
|
position: relative;
|
|
4
|
-
width: var(--indicator-size, 1em);
|
|
5
|
-
height: var(--indicator-size, 1em);
|
|
6
|
-
|
|
4
|
+
width: var(--indicator-size, var(--indicator-default-size, 1em));
|
|
5
|
+
height: var(--indicator-size, var(--indicator-default-size, 1em));
|
|
6
|
+
container-name: plex-loading-indicator;
|
|
7
|
+
container-type: var(--indicator-container-type, normal);
|
|
8
|
+
animation: rotate var(--indicator-rotate-duration, 0.8s) var(--indicator-rotate-timing, linear) infinite;
|
|
7
9
|
transition: opacity 0.15s ease;
|
|
8
10
|
}
|
|
9
11
|
|
|
10
12
|
.LoadingIndicator::before {
|
|
11
13
|
position: absolute;
|
|
12
14
|
inset: 0;
|
|
13
|
-
display: block;
|
|
15
|
+
display: var(--indicator-ring-display, block);
|
|
14
16
|
border: var(--indicator-stroke, 2px) solid var(--indicator-color, currentcolor);
|
|
15
17
|
border-radius: 50%;
|
|
16
18
|
content: "";
|
|
@@ -22,14 +24,47 @@
|
|
|
22
24
|
position: absolute;
|
|
23
25
|
top: 0;
|
|
24
26
|
left: 50%;
|
|
25
|
-
display: block;
|
|
27
|
+
display: var(--indicator-ring-display, block);
|
|
26
28
|
width: var(--indicator-stroke, 2px);
|
|
27
29
|
height: var(--indicator-stroke, 2px);
|
|
28
30
|
border-radius: 100%;
|
|
29
31
|
margin-left: calc(var(--indicator-stroke, 2px) * -1 / 2);
|
|
30
32
|
background-color: var(--indicator-color, currentcolor);
|
|
31
33
|
content: "";
|
|
32
|
-
}
|
|
34
|
+
}/* iOS 26 Progress indicator 5425:3432. These decorative spokes are enabled
|
|
35
|
+
only by the optional touch stylesheet; desktop keeps the original ring. */.Spoke {
|
|
36
|
+
position: absolute;
|
|
37
|
+
inset: 0;
|
|
38
|
+
display: var(--indicator-spoke-display, none);
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.Spoke::before {
|
|
43
|
+
position: absolute;
|
|
44
|
+
top: 0;
|
|
45
|
+
left: 50%;
|
|
46
|
+
width: var(--indicator-stroke, calc(4 / 30 * 100%));
|
|
47
|
+
height: calc(10 / 30 * 100%);
|
|
48
|
+
border-radius: calc(4 / 30 * 100cqw);
|
|
49
|
+
background-color: var(--indicator-color, currentcolor);
|
|
50
|
+
transform: translateX(-50%);
|
|
51
|
+
content: "";
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.Spoke:nth-child(2) { transform: rotate(45deg); opacity: 0.15; }
|
|
55
|
+
.Spoke:nth-child(3) { transform: rotate(90deg); opacity: 0.27; }
|
|
56
|
+
.Spoke:nth-child(4) { transform: rotate(135deg); opacity: 0.39; }
|
|
57
|
+
.Spoke:nth-child(5) { transform: rotate(180deg); opacity: 0.51; }
|
|
58
|
+
.Spoke:nth-child(6) { transform: rotate(225deg); opacity: 0.63; }
|
|
59
|
+
.Spoke:nth-child(7) { transform: rotate(270deg); opacity: 0.75; }
|
|
60
|
+
.Spoke:nth-child(8) { transform: rotate(315deg); opacity: 0.87; }/* Small 5425:3443 is 22px with 3 × 7px spokes and 1.5px corners.
|
|
61
|
+
A size container also covers CSS sizes and indicators nested in buttons. */@container plex-loading-indicator (max-width: 22px) {
|
|
62
|
+
.Spoke::before {
|
|
63
|
+
width: var(--indicator-stroke, calc(3 / 22 * 100%));
|
|
64
|
+
height: calc(7 / 22 * 100%);
|
|
65
|
+
border-radius: calc(1.5 / 22 * 100cqw);
|
|
66
|
+
}
|
|
67
|
+
}@keyframes rotate {
|
|
33
68
|
0% {
|
|
34
69
|
transform: rotate(0deg);
|
|
35
70
|
}
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
/* NOTE: Don't add box-model size here, as the <input> defines all height sizing */
|
|
48
48
|
box-shadow: 0 0 0 1px var(--input-outline-border-color) inset;
|
|
49
49
|
}
|
|
50
|
-
@media (hover: hover) and (pointer: fine) {.Container:where([data-variant="outline"]):not([data-disabled]):hover {
|
|
50
|
+
@media (hover: hover) and (pointer: fine) {.Container:where([data-variant="outline"]):not([data-disabled]):hover:where(:not(:root[data-input="touch"] *)) {
|
|
51
51
|
box-shadow: 0 0 0 1px var(--input-outline-border-color-hover) inset;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -304,6 +304,7 @@
|
|
|
304
304
|
margin-right: var(--input-adornment-offset, -2px);
|
|
305
305
|
}.Input {
|
|
306
306
|
display: block;
|
|
307
|
+
min-width: var(--input-control-min-width, auto);
|
|
307
308
|
width: 100%;
|
|
308
309
|
height: var(--input-size);
|
|
309
310
|
/* `padding` is intrinsic to `.Input` when no adornments are present, for a few reasons. Autofill extensions are one such reason. */
|
|
@@ -408,51 +409,69 @@
|
|
|
408
409
|
:where(.Container[data-has-end-adornment]) .Input {
|
|
409
410
|
padding-right: 0;
|
|
410
411
|
}.Clear {
|
|
412
|
+
--input-clear-background: var(--color-background-primary-soft-alpha);
|
|
413
|
+
position: relative;
|
|
411
414
|
display: flex;
|
|
412
415
|
align-items: center;
|
|
413
416
|
justify-content: center;
|
|
414
417
|
flex-shrink: 0;
|
|
415
|
-
width: var(--input-clear-size);
|
|
416
|
-
height: var(--input-clear-size);
|
|
418
|
+
width: var(--input-clear-target-size, var(--input-clear-size));
|
|
419
|
+
height: var(--input-clear-target-size, var(--input-clear-size));
|
|
417
420
|
padding: 0;
|
|
418
421
|
border: 0;
|
|
419
422
|
border-radius: var(--radius-full);
|
|
420
|
-
margin-right: var(--input-clear-offset);
|
|
421
|
-
background-color:
|
|
423
|
+
margin-right: var(--input-clear-target-offset, var(--input-clear-offset));
|
|
424
|
+
background-color: transparent;
|
|
422
425
|
color: var(--color-text-primary-soft);
|
|
423
426
|
cursor: pointer;
|
|
424
|
-
transition-duration: var(--transition-duration-basic);
|
|
425
|
-
transition-property: background-color;
|
|
426
|
-
transition-timing-function: var(--transition-ease-basic);
|
|
427
427
|
}
|
|
428
428
|
|
|
429
|
-
|
|
430
|
-
|
|
429
|
+
@media (hover: hover) and (pointer: fine) {
|
|
430
|
+
.Clear:hover:where(:not(:root[data-input="touch"] *)) {
|
|
431
|
+
--input-clear-background: var(--color-background-primary-soft-alpha-hover);
|
|
432
|
+
}
|
|
431
433
|
}
|
|
432
434
|
|
|
433
435
|
.Clear:active {
|
|
434
|
-
background
|
|
436
|
+
--input-clear-background: var(--color-background-primary-soft-alpha-active);
|
|
435
437
|
}
|
|
436
438
|
|
|
437
439
|
:where(.Container[data-pill]) .Clear {
|
|
438
|
-
margin-right: var(--input-clear-pill-offset);
|
|
440
|
+
margin-right: var(--input-clear-target-offset, var(--input-clear-pill-offset));
|
|
439
441
|
}
|
|
440
442
|
|
|
441
443
|
.Clear > svg {
|
|
444
|
+
position: relative;
|
|
442
445
|
width: var(--input-clear-icon-size);
|
|
443
446
|
height: var(--input-clear-icon-size);
|
|
444
|
-
}/*
|
|
447
|
+
}/* Keep the visible circle compact while the touch target has its own flex slot. */.Clear::before {
|
|
448
|
+
content: "";
|
|
449
|
+
position: absolute;
|
|
450
|
+
width: var(--input-clear-size);
|
|
451
|
+
height: var(--input-clear-size);
|
|
452
|
+
border-radius: inherit;
|
|
453
|
+
background-color: var(--input-clear-background);
|
|
454
|
+
pointer-events: none;
|
|
455
|
+
transition-duration: var(--transition-duration-basic);
|
|
456
|
+
transition-property: background-color;
|
|
457
|
+
transition-timing-function: var(--transition-ease-basic);
|
|
458
|
+
}/* AdornmentButton — public sibling of .Clear for in-input action buttons
|
|
445
459
|
(mic toggle, copy, send, etc.). Sized from the Input's own size token:
|
|
446
460
|
input height minus one spacing step each side leaves ~4px of breathing
|
|
447
461
|
room top + bottom, so a md (32px) input gets a 24px pill, an lg (36px)
|
|
448
462
|
gets 28px, etc. Radius is --radius-full so a pill input stays
|
|
449
463
|
concentric with the button. Icon fills half the button. */.AdornmentButton {
|
|
464
|
+
--input-adornment-face-size: calc(var(--input-size) - calc(var(--spacing) * 2));
|
|
465
|
+
--input-adornment-background: transparent;
|
|
466
|
+
|
|
467
|
+
position: relative;
|
|
468
|
+
isolation: isolate;
|
|
450
469
|
display: flex;
|
|
451
470
|
align-items: center;
|
|
452
471
|
justify-content: center;
|
|
453
472
|
flex-shrink: 0;
|
|
454
|
-
width:
|
|
455
|
-
height:
|
|
473
|
+
width: var(--input-adornment-face-size);
|
|
474
|
+
height: var(--input-adornment-face-size);
|
|
456
475
|
padding: 0;
|
|
457
476
|
border: 0;
|
|
458
477
|
border-radius: var(--radius-full);
|
|
@@ -469,38 +488,40 @@
|
|
|
469
488
|
transition-timing-function: var(--transition-ease-basic);
|
|
470
489
|
}
|
|
471
490
|
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
491
|
+
@media (hover: hover) and (pointer: fine) {
|
|
492
|
+
.AdornmentButton:hover:where(:not(:root[data-input="touch"] *)) {
|
|
493
|
+
--input-adornment-background: var(--color-background-secondary-soft-alpha);
|
|
494
|
+
color: var(--color-text);
|
|
495
|
+
}
|
|
475
496
|
}
|
|
476
497
|
|
|
477
498
|
.AdornmentButton[aria-pressed="true"] {
|
|
478
|
-
background
|
|
499
|
+
--input-adornment-background: var(--color-background-primary-soft);
|
|
479
500
|
color: var(--color-text);
|
|
480
501
|
}
|
|
481
502
|
|
|
482
503
|
.AdornmentButton[data-color="caution"][aria-pressed="true"] {
|
|
483
|
-
background
|
|
504
|
+
--input-adornment-background: var(--color-background-caution-soft);
|
|
484
505
|
color: var(--color-text-caution-soft);
|
|
485
506
|
}
|
|
486
507
|
|
|
487
508
|
.AdornmentButton[data-color="danger"][aria-pressed="true"] {
|
|
488
|
-
background
|
|
509
|
+
--input-adornment-background: var(--color-background-danger-soft);
|
|
489
510
|
color: var(--color-text-danger-soft);
|
|
490
511
|
}
|
|
491
512
|
|
|
492
513
|
.AdornmentButton[data-color="success"][aria-pressed="true"] {
|
|
493
|
-
background
|
|
514
|
+
--input-adornment-background: var(--color-background-success-soft);
|
|
494
515
|
color: var(--color-text-success-soft);
|
|
495
516
|
}
|
|
496
517
|
|
|
497
518
|
.AdornmentButton[data-color="info"][aria-pressed="true"] {
|
|
498
|
-
background
|
|
519
|
+
--input-adornment-background: var(--color-background-info-soft);
|
|
499
520
|
color: var(--color-text-info-soft);
|
|
500
521
|
}
|
|
501
522
|
|
|
502
523
|
.AdornmentButton[data-color="discovery"][aria-pressed="true"] {
|
|
503
|
-
background
|
|
524
|
+
--input-adornment-background: var(--color-background-discovery-soft);
|
|
504
525
|
color: var(--color-text-discovery-soft);
|
|
505
526
|
}
|
|
506
527
|
|
|
@@ -516,7 +537,87 @@
|
|
|
516
537
|
.AdornmentButton > svg {
|
|
517
538
|
width: calc(var(--input-size) / 2);
|
|
518
539
|
height: calc(var(--input-size) / 2);
|
|
519
|
-
}
|
|
540
|
+
}/* The painted face keeps its size when the action reserves a larger touch slot. */.AdornmentButton::before {
|
|
541
|
+
content: "";
|
|
542
|
+
position: absolute;
|
|
543
|
+
z-index: -1;
|
|
544
|
+
inset: 0;
|
|
545
|
+
width: var(--input-adornment-face-size);
|
|
546
|
+
height: var(--input-adornment-face-size);
|
|
547
|
+
margin: auto;
|
|
548
|
+
border-radius: inherit;
|
|
549
|
+
background-color: var(--input-adornment-background);
|
|
550
|
+
pointer-events: none;
|
|
551
|
+
transition: background-color var(--transition-duration-basic) var(--transition-ease-basic);
|
|
552
|
+
}@media (max-width: 767px) {
|
|
553
|
+
/* Reserve the target in flow; only the outer four-pixel breathing space
|
|
554
|
+
is reclaimed. The remainder comes out of the input's available width. */
|
|
555
|
+
.Container:where(:has(> .AdornmentButton)) {
|
|
556
|
+
--input-adornment-gutter: var(--input-gutter);
|
|
557
|
+
|
|
558
|
+
padding-inline: 0;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
.Container:where(:has(> .AdornmentButton))[data-pill] {
|
|
562
|
+
--input-adornment-gutter: calc(var(--input-gutter) * var(--control-gutter-pill-scaling));
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
.Container:where(:has(> .AdornmentButton))[data-has-start-adornment] {
|
|
566
|
+
padding-inline-start: var(--input-adornment-gutter);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
.Container:where(:has(> .AdornmentButton))[data-has-end-adornment] {
|
|
570
|
+
padding-inline-end: var(--input-adornment-gutter);
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
.Container:where(:has(> .AdornmentButton)) > .Input {
|
|
574
|
+
padding-inline: var(--input-adornment-gutter);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
.Container:where(:has(> .AdornmentButton))[data-has-start-adornment] > .Input {
|
|
578
|
+
padding-inline-start: 0;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.Container:where(:has(> .AdornmentButton))[data-has-end-adornment] > .Input {
|
|
582
|
+
padding-inline-end: 0;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.Container > .AdornmentButton {
|
|
586
|
+
--input-adornment-hit-size: max(44px, var(--input-adornment-face-size));
|
|
587
|
+
--input-adornment-outer-delta: min(4px, calc((var(--input-adornment-hit-size) - var(--input-adornment-face-size)) / 2));
|
|
588
|
+
--input-adornment-content-inset: calc(var(--input-adornment-outer-delta) + (var(--input-adornment-face-size) - var(--input-size) / 2) / 2);
|
|
589
|
+
|
|
590
|
+
box-sizing: border-box;
|
|
591
|
+
width: var(--input-adornment-hit-size);
|
|
592
|
+
height: var(--input-adornment-hit-size);
|
|
593
|
+
margin-inline: 0;
|
|
594
|
+
padding-inline-end: var(--input-adornment-content-inset);
|
|
595
|
+
justify-content: flex-end;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
.Container > .AdornmentButton::before {
|
|
599
|
+
inset-inline-start: auto;
|
|
600
|
+
inset-inline-end: var(--input-adornment-outer-delta);
|
|
601
|
+
margin-inline: 0;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
.Container > .AdornmentButton:last-child {
|
|
605
|
+
margin-inline-end: calc(calc(var(--spacing) * 1) - var(--input-adornment-gutter) - var(--input-adornment-outer-delta));
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
.Container > .AdornmentButton:first-child {
|
|
609
|
+
margin-inline-start: calc(var(--input-adornment-offset, -2px) - var(--input-adornment-outer-delta));
|
|
610
|
+
margin-inline-end: max(calc(var(--input-gap) * -1), calc(calc(var(--spacing) * 1) - var(--input-adornment-gutter)));
|
|
611
|
+
padding-inline-start: var(--input-adornment-content-inset);
|
|
612
|
+
padding-inline-end: 0;
|
|
613
|
+
justify-content: flex-start;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
.Container > .AdornmentButton:first-child::before {
|
|
617
|
+
inset-inline-start: var(--input-adornment-outer-delta);
|
|
618
|
+
inset-inline-end: auto;
|
|
619
|
+
}
|
|
620
|
+
}@keyframes native-autofill-in {
|
|
520
621
|
0% {
|
|
521
622
|
opacity: 1;
|
|
522
623
|
}
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
|
|
36
36
|
/* Also while focused: the focus rule above is more specific than [data-invalid] */
|
|
37
37
|
}
|
|
38
|
-
@media (hover: hover) and (pointer: fine) {.InputGroup:where([data-variant="outline"]):not([data-disabled]):hover {
|
|
38
|
+
@media (hover: hover) and (pointer: fine) {.InputGroup:where([data-variant="outline"]):not([data-disabled]):hover:where(:not(:root[data-input="touch"] *)) {
|
|
39
39
|
box-shadow: 0 0 0 1px var(--input-outline-border-color-hover) inset;
|
|
40
40
|
}
|
|
41
41
|
}
|