@plexui/styles 0.1.33 → 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 +26 -1
- package/dist/es/components/Alert/Alert.module.css +213 -1
- package/dist/es/components/Badge/Badge.module.css +37 -0
- package/dist/es/components/Breadcrumb/Breadcrumb.module.css +63 -0
- package/dist/es/components/Button/Button.module.css +123 -22
- 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 +31 -6
- package/dist/es/components/Checkbox/Checkbox.module.css +26 -72
- package/dist/es/components/CodeBlock/CodeBlock.module.css +34 -1
- package/dist/es/components/ColorPicker/ColorPicker.module.css +414 -0
- package/dist/es/components/ContextMenu/ContextMenu.module.css +55 -0
- package/dist/es/components/DataTable/DataTable.module.css +4 -0
- package/dist/es/components/DatePicker/Calendar.module.css +279 -6
- package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +10 -0
- package/dist/es/components/DateRangePicker/Calendar.module.css +226 -4
- package/dist/es/components/DateRangePicker/Trigger.module.css +45 -2
- package/dist/es/components/Dialog/Dialog.module.css +871 -89
- package/dist/es/components/EmptyMessage/EmptyMessage.module.css +52 -0
- package/dist/es/components/Field/Field.module.css +574 -24
- package/dist/es/components/FieldGroup/FieldGroup.module.css +188 -3
- package/dist/es/components/FileUpload/FileUpload.module.css +74 -1
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +40 -1
- package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +28 -1
- package/dist/es/components/IndexBar/IndexBar.module.css +146 -0
- package/dist/es/components/Indicator/LoadingIndicator.module.css +14 -7
- package/dist/es/components/Input/Input.module.css +198 -1
- package/dist/es/components/InputGroup/InputGroup.module.css +4 -0
- package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +18 -0
- package/dist/es/components/Menu/Menu.module.css +544 -34
- package/dist/es/components/OTPInput/OTPInput.module.css +6 -1
- package/dist/es/components/Page/Page.module.css +391 -31
- package/dist/es/components/PageControl/PageControl.module.css +81 -0
- package/dist/es/components/PhoneLayout/PhoneLayout.module.css +10 -0
- package/dist/es/components/Popover/Popover.module.css +17 -1
- package/dist/es/components/Select/Select.module.css +201 -9
- package/dist/es/components/SelectControl/SelectControl.module.css +151 -4
- package/dist/es/components/Sidebar/Sidebar.module.css +624 -71
- package/dist/es/components/Slider/Slider.module.css +132 -45
- package/dist/es/components/Sortable/Sortable.module.css +7 -3
- package/dist/es/components/Stepper/Stepper.module.css +98 -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 +478 -0
- package/dist/es/components/Tabs/Tabs.module.css +315 -3
- 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 +197 -9
- package/dist/es/components/Toolbar/Toolbar.module.css +850 -21
- package/dist/es/styles/katex-fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/LICENSE +21 -0
- package/dist/es/styles/katex.min.css +666 -730
- package/dist/es/styles/mobile-materials.css +145 -14
- package/dist/es/styles/mobile-surfaces.css +82 -32
- package/dist/es/styles/touch.css +940 -92
- package/dist/es/styles/variables-components.css +356 -17
- 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,10 +183,12 @@
|
|
|
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
|
+
/* A centered panel scales in with a fade, even when its desktop placement slides in opaque. */
|
|
191
|
+
--dialog-panel-hidden-opacity: 0;
|
|
180
192
|
--dialog-enter-duration: var(--motion-enter);
|
|
181
193
|
--dialog-exit-duration: var(--motion-exit);
|
|
182
194
|
--dialog-exit-easing: var(--cubic-exit-snappy);
|
|
@@ -188,10 +200,13 @@
|
|
|
188
200
|
--dialog-content-padding: 0;
|
|
189
201
|
--dialog-panel-width: 100%;
|
|
190
202
|
--dialog-panel-height: auto;
|
|
191
|
-
--dialog-panel-max-height: calc(100dvh - 2rem);
|
|
203
|
+
--dialog-panel-max-height: calc(var(--dialog-viewport-height, 100dvh) - 2rem);
|
|
192
204
|
--dialog-panel-radius: var(--dialog-panel-corner) var(--dialog-panel-corner) 0 0;
|
|
193
205
|
--dialog-panel-padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
|
|
194
206
|
--dialog-panel-hidden-transform: translateY(100%);
|
|
207
|
+
/* A bottom panel (a Sheet) slides up and back down opaque, as UIKit's default modal presentation
|
|
208
|
+
(coverVertical) does; only the scrim fades. A fading panel let the page show through it. */
|
|
209
|
+
--dialog-panel-hidden-opacity: 1;
|
|
195
210
|
--dialog-enter-duration: var(--motion-enter-large);
|
|
196
211
|
--dialog-exit-duration: var(--motion-exit-large);
|
|
197
212
|
--dialog-exit-easing: var(--cubic-exit);
|
|
@@ -212,7 +227,62 @@
|
|
|
212
227
|
--dialog-exit-duration: var(--motion-exit-large);
|
|
213
228
|
--dialog-exit-easing: var(--cubic-enter);
|
|
214
229
|
}
|
|
215
|
-
}
|
|
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 {
|
|
216
286
|
position: absolute;
|
|
217
287
|
top: 0.75rem;
|
|
218
288
|
right: 0.75rem;
|
|
@@ -263,7 +333,7 @@
|
|
|
263
333
|
outline: 2px solid var(--color-text);
|
|
264
334
|
outline-offset: 2px;
|
|
265
335
|
}@media (min-width: 768px) {
|
|
266
|
-
.Content .CloseButton[data-navigation-action]::before {
|
|
336
|
+
.Content .CloseButton[data-navigation-action]:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *))::before {
|
|
267
337
|
display: none;
|
|
268
338
|
}
|
|
269
339
|
}.Content[data-pill] .CloseButton {
|
|
@@ -281,6 +351,7 @@
|
|
|
281
351
|
overscroll-behavior: contain;
|
|
282
352
|
margin-inline: -1.25rem;
|
|
283
353
|
padding: 2px 1.25rem;
|
|
354
|
+
--dialog-steps-gutter: 1.25rem;
|
|
284
355
|
}.Footer {
|
|
285
356
|
display: flex;
|
|
286
357
|
flex-shrink: 0;
|
|
@@ -397,20 +468,120 @@
|
|
|
397
468
|
--button-font-size: var(--dialog-mobile-action-font-size);
|
|
398
469
|
--button-gutter: var(--control-gutter-xl);
|
|
399
470
|
}
|
|
400
|
-
}
|
|
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) {
|
|
559
|
+
/* A phone Sheet or Alert dims the page as iOS does: less than a desktop modal in light. */
|
|
560
|
+
.Overlay:has(+ .Content:is([data-mobile-variant="sheet"], [data-mobile-variant="alert"])) {
|
|
561
|
+
background: var(--dialog-mobile-scrim);
|
|
562
|
+
}
|
|
563
|
+
|
|
401
564
|
.Content[data-mobile-variant="alert"] {
|
|
402
565
|
--dialog-content-align: center;
|
|
403
566
|
--dialog-content-justify: center;
|
|
404
567
|
--dialog-content-padding: 1rem;
|
|
405
568
|
--dialog-panel-width: var(--dialog-alert-width);
|
|
406
569
|
--dialog-panel-height: auto;
|
|
407
|
-
--dialog-panel-max-height: calc(100dvh - 2rem);
|
|
570
|
+
--dialog-panel-max-height: calc(var(--dialog-viewport-height, 100dvh) - 2rem);
|
|
408
571
|
--dialog-panel-radius: var(--dialog-alert-radius);
|
|
409
572
|
}
|
|
410
573
|
|
|
574
|
+
/* iOS 27 alerts (kit iOS 27, Alerts 65:57149, Side-by-Side): glass, fields and actions 14 from the edge, the
|
|
575
|
+
title 22 from the top and from the sides, the message 10 under the title, both 17/22 (the title semibold),
|
|
576
|
+
24 from the text to a field or the actions, a field block of 52px rows, 19 under it to the actions, 8
|
|
577
|
+
between two actions. The colors follow native frames (mobile-materials.css): the message is the secondary
|
|
578
|
+
label, as in Files (owner 08.11); native iOS 26 frames (iOS2 IMG_5532, IMG_5533) also set it at 15/20. */
|
|
411
579
|
.Content[data-mobile-variant="alert"] .Panel {
|
|
412
580
|
gap: 10px;
|
|
413
581
|
padding: var(--dialog-alert-padding);
|
|
582
|
+
background: var(--dialog-alert-background, var(--dialog-panel-background, var(--color-surface-elevated)));
|
|
583
|
+
box-shadow: var(--dialog-alert-shadow, var(--shadow-lg), var(--shadow-hairline));
|
|
584
|
+
backdrop-filter: var(--dialog-alert-backdrop-filter, none);
|
|
414
585
|
}
|
|
415
586
|
|
|
416
587
|
.Content[data-mobile-variant="alert"] .CloseButton,
|
|
@@ -419,8 +590,8 @@
|
|
|
419
590
|
}
|
|
420
591
|
|
|
421
592
|
.Content[data-mobile-variant="alert"] .Header {
|
|
422
|
-
gap: 10px;
|
|
423
|
-
padding: 8px 8px
|
|
593
|
+
gap: var(--dialog-alert-header-gap, 10px);
|
|
594
|
+
padding: var(--dialog-alert-header-padding, 8px 8px 14px);
|
|
424
595
|
}
|
|
425
596
|
|
|
426
597
|
.Content[data-mobile-variant="alert"] .Header > :first-child {
|
|
@@ -438,12 +609,32 @@
|
|
|
438
609
|
}
|
|
439
610
|
|
|
440
611
|
.Content[data-mobile-variant="alert"] .Description {
|
|
441
|
-
color: var(--color-text);
|
|
612
|
+
color: var(--dialog-alert-message-color, var(--color-text));
|
|
613
|
+
font-size: var(--dialog-alert-message-size, 17px);
|
|
614
|
+
line-height: var(--dialog-alert-message-leading, 22px);
|
|
442
615
|
}
|
|
443
616
|
|
|
617
|
+
/* 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
|
|
618
|
+
keeps its own color and underline, so it still reads as a link (WCAG 1.4.1). */
|
|
619
|
+
.Content[data-mobile-variant="alert"] .Description * {
|
|
620
|
+
padding: 0;
|
|
621
|
+
border: 0;
|
|
622
|
+
background: none;
|
|
623
|
+
font: inherit;
|
|
624
|
+
letter-spacing: inherit;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
.Content[data-mobile-variant="alert"] .Description *:not(a, a *) {
|
|
628
|
+
color: inherit;
|
|
629
|
+
text-decoration: none;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
/* A text field fills the alert as its actions do: a 52px row with 26px corners, 19 above the actions. */
|
|
444
633
|
.Content[data-mobile-variant="alert"] .Body {
|
|
634
|
+
--control-size-3xl: var(--dialog-alert-field-height, 52px);
|
|
445
635
|
margin-inline: 0;
|
|
446
|
-
padding:
|
|
636
|
+
padding: 0 0 9px;
|
|
637
|
+
--dialog-steps-gutter: 0px;
|
|
447
638
|
}
|
|
448
639
|
|
|
449
640
|
.Content[data-mobile-variant] .Footer {
|
|
@@ -482,14 +673,47 @@
|
|
|
482
673
|
overflow-wrap: anywhere;
|
|
483
674
|
}
|
|
484
675
|
|
|
676
|
+
/* Native alert actions are semibold, and a soft action and a field share the fill of the glass,
|
|
677
|
+
about 13% of the label color in both themes (light 202 on 232, dark 73 on 46). */
|
|
678
|
+
.Content[data-mobile-variant="alert"] .Footer > :where(button, a, [role="link"]) {
|
|
679
|
+
--button-font-weight: var(--dialog-alert-action-font-weight, 600);
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
.Content[data-mobile-variant="alert"] .Footer > [data-variant="soft"]:where([data-color="primary"], [data-color="secondary"]) {
|
|
683
|
+
--button-background-color: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
/* A destructive action is the fill of the other actions with a red label (kit iOS 27, Alerts _Buttons,
|
|
687
|
+
Role=Destructive) */
|
|
688
|
+
.Content[data-mobile-variant="alert"] .Footer > [data-color="danger"]:where([data-variant="solid"], [data-variant="soft"]) {
|
|
689
|
+
--button-background-color: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
|
|
690
|
+
--button-background-color-hover: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
|
|
691
|
+
--button-background-color-active: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
|
|
692
|
+
--button-text-color: var(--color-text-danger);
|
|
693
|
+
--button-text-color-hover: var(--color-text-danger);
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
.Content[data-mobile-variant="alert"] .Body {
|
|
697
|
+
--input-soft-background-color: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
.Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) {
|
|
701
|
+
-moz-column-gap: var(--dialog-alert-action-gap, 8px);
|
|
702
|
+
column-gap: var(--dialog-alert-action-gap, 8px);
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) > * {
|
|
706
|
+
min-width: calc(50% - var(--dialog-alert-action-gap, 8px) / 2);
|
|
707
|
+
}
|
|
708
|
+
|
|
485
709
|
.Content[data-mobile-variant="sheet"] {
|
|
486
710
|
--field-group-radius: 26px;
|
|
487
|
-
--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);
|
|
488
712
|
--dialog-panel-radius: var(--dialog-sheet-radius) var(--dialog-sheet-radius) 0 0;
|
|
489
713
|
}
|
|
490
714
|
|
|
491
715
|
.Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] {
|
|
492
|
-
--dialog-panel-max-height: 100dvh;
|
|
716
|
+
--dialog-panel-max-height: var(--dialog-viewport-height, 100dvh);
|
|
493
717
|
--dialog-panel-radius: 0;
|
|
494
718
|
}
|
|
495
719
|
|
|
@@ -503,48 +727,22 @@
|
|
|
503
727
|
overflow: hidden;
|
|
504
728
|
}
|
|
505
729
|
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
padding: 16px 68px 10px;
|
|
512
|
-
text-align: center;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
.Content[data-mobile-variant="sheet"] .Header::before {
|
|
516
|
-
position: absolute;
|
|
517
|
-
top: 5px;
|
|
518
|
-
left: calc(50% - 18px);
|
|
519
|
-
width: 36px;
|
|
520
|
-
height: 5px;
|
|
521
|
-
border-radius: var(--radius-full);
|
|
522
|
-
background: var(--mobile-grabber-color, var(--color-background-secondary-soft-alpha));
|
|
523
|
-
content: "";
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
.Content[data-mobile-variant="sheet"] .Header > :first-child {
|
|
527
|
-
display: flex;
|
|
528
|
-
align-items: center;
|
|
529
|
-
justify-content: center;
|
|
530
|
-
min-height: 44px;
|
|
531
|
-
padding-inline-end: 0;
|
|
730
|
+
/* The header of a phone Sheet is its Toolbar (Dialog.Header renders one): the grabber, the row of controls and
|
|
731
|
+
the title are the Toolbar's. Its heading holds what the header holds besides its actions, as wide as the
|
|
732
|
+
row leaves it. */
|
|
733
|
+
.BarHeading > * {
|
|
734
|
+
max-width: 100%;
|
|
532
735
|
}
|
|
533
736
|
|
|
534
|
-
/* The reference title sits 13px into the 44px toolbar, 2px below its geometric center. */
|
|
535
737
|
.Content[data-mobile-variant="alert"] .Title,
|
|
536
738
|
.Content[data-mobile-variant="sheet"] .Title {
|
|
537
739
|
font-weight: 590;
|
|
538
740
|
}
|
|
539
741
|
|
|
540
|
-
.Content[data-mobile-variant="sheet"] .Title {
|
|
541
|
-
transform: translateY(2px);
|
|
542
|
-
}
|
|
543
|
-
|
|
544
742
|
.Content[data-mobile-variant="sheet"] .CloseButton {
|
|
545
743
|
z-index: 3;
|
|
546
744
|
top: var(--dialog-sheet-action-inset-block, 16px);
|
|
547
|
-
inset-inline-start: var(--dialog-sheet-action-inset-inline, 16px);
|
|
745
|
+
inset-inline-start: var(--dialog-sheet-action-inset-inline, var(--mobile-layout-margin, 16px));
|
|
548
746
|
inset-inline-end: auto;
|
|
549
747
|
width: var(--dialog-sheet-close-size);
|
|
550
748
|
height: var(--dialog-sheet-close-size);
|
|
@@ -562,35 +760,32 @@
|
|
|
562
760
|
color: var(--color-text);
|
|
563
761
|
}
|
|
564
762
|
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
763
|
+
/* The glass of a sheet's bar: Close, the header actions and a control in the header, such as a segmented
|
|
764
|
+
control. Native iOS 26 sheets (Calendar, IMG_5433 light, iOS2 IMG_5522 dark) light the glass along both
|
|
765
|
+
edges, about 7 levels at the top fading within 2pt and again over the last 6pt at the bottom, rather
|
|
766
|
+
than darkening its top. In light the capsule also has a hairline outline (196 to 227 on a 242 sheet)
|
|
767
|
+
and a soft shadow at rest, 3 levels just under it and gone within 12pt; dark glass has neither.
|
|
768
|
+
The rim of light runs along the top and the bottom and fades out at the sides, where the outline is
|
|
769
|
+
darker instead: the disabled checkmark of Calendar (IMG_5433, 08.11) is white at 0.67pt top and
|
|
770
|
+
bottom, about 230 on the diagonals and none at the sides, with an outline of 194 top and bottom and
|
|
771
|
+
155 at the sides. A rim on the top-left and bottom-right corners lit one diagonal only and made a
|
|
772
|
+
round button read as an oval (owner, 08.11). */
|
|
773
|
+
.Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton) {
|
|
774
|
+
--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%)));
|
|
569
775
|
}
|
|
776
|
+
.Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton), :where([data-theme="light"]) .Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton) {
|
|
777
|
+
--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);
|
|
778
|
+
}
|
|
779
|
+
:where([data-theme="dark"]) .Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton) {
|
|
780
|
+
--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);
|
|
781
|
+
}
|
|
570
782
|
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
}
|
|
574
|
-
|
|
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;
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
|
|
783
|
+
/* With no footer, the content ends above the home indicator, as Files ends its View Options footnote about
|
|
784
|
+
35pt above the sheet's edge (iOS-menu IMG_5686): the bottom safe area, at least 16px. */
|
|
591
785
|
.Content[data-mobile-variant="sheet"] .Body {
|
|
592
786
|
margin-inline: 0;
|
|
593
|
-
padding: 16px 16px max(16px, env(safe-area-inset-bottom, 0px));
|
|
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);
|
|
594
789
|
}
|
|
595
790
|
|
|
596
791
|
/* A phone Toolbar takes the place of the Sheet's bar. The header keeps naming the dialog. */
|
|
@@ -611,36 +806,116 @@
|
|
|
611
806
|
display: none;
|
|
612
807
|
}
|
|
613
808
|
|
|
809
|
+
/* A Toolbar the dialog places itself takes the place of the bar its header becomes: that bar keeps naming
|
|
810
|
+
the dialog, unseen, without a second Close. */
|
|
811
|
+
.Panel:has(> [data-toolbar][data-placement="top"]:not([data-dialog-bar])) > [data-dialog-bar] {
|
|
812
|
+
position: absolute;
|
|
813
|
+
width: 1px;
|
|
814
|
+
height: 1px;
|
|
815
|
+
min-height: 0;
|
|
816
|
+
margin: -1px;
|
|
817
|
+
padding: 0;
|
|
818
|
+
overflow: hidden;
|
|
819
|
+
clip-path: inset(50%);
|
|
820
|
+
white-space: nowrap;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
.Panel:has(> [data-toolbar][data-placement="top"]:not([data-dialog-bar])) > [data-dialog-bar] > .BarClose {
|
|
824
|
+
display: none;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
/* At rest the content starts where the bar's soft edge ends, so none of it lies under the edge: Files
|
|
828
|
+
View Options starts its first group 32.7pt under the bar (IMG_5686: 64.7pt below the centre of the row
|
|
829
|
+
of controls); 16px left the first group and the first line of text cut by the edge (owner 08.11). */
|
|
614
830
|
.Content[data-mobile-variant="sheet"] .Panel > .Body {
|
|
615
831
|
margin-top: calc(-1 * var(--dialog-header-height, 0px));
|
|
616
832
|
margin-bottom: calc(-1 * var(--dialog-footer-height, 0px));
|
|
617
|
-
padding-top: calc(
|
|
618
|
-
padding-bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + var(--dialog-footer-height, 0px));
|
|
619
|
-
scroll-padding-top: calc(
|
|
833
|
+
padding-top: calc(var(--page-bar-soft-tail, 32px) + var(--dialog-header-height, 0px));
|
|
834
|
+
padding-bottom: calc(max(16px, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))) + var(--dialog-footer-height, 0px));
|
|
835
|
+
scroll-padding-top: calc(var(--page-bar-soft-tail, 32px) + var(--dialog-header-height, 0px));
|
|
620
836
|
scroll-padding-bottom: calc(16px + var(--dialog-footer-height, 0px));
|
|
621
837
|
}
|
|
622
838
|
|
|
623
|
-
/*
|
|
624
|
-
|
|
625
|
-
|
|
839
|
+
/* A footer keeps its actions above the home indicator itself: the content ends 16px above the footer. */
|
|
840
|
+
.Content[data-mobile-variant="sheet"] .Panel:has(> .Footer, > [data-toolbar][data-placement="bottom"]) > .Body {
|
|
841
|
+
padding-bottom: calc(16px + var(--dialog-footer-height, 0px));
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
/* The bars of a Sheet meet the content scrolled under them by their `background`, as the bars of a
|
|
845
|
+
phone Toolbar do: by default the soft scroll edge of iOS 26. The material sits on a pseudo-element, so
|
|
846
|
+
Header does not become a backdrop root: HeaderAction and the sibling Close sample the same content.
|
|
847
|
+
Soft: under the header the panel color covers the content to its bottom and fades out past it, as a
|
|
848
|
+
Toolbar's soft edge does; over the
|
|
849
|
+
footer it starts 27px above the actions (IMG_5491) and covers the content fully from their top, so no text
|
|
850
|
+
shows through a soft action such as Decline (owner 07.11). */
|
|
851
|
+
.Content[data-mobile-variant="sheet"] .Header::after,
|
|
852
|
+
.Content[data-mobile-variant="sheet"] .Footer::before {
|
|
626
853
|
position: absolute;
|
|
627
854
|
z-index: -1;
|
|
628
|
-
|
|
629
|
-
|
|
855
|
+
background: var(--dialog-panel-background, var(--color-surface-elevated));
|
|
856
|
+
backdrop-filter: blur(var(--toolbar-edge-blur-small));
|
|
630
857
|
content: "";
|
|
631
858
|
pointer-events: none;
|
|
859
|
+
transition: opacity var(--transition-duration-basic), border-color var(--transition-duration-basic);
|
|
632
860
|
}
|
|
633
861
|
|
|
634
|
-
.Content[data-mobile-variant="sheet"] .Header::after
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
862
|
+
.Content[data-mobile-variant="sheet"] .Header::after {
|
|
863
|
+
inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
|
|
864
|
+
border-radius: var(--dialog-panel-radius);
|
|
865
|
+
-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
|
|
866
|
+
mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
|
|
638
867
|
}
|
|
639
868
|
|
|
640
|
-
.Content[data-mobile-variant="sheet"] .
|
|
641
|
-
|
|
642
|
-
|
|
869
|
+
.Content[data-mobile-variant="sheet"] .Footer::before {
|
|
870
|
+
inset: -15px 0 0;
|
|
871
|
+
-webkit-mask-image: linear-gradient(to bottom, transparent, #000 27px);
|
|
872
|
+
mask-image: linear-gradient(to bottom, transparent, #000 27px);
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
/* Hard and solid are opaque, glass is translucent and shows itself once content is under the bar; hard
|
|
876
|
+
and glass then draw a line on the edge that faces the content. */
|
|
877
|
+
.Content[data-mobile-variant="sheet"] .Header:not([data-background="soft"])::after,
|
|
878
|
+
.Content[data-mobile-variant="sheet"] .Footer:not([data-background="soft"])::before {
|
|
879
|
+
inset: 0;
|
|
643
880
|
backdrop-filter: none;
|
|
881
|
+
-webkit-mask-image: none;
|
|
882
|
+
mask-image: none;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
.Content[data-mobile-variant="sheet"] .Header[data-background="glass"]::after,
|
|
886
|
+
.Content[data-mobile-variant="sheet"] .Footer[data-background="glass"]::before {
|
|
887
|
+
background: var(--page-bar-veil);
|
|
888
|
+
backdrop-filter: var(--page-bar-glass-filter);
|
|
889
|
+
opacity: 0;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
.Content[data-mobile-variant="sheet"] .Header[data-background="hard"]::after {
|
|
893
|
+
border-bottom: 1px solid transparent;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
.Content[data-mobile-variant="sheet"] .Header[data-background="glass"]::after {
|
|
897
|
+
border-bottom: 0.5px solid var(--page-bar-line);
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
.Content[data-mobile-variant="sheet"] .Footer[data-background="hard"]::before {
|
|
901
|
+
border-top: 1px solid transparent;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
.Content[data-mobile-variant="sheet"] .Footer[data-background="glass"]::before {
|
|
905
|
+
border-top: 0.5px solid var(--page-bar-line);
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
.Content[data-mobile-variant="sheet"] .Header[data-scrolled][data-background="hard"]::after {
|
|
909
|
+
border-bottom-color: var(--page-bar-hard-line);
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
.Content[data-mobile-variant="sheet"] .Footer[data-content-below][data-background="hard"]::before {
|
|
913
|
+
border-top-color: var(--page-bar-hard-line);
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
.Content[data-mobile-variant="sheet"] .Header[data-scrolled][data-background="glass"]::after,
|
|
917
|
+
.Content[data-mobile-variant="sheet"] .Footer[data-content-below][data-background="glass"]::before {
|
|
918
|
+
opacity: 1;
|
|
644
919
|
}
|
|
645
920
|
|
|
646
921
|
.Content[data-mobile-variant="sheet"] .Footer {
|
|
@@ -655,6 +930,21 @@
|
|
|
655
930
|
padding-block: 14px;
|
|
656
931
|
}
|
|
657
932
|
|
|
933
|
+
/* The prominent action of a sheet's footer takes the accent and the edge of the glass, as a bar's does (see
|
|
934
|
+
the --toolbar-prominent tokens): native setup sheets draw Continue 0/135/254, lighter along its top and
|
|
935
|
+
bottom and darker at its sides (IMG_5432 Wallet, IMG_5509; owner 08.11). */
|
|
936
|
+
.Content[data-mobile-variant="sheet"] .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled]) {
|
|
937
|
+
--button-background-color: var(--toolbar-prominent-background);
|
|
938
|
+
--button-background-color-hover: var(--toolbar-prominent-background-hover);
|
|
939
|
+
--button-background-color-active: var(--toolbar-prominent-background-active);
|
|
940
|
+
--button-text-color: var(--toolbar-prominent-color);
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
.Content[data-mobile-variant="sheet"] .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled])::before {
|
|
944
|
+
background-image: var(--toolbar-prominent-sheen);
|
|
945
|
+
box-shadow: var(--toolbar-prominent-shadow);
|
|
946
|
+
}
|
|
947
|
+
|
|
658
948
|
.Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .Header {
|
|
659
949
|
min-height: calc(54px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
|
|
660
950
|
padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
|
|
@@ -669,7 +959,409 @@
|
|
|
669
959
|
top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
|
|
670
960
|
}
|
|
671
961
|
|
|
672
|
-
}
|
|
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) {
|
|
673
1365
|
.Content {
|
|
674
1366
|
--mobile-surface-primary: var(--mobile-surface-elevated-plain-primary, var(--color-surface-elevated));
|
|
675
1367
|
--mobile-surface-secondary: var(--mobile-surface-elevated-plain-secondary, var(--color-background-secondary-soft-alpha));
|
|
@@ -694,5 +1386,95 @@
|
|
|
694
1386
|
--mobile-neutral-outline-hover: color-mix(in srgb, var(--mobile-surface-secondary) 96%, var(--color-text));
|
|
695
1387
|
--mobile-neutral-outline-active: color-mix(in srgb, var(--mobile-surface-secondary) 94%, var(--color-text));
|
|
696
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
|
+
}
|
|
697
1479
|
}
|
|
698
1480
|
}
|