@plexui/styles 0.1.33 → 0.1.34
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 +14 -0
- package/dist/es/components/Alert/Alert.module.css +112 -1
- package/dist/es/components/Breadcrumb/Breadcrumb.module.css +34 -0
- package/dist/es/components/Button/Button.module.css +70 -22
- package/dist/es/components/Card/Card.module.css +22 -6
- package/dist/es/components/Checkbox/Checkbox.module.css +26 -72
- package/dist/es/components/CodeBlock/CodeBlock.module.css +20 -0
- package/dist/es/components/ColorPicker/ColorPicker.module.css +396 -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 +18 -5
- package/dist/es/components/DateRangePicker/Calendar.module.css +20 -2
- package/dist/es/components/DateRangePicker/Trigger.module.css +29 -1
- package/dist/es/components/Dialog/Dialog.module.css +212 -77
- package/dist/es/components/EmptyMessage/EmptyMessage.module.css +31 -0
- package/dist/es/components/Field/Field.module.css +188 -23
- package/dist/es/components/FieldGroup/FieldGroup.module.css +59 -0
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +21 -0
- package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +16 -0
- package/dist/es/components/Indicator/LoadingIndicator.module.css +14 -7
- package/dist/es/components/Input/Input.module.css +69 -0
- package/dist/es/components/InputGroup/InputGroup.module.css +4 -0
- package/dist/es/components/Menu/Menu.module.css +278 -28
- package/dist/es/components/Page/Page.module.css +92 -24
- package/dist/es/components/PageControl/PageControl.module.css +81 -0
- package/dist/es/components/Popover/Popover.module.css +10 -1
- package/dist/es/components/Select/Select.module.css +53 -9
- package/dist/es/components/SelectControl/SelectControl.module.css +38 -3
- package/dist/es/components/Sidebar/Sidebar.module.css +276 -57
- package/dist/es/components/Slider/Slider.module.css +52 -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/TabBar/TabBar.module.css +233 -0
- package/dist/es/components/Tabs/Tabs.module.css +149 -2
- package/dist/es/components/Toast/Toast.module.css +50 -5
- package/dist/es/components/Toolbar/Toolbar.module.css +208 -18
- 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 +56 -14
- package/dist/es/styles/mobile-surfaces.css +39 -32
- package/dist/es/styles/touch.css +328 -90
- package/dist/es/styles/variables-components.css +232 -13
- package/package.json +1 -1
|
@@ -177,6 +177,8 @@
|
|
|
177
177
|
--dialog-panel-radius: var(--dialog-panel-corner);
|
|
178
178
|
--dialog-panel-padding-bottom: 1.25rem;
|
|
179
179
|
--dialog-panel-hidden-transform: scale(0.95) translateY(8px);
|
|
180
|
+
/* A centered panel scales in with a fade, even when its desktop placement slides in opaque. */
|
|
181
|
+
--dialog-panel-hidden-opacity: 0;
|
|
180
182
|
--dialog-enter-duration: var(--motion-enter);
|
|
181
183
|
--dialog-exit-duration: var(--motion-exit);
|
|
182
184
|
--dialog-exit-easing: var(--cubic-exit-snappy);
|
|
@@ -192,6 +194,9 @@
|
|
|
192
194
|
--dialog-panel-radius: var(--dialog-panel-corner) var(--dialog-panel-corner) 0 0;
|
|
193
195
|
--dialog-panel-padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
|
|
194
196
|
--dialog-panel-hidden-transform: translateY(100%);
|
|
197
|
+
/* A bottom panel (a Sheet) slides up and back down opaque, as UIKit's default modal presentation
|
|
198
|
+
(coverVertical) does; only the scrim fades. A fading panel let the page show through it. */
|
|
199
|
+
--dialog-panel-hidden-opacity: 1;
|
|
195
200
|
--dialog-enter-duration: var(--motion-enter-large);
|
|
196
201
|
--dialog-exit-duration: var(--motion-exit-large);
|
|
197
202
|
--dialog-exit-easing: var(--cubic-exit);
|
|
@@ -398,6 +403,11 @@
|
|
|
398
403
|
--button-gutter: var(--control-gutter-xl);
|
|
399
404
|
}
|
|
400
405
|
}/* iOS presentations are opt-in; placement and all desktop styles remain independent. */@media (width <= 767px) {
|
|
406
|
+
/* A phone Sheet or Alert dims the page as iOS does: less than a desktop modal in light. */
|
|
407
|
+
.Overlay:has(+ .Content:is([data-mobile-variant="sheet"], [data-mobile-variant="alert"])) {
|
|
408
|
+
background: var(--dialog-mobile-scrim);
|
|
409
|
+
}
|
|
410
|
+
|
|
401
411
|
.Content[data-mobile-variant="alert"] {
|
|
402
412
|
--dialog-content-align: center;
|
|
403
413
|
--dialog-content-justify: center;
|
|
@@ -408,9 +418,17 @@
|
|
|
408
418
|
--dialog-panel-radius: var(--dialog-alert-radius);
|
|
409
419
|
}
|
|
410
420
|
|
|
421
|
+
/* iOS 27 alerts (kit iOS 27, Alerts 65:57149, Side-by-Side): glass, fields and actions 14 from the edge, the
|
|
422
|
+
title 22 from the top and from the sides, the message 10 under the title, both 17/22 (the title semibold),
|
|
423
|
+
24 from the text to a field or the actions, a field block of 52px rows, 19 under it to the actions, 8
|
|
424
|
+
between two actions. The colors follow native frames (mobile-materials.css): the message is the secondary
|
|
425
|
+
label, as in Files (owner 08.11); native iOS 26 frames (iOS2 IMG_5532, IMG_5533) also set it at 15/20. */
|
|
411
426
|
.Content[data-mobile-variant="alert"] .Panel {
|
|
412
427
|
gap: 10px;
|
|
413
428
|
padding: var(--dialog-alert-padding);
|
|
429
|
+
background: var(--dialog-alert-background, var(--dialog-panel-background, var(--color-surface-elevated)));
|
|
430
|
+
box-shadow: var(--dialog-alert-shadow, var(--shadow-lg), var(--shadow-hairline));
|
|
431
|
+
backdrop-filter: var(--dialog-alert-backdrop-filter, none);
|
|
414
432
|
}
|
|
415
433
|
|
|
416
434
|
.Content[data-mobile-variant="alert"] .CloseButton,
|
|
@@ -419,8 +437,8 @@
|
|
|
419
437
|
}
|
|
420
438
|
|
|
421
439
|
.Content[data-mobile-variant="alert"] .Header {
|
|
422
|
-
gap: 10px;
|
|
423
|
-
padding: 8px 8px
|
|
440
|
+
gap: var(--dialog-alert-header-gap, 10px);
|
|
441
|
+
padding: var(--dialog-alert-header-padding, 8px 8px 14px);
|
|
424
442
|
}
|
|
425
443
|
|
|
426
444
|
.Content[data-mobile-variant="alert"] .Header > :first-child {
|
|
@@ -438,12 +456,31 @@
|
|
|
438
456
|
}
|
|
439
457
|
|
|
440
458
|
.Content[data-mobile-variant="alert"] .Description {
|
|
441
|
-
color: var(--color-text);
|
|
459
|
+
color: var(--dialog-alert-message-color, var(--color-text));
|
|
460
|
+
font-size: var(--dialog-alert-message-size, 17px);
|
|
461
|
+
line-height: var(--dialog-alert-message-leading, 22px);
|
|
442
462
|
}
|
|
443
463
|
|
|
464
|
+
/* 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
|
|
465
|
+
keeps its own color and underline, so it still reads as a link (WCAG 1.4.1). */
|
|
466
|
+
.Content[data-mobile-variant="alert"] .Description * {
|
|
467
|
+
padding: 0;
|
|
468
|
+
border: 0;
|
|
469
|
+
background: none;
|
|
470
|
+
font: inherit;
|
|
471
|
+
letter-spacing: inherit;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.Content[data-mobile-variant="alert"] .Description *:not(a, a *) {
|
|
475
|
+
color: inherit;
|
|
476
|
+
text-decoration: none;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/* A text field fills the alert as its actions do: a 52px row with 26px corners, 19 above the actions. */
|
|
444
480
|
.Content[data-mobile-variant="alert"] .Body {
|
|
481
|
+
--control-size-3xl: var(--dialog-alert-field-height, 52px);
|
|
445
482
|
margin-inline: 0;
|
|
446
|
-
padding:
|
|
483
|
+
padding: 0 0 9px;
|
|
447
484
|
}
|
|
448
485
|
|
|
449
486
|
.Content[data-mobile-variant] .Footer {
|
|
@@ -482,6 +519,39 @@
|
|
|
482
519
|
overflow-wrap: anywhere;
|
|
483
520
|
}
|
|
484
521
|
|
|
522
|
+
/* Native alert actions are semibold, and a soft action and a field share the fill of the glass,
|
|
523
|
+
about 13% of the label color in both themes (light 202 on 232, dark 73 on 46). */
|
|
524
|
+
.Content[data-mobile-variant="alert"] .Footer > :where(button, a, [role="link"]) {
|
|
525
|
+
--button-font-weight: var(--dialog-alert-action-font-weight, 600);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.Content[data-mobile-variant="alert"] .Footer > [data-variant="soft"]:where([data-color="primary"], [data-color="secondary"]) {
|
|
529
|
+
--button-background-color: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
/* A destructive action is the fill of the other actions with a red label (kit iOS 27, Alerts _Buttons,
|
|
533
|
+
Role=Destructive) */
|
|
534
|
+
.Content[data-mobile-variant="alert"] .Footer > [data-color="danger"]:where([data-variant="solid"], [data-variant="soft"]) {
|
|
535
|
+
--button-background-color: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
|
|
536
|
+
--button-background-color-hover: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
|
|
537
|
+
--button-background-color-active: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
|
|
538
|
+
--button-text-color: var(--color-text-danger);
|
|
539
|
+
--button-text-color-hover: var(--color-text-danger);
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.Content[data-mobile-variant="alert"] .Body {
|
|
543
|
+
--input-soft-background-color: var(--dialog-alert-fill, var(--color-background-primary-soft-alpha));
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) {
|
|
547
|
+
-moz-column-gap: var(--dialog-alert-action-gap, 8px);
|
|
548
|
+
column-gap: var(--dialog-alert-action-gap, 8px);
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
.Content[data-mobile-variant="alert"] .Footer:not([data-mobile-layout="stacked"]) > * {
|
|
552
|
+
min-width: calc(50% - var(--dialog-alert-action-gap, 8px) / 2);
|
|
553
|
+
}
|
|
554
|
+
|
|
485
555
|
.Content[data-mobile-variant="sheet"] {
|
|
486
556
|
--field-group-radius: 26px;
|
|
487
557
|
--dialog-panel-max-height: calc(100dvh - var(--safe-area-inset-top, env(safe-area-inset-top, 0px)) - 16px);
|
|
@@ -503,48 +573,22 @@
|
|
|
503
573
|
overflow: hidden;
|
|
504
574
|
}
|
|
505
575
|
|
|
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;
|
|
576
|
+
/* The header of a phone Sheet is its Toolbar (Dialog.Header renders one): the grabber, the row of controls and
|
|
577
|
+
the title are the Toolbar's. Its heading holds what the header holds besides its actions, as wide as the
|
|
578
|
+
row leaves it. */
|
|
579
|
+
.BarHeading > * {
|
|
580
|
+
max-width: 100%;
|
|
532
581
|
}
|
|
533
582
|
|
|
534
|
-
/* The reference title sits 13px into the 44px toolbar, 2px below its geometric center. */
|
|
535
583
|
.Content[data-mobile-variant="alert"] .Title,
|
|
536
584
|
.Content[data-mobile-variant="sheet"] .Title {
|
|
537
585
|
font-weight: 590;
|
|
538
586
|
}
|
|
539
587
|
|
|
540
|
-
.Content[data-mobile-variant="sheet"] .Title {
|
|
541
|
-
transform: translateY(2px);
|
|
542
|
-
}
|
|
543
|
-
|
|
544
588
|
.Content[data-mobile-variant="sheet"] .CloseButton {
|
|
545
589
|
z-index: 3;
|
|
546
590
|
top: var(--dialog-sheet-action-inset-block, 16px);
|
|
547
|
-
inset-inline-start: var(--dialog-sheet-action-inset-inline, 16px);
|
|
591
|
+
inset-inline-start: var(--dialog-sheet-action-inset-inline, var(--mobile-layout-margin, 16px));
|
|
548
592
|
inset-inline-end: auto;
|
|
549
593
|
width: var(--dialog-sheet-close-size);
|
|
550
594
|
height: var(--dialog-sheet-close-size);
|
|
@@ -562,35 +606,31 @@
|
|
|
562
606
|
color: var(--color-text);
|
|
563
607
|
}
|
|
564
608
|
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
.Content[data-mobile-variant="sheet"]
|
|
576
|
-
--
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
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
|
-
|
|
609
|
+
/* The glass of a sheet's bar: Close, the header actions and a control in the header, such as a segmented
|
|
610
|
+
control. Native iOS 26 sheets (Calendar, IMG_5433 light, iOS2 IMG_5522 dark) light the glass along both
|
|
611
|
+
edges, about 7 levels at the top fading within 2pt and again over the last 6pt at the bottom, rather
|
|
612
|
+
than darkening its top. In light the capsule also has a hairline outline (196 to 227 on a 242 sheet)
|
|
613
|
+
and a soft shadow at rest, 3 levels just under it and gone within 12pt; dark glass has neither.
|
|
614
|
+
The rim of light runs along the top and the bottom and fades out at the sides, where the outline is
|
|
615
|
+
darker instead: the disabled checkmark of Calendar (IMG_5433, 08.11) is white at 0.67pt top and
|
|
616
|
+
bottom, about 230 on the diagonals and none at the sides, with an outline of 194 top and bottom and
|
|
617
|
+
155 at the sides. A rim on the top-left and bottom-right corners lit one diagonal only and made a
|
|
618
|
+
round button read as an oval (owner, 08.11). */
|
|
619
|
+
.Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton) {
|
|
620
|
+
--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%)));
|
|
621
|
+
}
|
|
622
|
+
.Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton), :where([data-theme="light"]) .Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton) {
|
|
623
|
+
--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);
|
|
624
|
+
}
|
|
625
|
+
:where([data-theme="dark"]) .Content[data-mobile-variant="sheet"] :is([data-toolbar], .CloseButton) {
|
|
626
|
+
--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);
|
|
627
|
+
}
|
|
590
628
|
|
|
629
|
+
/* With no footer, the content ends above the home indicator, as Files ends its View Options footnote about
|
|
630
|
+
35pt above the sheet's edge (iOS-menu IMG_5686): the bottom safe area, at least 16px. */
|
|
591
631
|
.Content[data-mobile-variant="sheet"] .Body {
|
|
592
632
|
margin-inline: 0;
|
|
593
|
-
padding: 16px 16px max(16px, env(safe-area-inset-bottom, 0px));
|
|
633
|
+
padding: 16px var(--mobile-layout-margin, 16px) max(16px, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
|
|
594
634
|
}
|
|
595
635
|
|
|
596
636
|
/* A phone Toolbar takes the place of the Sheet's bar. The header keeps naming the dialog. */
|
|
@@ -611,36 +651,116 @@
|
|
|
611
651
|
display: none;
|
|
612
652
|
}
|
|
613
653
|
|
|
654
|
+
/* A Toolbar the dialog places itself takes the place of the bar its header becomes: that bar keeps naming
|
|
655
|
+
the dialog, unseen, without a second Close. */
|
|
656
|
+
.Panel:has(> [data-toolbar][data-placement="top"]:not([data-dialog-bar])) > [data-dialog-bar] {
|
|
657
|
+
position: absolute;
|
|
658
|
+
width: 1px;
|
|
659
|
+
height: 1px;
|
|
660
|
+
min-height: 0;
|
|
661
|
+
margin: -1px;
|
|
662
|
+
padding: 0;
|
|
663
|
+
overflow: hidden;
|
|
664
|
+
clip-path: inset(50%);
|
|
665
|
+
white-space: nowrap;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
.Panel:has(> [data-toolbar][data-placement="top"]:not([data-dialog-bar])) > [data-dialog-bar] > .BarClose {
|
|
669
|
+
display: none;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
/* At rest the content starts where the bar's soft edge ends, so none of it lies under the edge: Files
|
|
673
|
+
View Options starts its first group 32.7pt under the bar (IMG_5686: 64.7pt below the centre of the row
|
|
674
|
+
of controls); 16px left the first group and the first line of text cut by the edge (owner 08.11). */
|
|
614
675
|
.Content[data-mobile-variant="sheet"] .Panel > .Body {
|
|
615
676
|
margin-top: calc(-1 * var(--dialog-header-height, 0px));
|
|
616
677
|
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(
|
|
678
|
+
padding-top: calc(var(--page-bar-soft-tail, 32px) + var(--dialog-header-height, 0px));
|
|
679
|
+
padding-bottom: calc(max(16px, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))) + var(--dialog-footer-height, 0px));
|
|
680
|
+
scroll-padding-top: calc(var(--page-bar-soft-tail, 32px) + var(--dialog-header-height, 0px));
|
|
620
681
|
scroll-padding-bottom: calc(16px + var(--dialog-footer-height, 0px));
|
|
621
682
|
}
|
|
622
683
|
|
|
623
|
-
/*
|
|
624
|
-
|
|
625
|
-
|
|
684
|
+
/* A footer keeps its actions above the home indicator itself: the content ends 16px above the footer. */
|
|
685
|
+
.Content[data-mobile-variant="sheet"] .Panel:has(> .Footer, > [data-toolbar][data-placement="bottom"]) > .Body {
|
|
686
|
+
padding-bottom: calc(16px + var(--dialog-footer-height, 0px));
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
/* The bars of a Sheet meet the content scrolled under them by their `background`, as the bars of a
|
|
690
|
+
phone Toolbar do: by default the soft scroll edge of iOS 26. The material sits on a pseudo-element, so
|
|
691
|
+
Header does not become a backdrop root: HeaderAction and the sibling Close sample the same content.
|
|
692
|
+
Soft: under the header the panel color covers the content to its bottom and fades out past it, as a
|
|
693
|
+
Toolbar's soft edge does; over the
|
|
694
|
+
footer it starts 27px above the actions (IMG_5491) and covers the content fully from their top, so no text
|
|
695
|
+
shows through a soft action such as Decline (owner 07.11). */
|
|
696
|
+
.Content[data-mobile-variant="sheet"] .Header::after,
|
|
697
|
+
.Content[data-mobile-variant="sheet"] .Footer::before {
|
|
626
698
|
position: absolute;
|
|
627
699
|
z-index: -1;
|
|
628
|
-
|
|
629
|
-
|
|
700
|
+
background: var(--dialog-panel-background, var(--color-surface-elevated));
|
|
701
|
+
backdrop-filter: blur(var(--toolbar-edge-blur-small));
|
|
630
702
|
content: "";
|
|
631
703
|
pointer-events: none;
|
|
704
|
+
transition: opacity var(--transition-duration-basic), border-color var(--transition-duration-basic);
|
|
632
705
|
}
|
|
633
706
|
|
|
634
|
-
.Content[data-mobile-variant="sheet"] .Header::after
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
707
|
+
.Content[data-mobile-variant="sheet"] .Header::after {
|
|
708
|
+
inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
|
|
709
|
+
border-radius: var(--dialog-panel-radius);
|
|
710
|
+
-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
|
|
711
|
+
mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
|
|
638
712
|
}
|
|
639
713
|
|
|
640
|
-
.Content[data-mobile-variant="sheet"] .
|
|
641
|
-
|
|
642
|
-
|
|
714
|
+
.Content[data-mobile-variant="sheet"] .Footer::before {
|
|
715
|
+
inset: -15px 0 0;
|
|
716
|
+
-webkit-mask-image: linear-gradient(to bottom, transparent, #000 27px);
|
|
717
|
+
mask-image: linear-gradient(to bottom, transparent, #000 27px);
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
/* Hard and solid are opaque, glass is translucent and shows itself once content is under the bar; hard
|
|
721
|
+
and glass then draw a line on the edge that faces the content. */
|
|
722
|
+
.Content[data-mobile-variant="sheet"] .Header:not([data-background="soft"])::after,
|
|
723
|
+
.Content[data-mobile-variant="sheet"] .Footer:not([data-background="soft"])::before {
|
|
724
|
+
inset: 0;
|
|
643
725
|
backdrop-filter: none;
|
|
726
|
+
-webkit-mask-image: none;
|
|
727
|
+
mask-image: none;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
.Content[data-mobile-variant="sheet"] .Header[data-background="glass"]::after,
|
|
731
|
+
.Content[data-mobile-variant="sheet"] .Footer[data-background="glass"]::before {
|
|
732
|
+
background: var(--page-bar-veil);
|
|
733
|
+
backdrop-filter: var(--page-bar-glass-filter);
|
|
734
|
+
opacity: 0;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
.Content[data-mobile-variant="sheet"] .Header[data-background="hard"]::after {
|
|
738
|
+
border-bottom: 1px solid transparent;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
.Content[data-mobile-variant="sheet"] .Header[data-background="glass"]::after {
|
|
742
|
+
border-bottom: 0.5px solid var(--page-bar-line);
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
.Content[data-mobile-variant="sheet"] .Footer[data-background="hard"]::before {
|
|
746
|
+
border-top: 1px solid transparent;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
.Content[data-mobile-variant="sheet"] .Footer[data-background="glass"]::before {
|
|
750
|
+
border-top: 0.5px solid var(--page-bar-line);
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
.Content[data-mobile-variant="sheet"] .Header[data-scrolled][data-background="hard"]::after {
|
|
754
|
+
border-bottom-color: var(--page-bar-hard-line);
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
.Content[data-mobile-variant="sheet"] .Footer[data-content-below][data-background="hard"]::before {
|
|
758
|
+
border-top-color: var(--page-bar-hard-line);
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
.Content[data-mobile-variant="sheet"] .Header[data-scrolled][data-background="glass"]::after,
|
|
762
|
+
.Content[data-mobile-variant="sheet"] .Footer[data-content-below][data-background="glass"]::before {
|
|
763
|
+
opacity: 1;
|
|
644
764
|
}
|
|
645
765
|
|
|
646
766
|
.Content[data-mobile-variant="sheet"] .Footer {
|
|
@@ -655,6 +775,21 @@
|
|
|
655
775
|
padding-block: 14px;
|
|
656
776
|
}
|
|
657
777
|
|
|
778
|
+
/* The prominent action of a sheet's footer takes the accent and the edge of the glass, as a bar's does (see
|
|
779
|
+
the --toolbar-prominent tokens): native setup sheets draw Continue 0/135/254, lighter along its top and
|
|
780
|
+
bottom and darker at its sides (IMG_5432 Wallet, IMG_5509; owner 08.11). */
|
|
781
|
+
.Content[data-mobile-variant="sheet"] .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled]) {
|
|
782
|
+
--button-background-color: var(--toolbar-prominent-background);
|
|
783
|
+
--button-background-color-hover: var(--toolbar-prominent-background-hover);
|
|
784
|
+
--button-background-color-active: var(--toolbar-prominent-background-active);
|
|
785
|
+
--button-text-color: var(--toolbar-prominent-color);
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
.Content[data-mobile-variant="sheet"] .Footer > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled])::before {
|
|
789
|
+
background-image: var(--toolbar-prominent-sheen);
|
|
790
|
+
box-shadow: var(--toolbar-prominent-shadow);
|
|
791
|
+
}
|
|
792
|
+
|
|
658
793
|
.Content[data-mobile-variant="sheet"][data-mobile-placement="fullscreen"] .Header {
|
|
659
794
|
min-height: calc(54px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
|
|
660
795
|
padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
|
|
@@ -26,6 +26,35 @@
|
|
|
26
26
|
padding-bottom: var(--empty-message-padding-bottom, 0px);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
/* On a phone (touch.css, the iOS 27 empty state) the text keeps a further inset, and a message that fills
|
|
30
|
+
a screen can put its buttons at the bottom of the screen and centre the rest in the space above them:
|
|
31
|
+
auto margins above the content and above the buttons, with the same inset above both, so the buttons
|
|
32
|
+
keep their distance from the text. A text link stays under the text. Outside the phone layout these
|
|
33
|
+
rules do not apply, so a caller's own spacing and button widths stand. */
|
|
34
|
+
@media (max-width: 767px) {
|
|
35
|
+
.EmptyMessage:is([data-fill="static"], [data-fill="absolute"]):not([data-size="sm"]) > :is(.Title, .Description) {
|
|
36
|
+
padding-inline: var(--empty-message-text-inset, 0px);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.EmptyMessage:is([data-fill="static"], [data-fill="absolute"]):not([data-size="sm"]):has(> .ActionRow > [data-variant]) {
|
|
40
|
+
padding-top: var(--empty-message-fill-action-inset, 0px);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.EmptyMessage:is([data-fill="static"], [data-fill="absolute"]):not([data-size="sm"]):has(> .ActionRow > [data-variant]) > :first-child:not(.ActionRow) {
|
|
44
|
+
margin-top: var(--empty-message-fill-content-margin, 0px);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.EmptyMessage:is([data-fill="static"], [data-fill="absolute"]):not([data-size="sm"]):has(> .ActionRow > [data-variant]) > .ActionRow {
|
|
48
|
+
align-self: var(--empty-message-fill-action-align, auto);
|
|
49
|
+
margin-top: var(--empty-message-fill-action-margin, var(--empty-message-action-spacing, calc(var(--spacing) * 4)));
|
|
50
|
+
padding-top: var(--empty-message-fill-action-inset, 0px);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.EmptyMessage:is([data-fill="static"], [data-fill="absolute"]):not([data-size="sm"]):has(> .ActionRow > [data-variant]) > .ActionRow > [data-variant] {
|
|
54
|
+
width: var(--empty-message-fill-action-width, auto);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
29
58
|
/* Compact: a panel, a card section or an empty list */
|
|
30
59
|
.EmptyMessage[data-size="sm"] {
|
|
31
60
|
min-width: 0;
|
|
@@ -49,6 +78,7 @@
|
|
|
49
78
|
.EmptyMessage[data-size="sm"] .Description {
|
|
50
79
|
color: var(--color-text-tertiary);
|
|
51
80
|
font-size: var(--empty-message-compact-description-size, var(--font-text-sm-size));
|
|
81
|
+
font-weight: var(--font-weight-normal);
|
|
52
82
|
line-height: var(--empty-message-compact-description-leading, var(--font-text-sm-line-height));
|
|
53
83
|
letter-spacing: normal;
|
|
54
84
|
}
|
|
@@ -134,6 +164,7 @@
|
|
|
134
164
|
margin: 0;
|
|
135
165
|
color: var(--empty-message-description-color, var(--color-text-tertiary));
|
|
136
166
|
font-size: var(--empty-message-description-size, var(--font-text-sm-size));
|
|
167
|
+
font-weight: var(--empty-message-description-weight, var(--font-weight-normal));
|
|
137
168
|
line-height: var(--empty-message-description-leading, var(--font-text-sm-line-height));
|
|
138
169
|
letter-spacing: var(--empty-message-description-tracking, normal);
|
|
139
170
|
text-align: center;
|