@plexui/styles 0.1.32 → 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 +214 -49
- 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 +44 -4
- 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 +10 -10
- 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 +280 -57
- package/dist/es/styles/variables-components.css +60 -0
- package/package.json +1 -1
- package/postcss/mixins.mjs +1 -1
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
.Container:where([data-variant="outline"]) {
|
|
18
18
|
box-shadow: 0 0 0 1px var(--input-outline-border-color) inset;
|
|
19
19
|
}
|
|
20
|
-
@media (hover: hover) and (pointer: fine) {.Container:where([data-variant="outline"]):not([data-disabled]):hover {
|
|
20
|
+
@media (hover: hover) and (pointer: fine) {.Container:where([data-variant="outline"]):not([data-disabled]):hover:where(:not(:root[data-input="touch"] *)) {
|
|
21
21
|
box-shadow: 0 0 0 1px var(--input-outline-border-color-hover) inset;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -69,7 +69,9 @@ border-bottom: 1px solid rgba(255, 255, 255, 0.07);
|
|
|
69
69
|
background-color: rgba(0, 0, 0, 0.1);
|
|
70
70
|
}:where([data-theme="dark"]) .ToolbarSeparator {
|
|
71
71
|
background-color: rgba(255, 255, 255, 0.1);
|
|
72
|
-
}.ToolbarButton {
|
|
72
|
+
}.ToolbarButton.ToolbarButton {
|
|
73
|
+
--button-size: 24px;
|
|
74
|
+
--button-uniform-size: 24px;
|
|
73
75
|
display: flex;
|
|
74
76
|
align-items: center;
|
|
75
77
|
justify-content: center;
|
|
@@ -80,7 +82,6 @@ background-color: rgba(255, 255, 255, 0.1);
|
|
|
80
82
|
border: 0;
|
|
81
83
|
border-radius: var(--control-radius-sm);
|
|
82
84
|
background: none;
|
|
83
|
-
color: var(--color-text-secondary);
|
|
84
85
|
cursor: pointer;
|
|
85
86
|
font-size: 16px;
|
|
86
87
|
transition-duration: var(--transition-duration-basic);
|
|
@@ -88,18 +89,22 @@ background-color: rgba(255, 255, 255, 0.1);
|
|
|
88
89
|
transition-timing-function: var(--transition-ease-basic);
|
|
89
90
|
}
|
|
90
91
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
.ToolbarButton.ToolbarButton:where(:not([data-variant])) {
|
|
93
|
+
color: var(--color-text-secondary);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@media (hover: hover) and (pointer: fine) {.ToolbarButton.ToolbarButton:where(:not([data-variant])):hover:where(:not(:root[data-input="touch"] *)) {
|
|
97
|
+
background-color: var(--color-background-primary-ghost-hover);
|
|
98
|
+
color: var(--color-text);
|
|
94
99
|
}
|
|
95
100
|
}
|
|
96
101
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
102
|
+
.ToolbarButton.ToolbarButton:where(:not([data-variant])):where([data-active="true"]) {
|
|
103
|
+
background-color: var(--color-background-primary-ghost-active);
|
|
104
|
+
color: var(--color-text);
|
|
105
|
+
}
|
|
101
106
|
|
|
102
|
-
.ToolbarButton:disabled {
|
|
107
|
+
.ToolbarButton.ToolbarButton:disabled {
|
|
103
108
|
cursor: not-allowed;
|
|
104
109
|
opacity: 0.5;
|
|
105
110
|
}.ToolbarEnd {
|
|
@@ -151,147 +156,22 @@ background-color: rgba(255, 255, 255, 0.1);
|
|
|
151
156
|
|
|
152
157
|
.EditorContent li + li {
|
|
153
158
|
margin-top: 2px;
|
|
154
|
-
}.
|
|
155
|
-
position: fixed;
|
|
156
|
-
inset: 0;
|
|
157
|
-
z-index: 9999;
|
|
158
|
-
background-color: rgba(0, 0, 0, 0.4);
|
|
159
|
-
}.LinkDialogContent {
|
|
160
|
-
position: fixed;
|
|
161
|
-
top: 50%;
|
|
162
|
-
left: 50%;
|
|
163
|
-
z-index: 10000;
|
|
164
|
-
display: flex;
|
|
165
|
-
flex-direction: column;
|
|
166
|
-
width: 450px;
|
|
167
|
-
max-width: calc(100vw - 32px);
|
|
168
|
-
transform: translate(-50%, -50%);
|
|
169
|
-
border-radius: 12px;
|
|
170
|
-
background-color: var(--color-surface, #fff);
|
|
171
|
-
box-shadow:
|
|
172
|
-
0 0 0 0.5px rgba(0, 0, 0, 0.08),
|
|
173
|
-
0 10px 15px -3px rgba(0, 0, 0, 0.1),
|
|
174
|
-
0 4px 6px -4px rgba(0, 0, 0, 0.1);
|
|
175
|
-
}.LinkDialogContent, :where([data-theme="light"]) .LinkDialogContent {
|
|
176
|
-
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
177
|
-
}:where([data-theme="dark"]) .LinkDialogContent {
|
|
178
|
-
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
179
|
-
}.LinkDialogBody {
|
|
180
|
-
display: flex;
|
|
181
|
-
flex-direction: column;
|
|
182
|
-
gap: 20px;
|
|
183
|
-
padding: 20px;
|
|
184
|
-
}.LinkDialogTitle {
|
|
185
|
-
margin: 0;
|
|
186
|
-
font-size: 18px;
|
|
187
|
-
font-weight: var(--font-weight-semibold);
|
|
188
|
-
line-height: 1.6;
|
|
189
|
-
color: var(--color-text);
|
|
190
|
-
}.LinkDialogFields {
|
|
159
|
+
}/* The shared Dialog owns the panel, controls, and mobile Sheet presentation. */.LinkDialogFields {
|
|
191
160
|
display: flex;
|
|
192
161
|
flex-direction: column;
|
|
193
162
|
gap: 16px;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
}.LinkDialogLabel {
|
|
199
|
-
font-size: 14px;
|
|
200
|
-
font-weight: var(--font-weight-semibold);
|
|
201
|
-
line-height: 20px;
|
|
202
|
-
color: var(--color-text);
|
|
203
|
-
}.LinkDialogInput {
|
|
204
|
-
display: flex;
|
|
205
|
-
align-items: center;
|
|
206
|
-
height: 32px;
|
|
207
|
-
padding: 0 12px;
|
|
208
|
-
border: 0;
|
|
209
|
-
border-radius: var(--control-radius-md);
|
|
210
|
-
background: none;
|
|
211
|
-
box-shadow: 0 0 0 1px var(--input-outline-border-color) inset;
|
|
212
|
-
color: var(--color-text);
|
|
213
|
-
font-size: 14px;
|
|
214
|
-
font-weight: var(--font-weight-normal);
|
|
215
|
-
line-height: 20px;
|
|
216
|
-
transition-duration: var(--transition-duration-basic);
|
|
217
|
-
transition-property: box-shadow;
|
|
218
|
-
transition-timing-function: var(--transition-ease-basic);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.LinkDialogInput:focus {
|
|
222
|
-
outline: 0;
|
|
223
|
-
box-shadow: 0 0 0 1px var(--input-outline-border-color-focus) inset;
|
|
163
|
+
}@media (max-width: 767px) {
|
|
164
|
+
.ToolbarGroup {
|
|
165
|
+
overflow-x: auto;
|
|
166
|
+
overscroll-behavior-x: contain;
|
|
224
167
|
}
|
|
225
168
|
|
|
226
|
-
.
|
|
227
|
-
|
|
169
|
+
.ToolbarButton.ToolbarButton {
|
|
170
|
+
--button-size: 44px;
|
|
171
|
+
--button-uniform-size: 44px;
|
|
172
|
+
width: 44px;
|
|
173
|
+
height: 44px;
|
|
174
|
+
flex-shrink: 0;
|
|
228
175
|
}
|
|
229
|
-
|
|
230
|
-
.LinkDialogInput::placeholder {
|
|
231
|
-
color: var(--input-placeholder-text-color);
|
|
232
|
-
}.LinkDialogFooter {
|
|
233
|
-
display: flex;
|
|
234
|
-
justify-content: space-between;
|
|
235
|
-
align-items: center;
|
|
236
|
-
padding: 16px 20px;
|
|
237
|
-
}.LinkDialogFooterTrailing {
|
|
238
|
-
display: flex;
|
|
239
|
-
align-items: center;
|
|
240
|
-
gap: 8px;
|
|
241
|
-
margin-left: auto;
|
|
242
|
-
}.LinkDialogButtonRemove {
|
|
243
|
-
display: flex;
|
|
244
|
-
align-items: center;
|
|
245
|
-
justify-content: center;
|
|
246
|
-
height: 32px;
|
|
247
|
-
padding: 0 12px;
|
|
248
|
-
border: 0;
|
|
249
|
-
border-radius: var(--control-radius-md);
|
|
250
|
-
background-color: var(--color-background-danger-solid, #dc2626);
|
|
251
|
-
color: #fff;
|
|
252
|
-
cursor: pointer;
|
|
253
|
-
font-size: 14px;
|
|
254
|
-
font-weight: var(--font-weight-medium);
|
|
255
|
-
line-height: 20px;
|
|
256
|
-
transition-duration: var(--transition-duration-basic);
|
|
257
|
-
transition-property: background-color;
|
|
258
|
-
transition-timing-function: var(--transition-ease-basic);
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
@media (hover: hover) and (pointer: fine) {.LinkDialogButtonRemove:hover {
|
|
262
|
-
background-color: var(--color-background-danger-solid-hover, #b91c1c);
|
|
263
|
-
}
|
|
264
|
-
}.LinkDialogButtonCancel,
|
|
265
|
-
.LinkDialogButtonSave {
|
|
266
|
-
display: flex;
|
|
267
|
-
align-items: center;
|
|
268
|
-
justify-content: center;
|
|
269
|
-
height: 32px;
|
|
270
|
-
padding: 0 12px;
|
|
271
|
-
border: 0;
|
|
272
|
-
border-radius: var(--control-radius-md);
|
|
273
|
-
cursor: pointer;
|
|
274
|
-
font-size: 14px;
|
|
275
|
-
font-weight: var(--font-weight-medium);
|
|
276
|
-
line-height: 20px;
|
|
277
|
-
transition-duration: var(--transition-duration-basic);
|
|
278
|
-
transition-property: background-color;
|
|
279
|
-
transition-timing-function: var(--transition-ease-basic);
|
|
280
|
-
}.LinkDialogButtonCancel {
|
|
281
|
-
background-color: var(--color-background-primary-soft-alpha, rgba(0, 0, 0, 0.08));
|
|
282
|
-
color: var(--color-text);
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
@media (hover: hover) and (pointer: fine) {.LinkDialogButtonCancel:hover {
|
|
286
|
-
background-color: var(--color-background-primary-soft-alpha-hover, rgba(0, 0, 0, 0.12));
|
|
287
|
-
}
|
|
288
|
-
}.LinkDialogButtonSave {
|
|
289
|
-
background-color: var(--color-background-primary-solid, #181818);
|
|
290
|
-
color: var(--color-text-on-primary, #fff);
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
@media (hover: hover) and (pointer: fine) {.LinkDialogButtonSave:hover {
|
|
294
|
-
background-color: var(--color-background-primary-solid-hover, #333);
|
|
295
|
-
}
|
|
296
176
|
}
|
|
297
177
|
}
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
z-index: 50;
|
|
10
10
|
overflow: auto;
|
|
11
11
|
width: var(--menu-width, auto);
|
|
12
|
-
min-width: var(--menu-min-width, 300px);
|
|
12
|
+
min-width: var(--menu-min-width, var(--menu-default-min-width, 300px));
|
|
13
13
|
max-width: var(--radix-dropdown-menu-content-available-width);
|
|
14
14
|
max-height: min(
|
|
15
15
|
var(--radix-dropdown-menu-content-available-height),
|
|
16
16
|
var(--menu-max-height, 1200px)
|
|
17
17
|
);
|
|
18
|
-
padding: var(--menu-gutter);
|
|
18
|
+
padding: var(--menu-gutter) var(--menu-padding-inline, var(--menu-gutter));
|
|
19
19
|
border-radius: var(--menu-radius);
|
|
20
20
|
background: var(--color-surface-elevated);
|
|
21
|
-
box-shadow: var(--shadow), var(--shadow-hairline);
|
|
21
|
+
box-shadow: var(--menu-shadow, var(--shadow), var(--shadow-hairline));
|
|
22
22
|
color: var(--color-text);
|
|
23
23
|
font-size: var(--menu-font-size);
|
|
24
24
|
line-height: var(--menu-line-height);
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
outline: none;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
@media (hover: hover) and (pointer: fine) {.MenuItem:hover {
|
|
102
|
+
@media (hover: hover) and (pointer: fine) {.MenuItem:hover:where(:not(:root[data-input="touch"] *)) {
|
|
103
103
|
/* Prevent links from changing colors */
|
|
104
104
|
color: var(--color-text);
|
|
105
105
|
}
|
|
@@ -113,23 +113,25 @@
|
|
|
113
113
|
background: var(--menu-item-background-color);
|
|
114
114
|
content: "";
|
|
115
115
|
opacity: 0;
|
|
116
|
-
transform: scale(var(--scale, 0.98));
|
|
116
|
+
transform: scale(var(--menu-item-press-scale, var(--scale, 0.98)));
|
|
117
117
|
transition-duration: var(--transition-duration-basic);
|
|
118
118
|
transition-property: opacity, background-color, transform;
|
|
119
119
|
transition-timing-function: var(--cubic-enter);
|
|
120
120
|
will-change: opacity, transform;
|
|
121
121
|
}
|
|
122
122
|
.MenuItem[data-state="open"]::before, .MenuItem[data-highlighted]::before {
|
|
123
|
-
opacity: 1;
|
|
123
|
+
opacity: var(--menu-item-highlight-opacity, 1);
|
|
124
124
|
transform: scale(1);
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
@media (hover: hover) and (pointer: fine) {
|
|
128
|
+
.MenuItem[data-state="open"]:has(.ItemActions:hover:where(:not(:root[data-input="touch"] *)))::before, .MenuItem[data-highlighted]:has(.ItemActions:hover:where(:not(:root[data-input="touch"] *)))::before {
|
|
129
|
+
opacity: 0.4;
|
|
130
|
+
}
|
|
129
131
|
}
|
|
130
132
|
|
|
131
|
-
.MenuItem[data-state="open"]:not(:has(.ItemActions:
|
|
132
|
-
transform: scale(var(--scale, 0.98));
|
|
133
|
+
.MenuItem[data-state="open"]:not(:has(.ItemActions:active)):active::before, .MenuItem[data-highlighted]:not(:has(.ItemActions:active)):active::before {
|
|
134
|
+
transform: scale(var(--menu-item-press-scale, var(--scale, 0.98)));
|
|
133
135
|
}
|
|
134
136
|
|
|
135
137
|
.MenuItem[data-state="open"] .ItemActions, .MenuItem[data-highlighted] .ItemActions {
|
|
@@ -149,7 +151,7 @@
|
|
|
149
151
|
color: var(--color-text-danger-ghost);
|
|
150
152
|
}
|
|
151
153
|
|
|
152
|
-
@media (hover: hover) and (pointer: fine) {.MenuItem[data-danger]:hover {
|
|
154
|
+
@media (hover: hover) and (pointer: fine) {.MenuItem[data-danger]:hover:where(:not(:root[data-input="touch"] *)) {
|
|
153
155
|
color: var(--color-text-danger-ghost-hover);
|
|
154
156
|
}
|
|
155
157
|
}/* Two-line item: label over description, the same anatomy a Select option
|
|
@@ -179,6 +181,12 @@
|
|
|
179
181
|
transition-duration: var(--transition-duration-basic);
|
|
180
182
|
transition-property: opacity;
|
|
181
183
|
transition-timing-function: var(--cubic-enter);
|
|
184
|
+
}/* Secondary actions must be discoverable on touch without highlighting a row. */@media (hover: none), (pointer: coarse) {
|
|
185
|
+
.ItemActions {
|
|
186
|
+
opacity: 1;
|
|
187
|
+
}
|
|
188
|
+
}:where(:root[data-input="touch"]) .ItemActions {
|
|
189
|
+
opacity: 1;
|
|
182
190
|
}.Separator {
|
|
183
191
|
height: 1px;
|
|
184
192
|
margin: var(--menu-separator-gutter);
|
|
@@ -350,26 +358,31 @@
|
|
|
350
358
|
[data-entering] .CheckboxCircle::after {
|
|
351
359
|
animation-duration: 0s;
|
|
352
360
|
}.MenuList[data-layout="horizontal"] {
|
|
353
|
-
--h-icon-size: 20px;
|
|
354
|
-
--h-padding: calc(var(--spacing) * 2);
|
|
355
|
-
--h-gap: calc(var(--spacing) * 1);
|
|
361
|
+
--h-icon-size: var(--menu-horizontal-icon-size, 20px);
|
|
362
|
+
--h-padding: var(--menu-horizontal-item-padding, calc(var(--spacing) * 2));
|
|
363
|
+
--h-gap: var(--menu-horizontal-item-gap, calc(var(--spacing) * 1));
|
|
356
364
|
|
|
357
365
|
display: flex;
|
|
358
366
|
flex-direction: row;
|
|
359
367
|
min-width: auto;
|
|
368
|
+
gap: var(--menu-horizontal-gap, normal);
|
|
369
|
+
padding-inline: var(--menu-horizontal-padding-inline, var(--menu-gutter));
|
|
360
370
|
}
|
|
361
371
|
|
|
362
372
|
.MenuList[data-layout="horizontal"][data-size="sm"] {
|
|
363
|
-
--h-icon-size: 16px;
|
|
364
|
-
--h-padding: calc(var(--spacing) * 1.5);
|
|
373
|
+
--h-icon-size: var(--menu-horizontal-icon-size, 16px);
|
|
374
|
+
--h-padding: var(--menu-horizontal-item-padding, calc(var(--spacing) * 1.5));
|
|
365
375
|
}
|
|
366
376
|
|
|
367
377
|
.MenuList[data-layout="horizontal"][data-size="lg"] {
|
|
368
|
-
--h-icon-size: 24px;
|
|
369
|
-
--h-padding: calc(var(--spacing) * 2.5);
|
|
378
|
+
--h-icon-size: var(--menu-horizontal-icon-size, 24px);
|
|
379
|
+
--h-padding: var(--menu-horizontal-item-padding, calc(var(--spacing) * 2.5));
|
|
370
380
|
}
|
|
371
381
|
|
|
372
382
|
.MenuList[data-layout="horizontal"] .MenuItem {
|
|
383
|
+
--menu-item-radius: var(--menu-horizontal-item-radius, calc(var(--menu-radius) - var(--menu-gutter)));
|
|
384
|
+
display: var(--menu-horizontal-item-display, block);
|
|
385
|
+
height: var(--menu-horizontal-item-height, auto);
|
|
373
386
|
flex: 1 0 auto;
|
|
374
387
|
flex-direction: column;
|
|
375
388
|
align-items: center;
|
|
@@ -385,8 +398,9 @@
|
|
|
385
398
|
flex-direction: column;
|
|
386
399
|
align-items: center;
|
|
387
400
|
gap: var(--h-gap);
|
|
388
|
-
font-size: var(--font-text-2xs-size);
|
|
389
|
-
|
|
401
|
+
font-size: var(--menu-horizontal-label-size, var(--font-text-2xs-size));
|
|
402
|
+
font-weight: var(--menu-horizontal-label-weight, inherit);
|
|
403
|
+
line-height: var(--menu-horizontal-label-leading, var(--font-text-2xs-line-height));
|
|
390
404
|
}
|
|
391
405
|
|
|
392
406
|
.MenuList[data-layout="horizontal"] .PressableInner > svg {
|
|
@@ -406,5 +420,133 @@
|
|
|
406
420
|
height: auto;
|
|
407
421
|
align-self: stretch;
|
|
408
422
|
margin: calc(var(--spacing) * 1) 0;
|
|
423
|
+
}/* The shared check icon stays hidden for desktop radio indicators. */.SelectionCheck {
|
|
424
|
+
width: 16px;
|
|
425
|
+
height: 16px;
|
|
426
|
+
}.RadioIndicator .SelectionCheck {
|
|
427
|
+
display: none;
|
|
428
|
+
}/* iPhone menu items share label/subtitle and selection geometry. */@media (max-width: 767px) {
|
|
429
|
+
.MenuList:not([data-layout="horizontal"]) :is(.MenuItem, .MenuItemContent) {
|
|
430
|
+
letter-spacing: var(--menu-letter-spacing, -0.43px);
|
|
431
|
+
overflow-wrap: anywhere;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
/* Intrinsic label height and a full-row pressed surface share the 44px target. */
|
|
435
|
+
.MenuList:not([data-layout="horizontal"]) .MenuItem {
|
|
436
|
+
display: grid;
|
|
437
|
+
grid-template-columns: minmax(0, 1fr);
|
|
438
|
+
align-content: center;
|
|
439
|
+
min-height: 44px;
|
|
440
|
+
padding-block: 0;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
.MenuList:not([data-layout="horizontal"]) .MenuItem::before {
|
|
444
|
+
position: absolute;
|
|
445
|
+
inset: 0;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.MenuList:not([data-layout="horizontal"]) .MenuItem > .PressableInner {
|
|
449
|
+
grid-area: 1 / 1;
|
|
450
|
+
min-width: 0;
|
|
451
|
+
padding-block: 10px;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.MenuList:not([data-layout="horizontal"]) .MenuItem:has(.ItemDescription),
|
|
455
|
+
.MenuList:not([data-layout="horizontal"]) .MenuItemContent:has(.ItemDescription) {
|
|
456
|
+
font-weight: var(--font-weight-normal);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.MenuList:not([data-layout="horizontal"]) .ItemLeading {
|
|
460
|
+
gap: 2px;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.MenuList:not([data-layout="horizontal"]) .ItemDescription {
|
|
464
|
+
font-size: 13px;
|
|
465
|
+
line-height: 18px;
|
|
466
|
+
letter-spacing: normal;
|
|
467
|
+
color: var(--menu-description-color, var(--color-text-secondary));
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
/* The native text subtitle is one line; rich description slots retain their layout. */
|
|
471
|
+
.MenuList:not([data-layout="horizontal"]) .ItemDescription:not(:has(*)) {
|
|
472
|
+
overflow: hidden;
|
|
473
|
+
text-overflow: ellipsis;
|
|
474
|
+
white-space: nowrap;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.MenuList:not([data-layout="horizontal"]) .MenuItem[data-disabled] {
|
|
478
|
+
color: var(--menu-disabled-label-color, var(--color-text-tertiary));
|
|
479
|
+
opacity: 1;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
.MenuList:not([data-layout="horizontal"]) .MenuItem[data-disabled] .ItemDescription {
|
|
483
|
+
color: var(--menu-disabled-description-color, var(--color-text-tertiary));
|
|
409
484
|
}
|
|
485
|
+
|
|
486
|
+
.MenuList:not([data-layout="horizontal"]) .MenuItem[data-disabled] :is(.RadioIndicator, .CheckboxIndicator) {
|
|
487
|
+
color: var(--color-text);
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.MenuList:not([data-layout="horizontal"]) :is(.RadioItem, .CheckboxItem) {
|
|
491
|
+
gap: var(--menu-item-gap);
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.MenuList:not([data-layout="horizontal"]) :is(.RadioIndicator, .CheckboxIndicator) {
|
|
495
|
+
width: 24px;
|
|
496
|
+
height: 22px;
|
|
497
|
+
/* The reference keeps a 22px selection slot beside the 20px label line. */
|
|
498
|
+
border-radius: 0;
|
|
499
|
+
box-shadow: none;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.MenuList:not([data-layout="horizontal"]) .RadioIndicatorActive::before,
|
|
503
|
+
.MenuList:not([data-layout="horizontal"]) .RadioIndicatorActive::after {
|
|
504
|
+
display: none;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.MenuList:not([data-layout="horizontal"]) .CheckboxCircle {
|
|
508
|
+
width: 24px;
|
|
509
|
+
height: 22px;
|
|
510
|
+
border-radius: 0;
|
|
511
|
+
background: none;
|
|
512
|
+
color: inherit;
|
|
513
|
+
animation: none;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/* iOS 26 kit Menu Items (Menu has Selection): the checkmark leads the row, so the desktop end
|
|
517
|
+
position moves to the start on a phone. */
|
|
518
|
+
.MenuList:not([data-layout="horizontal"]) :is(.RadioItem, .CheckboxItem)[data-indicator-position="end"] {
|
|
519
|
+
justify-content: flex-start;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.MenuList:not([data-layout="horizontal"]) [data-indicator-position="end"] :is(.RadioIndicator, .RadioIndicatorActive, .CheckboxIndicator) {
|
|
523
|
+
order: -1;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
/* The 17pt checkmark of the kit: about 15 × 14.5px of ink. */
|
|
527
|
+
.MenuList:not([data-layout="horizontal"]) .SelectionCheck {
|
|
528
|
+
display: block;
|
|
529
|
+
flex-shrink: 0;
|
|
530
|
+
width: 26px;
|
|
531
|
+
height: 26px;
|
|
532
|
+
color: inherit;
|
|
533
|
+
}
|
|
534
|
+
}/* Phone submenu geometry is solved against the whole viewport/footer boundary.
|
|
535
|
+
Retain the primitive's collection and focus behavior, not its side-space width. */@media (max-width: 767px) {
|
|
536
|
+
.MenuList[data-submenu]:not([data-submenu-positioned]) {
|
|
537
|
+
visibility: hidden;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
.MenuList[data-submenu-phone] {
|
|
541
|
+
width: var(--menu-phone-width, -moz-max-content);
|
|
542
|
+
width: var(--menu-phone-width, max-content);
|
|
543
|
+
min-width: min(var(--menu-phone-min-width, var(--menu-default-min-width, 238px)), var(--menu-phone-max-width));
|
|
544
|
+
max-width: var(--menu-phone-max-width);
|
|
545
|
+
max-height: min(var(--menu-max-height, 1200px), var(--menu-phone-max-height));
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.SubMenuItem[data-state="open"] > .PressableInner > .SubTriggerIcon {
|
|
549
|
+
transform: rotate(90deg);
|
|
550
|
+
}
|
|
551
|
+
}
|
|
410
552
|
}
|
|
@@ -24,8 +24,10 @@
|
|
|
24
24
|
justify-content: center;
|
|
25
25
|
cursor: text;
|
|
26
26
|
transition: border-color var(--floating-input-transition-duration) ease-in-out;
|
|
27
|
-
}
|
|
28
|
-
|
|
27
|
+
}@media (hover: hover) and (pointer: fine) {
|
|
28
|
+
.Cell:hover:where(:not(:root[data-input="touch"] *)):not([data-disabled]) {
|
|
29
|
+
border-color: var(--floating-input-border-color-hover);
|
|
30
|
+
}
|
|
29
31
|
}.CellFocused {
|
|
30
32
|
border-color: var(--floating-input-border-color-focus);
|
|
31
33
|
}.Cell[data-invalid] {
|
|
@@ -61,7 +63,13 @@
|
|
|
61
63
|
}.CellFilled .DotPlaceholder {
|
|
62
64
|
display: none;
|
|
63
65
|
}.ErrorMessage {
|
|
64
|
-
margin-top: var(--field-error-margin-top);
|
|
66
|
+
margin-top: var(--mobile-field-error-offset, var(--field-error-margin-top));
|
|
67
|
+
}@media (max-width: 767px) {
|
|
68
|
+
.ErrorMessage {
|
|
69
|
+
--mobile-field-error-icon-display: none;
|
|
70
|
+
--field-error-text-align: center;
|
|
71
|
+
--field-error-content-justify: center;
|
|
72
|
+
}
|
|
65
73
|
}@media (prefers-reduced-motion: reduce) {
|
|
66
74
|
.Cell {
|
|
67
75
|
transition: none;
|