@plexui/styles 0.1.34 → 0.1.35
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 +12 -1
- package/dist/es/components/Alert/Alert.module.css +101 -0
- package/dist/es/components/Badge/Badge.module.css +37 -0
- package/dist/es/components/Breadcrumb/Breadcrumb.module.css +29 -0
- package/dist/es/components/Button/Button.module.css +53 -0
- package/dist/es/components/Button/NavigationButton.module.css +17 -0
- package/dist/es/components/ButtonGroup/ButtonGroup.module.css +227 -20
- package/dist/es/components/Card/Card.module.css +9 -0
- package/dist/es/components/CodeBlock/CodeBlock.module.css +14 -1
- package/dist/es/components/ColorPicker/ColorPicker.module.css +19 -1
- package/dist/es/components/DatePicker/Calendar.module.css +262 -2
- package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +10 -0
- package/dist/es/components/DateRangePicker/Calendar.module.css +207 -3
- package/dist/es/components/DateRangePicker/Trigger.module.css +17 -2
- package/dist/es/components/Dialog/Dialog.module.css +660 -13
- package/dist/es/components/EmptyMessage/EmptyMessage.module.css +21 -0
- package/dist/es/components/Field/Field.module.css +387 -2
- package/dist/es/components/FieldGroup/FieldGroup.module.css +129 -3
- package/dist/es/components/FileUpload/FileUpload.module.css +74 -1
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +19 -1
- package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +12 -1
- package/dist/es/components/IndexBar/IndexBar.module.css +146 -0
- package/dist/es/components/Input/Input.module.css +129 -1
- package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +18 -0
- package/dist/es/components/Menu/Menu.module.css +267 -7
- package/dist/es/components/OTPInput/OTPInput.module.css +6 -1
- package/dist/es/components/Page/Page.module.css +302 -10
- package/dist/es/components/PhoneLayout/PhoneLayout.module.css +10 -0
- package/dist/es/components/Popover/Popover.module.css +7 -0
- package/dist/es/components/Select/Select.module.css +148 -0
- package/dist/es/components/SelectControl/SelectControl.module.css +113 -1
- package/dist/es/components/Sidebar/Sidebar.module.css +354 -20
- package/dist/es/components/Slider/Slider.module.css +80 -0
- package/dist/es/components/SwipeActions/SwipeActions.module.css +166 -0
- package/dist/es/components/Switch/Switch.module.css +59 -4
- package/dist/es/components/TabBar/TabBar.module.css +255 -10
- package/dist/es/components/Tabs/Tabs.module.css +166 -1
- package/dist/es/components/TagInput/TagInput.module.css +50 -9
- package/dist/es/components/Textarea/Textarea.module.css +6 -0
- package/dist/es/components/Tip/Tip.module.css +456 -0
- package/dist/es/components/Toast/Toast.module.css +148 -5
- package/dist/es/components/Toolbar/Toolbar.module.css +642 -3
- package/dist/es/styles/mobile-materials.css +94 -5
- package/dist/es/styles/mobile-surfaces.css +43 -0
- package/dist/es/styles/touch.css +618 -8
- package/dist/es/styles/variables-components.css +125 -5
- package/package.json +1 -1
- package/postcss/parseLightDark.mjs +20 -2
- package/postcss/phoneLayoutScope.mjs +134 -0
- package/postcss.config.mjs +3 -0
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
@layer components {.Transition {
|
|
2
2
|
position: relative;
|
|
3
|
+
}/* A phone dialog portaled out of any PhoneLayout carries the phone scope itself (Content `layout="phone"`). */.PhoneScope {
|
|
4
|
+
display: contents;
|
|
3
5
|
}.Overlay {
|
|
4
6
|
position: fixed;
|
|
5
7
|
inset: 0;
|
|
6
|
-
z-index: 50;
|
|
8
|
+
z-index: var(--dialog-z-index, 50);
|
|
7
9
|
background: rgb(0 0 0 / 0.5);
|
|
8
10
|
}
|
|
9
11
|
|
|
@@ -32,7 +34,7 @@
|
|
|
32
34
|
--dialog-content-padding: 1rem;
|
|
33
35
|
--dialog-panel-width: var(--dialog-width, 480px);
|
|
34
36
|
--dialog-panel-height: auto;
|
|
35
|
-
--dialog-panel-max-height: calc(100dvh - 2rem);
|
|
37
|
+
--dialog-panel-max-height: calc(var(--dialog-viewport-height, 100dvh) - 2rem);
|
|
36
38
|
--dialog-panel-corner: var(--radius-xl);
|
|
37
39
|
--dialog-panel-radius: var(--dialog-panel-corner);
|
|
38
40
|
--dialog-panel-padding-bottom: 1.25rem;
|
|
@@ -43,7 +45,7 @@
|
|
|
43
45
|
|
|
44
46
|
position: fixed;
|
|
45
47
|
inset: 0;
|
|
46
|
-
z-index: 50;
|
|
48
|
+
z-index: var(--dialog-z-index, 50);
|
|
47
49
|
display: flex;
|
|
48
50
|
align-items: var(--dialog-content-align);
|
|
49
51
|
justify-content: var(--dialog-content-justify);
|
|
@@ -56,6 +58,14 @@
|
|
|
56
58
|
|
|
57
59
|
.Content:focus {
|
|
58
60
|
outline: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Over a phone keyboard the layer covers the part of the window the keyboard leaves visible (the visual
|
|
64
|
+
viewport), so a sheet sits on the keyboard and a panel stays in view. */
|
|
65
|
+
.Content[data-visual-viewport] {
|
|
66
|
+
top: var(--dialog-viewport-top, 0px);
|
|
67
|
+
bottom: auto;
|
|
68
|
+
height: var(--dialog-viewport-height, 100%);
|
|
59
69
|
}.Content[data-pill] {
|
|
60
70
|
--dialog-panel-corner: var(--dialog-radius-pill, 24px);
|
|
61
71
|
}.Panel {
|
|
@@ -118,7 +128,7 @@
|
|
|
118
128
|
--dialog-content-align: flex-start;
|
|
119
129
|
--dialog-content-padding: min(12vh, 6rem) 1rem 1rem;
|
|
120
130
|
/* A tall panel ends 1rem above the bottom edge, like a centered one */
|
|
121
|
-
--dialog-panel-max-height: calc(100dvh - min(12vh, 6rem) - 1rem);
|
|
131
|
+
--dialog-panel-max-height: calc(var(--dialog-viewport-height, 100dvh) - min(12vh, 6rem) - 1rem);
|
|
122
132
|
}.Content:where([data-placement="bottom"]) {
|
|
123
133
|
--dialog-content-align: flex-end;
|
|
124
134
|
--dialog-content-padding: 0;
|
|
@@ -173,7 +183,7 @@
|
|
|
173
183
|
--dialog-content-padding: 1rem;
|
|
174
184
|
--dialog-panel-width: var(--dialog-width, 480px);
|
|
175
185
|
--dialog-panel-height: auto;
|
|
176
|
-
--dialog-panel-max-height: calc(100dvh - 2rem);
|
|
186
|
+
--dialog-panel-max-height: calc(var(--dialog-viewport-height, 100dvh) - 2rem);
|
|
177
187
|
--dialog-panel-radius: var(--dialog-panel-corner);
|
|
178
188
|
--dialog-panel-padding-bottom: 1.25rem;
|
|
179
189
|
--dialog-panel-hidden-transform: scale(0.95) translateY(8px);
|
|
@@ -190,7 +200,7 @@
|
|
|
190
200
|
--dialog-content-padding: 0;
|
|
191
201
|
--dialog-panel-width: 100%;
|
|
192
202
|
--dialog-panel-height: auto;
|
|
193
|
-
--dialog-panel-max-height: calc(100dvh - 2rem);
|
|
203
|
+
--dialog-panel-max-height: calc(var(--dialog-viewport-height, 100dvh) - 2rem);
|
|
194
204
|
--dialog-panel-radius: var(--dialog-panel-corner) var(--dialog-panel-corner) 0 0;
|
|
195
205
|
--dialog-panel-padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
|
|
196
206
|
--dialog-panel-hidden-transform: translateY(100%);
|
|
@@ -217,7 +227,62 @@
|
|
|
217
227
|
--dialog-exit-duration: var(--motion-exit-large);
|
|
218
228
|
--dialog-exit-easing: var(--cubic-enter);
|
|
219
229
|
}
|
|
220
|
-
}
|
|
230
|
+
}
|
|
231
|
+
:where([data-plex-layout="phone"]) .Content,
|
|
232
|
+
:where([data-plex-layout="phone"]) .Content[data-pill] {
|
|
233
|
+
--dialog-panel-corner: var(--dialog-mobile-radius);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
:where([data-plex-layout="phone"]) .Content:where([data-mobile-placement="center"]) {
|
|
237
|
+
--dialog-content-align: center;
|
|
238
|
+
--dialog-content-justify: center;
|
|
239
|
+
--dialog-content-padding: 1rem;
|
|
240
|
+
--dialog-panel-width: var(--dialog-width, 480px);
|
|
241
|
+
--dialog-panel-height: auto;
|
|
242
|
+
--dialog-panel-max-height: calc(var(--dialog-viewport-height, 100dvh) - 2rem);
|
|
243
|
+
--dialog-panel-radius: var(--dialog-panel-corner);
|
|
244
|
+
--dialog-panel-padding-bottom: 1.25rem;
|
|
245
|
+
--dialog-panel-hidden-transform: scale(0.95) translateY(8px);
|
|
246
|
+
/* A centered panel scales in with a fade, even when its desktop placement slides in opaque. */
|
|
247
|
+
--dialog-panel-hidden-opacity: 0;
|
|
248
|
+
--dialog-enter-duration: var(--motion-enter);
|
|
249
|
+
--dialog-exit-duration: var(--motion-exit);
|
|
250
|
+
--dialog-exit-easing: var(--cubic-exit-snappy);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
:where([data-plex-layout="phone"]) .Content:where([data-mobile-placement="bottom"]) {
|
|
254
|
+
--dialog-content-align: flex-end;
|
|
255
|
+
--dialog-content-justify: center;
|
|
256
|
+
--dialog-content-padding: 0;
|
|
257
|
+
--dialog-panel-width: 100%;
|
|
258
|
+
--dialog-panel-height: auto;
|
|
259
|
+
--dialog-panel-max-height: calc(var(--dialog-viewport-height, 100dvh) - 2rem);
|
|
260
|
+
--dialog-panel-radius: var(--dialog-panel-corner) var(--dialog-panel-corner) 0 0;
|
|
261
|
+
--dialog-panel-padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
|
|
262
|
+
--dialog-panel-hidden-transform: translateY(100%);
|
|
263
|
+
/* A bottom panel (a Sheet) slides up and back down opaque, as UIKit's default modal presentation
|
|
264
|
+
(coverVertical) does; only the scrim fades. A fading panel let the page show through it. */
|
|
265
|
+
--dialog-panel-hidden-opacity: 1;
|
|
266
|
+
--dialog-enter-duration: var(--motion-enter-large);
|
|
267
|
+
--dialog-exit-duration: var(--motion-exit-large);
|
|
268
|
+
--dialog-exit-easing: var(--cubic-exit);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
:where([data-plex-layout="phone"]) .Content:where([data-mobile-placement="fullscreen"]) {
|
|
272
|
+
--dialog-content-align: center;
|
|
273
|
+
--dialog-content-justify: center;
|
|
274
|
+
--dialog-content-padding: 0;
|
|
275
|
+
--dialog-panel-width: 100%;
|
|
276
|
+
--dialog-panel-height: 100%;
|
|
277
|
+
--dialog-panel-max-height: none;
|
|
278
|
+
--dialog-panel-radius: 0;
|
|
279
|
+
--dialog-panel-padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
|
|
280
|
+
--dialog-panel-hidden-transform: translateY(100%);
|
|
281
|
+
--dialog-panel-hidden-opacity: 1;
|
|
282
|
+
--dialog-enter-duration: var(--motion-enter-large);
|
|
283
|
+
--dialog-exit-duration: var(--motion-exit-large);
|
|
284
|
+
--dialog-exit-easing: var(--cubic-enter);
|
|
285
|
+
}.CloseButton {
|
|
221
286
|
position: absolute;
|
|
222
287
|
top: 0.75rem;
|
|
223
288
|
right: 0.75rem;
|
|
@@ -268,7 +333,7 @@
|
|
|
268
333
|
outline: 2px solid var(--color-text);
|
|
269
334
|
outline-offset: 2px;
|
|
270
335
|
}@media (min-width: 768px) {
|
|
271
|
-
.Content .CloseButton[data-navigation-action]::before {
|
|
336
|
+
.Content .CloseButton[data-navigation-action]:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *))::before {
|
|
272
337
|
display: none;
|
|
273
338
|
}
|
|
274
339
|
}.Content[data-pill] .CloseButton {
|
|
@@ -286,6 +351,7 @@
|
|
|
286
351
|
overscroll-behavior: contain;
|
|
287
352
|
margin-inline: -1.25rem;
|
|
288
353
|
padding: 2px 1.25rem;
|
|
354
|
+
--dialog-steps-gutter: 1.25rem;
|
|
289
355
|
}.Footer {
|
|
290
356
|
display: flex;
|
|
291
357
|
flex-shrink: 0;
|
|
@@ -402,7 +468,94 @@
|
|
|
402
468
|
--button-font-size: var(--dialog-mobile-action-font-size);
|
|
403
469
|
--button-gutter: var(--control-gutter-xl);
|
|
404
470
|
}
|
|
405
|
-
}
|
|
471
|
+
}
|
|
472
|
+
:where([data-plex-layout="phone"]) .Panel,
|
|
473
|
+
:where([data-plex-layout="phone"]) .Body {
|
|
474
|
+
scrollbar-width: none;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
:where([data-plex-layout="phone"]) .Panel::-webkit-scrollbar, :where([data-plex-layout="phone"]) .Body::-webkit-scrollbar {
|
|
478
|
+
display: none;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
:where([data-plex-layout="phone"]) .CloseButton {
|
|
482
|
+
top: 0.5rem;
|
|
483
|
+
right: 0.5rem;
|
|
484
|
+
width: var(--dialog-mobile-action-size);
|
|
485
|
+
height: var(--dialog-mobile-action-size);
|
|
486
|
+
border-radius: var(--radius-full);
|
|
487
|
+
background: transparent;
|
|
488
|
+
color: var(--color-text-secondary);
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
/* Keep the visible control compact inside its full touch target. */
|
|
492
|
+
:where([data-plex-layout="phone"]) .CloseButton::before {
|
|
493
|
+
position: absolute;
|
|
494
|
+
inset: calc((var(--dialog-mobile-action-size) - var(--dialog-mobile-close-size)) / 2);
|
|
495
|
+
border-radius: inherit;
|
|
496
|
+
background: var(--mobile-glass-background, var(--dialog-mobile-close-background));
|
|
497
|
+
background-image: var(--mobile-glass-sheen, none);
|
|
498
|
+
box-shadow: var(--mobile-glass-shadow, 0 0 #00000000);
|
|
499
|
+
backdrop-filter: var(--mobile-glass-backdrop-filter, none);
|
|
500
|
+
content: "";
|
|
501
|
+
pointer-events: none;
|
|
502
|
+
transition: background-color 0.2s var(--cubic-enter);
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
@media (hover: hover) and (pointer: fine) {
|
|
506
|
+
:where([data-plex-layout="phone"]) .CloseButton:hover:where(:not(:root[data-input="touch"] *)) {
|
|
507
|
+
background: transparent;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
@media (hover: hover) and (pointer: fine) {
|
|
512
|
+
:where([data-plex-layout="phone"]) .CloseButton:hover:where(:not(:root[data-input="touch"] *))::before {
|
|
513
|
+
background-color: var(--mobile-glass-background-hover, var(--color-background-secondary-soft-alpha-hover));
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
:where([data-plex-layout="phone"]) .CloseButton:active::before {
|
|
518
|
+
background-color: var(--mobile-glass-background-active, var(--color-background-secondary-soft-alpha-hover));
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
:where([data-plex-layout="phone"]) .CloseButton:focus-visible {
|
|
522
|
+
outline-offset: -4px;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
:where([data-plex-layout="phone"]) .Content .CloseButton[data-navigation-action] {
|
|
526
|
+
--button-size: var(--dialog-mobile-action-size);
|
|
527
|
+
--button-uniform-size: var(--dialog-mobile-action-size);
|
|
528
|
+
--navigation-button-icon-size: var(--dialog-mobile-close-icon-size);
|
|
529
|
+
border-radius: var(--radius-full);
|
|
530
|
+
background: transparent;
|
|
531
|
+
color: var(--color-text-secondary);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
@media (hover: hover) and (pointer: fine) {
|
|
535
|
+
:where([data-plex-layout="phone"]) .Content .CloseButton[data-navigation-action]:hover:where(:not(:root[data-input="touch"] *)) { background: transparent; }
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
:where([data-plex-layout="phone"]) .Content .CloseButton[data-navigation-action]:focus-visible { outline-offset: -4px; }
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
:where([data-plex-layout="phone"]) .Panel:has(> .CloseButton) > .Header > :first-child {
|
|
542
|
+
padding-inline-end: calc(var(--dialog-mobile-action-size) - 0.75rem);
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
:where([data-plex-layout="phone"]) .Footer {
|
|
546
|
+
flex-direction: column;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
:where([data-plex-layout="phone"]) .Footer > * {
|
|
550
|
+
width: 100%;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
:where([data-plex-layout="phone"]) .Footer > :where(button, a, [role="link"]) {
|
|
554
|
+
--button-size: var(--dialog-mobile-action-size);
|
|
555
|
+
--button-radius: var(--dialog-mobile-action-radius);
|
|
556
|
+
--button-font-size: var(--dialog-mobile-action-font-size);
|
|
557
|
+
--button-gutter: var(--control-gutter-xl);
|
|
558
|
+
}/* iOS presentations are opt-in; placement and all desktop styles remain independent. */@media (width <= 767px) {
|
|
406
559
|
/* A phone Sheet or Alert dims the page as iOS does: less than a desktop modal in light. */
|
|
407
560
|
.Overlay:has(+ .Content:is([data-mobile-variant="sheet"], [data-mobile-variant="alert"])) {
|
|
408
561
|
background: var(--dialog-mobile-scrim);
|
|
@@ -414,7 +567,7 @@
|
|
|
414
567
|
--dialog-content-padding: 1rem;
|
|
415
568
|
--dialog-panel-width: var(--dialog-alert-width);
|
|
416
569
|
--dialog-panel-height: auto;
|
|
417
|
-
--dialog-panel-max-height: calc(100dvh - 2rem);
|
|
570
|
+
--dialog-panel-max-height: calc(var(--dialog-viewport-height, 100dvh) - 2rem);
|
|
418
571
|
--dialog-panel-radius: var(--dialog-alert-radius);
|
|
419
572
|
}
|
|
420
573
|
|
|
@@ -481,6 +634,7 @@
|
|
|
481
634
|
--control-size-3xl: var(--dialog-alert-field-height, 52px);
|
|
482
635
|
margin-inline: 0;
|
|
483
636
|
padding: 0 0 9px;
|
|
637
|
+
--dialog-steps-gutter: 0px;
|
|
484
638
|
}
|
|
485
639
|
|
|
486
640
|
.Content[data-mobile-variant] .Footer {
|
|
@@ -554,12 +708,12 @@
|
|
|
554
708
|
|
|
555
709
|
.Content[data-mobile-variant="sheet"] {
|
|
556
710
|
--field-group-radius: 26px;
|
|
557
|
-
--dialog-panel-max-height: calc(100dvh - var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) - 16px);
|
|
711
|
+
--dialog-panel-max-height: calc(var(--dialog-viewport-height, 100dvh) - var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) - 16px);
|
|
558
712
|
--dialog-panel-radius: var(--dialog-sheet-radius) var(--dialog-sheet-radius) 0 0;
|
|
559
713
|
}
|
|
560
714
|
|
|
561
715
|
.Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] {
|
|
562
|
-
--dialog-panel-max-height: 100dvh;
|
|
716
|
+
--dialog-panel-max-height: var(--dialog-viewport-height, 100dvh);
|
|
563
717
|
--dialog-panel-radius: 0;
|
|
564
718
|
}
|
|
565
719
|
|
|
@@ -631,6 +785,7 @@
|
|
|
631
785
|
.Content[data-mobile-variant="sheet"] .Body {
|
|
632
786
|
margin-inline: 0;
|
|
633
787
|
padding: 16px var(--mobile-layout-margin, 16px) max(16px, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
|
|
788
|
+
--dialog-steps-gutter: var(--mobile-layout-margin, 16px);
|
|
634
789
|
}
|
|
635
790
|
|
|
636
791
|
/* A phone Toolbar takes the place of the Sheet's bar. The header keeps naming the dialog. */
|
|
@@ -804,7 +959,409 @@
|
|
|
804
959
|
top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
|
|
805
960
|
}
|
|
806
961
|
|
|
807
|
-
}
|
|
962
|
+
}
|
|
963
|
+
/* A phone Sheet or Alert dims the page as iOS does: less than a desktop modal in light. */
|
|
964
|
+
:where([data-plex-layout="phone"]) .Overlay:has(+ .Content:is([data-mobile-variant="sheet"], [data-mobile-variant="alert"])) {
|
|
965
|
+
background: var(--dialog-mobile-scrim);
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] {
|
|
969
|
+
--dialog-content-align: center;
|
|
970
|
+
--dialog-content-justify: center;
|
|
971
|
+
--dialog-content-padding: 1rem;
|
|
972
|
+
--dialog-panel-width: var(--dialog-alert-width);
|
|
973
|
+
--dialog-panel-height: auto;
|
|
974
|
+
--dialog-panel-max-height: calc(var(--dialog-viewport-height, 100dvh) - 2rem);
|
|
975
|
+
--dialog-panel-radius: var(--dialog-alert-radius);
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
/* iOS 27 alerts (kit iOS 27, Alerts 65:57149, Side-by-Side): glass, fields and actions 14 from the edge, the
|
|
979
|
+
title 22 from the top and from the sides, the message 10 under the title, both 17/22 (the title semibold),
|
|
980
|
+
24 from the text to a field or the actions, a field block of 52px rows, 19 under it to the actions, 8
|
|
981
|
+
between two actions. The colors follow native frames (mobile-materials.css): the message is the secondary
|
|
982
|
+
label, as in Files (owner 08.11); native iOS 26 frames (iOS2 IMG_5532, IMG_5533) also set it at 15/20. */
|
|
983
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Panel {
|
|
984
|
+
gap: 10px;
|
|
985
|
+
padding: var(--dialog-alert-padding);
|
|
986
|
+
background: var(--dialog-alert-background, var(--dialog-panel-background, var(--color-surface-elevated)));
|
|
987
|
+
box-shadow: var(--dialog-alert-shadow, var(--shadow-lg), var(--shadow-hairline));
|
|
988
|
+
backdrop-filter: var(--dialog-alert-backdrop-filter, none);
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .CloseButton,
|
|
992
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .HeaderAction {
|
|
993
|
+
display: none;
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Header {
|
|
997
|
+
gap: var(--dialog-alert-header-gap, 10px);
|
|
998
|
+
padding: var(--dialog-alert-header-padding, 8px 8px 14px);
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Header > :first-child {
|
|
1002
|
+
padding-inline-end: 0;
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Title,
|
|
1006
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Description,
|
|
1007
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Title,
|
|
1008
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Description {
|
|
1009
|
+
font-size: var(--dialog-mobile-type-size);
|
|
1010
|
+
line-height: var(--dialog-mobile-type-leading);
|
|
1011
|
+
/* System SF already applies optical tracking. Do not double the Figma adjustment. */
|
|
1012
|
+
overflow-wrap: anywhere;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Description {
|
|
1016
|
+
color: var(--dialog-alert-message-color, var(--color-text));
|
|
1017
|
+
font-size: var(--dialog-alert-message-size, 17px);
|
|
1018
|
+
line-height: var(--dialog-alert-message-leading, 22px);
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
/* The message of an iOS alert is plain text: a code or a name in it reads as the rest of the message. A link
|
|
1022
|
+
keeps its own color and underline, so it still reads as a link (WCAG 1.4.1). */
|
|
1023
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Description * {
|
|
1024
|
+
padding: 0;
|
|
1025
|
+
border: 0;
|
|
1026
|
+
background: none;
|
|
1027
|
+
font: inherit;
|
|
1028
|
+
letter-spacing: inherit;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Description *:not(a, a *) {
|
|
1032
|
+
color: inherit;
|
|
1033
|
+
text-decoration: none;
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
/* A text field fills the alert as its actions do: a 52px row with 26px corners, 19 above the actions. */
|
|
1037
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Body {
|
|
1038
|
+
--control-size-3xl: var(--dialog-alert-field-height, 52px);
|
|
1039
|
+
margin-inline: 0;
|
|
1040
|
+
padding: 0 0 9px;
|
|
1041
|
+
--dialog-steps-gutter: 0px;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant] .Footer {
|
|
1045
|
+
gap: 10px;
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant] .Footer > :where(button, a, [role="link"]) {
|
|
1049
|
+
--button-size: var(--dialog-alert-action-height);
|
|
1050
|
+
--button-font-size: var(--dialog-mobile-type-size);
|
|
1051
|
+
--button-gutter: 16px;
|
|
1052
|
+
min-width: 0;
|
|
1053
|
+
max-width: 100%;
|
|
1054
|
+
min-height: var(--dialog-alert-action-height);
|
|
1055
|
+
height: auto;
|
|
1056
|
+
padding-block: 13px;
|
|
1057
|
+
line-height: var(--dialog-mobile-type-leading);
|
|
1058
|
+
white-space: normal;
|
|
1059
|
+
overflow-wrap: anywhere;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]),
|
|
1063
|
+
:where([data-plex-layout="phone"]) .Content .Footer[data-mobile-layout="inline"] {
|
|
1064
|
+
flex-flow: row wrap;
|
|
1065
|
+
gap: 10px 16px;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) > *, :where([data-plex-layout="phone"]) .Content .Footer[data-mobile-layout="inline"] > * {
|
|
1069
|
+
flex: 1 0 auto;
|
|
1070
|
+
width: auto;
|
|
1071
|
+
min-width: calc(50% - 8px);
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
:where([data-plex-layout="phone"]) .Content .Footer[data-mobile-layout="inline"] > * {
|
|
1075
|
+
max-width: 100%;
|
|
1076
|
+
white-space: normal;
|
|
1077
|
+
overflow-wrap: anywhere;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
/* Native alert actions are semibold, and a soft action and a field share the fill of the glass,
|
|
1081
|
+
about 13% of the label color in both themes (light 202 on 232, dark 73 on 46). */
|
|
1082
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer > :where(button, a, [role="link"]) {
|
|
1083
|
+
--button-font-weight: var(--dialog-alert-action-font-weight, 600);
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer > [data-variant="soft"]:where([data-color="primary"], [data-color="secondary"]) {
|
|
1087
|
+
--button-background-color: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
/* A destructive action is the fill of the other actions with a red label (kit iOS 27, Alerts _Buttons,
|
|
1091
|
+
Role=Destructive) */
|
|
1092
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer > [data-color="danger"]:where([data-variant="solid"], [data-variant="soft"]) {
|
|
1093
|
+
--button-background-color: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
|
|
1094
|
+
--button-background-color-hover: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
|
|
1095
|
+
--button-background-color-active: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
|
|
1096
|
+
--button-text-color: var(--color-text-danger);
|
|
1097
|
+
--button-text-color-hover: var(--color-text-danger);
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Body {
|
|
1101
|
+
--input-soft-background-color: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) {
|
|
1105
|
+
-moz-column-gap: var(--dialog-alert-action-gap, 8px);
|
|
1106
|
+
column-gap: var(--dialog-alert-action-gap, 8px);
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) > * {
|
|
1110
|
+
min-width: calc(50% - var(--dialog-alert-action-gap, 8px) / 2);
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] {
|
|
1114
|
+
--field-group-radius: 26px;
|
|
1115
|
+
--dialog-panel-max-height: calc(var(--dialog-viewport-height, 100dvh) - var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) - 16px);
|
|
1116
|
+
--dialog-panel-radius: var(--dialog-sheet-radius) var(--dialog-sheet-radius) 0 0;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] {
|
|
1120
|
+
--dialog-panel-max-height: var(--dialog-viewport-height, 100dvh);
|
|
1121
|
+
--dialog-panel-radius: 0;
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Panel {
|
|
1125
|
+
gap: 0;
|
|
1126
|
+
padding: 0;
|
|
1127
|
+
overflow: auto;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Panel:has(> .Body) {
|
|
1131
|
+
overflow: hidden;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
/* The header of a phone Sheet is its Toolbar (Dialog.Header renders one): the grabber, the row of controls and
|
|
1135
|
+
the title are the Toolbar's. Its heading holds what the header holds besides its actions, as wide as the
|
|
1136
|
+
row leaves it. */
|
|
1137
|
+
:where([data-plex-layout="phone"]) .BarHeading > * {
|
|
1138
|
+
max-width: 100%;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="alert"] .Title,
|
|
1142
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Title {
|
|
1143
|
+
font-weight: 590;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .CloseButton {
|
|
1147
|
+
z-index: 3;
|
|
1148
|
+
top: var(--dialog-sheet-action-inset-block, 16px);
|
|
1149
|
+
inset-inline-start: var(--dialog-sheet-action-inset-inline, var(--mobile-layout-margin, 16px));
|
|
1150
|
+
inset-inline-end: auto;
|
|
1151
|
+
width: var(--dialog-sheet-close-size);
|
|
1152
|
+
height: var(--dialog-sheet-close-size);
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .CloseButton::before {
|
|
1156
|
+
inset: 0;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .CloseButton[data-navigation-action] {
|
|
1160
|
+
--button-size: var(--dialog-sheet-close-size);
|
|
1161
|
+
--button-uniform-size: var(--dialog-sheet-close-size);
|
|
1162
|
+
--navigation-button-icon-size: var(--dialog-sheet-close-icon-size);
|
|
1163
|
+
/* The glass Close glyph uses the same label role as Page NavigationButton close (IMG_5453). */
|
|
1164
|
+
color: var(--color-text);
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
/* The glass of a sheet's bar: Close, the header actions and a control in the header, such as a segmented
|
|
1168
|
+
control. Native iOS 26 sheets (Calendar, IMG_5433 light, iOS2 IMG_5522 dark) light the glass along both
|
|
1169
|
+
edges, about 7 levels at the top fading within 2pt and again over the last 6pt at the bottom, rather
|
|
1170
|
+
than darkening its top. In light the capsule also has a hairline outline (196 to 227 on a 242 sheet)
|
|
1171
|
+
and a soft shadow at rest, 3 levels just under it and gone within 12pt; dark glass has neither.
|
|
1172
|
+
The rim of light runs along the top and the bottom and fades out at the sides, where the outline is
|
|
1173
|
+
darker instead: the disabled checkmark of Calendar (IMG_5433, 08.11) is white at 0.67pt top and
|
|
1174
|
+
bottom, about 230 on the diagonals and none at the sides, with an outline of 194 top and bottom and
|
|
1175
|
+
155 at the sides. A rim on the top-left and bottom-right corners lit one diagonal only and made a
|
|
1176
|
+
round button read as an oval (owner, 08.11). */
|
|
1177
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton) {
|
|
1178
|
+
--mobile-glass-sheen: linear-gradient(light-dark(rgb(255 255 255 / 45%), rgb(255 255 255 / 6%)), transparent 6px, transparent calc(100% - 8px), light-dark(rgb(255 255 255 / 45%), rgb(255 255 255 / 4%)));
|
|
1179
|
+
}
|
|
1180
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton), :where([data-theme="light"]) :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton) {
|
|
1181
|
+
--mobile-glass-shadow: 0 4px 12px rgb(0 0 0 / 2%), 0 0 0 0.5px rgb(0 0 0 / 12%), 1.25px 0 0 -0.75px rgb(0 0 0 / 16%), -1.25px 0 0 -0.75px rgb(0 0 0 / 16%), inset 0 0.67px 0 var(--mobile-glass-rim), inset 0 -0.67px 0 var(--mobile-glass-rim);
|
|
1182
|
+
}
|
|
1183
|
+
:where([data-theme="dark"]) :where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton) {
|
|
1184
|
+
--mobile-glass-shadow: 0 4px 12px transparent, 0 0 0 0.5px transparent, 1.25px 0 0 -0.75px transparent, -1.25px 0 0 -0.75px transparent, inset 0 0.67px 0 var(--mobile-glass-rim), inset 0 -0.67px 0 var(--mobile-glass-rim);
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
/* With no footer, the content ends above the home indicator, as Files ends its View Options footnote about
|
|
1188
|
+
35pt above the sheet's edge (iOS-menu IMG_5686): the bottom safe area, at least 16px. */
|
|
1189
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Body {
|
|
1190
|
+
margin-inline: 0;
|
|
1191
|
+
padding: 16px var(--mobile-layout-margin, 16px) max(16px, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
|
|
1192
|
+
--dialog-steps-gutter: var(--mobile-layout-margin, 16px);
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
/* A phone Toolbar takes the place of the Sheet's bar. The header keeps naming the dialog. */
|
|
1196
|
+
:where([data-plex-layout="phone"]) .Panel:has(> [data-toolbar][data-placement="top"]) > .Header {
|
|
1197
|
+
position: absolute;
|
|
1198
|
+
width: 1px;
|
|
1199
|
+
height: 1px;
|
|
1200
|
+
min-height: 0;
|
|
1201
|
+
margin: -1px;
|
|
1202
|
+
padding: 0;
|
|
1203
|
+
overflow: hidden;
|
|
1204
|
+
clip-path: inset(50%);
|
|
1205
|
+
white-space: nowrap;
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
:where([data-plex-layout="phone"]) .Panel:has(> [data-toolbar][data-placement="top"]) > .CloseButton,
|
|
1209
|
+
:where([data-plex-layout="phone"]) .Panel:has(> [data-toolbar][data-placement="bottom"]) > .Footer {
|
|
1210
|
+
display: none;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
/* A Toolbar the dialog places itself takes the place of the bar its header becomes: that bar keeps naming
|
|
1214
|
+
the dialog, unseen, without a second Close. */
|
|
1215
|
+
:where([data-plex-layout="phone"]) .Panel:has(> [data-toolbar][data-placement="top"]:not([data-dialog-bar])) > [data-dialog-bar] {
|
|
1216
|
+
position: absolute;
|
|
1217
|
+
width: 1px;
|
|
1218
|
+
height: 1px;
|
|
1219
|
+
min-height: 0;
|
|
1220
|
+
margin: -1px;
|
|
1221
|
+
padding: 0;
|
|
1222
|
+
overflow: hidden;
|
|
1223
|
+
clip-path: inset(50%);
|
|
1224
|
+
white-space: nowrap;
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
:where([data-plex-layout="phone"]) .Panel:has(> [data-toolbar][data-placement="top"]:not([data-dialog-bar])) > [data-dialog-bar] > .BarClose {
|
|
1228
|
+
display: none;
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
/* At rest the content starts where the bar's soft edge ends, so none of it lies under the edge: Files
|
|
1232
|
+
View Options starts its first group 32.7pt under the bar (IMG_5686: 64.7pt below the centre of the row
|
|
1233
|
+
of controls); 16px left the first group and the first line of text cut by the edge (owner 08.11). */
|
|
1234
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Panel > .Body {
|
|
1235
|
+
margin-top: calc(-1 * var(--dialog-header-height, 0px));
|
|
1236
|
+
margin-bottom: calc(-1 * var(--dialog-footer-height, 0px));
|
|
1237
|
+
padding-top: calc(var(--page-bar-soft-tail, 32px) + var(--dialog-header-height, 0px));
|
|
1238
|
+
padding-bottom: calc(max(16px, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))) + var(--dialog-footer-height, 0px));
|
|
1239
|
+
scroll-padding-top: calc(var(--page-bar-soft-tail, 32px) + var(--dialog-header-height, 0px));
|
|
1240
|
+
scroll-padding-bottom: calc(16px + var(--dialog-footer-height, 0px));
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
/* A footer keeps its actions above the home indicator itself: the content ends 16px above the footer. */
|
|
1244
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Panel:has(> .Footer, > [data-toolbar][data-placement="bottom"]) > .Body {
|
|
1245
|
+
padding-bottom: calc(16px + var(--dialog-footer-height, 0px));
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
/* The bars of a Sheet meet the content scrolled under them by their `background`, as the bars of a
|
|
1249
|
+
phone Toolbar do: by default the soft scroll edge of iOS 26. The material sits on a pseudo-element, so
|
|
1250
|
+
Header does not become a backdrop root: HeaderAction and the sibling Close sample the same content.
|
|
1251
|
+
Soft: under the header the panel color covers the content to its bottom and fades out past it, as a
|
|
1252
|
+
Toolbar's soft edge does; over the
|
|
1253
|
+
footer it starts 27px above the actions (IMG_5491) and covers the content fully from their top, so no text
|
|
1254
|
+
shows through a soft action such as Decline (owner 07.11). */
|
|
1255
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Header::after,
|
|
1256
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer::before {
|
|
1257
|
+
position: absolute;
|
|
1258
|
+
z-index: -1;
|
|
1259
|
+
background: var(--dialog-panel-background, var(--color-surface-elevated));
|
|
1260
|
+
backdrop-filter: blur(var(--toolbar-edge-blur-small));
|
|
1261
|
+
content: "";
|
|
1262
|
+
pointer-events: none;
|
|
1263
|
+
transition: opacity var(--transition-duration-basic), border-color var(--transition-duration-basic);
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Header::after {
|
|
1267
|
+
inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
|
|
1268
|
+
border-radius: var(--dialog-panel-radius);
|
|
1269
|
+
-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
|
|
1270
|
+
mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer::before {
|
|
1274
|
+
inset: -15px 0 0;
|
|
1275
|
+
-webkit-mask-image: linear-gradient(to bottom, transparent, #000 27px);
|
|
1276
|
+
mask-image: linear-gradient(to bottom, transparent, #000 27px);
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
/* Hard and solid are opaque, glass is translucent and shows itself once content is under the bar; hard
|
|
1280
|
+
and glass then draw a line on the edge that faces the content. */
|
|
1281
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Header:not([data-background="soft"])::after,
|
|
1282
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer:not([data-background="soft"])::before {
|
|
1283
|
+
inset: 0;
|
|
1284
|
+
backdrop-filter: none;
|
|
1285
|
+
-webkit-mask-image: none;
|
|
1286
|
+
mask-image: none;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Header[data-background="glass"]::after,
|
|
1290
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer[data-background="glass"]::before {
|
|
1291
|
+
background: var(--page-bar-veil);
|
|
1292
|
+
backdrop-filter: var(--page-bar-glass-filter);
|
|
1293
|
+
opacity: 0;
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Header[data-background="hard"]::after {
|
|
1297
|
+
border-bottom: 1px solid transparent;
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Header[data-background="glass"]::after {
|
|
1301
|
+
border-bottom: 0.5px solid var(--page-bar-line);
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer[data-background="hard"]::before {
|
|
1305
|
+
border-top: 1px solid transparent;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer[data-background="glass"]::before {
|
|
1309
|
+
border-top: 0.5px solid var(--page-bar-line);
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Header[data-scrolled][data-background="hard"]::after {
|
|
1313
|
+
border-bottom-color: var(--page-bar-hard-line);
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer[data-content-below][data-background="hard"]::before {
|
|
1317
|
+
border-top-color: var(--page-bar-hard-line);
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Header[data-scrolled][data-background="glass"]::after,
|
|
1321
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer[data-content-below][data-background="glass"]::before {
|
|
1322
|
+
opacity: 1;
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer {
|
|
1326
|
+
position: relative;
|
|
1327
|
+
z-index: 2;
|
|
1328
|
+
padding: 12px 16px max(16px, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer > :where(button, a, [role="link"]) {
|
|
1332
|
+
--button-size: var(--dialog-sheet-action-height);
|
|
1333
|
+
min-height: var(--dialog-sheet-action-height);
|
|
1334
|
+
padding-block: 14px;
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
/* The prominent action of a sheet's footer takes the accent and the edge of the glass, as a bar's does (see
|
|
1338
|
+
the --toolbar-prominent tokens): native setup sheets draw Continue 0/135/254, lighter along its top and
|
|
1339
|
+
bottom and darker at its sides (IMG_5432 Wallet, IMG_5509; owner 08.11). */
|
|
1340
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled]) {
|
|
1341
|
+
--button-background-color: var(--toolbar-prominent-background);
|
|
1342
|
+
--button-background-color-hover: var(--toolbar-prominent-background-hover);
|
|
1343
|
+
--button-background-color-active: var(--toolbar-prominent-background-active);
|
|
1344
|
+
--button-text-color: var(--toolbar-prominent-color);
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"] .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled])::before {
|
|
1348
|
+
background-image: var(--toolbar-prominent-sheen);
|
|
1349
|
+
box-shadow: var(--toolbar-prominent-shadow);
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .Header {
|
|
1353
|
+
min-height: calc(54px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
|
|
1354
|
+
padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .Header::before {
|
|
1358
|
+
display: none;
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .CloseButton,
|
|
1362
|
+
:where([data-plex-layout="phone"]) .Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .HeaderAction {
|
|
1363
|
+
top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
|
|
1364
|
+
}/* Surface roles are independent of alert/sheet geometry and bar materials. */@media (max-width: 767px) {
|
|
808
1365
|
.Content {
|
|
809
1366
|
--mobile-surface-primary: var(--mobile-surface-elevated-plain-primary, var(--color-surface-elevated));
|
|
810
1367
|
--mobile-surface-secondary: var(--mobile-surface-elevated-plain-secondary, var(--color-background-secondary-soft-alpha));
|
|
@@ -829,5 +1386,95 @@
|
|
|
829
1386
|
--mobile-neutral-outline-hover: color-mix(in srgb, var(--mobile-surface-secondary) 96%, var(--color-text));
|
|
830
1387
|
--mobile-neutral-outline-active: color-mix(in srgb, var(--mobile-surface-secondary) 94%, var(--color-text));
|
|
831
1388
|
}
|
|
1389
|
+
}
|
|
1390
|
+
:where([data-plex-layout="phone"]) .Content {
|
|
1391
|
+
--mobile-surface-primary: var(--mobile-surface-elevated-plain-primary, var(--color-surface-elevated));
|
|
1392
|
+
--mobile-surface-secondary: var(--mobile-surface-elevated-plain-secondary, var(--color-background-secondary-soft-alpha));
|
|
1393
|
+
--mobile-surface-tertiary: var(--mobile-surface-elevated-plain-tertiary, var(--color-surface-elevated-secondary));
|
|
1394
|
+
--dialog-panel-background: var(--mobile-surface-primary);
|
|
1395
|
+
--field-group-background: var(--mobile-surface-secondary);
|
|
1396
|
+
--file-upload-list-background: transparent;
|
|
1397
|
+
--file-upload-list-border-width: 1px;
|
|
1398
|
+
--mobile-neutral-outline-background: initial;
|
|
1399
|
+
--mobile-neutral-outline-hover: initial;
|
|
1400
|
+
--mobile-neutral-outline-active: initial;
|
|
1401
|
+
--page-bar-veil: color-mix(in srgb, var(--dialog-panel-background) var(--page-bar-veil-opacity), transparent);
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
:where([data-plex-layout="phone"]) .Content[data-surface="grouped"] {
|
|
1405
|
+
--mobile-surface-primary: var(--mobile-surface-elevated-grouped-primary, var(--color-surface-elevated-secondary));
|
|
1406
|
+
--mobile-surface-secondary: var(--mobile-surface-elevated-grouped-secondary, var(--color-surface-elevated));
|
|
1407
|
+
--mobile-surface-tertiary: var(--mobile-surface-elevated-grouped-tertiary, var(--color-surface-elevated-secondary));
|
|
1408
|
+
--file-upload-list-background: var(--mobile-surface-secondary);
|
|
1409
|
+
--file-upload-list-border-width: 0px;
|
|
1410
|
+
--mobile-neutral-outline-background: var(--mobile-surface-secondary);
|
|
1411
|
+
--mobile-neutral-outline-hover: color-mix(in srgb, var(--mobile-surface-secondary) 96%, var(--color-text));
|
|
1412
|
+
--mobile-neutral-outline-active: color-mix(in srgb, var(--mobile-surface-secondary) 94%, var(--color-text));
|
|
1413
|
+
}/* =============================================
|
|
1414
|
+
Steps: the next step of a flow comes in from the trailing edge over the
|
|
1415
|
+
one before, which moves a third of the way out under it, as a push on iOS;
|
|
1416
|
+
Back reverses it. The steps reach the panel's edges and keep the body's
|
|
1417
|
+
gutter inside, so a step slides in from the edge of the panel.
|
|
1418
|
+
============================================= */.Steps {
|
|
1419
|
+
position: relative;
|
|
1420
|
+
isolation: isolate;
|
|
1421
|
+
overflow-x: clip;
|
|
1422
|
+
overflow-y: visible;
|
|
1423
|
+
margin-inline: calc(-1 * var(--dialog-steps-gutter, 0px));
|
|
1424
|
+
}.Step {
|
|
1425
|
+
--dialog-steps-sign: 1;
|
|
1426
|
+
position: relative;
|
|
1427
|
+
z-index: 2;
|
|
1428
|
+
padding-inline: var(--dialog-steps-gutter, 0px);
|
|
1429
|
+
background: var(--dialog-steps-background, var(--dialog-panel-background, var(--color-surface-elevated)));
|
|
1430
|
+
transform: translateX(0);
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
.Step:dir(rtl) {
|
|
1434
|
+
--dialog-steps-sign: -1;
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
/* The step that comes in takes focus from the one that leaves, without a ring around the whole step */
|
|
1438
|
+
.Step > [data-dialog-step]:focus {
|
|
1439
|
+
outline: none;
|
|
1440
|
+
}.Step[data-entering] {
|
|
1441
|
+
transform: translateX(calc(100% * var(--dialog-steps-sign)));
|
|
1442
|
+
}.Step[data-exiting] {
|
|
1443
|
+
position: absolute;
|
|
1444
|
+
inset: 0 0 auto;
|
|
1445
|
+
z-index: 1;
|
|
1446
|
+
pointer-events: none;
|
|
1447
|
+
}/* The step that comes in covers a taller one leaving under it to its full height */.Steps:has(> .Step[data-exiting]) > .Step:not([data-exiting])::after {
|
|
1448
|
+
content: "";
|
|
1449
|
+
position: absolute;
|
|
1450
|
+
inset: 100% 0 auto;
|
|
1451
|
+
height: max(0px, calc(var(--dialog-steps-exit-height, 0px) - 100%));
|
|
1452
|
+
background: inherit;
|
|
1453
|
+
pointer-events: none;
|
|
1454
|
+
}.Step[data-entering-active],
|
|
1455
|
+
.Step[data-entering][data-interrupted] {
|
|
1456
|
+
transform: translateX(0);
|
|
1457
|
+
}/* The step that leaves stays opaque: the one that comes in covers it going forward and uncovers it going back */.Step[data-exiting-active],
|
|
1458
|
+
.Step[data-exiting][data-interrupted] {
|
|
1459
|
+
transform: translateX(calc(-30% * var(--dialog-steps-sign)));
|
|
1460
|
+
}.Step:is([data-entering-active], [data-exiting-active], [data-interrupted]) {
|
|
1461
|
+
transition: transform var(--motion-enter-large) var(--cubic-enter);
|
|
1462
|
+
}.Steps[data-direction="back"] > .Step[data-entering]:not([data-entering-active], [data-interrupted]) {
|
|
1463
|
+
transform: translateX(calc(-30% * var(--dialog-steps-sign)));
|
|
1464
|
+
}.Step[data-exit-direction="back"][data-exiting] {
|
|
1465
|
+
z-index: 3;
|
|
1466
|
+
}/* A step forward taken while a step still leaves by Back arrives above it */.Steps[data-direction="forward"] > .Step[data-exit-direction="back"][data-exiting] {
|
|
1467
|
+
z-index: 1;
|
|
1468
|
+
}.Step[data-exit-direction="back"]:is([data-exiting-active], [data-exiting][data-interrupted]) {
|
|
1469
|
+
transform: translateX(calc(100% * var(--dialog-steps-sign)));
|
|
1470
|
+
}@media (prefers-reduced-motion: reduce) {
|
|
1471
|
+
.Step {
|
|
1472
|
+
transform: none !important;
|
|
1473
|
+
transition: none !important;
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
.Step[data-exiting] {
|
|
1477
|
+
visibility: hidden;
|
|
1478
|
+
}
|
|
832
1479
|
}
|
|
833
1480
|
}
|