@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
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
height: 224px;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
@media (min-width:
|
|
15
|
+
@media (min-width: 768px) {.CalendarContainer {
|
|
16
16
|
width: calc(var(--calendar-width) * 2 + 32px);
|
|
17
17
|
}
|
|
18
18
|
}.Previous {
|
|
@@ -85,6 +85,8 @@
|
|
|
85
85
|
}.CalendarWrapper {
|
|
86
86
|
overflow: hidden;
|
|
87
87
|
padding: 10px 12px 12px;
|
|
88
|
+
}.CalendarViewport {
|
|
89
|
+
display: contents;
|
|
88
90
|
}.CalendarRange {
|
|
89
91
|
transition: transform 0.25s var(--cubic-move);
|
|
90
92
|
}.ButtonText {
|
|
@@ -257,8 +259,10 @@ background-color: var(--alpha-08);
|
|
|
257
259
|
opacity 0.15s var(--cubic-enter);
|
|
258
260
|
}
|
|
259
261
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
+
@media (hover: hover) and (pointer: fine) {
|
|
263
|
+
.InteractiveDay:hover:where(:not(:root[data-input="touch"] *))::before {
|
|
264
|
+
opacity: 1;
|
|
265
|
+
}
|
|
262
266
|
}
|
|
263
267
|
|
|
264
268
|
.InteractiveDay[disabled] {
|
|
@@ -294,5 +298,203 @@ background-color: var(--alpha-08);
|
|
|
294
298
|
width: 150px;
|
|
295
299
|
padding: calc(var(--spacing) * 2);
|
|
296
300
|
border-right: 1px solid var(--color-border);
|
|
301
|
+
}/* The caption keeps its compact desktop abbreviations. */.LongDayLabel {
|
|
302
|
+
display: none;
|
|
303
|
+
}/* Keep 44px edge circles concentric with the popup corners. */@media (max-width: 767px) {
|
|
304
|
+
.Popover[role="dialog"],
|
|
305
|
+
.CalendarWrapper {
|
|
306
|
+
--calendar-gutter: clamp(3px, calc((100vw - 308px) / 4), 16px);
|
|
307
|
+
--calendar-inner-padding: min(max(0px, calc(var(--menu-radius, 32px) - 22px)), var(--calendar-gutter));
|
|
308
|
+
--calendar-header-height: calc(44px + 2 * var(--calendar-inner-padding));
|
|
309
|
+
--calendar-caption-inset: 96px;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.Popover[role="dialog"] {
|
|
313
|
+
/* The narrow-screen radius follows the available inset; it is a fit
|
|
314
|
+
constraint, not a separate measured native corner radius. */
|
|
315
|
+
--popover-radius: calc(22px + var(--calendar-inner-padding));
|
|
316
|
+
|
|
317
|
+
background: color-mix(in srgb, var(--color-surface-elevated) 70%, transparent);
|
|
318
|
+
box-shadow: var(--menu-shadow, var(--shadow), var(--shadow-hairline));
|
|
319
|
+
backdrop-filter: blur(50px);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.CalendarWrapper {
|
|
323
|
+
/* Preserve the outer collision gutter; the inner inset follows the
|
|
324
|
+
corner geometry while seven 44px targets still fit at 320px. */
|
|
325
|
+
box-sizing: border-box;
|
|
326
|
+
width: min(370px, calc(100vw - 2 * var(--calendar-gutter)), var(--radix-popover-content-available-width, 370px));
|
|
327
|
+
padding: 0 var(--calendar-inner-padding);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.CalendarContainer {
|
|
331
|
+
--cell-size: 44px;
|
|
332
|
+
--cell-vertical-gutter: 7px;
|
|
333
|
+
--calendar-width: min(350px, calc(100vw - 2 * var(--calendar-gutter) - 2 * var(--calendar-inner-padding)), calc(var(--radix-popover-content-available-width, 370px) - 2 * var(--calendar-inner-padding)));
|
|
334
|
+
|
|
335
|
+
width: var(--calendar-width);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/* The month slides inside a stationary viewport. Only the title band
|
|
339
|
+
reserves the navigation area; weekday labels and days keep the full width. */
|
|
340
|
+
.CalendarViewport {
|
|
341
|
+
position: absolute;
|
|
342
|
+
inset: 0;
|
|
343
|
+
display: block;
|
|
344
|
+
clip-path: polygon(
|
|
345
|
+
0 0,
|
|
346
|
+
calc(100% - var(--calendar-caption-inset)) 0,
|
|
347
|
+
calc(100% - var(--calendar-caption-inset)) var(--calendar-header-height),
|
|
348
|
+
100% var(--calendar-header-height),
|
|
349
|
+
100% 100%,
|
|
350
|
+
0 100%
|
|
351
|
+
);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.Calendar {
|
|
355
|
+
--cell-size: 44px;
|
|
356
|
+
--cell-vertical-gutter: 7px;
|
|
357
|
+
|
|
358
|
+
box-sizing: border-box;
|
|
359
|
+
padding-bottom: var(--calendar-inner-padding);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.Previous,
|
|
363
|
+
.Next {
|
|
364
|
+
top: var(--calendar-inner-padding);
|
|
365
|
+
left: auto;
|
|
366
|
+
background: none;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.Previous {
|
|
370
|
+
right: 44px;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.Next {
|
|
374
|
+
right: 0;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.Previous::before,
|
|
378
|
+
.Previous::after,
|
|
379
|
+
.Next::before,
|
|
380
|
+
.Next::after {
|
|
381
|
+
display: none;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/* Base Button supplies the active circle. Idle and hover remain
|
|
385
|
+
transparent; the navigation target stays 44px throughout. */
|
|
386
|
+
.Previous button[type="button"],
|
|
387
|
+
.Next button[type="button"] {
|
|
388
|
+
--button-size: 44px;
|
|
389
|
+
--button-gutter: 0px;
|
|
390
|
+
--button-icon-size: 24px;
|
|
391
|
+
--button-text-color: var(--color-text-primary);
|
|
392
|
+
--button-text-color-hover: var(--color-text-primary);
|
|
393
|
+
--button-radius: var(--radius-full);
|
|
394
|
+
--button-mobile-material-background: transparent;
|
|
395
|
+
--button-mobile-material-hover: transparent;
|
|
396
|
+
--button-mobile-material-active: var(--button-background-color-active);
|
|
397
|
+
--button-mobile-material-shadow: none;
|
|
398
|
+
--button-mobile-material-backdrop-filter: none;
|
|
399
|
+
--button-mobile-material-opacity: 0;
|
|
400
|
+
--button-mobile-material-scale: 1;
|
|
401
|
+
|
|
402
|
+
width: 44px;
|
|
403
|
+
padding: 0;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/* Keep the agreed Phone focus treatment: real keyboard focus, no drawn ring. */
|
|
407
|
+
.Previous button[type="button"]::after,
|
|
408
|
+
.Next button[type="button"]::after {
|
|
409
|
+
display: none;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/* Equal insets above and below the 44px navigation targets. */
|
|
413
|
+
.MonthLabel {
|
|
414
|
+
box-sizing: border-box;
|
|
415
|
+
justify-content: flex-start;
|
|
416
|
+
height: var(--calendar-header-height);
|
|
417
|
+
padding: 0 var(--calendar-caption-inset) 0 max(0px, calc(var(--field-row-padding-inline, 16px) - var(--calendar-inner-padding)));
|
|
418
|
+
margin: 0;
|
|
419
|
+
font-size: 17px;
|
|
420
|
+
font-weight: 590;
|
|
421
|
+
line-height: 22px;
|
|
422
|
+
letter-spacing: -0.43px;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.Week {
|
|
426
|
+
display: grid;
|
|
427
|
+
grid-template-columns: repeat(7, var(--cell-size));
|
|
428
|
+
justify-content: space-between;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.WeekdayHeader {
|
|
432
|
+
align-items: center;
|
|
433
|
+
height: 20px;
|
|
434
|
+
margin-bottom: 3px;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.DayLabel {
|
|
438
|
+
width: var(--cell-size);
|
|
439
|
+
height: 18px;
|
|
440
|
+
color: var(--color-text-tertiary);
|
|
441
|
+
font-size: 13px;
|
|
442
|
+
font-weight: 590;
|
|
443
|
+
line-height: 18px;
|
|
444
|
+
text-transform: uppercase;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.ShortDayLabel {
|
|
448
|
+
display: none;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.LongDayLabel {
|
|
452
|
+
display: inline;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.InteractiveDay {
|
|
456
|
+
padding: 0;
|
|
457
|
+
font-size: 17px;
|
|
458
|
+
line-height: 22px;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.TodayDot {
|
|
462
|
+
display: none;
|
|
463
|
+
}
|
|
464
|
+
}@media (max-width: 767px) {
|
|
465
|
+
.CalendarContainer {
|
|
466
|
+
--calendar-day-gap: max(0px, calc((var(--calendar-width) - 7 * var(--cell-size)) / 6));
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
/* Keep the same 44px columns as DatePicker. Paint only the gap between
|
|
470
|
+
cells, so the translucent range fill never stacks over a day. */
|
|
471
|
+
.Day::after {
|
|
472
|
+
position: absolute;
|
|
473
|
+
top: 0;
|
|
474
|
+
bottom: 0;
|
|
475
|
+
left: 100%;
|
|
476
|
+
width: var(--calendar-day-gap);
|
|
477
|
+
background-color: transparent;
|
|
478
|
+
content: "";
|
|
479
|
+
pointer-events: none;
|
|
480
|
+
transition: background-color 0.15s var(--cubic-enter);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/* A first-month trail fades to the left and still needs its right bridge.
|
|
484
|
+
The last-month trail already paints a right fade, so do not overlap it. */
|
|
485
|
+
.Day[data-is-in-range]:not([data-is-end]):not([data-is-last-range-trail]):not(:last-child)::after, :where([data-theme="light"]) .Day[data-is-in-range]:not([data-is-end]):not([data-is-last-range-trail]):not(:last-child)::after {
|
|
486
|
+
background-color: var(--alpha-06);
|
|
487
|
+
}
|
|
488
|
+
:where([data-theme="dark"]) .Day[data-is-in-range]:not([data-is-end]):not([data-is-last-range-trail]):not(:last-child)::after {
|
|
489
|
+
background-color: var(--alpha-08);
|
|
490
|
+
}
|
|
491
|
+
}@media (prefers-reduced-motion: reduce) {
|
|
492
|
+
.CalendarContainer {
|
|
493
|
+
--calendar-height-duration: 0ms;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.CalendarRange {
|
|
497
|
+
transition: none;
|
|
498
|
+
}
|
|
297
499
|
}
|
|
298
500
|
}
|
|
@@ -69,10 +69,12 @@
|
|
|
69
69
|
max-height: var(--dialog-panel-max-height);
|
|
70
70
|
overflow: auto;
|
|
71
71
|
border-radius: var(--dialog-panel-radius);
|
|
72
|
-
background: var(--color-surface-elevated);
|
|
72
|
+
background: var(--dialog-panel-background, var(--color-surface-elevated));
|
|
73
73
|
box-shadow: var(--shadow-lg), var(--shadow-hairline);
|
|
74
74
|
padding: 1.25rem 1.25rem var(--dialog-panel-padding-bottom);
|
|
75
75
|
pointer-events: auto;
|
|
76
|
+
/* A released drag holds here until the owner starts exit or returns to rest. */
|
|
77
|
+
transform: var(--dialog-panel-drag-transform, none);
|
|
76
78
|
}
|
|
77
79
|
|
|
78
80
|
/* With a Body, only the body scrolls: the header and footer stay in view */
|
|
@@ -81,14 +83,14 @@
|
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
.Transition[data-entering] .Panel {
|
|
84
|
-
opacity: 0;
|
|
86
|
+
opacity: var(--dialog-panel-hidden-opacity, 0);
|
|
85
87
|
transform: var(--dialog-panel-hidden-transform);
|
|
86
88
|
}
|
|
87
89
|
|
|
88
90
|
.Transition[data-entering-active] .Panel,
|
|
89
91
|
.Transition[data-entering][data-interrupted] .Panel {
|
|
90
92
|
opacity: 1;
|
|
91
|
-
transform: scale(1) translateY(0);
|
|
93
|
+
transform: var(--dialog-panel-drag-transform, scale(1) translateY(0));
|
|
92
94
|
transition:
|
|
93
95
|
opacity var(--dialog-enter-duration) var(--cubic-enter),
|
|
94
96
|
transform var(--dialog-enter-duration) var(--cubic-enter);
|
|
@@ -96,12 +98,12 @@
|
|
|
96
98
|
|
|
97
99
|
.Transition[data-exiting] .Panel {
|
|
98
100
|
opacity: 1;
|
|
99
|
-
transform: scale(1) translateY(0);
|
|
101
|
+
transform: var(--dialog-panel-drag-transform, scale(1) translateY(0));
|
|
100
102
|
}
|
|
101
103
|
|
|
102
104
|
.Transition[data-exiting-active] .Panel,
|
|
103
105
|
.Transition[data-exiting][data-interrupted] .Panel {
|
|
104
|
-
opacity: 0;
|
|
106
|
+
opacity: var(--dialog-panel-hidden-opacity, 0);
|
|
105
107
|
transform: var(--dialog-panel-hidden-transform);
|
|
106
108
|
transition:
|
|
107
109
|
opacity var(--dialog-exit-duration) var(--dialog-exit-easing),
|
|
@@ -111,7 +113,7 @@
|
|
|
111
113
|
scrollbar-width: thin;
|
|
112
114
|
scrollbar-color: var(--scrollbar-color) transparent;
|
|
113
115
|
}/* =============================================
|
|
114
|
-
Placement: `placement` everywhere, `mobilePlacement` at
|
|
116
|
+
Placement: `placement` everywhere, `mobilePlacement` at 767px and below
|
|
115
117
|
============================================= */.Content:where([data-placement="top"]) {
|
|
116
118
|
--dialog-content-align: flex-start;
|
|
117
119
|
--dialog-content-padding: min(12vh, 6rem) 1rem 1rem;
|
|
@@ -154,8 +156,12 @@
|
|
|
154
156
|
--dialog-panel-max-height: none;
|
|
155
157
|
--dialog-panel-radius: 0;
|
|
156
158
|
--dialog-panel-padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
|
|
157
|
-
--dialog-panel-hidden-transform: translateY(
|
|
158
|
-
|
|
159
|
+
--dialog-panel-hidden-transform: translateY(100%);
|
|
160
|
+
--dialog-panel-hidden-opacity: 1;
|
|
161
|
+
--dialog-enter-duration: var(--motion-enter-large);
|
|
162
|
+
--dialog-exit-duration: var(--motion-exit-large);
|
|
163
|
+
--dialog-exit-easing: var(--cubic-enter);
|
|
164
|
+
}@media (width <= 767px) {
|
|
159
165
|
.Content,
|
|
160
166
|
.Content[data-pill] {
|
|
161
167
|
--dialog-panel-corner: var(--dialog-mobile-radius);
|
|
@@ -200,10 +206,11 @@
|
|
|
200
206
|
--dialog-panel-max-height: none;
|
|
201
207
|
--dialog-panel-radius: 0;
|
|
202
208
|
--dialog-panel-padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
|
|
203
|
-
--dialog-panel-hidden-transform: translateY(
|
|
204
|
-
--dialog-
|
|
205
|
-
--dialog-
|
|
206
|
-
--dialog-exit-
|
|
209
|
+
--dialog-panel-hidden-transform: translateY(100%);
|
|
210
|
+
--dialog-panel-hidden-opacity: 1;
|
|
211
|
+
--dialog-enter-duration: var(--motion-enter-large);
|
|
212
|
+
--dialog-exit-duration: var(--motion-exit-large);
|
|
213
|
+
--dialog-exit-easing: var(--cubic-enter);
|
|
207
214
|
}
|
|
208
215
|
}.CloseButton {
|
|
209
216
|
position: absolute;
|
|
@@ -222,18 +229,45 @@
|
|
|
222
229
|
transition: background-color 0.2s var(--cubic-enter), color 0.2s var(--cubic-enter);
|
|
223
230
|
}
|
|
224
231
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
232
|
+
@media (hover: hover) and (pointer: fine) {
|
|
233
|
+
.CloseButton:hover:where(:not(:root[data-input="touch"] *)) {
|
|
234
|
+
background: var(--dialog-close-background-hover);
|
|
235
|
+
color: var(--color-text);
|
|
236
|
+
}
|
|
228
237
|
}
|
|
229
238
|
|
|
230
239
|
.CloseButton:focus-visible {
|
|
231
240
|
outline: 2px solid var(--color-text);
|
|
232
241
|
outline-offset: 2px;
|
|
233
|
-
}.Content[data-
|
|
242
|
+
}/* NavigationButton supplies behavior/glyphs; Dialog keeps its established close face. */.Content .CloseButton[data-navigation-action] {
|
|
243
|
+
--button-size: 2rem;
|
|
244
|
+
--button-uniform-size: 2rem;
|
|
245
|
+
--navigation-button-icon-size: 20px;
|
|
246
|
+
padding: 0;
|
|
247
|
+
border-radius: 0.5rem;
|
|
248
|
+
background: var(--dialog-close-background);
|
|
249
|
+
color: var(--color-text-tertiary);
|
|
250
|
+
transition: background-color 0.2s var(--cubic-enter), color 0.2s var(--cubic-enter);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
@media (hover: hover) and (pointer: fine) {
|
|
254
|
+
.Content .CloseButton[data-navigation-action]:hover:where(:not(:root[data-input="touch"] *)) {
|
|
255
|
+
background: var(--dialog-close-background-hover);
|
|
256
|
+
color: var(--color-text);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.Content .CloseButton[data-navigation-action]::after { display: none; }
|
|
261
|
+
|
|
262
|
+
.Content .CloseButton[data-navigation-action]:focus-visible {
|
|
263
|
+
outline: 2px solid var(--color-text);
|
|
264
|
+
outline-offset: 2px;
|
|
265
|
+
}@media (min-width: 768px) {
|
|
266
|
+
.Content .CloseButton[data-navigation-action]::before {
|
|
267
|
+
display: none;
|
|
268
|
+
}
|
|
269
|
+
}.Content[data-pill] .CloseButton {
|
|
234
270
|
border-radius: var(--radius-full);
|
|
235
|
-
}.CloseIcon {
|
|
236
|
-
display: block;
|
|
237
271
|
}.Header {
|
|
238
272
|
display: flex;
|
|
239
273
|
flex-shrink: 0;
|
|
@@ -275,7 +309,16 @@
|
|
|
275
309
|
font-size: 0.875rem;
|
|
276
310
|
line-height: 1.5;
|
|
277
311
|
color: var(--color-text-secondary);
|
|
278
|
-
}@media (width <=
|
|
312
|
+
}@media (width <= 767px) {
|
|
313
|
+
.Panel,
|
|
314
|
+
.Body {
|
|
315
|
+
scrollbar-width: none;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.Panel::-webkit-scrollbar, .Body::-webkit-scrollbar {
|
|
319
|
+
display: none;
|
|
320
|
+
}
|
|
321
|
+
|
|
279
322
|
.CloseButton {
|
|
280
323
|
top: 0.5rem;
|
|
281
324
|
right: 0.5rem;
|
|
@@ -291,30 +334,51 @@
|
|
|
291
334
|
position: absolute;
|
|
292
335
|
inset: calc((var(--dialog-mobile-action-size) - var(--dialog-mobile-close-size)) / 2);
|
|
293
336
|
border-radius: inherit;
|
|
294
|
-
background: var(--dialog-mobile-close-background);
|
|
337
|
+
background: var(--mobile-glass-background, var(--dialog-mobile-close-background));
|
|
338
|
+
background-image: var(--mobile-glass-sheen, none);
|
|
339
|
+
box-shadow: var(--mobile-glass-shadow, 0 0 #00000000);
|
|
340
|
+
backdrop-filter: var(--mobile-glass-backdrop-filter, none);
|
|
295
341
|
content: "";
|
|
296
342
|
pointer-events: none;
|
|
297
343
|
transition: background-color 0.2s var(--cubic-enter);
|
|
298
344
|
}
|
|
299
345
|
|
|
300
|
-
|
|
301
|
-
|
|
346
|
+
@media (hover: hover) and (pointer: fine) {
|
|
347
|
+
.CloseButton:hover:where(:not(:root[data-input="touch"] *)) {
|
|
348
|
+
background: transparent;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
@media (hover: hover) and (pointer: fine) {
|
|
353
|
+
.CloseButton:hover:where(:not(:root[data-input="touch"] *))::before {
|
|
354
|
+
background-color: var(--mobile-glass-background-hover, var(--color-background-secondary-soft-alpha-hover));
|
|
355
|
+
}
|
|
302
356
|
}
|
|
303
357
|
|
|
304
|
-
.CloseButton:
|
|
305
|
-
background: var(--color-background-secondary-soft-alpha-hover);
|
|
358
|
+
.CloseButton:active::before {
|
|
359
|
+
background-color: var(--mobile-glass-background-active, var(--color-background-secondary-soft-alpha-hover));
|
|
306
360
|
}
|
|
307
361
|
|
|
308
362
|
.CloseButton:focus-visible {
|
|
309
363
|
outline-offset: -4px;
|
|
310
364
|
}
|
|
311
365
|
|
|
312
|
-
.
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
366
|
+
.Content .CloseButton[data-navigation-action] {
|
|
367
|
+
--button-size: var(--dialog-mobile-action-size);
|
|
368
|
+
--button-uniform-size: var(--dialog-mobile-action-size);
|
|
369
|
+
--navigation-button-icon-size: var(--dialog-mobile-close-icon-size);
|
|
370
|
+
border-radius: var(--radius-full);
|
|
371
|
+
background: transparent;
|
|
372
|
+
color: var(--color-text-secondary);
|
|
316
373
|
}
|
|
317
374
|
|
|
375
|
+
@media (hover: hover) and (pointer: fine) {
|
|
376
|
+
.Content .CloseButton[data-navigation-action]:hover:where(:not(:root[data-input="touch"] *)) { background: transparent; }
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.Content .CloseButton[data-navigation-action]:focus-visible { outline-offset: -4px; }
|
|
380
|
+
|
|
381
|
+
|
|
318
382
|
.Panel:has(> .CloseButton) > .Header > :first-child {
|
|
319
383
|
padding-inline-end: calc(var(--dialog-mobile-action-size) - 0.75rem);
|
|
320
384
|
}
|
|
@@ -325,12 +389,15 @@
|
|
|
325
389
|
|
|
326
390
|
.Footer > * {
|
|
327
391
|
width: 100%;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.Footer > :where(button, a, [role="link"]) {
|
|
328
395
|
--button-size: var(--dialog-mobile-action-size);
|
|
329
396
|
--button-radius: var(--dialog-mobile-action-radius);
|
|
330
397
|
--button-font-size: var(--dialog-mobile-action-font-size);
|
|
331
398
|
--button-gutter: var(--control-gutter-xl);
|
|
332
399
|
}
|
|
333
|
-
}/* iOS presentations are opt-in; placement and all desktop styles remain independent. */@media (width <=
|
|
400
|
+
}/* iOS presentations are opt-in; placement and all desktop styles remain independent. */@media (width <= 767px) {
|
|
334
401
|
.Content[data-mobile-variant="alert"] {
|
|
335
402
|
--dialog-content-align: center;
|
|
336
403
|
--dialog-content-justify: center;
|
|
@@ -383,7 +450,7 @@
|
|
|
383
450
|
gap: 10px;
|
|
384
451
|
}
|
|
385
452
|
|
|
386
|
-
.Content[data-mobile-variant] .Footer >
|
|
453
|
+
.Content[data-mobile-variant] .Footer > :where(button, a, [role="link"]) {
|
|
387
454
|
--button-size: var(--dialog-alert-action-height);
|
|
388
455
|
--button-font-size: var(--dialog-mobile-type-size);
|
|
389
456
|
--button-gutter: 16px;
|
|
@@ -417,7 +484,7 @@
|
|
|
417
484
|
|
|
418
485
|
.Content[data-mobile-variant="sheet"] {
|
|
419
486
|
--field-group-radius: 26px;
|
|
420
|
-
--dialog-panel-max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 16px);
|
|
487
|
+
--dialog-panel-max-height: calc(100dvh - var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) - 16px);
|
|
421
488
|
--dialog-panel-radius: var(--dialog-sheet-radius) var(--dialog-sheet-radius) 0 0;
|
|
422
489
|
}
|
|
423
490
|
|
|
@@ -438,6 +505,7 @@
|
|
|
438
505
|
|
|
439
506
|
.Content[data-mobile-variant="sheet"] .Header {
|
|
440
507
|
position: relative;
|
|
508
|
+
z-index: 2;
|
|
441
509
|
gap: 0;
|
|
442
510
|
min-height: 70px;
|
|
443
511
|
padding: 16px 68px 10px;
|
|
@@ -451,7 +519,7 @@
|
|
|
451
519
|
width: 36px;
|
|
452
520
|
height: 5px;
|
|
453
521
|
border-radius: var(--radius-full);
|
|
454
|
-
background: var(--color-background-secondary-soft-alpha);
|
|
522
|
+
background: var(--mobile-grabber-color, var(--color-background-secondary-soft-alpha));
|
|
455
523
|
content: "";
|
|
456
524
|
}
|
|
457
525
|
|
|
@@ -464,14 +532,19 @@
|
|
|
464
532
|
}
|
|
465
533
|
|
|
466
534
|
/* The reference title sits 13px into the 44px toolbar, 2px below its geometric center. */
|
|
535
|
+
.Content[data-mobile-variant="alert"] .Title,
|
|
536
|
+
.Content[data-mobile-variant="sheet"] .Title {
|
|
537
|
+
font-weight: 590;
|
|
538
|
+
}
|
|
539
|
+
|
|
467
540
|
.Content[data-mobile-variant="sheet"] .Title {
|
|
468
541
|
transform: translateY(2px);
|
|
469
542
|
}
|
|
470
543
|
|
|
471
544
|
.Content[data-mobile-variant="sheet"] .CloseButton {
|
|
472
|
-
z-index:
|
|
473
|
-
top: 16px;
|
|
474
|
-
inset-inline-start: 16px;
|
|
545
|
+
z-index: 3;
|
|
546
|
+
top: var(--dialog-sheet-action-inset-block, 16px);
|
|
547
|
+
inset-inline-start: var(--dialog-sheet-action-inset-inline, 16px);
|
|
475
548
|
inset-inline-end: auto;
|
|
476
549
|
width: var(--dialog-sheet-close-size);
|
|
477
550
|
height: var(--dialog-sheet-close-size);
|
|
@@ -481,43 +554,110 @@
|
|
|
481
554
|
inset: 0;
|
|
482
555
|
}
|
|
483
556
|
|
|
557
|
+
.Content[data-mobile-variant="sheet"] .CloseButton[data-navigation-action] {
|
|
558
|
+
--button-size: var(--dialog-sheet-close-size);
|
|
559
|
+
--button-uniform-size: var(--dialog-sheet-close-size);
|
|
560
|
+
--navigation-button-icon-size: var(--dialog-sheet-close-icon-size);
|
|
561
|
+
/* The glass Close glyph uses the same label role as Page NavigationButton close (IMG_5453). */
|
|
562
|
+
color: var(--color-text);
|
|
563
|
+
}
|
|
564
|
+
|
|
484
565
|
.Content[data-mobile-variant="sheet"] .HeaderAction {
|
|
485
|
-
|
|
486
|
-
inset-
|
|
566
|
+
z-index: 3;
|
|
567
|
+
top: var(--dialog-sheet-action-inset-block, 16px);
|
|
568
|
+
inset-inline-end: var(--dialog-sheet-action-inset-inline, 16px);
|
|
487
569
|
}
|
|
488
570
|
|
|
489
571
|
.Content[data-mobile-variant="sheet"] .HeaderAction > button {
|
|
490
572
|
--button-size: var(--dialog-sheet-close-size);
|
|
491
|
-
--button-icon-size: 24px;
|
|
492
573
|
}
|
|
493
574
|
|
|
494
|
-
.Content[data-mobile-variant="sheet"] .
|
|
495
|
-
|
|
496
|
-
|
|
575
|
+
.Content[data-mobile-variant="sheet"] .HeaderAction > button:not([data-navigation-action]) {
|
|
576
|
+
--button-icon-size: 24px;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.Content[data-mobile-variant="sheet"] .HeaderAction > button:where(:not([data-disabled], [data-mobile-material="flat"])):where([data-color="primary"], [data-color="secondary"]):where([data-variant="soft"], [data-variant="ghost"]) {
|
|
580
|
+
--button-mobile-material-background: var(--mobile-glass-background);
|
|
581
|
+
--button-mobile-material-hover: var(--mobile-glass-background-hover);
|
|
582
|
+
--button-mobile-material-active: var(--mobile-glass-background-active);
|
|
583
|
+
--button-mobile-material-sheen: var(--mobile-glass-sheen);
|
|
584
|
+
--button-mobile-material-shadow: var(--mobile-glass-shadow);
|
|
585
|
+
--button-mobile-material-backdrop-filter: var(--mobile-glass-backdrop-filter);
|
|
586
|
+
--button-mobile-material-opacity: 1;
|
|
587
|
+
--button-mobile-material-scale: 1;
|
|
497
588
|
}
|
|
498
589
|
|
|
590
|
+
|
|
499
591
|
.Content[data-mobile-variant="sheet"] .Body {
|
|
500
592
|
margin-inline: 0;
|
|
501
593
|
padding: 16px 16px max(16px, env(safe-area-inset-bottom, 0px));
|
|
502
594
|
}
|
|
503
595
|
|
|
504
|
-
|
|
505
|
-
|
|
596
|
+
/* A phone Toolbar takes the place of the Sheet's bar. The header keeps naming the dialog. */
|
|
597
|
+
.Panel:has(> [data-toolbar][data-placement="top"]) > .Header {
|
|
598
|
+
position: absolute;
|
|
599
|
+
width: 1px;
|
|
600
|
+
height: 1px;
|
|
601
|
+
min-height: 0;
|
|
602
|
+
margin: -1px;
|
|
603
|
+
padding: 0;
|
|
604
|
+
overflow: hidden;
|
|
605
|
+
clip-path: inset(50%);
|
|
606
|
+
white-space: nowrap;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
.Panel:has(> [data-toolbar][data-placement="top"]) > .CloseButton,
|
|
610
|
+
.Panel:has(> [data-toolbar][data-placement="bottom"]) > .Footer {
|
|
611
|
+
display: none;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
.Content[data-mobile-variant="sheet"] .Panel > .Body {
|
|
615
|
+
margin-top: calc(-1 * var(--dialog-header-height, 0px));
|
|
616
|
+
margin-bottom: calc(-1 * var(--dialog-footer-height, 0px));
|
|
617
|
+
padding-top: calc(16px + var(--dialog-header-height, 0px));
|
|
618
|
+
padding-bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + var(--dialog-footer-height, 0px));
|
|
619
|
+
scroll-padding-top: calc(16px + var(--dialog-header-height, 0px));
|
|
620
|
+
scroll-padding-bottom: calc(16px + var(--dialog-footer-height, 0px));
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/* Keep the bar material behind its controls without making Header a
|
|
624
|
+
backdrop root: HeaderAction and the sibling Close sample the same content. */
|
|
625
|
+
.Content[data-mobile-variant="sheet"] .Header::after {
|
|
626
|
+
position: absolute;
|
|
627
|
+
z-index: -1;
|
|
628
|
+
inset: 0;
|
|
629
|
+
border-radius: var(--dialog-panel-radius);
|
|
630
|
+
content: "";
|
|
631
|
+
pointer-events: none;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
.Content[data-mobile-variant="sheet"] .Header::after,
|
|
635
|
+
.Content[data-mobile-variant="sheet"] .Footer {
|
|
636
|
+
background: var(--page-bar-veil);
|
|
637
|
+
backdrop-filter: blur(20px) saturate(180%);
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
.Content[data-mobile-variant="sheet"] .Header[data-background="solid"]::after,
|
|
641
|
+
.Content[data-mobile-variant="sheet"] .Footer[data-background="solid"] {
|
|
642
|
+
background: var(--dialog-panel-background, var(--color-surface-elevated));
|
|
643
|
+
backdrop-filter: none;
|
|
506
644
|
}
|
|
507
645
|
|
|
508
646
|
.Content[data-mobile-variant="sheet"] .Footer {
|
|
509
|
-
|
|
647
|
+
position: relative;
|
|
648
|
+
z-index: 2;
|
|
649
|
+
padding: 12px 16px max(16px, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
|
|
510
650
|
}
|
|
511
651
|
|
|
512
|
-
.Content[data-mobile-variant="sheet"] .Footer >
|
|
652
|
+
.Content[data-mobile-variant="sheet"] .Footer > :where(button, a, [role="link"]) {
|
|
513
653
|
--button-size: var(--dialog-sheet-action-height);
|
|
514
654
|
min-height: var(--dialog-sheet-action-height);
|
|
515
655
|
padding-block: 14px;
|
|
516
656
|
}
|
|
517
657
|
|
|
518
658
|
.Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .Header {
|
|
519
|
-
min-height: calc(54px + env(safe-area-inset-top, 0px));
|
|
520
|
-
padding-top: env(safe-area-inset-top, 0px);
|
|
659
|
+
min-height: calc(54px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
|
|
660
|
+
padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
|
|
521
661
|
}
|
|
522
662
|
|
|
523
663
|
.Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .Header::before {
|
|
@@ -526,8 +666,33 @@
|
|
|
526
666
|
|
|
527
667
|
.Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .CloseButton,
|
|
528
668
|
.Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .HeaderAction {
|
|
529
|
-
top: env(safe-area-inset-top, 0px);
|
|
669
|
+
top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
}/* Surface roles are independent of alert/sheet geometry and bar materials. */@media (max-width: 767px) {
|
|
673
|
+
.Content {
|
|
674
|
+
--mobile-surface-primary: var(--mobile-surface-elevated-plain-primary, var(--color-surface-elevated));
|
|
675
|
+
--mobile-surface-secondary: var(--mobile-surface-elevated-plain-secondary, var(--color-background-secondary-soft-alpha));
|
|
676
|
+
--mobile-surface-tertiary: var(--mobile-surface-elevated-plain-tertiary, var(--color-surface-elevated-secondary));
|
|
677
|
+
--dialog-panel-background: var(--mobile-surface-primary);
|
|
678
|
+
--field-group-background: var(--mobile-surface-secondary);
|
|
679
|
+
--file-upload-list-background: transparent;
|
|
680
|
+
--file-upload-list-border-width: 1px;
|
|
681
|
+
--mobile-neutral-outline-background: initial;
|
|
682
|
+
--mobile-neutral-outline-hover: initial;
|
|
683
|
+
--mobile-neutral-outline-active: initial;
|
|
684
|
+
--page-bar-veil: color-mix(in srgb, var(--dialog-panel-background) var(--page-bar-veil-opacity), transparent);
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
.Content[data-surface="grouped"] {
|
|
688
|
+
--mobile-surface-primary: var(--mobile-surface-elevated-grouped-primary, var(--color-surface-elevated-secondary));
|
|
689
|
+
--mobile-surface-secondary: var(--mobile-surface-elevated-grouped-secondary, var(--color-surface-elevated));
|
|
690
|
+
--mobile-surface-tertiary: var(--mobile-surface-elevated-grouped-tertiary, var(--color-surface-elevated-secondary));
|
|
691
|
+
--file-upload-list-background: var(--mobile-surface-secondary);
|
|
692
|
+
--file-upload-list-border-width: 0px;
|
|
693
|
+
--mobile-neutral-outline-background: var(--mobile-surface-secondary);
|
|
694
|
+
--mobile-neutral-outline-hover: color-mix(in srgb, var(--mobile-surface-secondary) 96%, var(--color-text));
|
|
695
|
+
--mobile-neutral-outline-active: color-mix(in srgb, var(--mobile-surface-secondary) 94%, var(--color-text));
|
|
530
696
|
}
|
|
531
|
-
|
|
532
697
|
}
|
|
533
698
|
}
|