@plexui/styles 0.1.45 → 0.2.0
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 +54 -1
- package/dist/es/components/Alert/Alert.module.css +75 -37
- package/dist/es/components/Button/Button.module.css +36 -28
- package/dist/es/components/ButtonGroup/ButtonGroup.module.css +15 -3
- package/dist/es/components/ColorPicker/ColorPicker.module.css +42 -70
- package/dist/es/components/ContextMenu/ContextMenu.module.css +1 -1
- package/dist/es/components/DatePicker/Calendar.module.css +16 -14
- package/dist/es/components/DateRangePicker/Calendar.module.css +16 -68
- package/dist/es/components/Dialog/Dialog.module.css +98 -59
- package/dist/es/components/Field/Field.module.css +56 -22
- package/dist/es/components/Input/Input.module.css +100 -18
- package/dist/es/components/Menu/Menu.module.css +30 -34
- package/dist/es/components/Page/Page.module.css +38 -0
- package/dist/es/components/Popover/Popover.module.css +10 -11
- package/dist/es/components/ProgressSteps/ProgressSteps.module.css +17 -0
- package/dist/es/components/RadioGroup/RadioGroup.module.css +7 -3
- package/dist/es/components/Select/Select.module.css +300 -38
- package/dist/es/components/SelectControl/SelectControl.module.css +34 -10
- package/dist/es/components/Sidebar/Sidebar.module.css +4 -2
- package/dist/es/components/Slider/Slider.module.css +86 -4
- package/dist/es/components/Sortable/Sortable.module.css +3 -2
- package/dist/es/components/StatsCard/StatsCard.module.css +269 -0
- package/dist/es/components/Stepper/Stepper.module.css +7 -4
- package/dist/es/components/SwipeActions/SwipeActions.module.css +32 -17
- package/dist/es/components/Switch/Switch.module.css +6 -5
- package/dist/es/components/TabBar/TabBar.module.css +128 -12
- package/dist/es/components/Tabs/Tabs.module.css +238 -43
- package/dist/es/components/Toast/Toast.module.css +4 -3
- package/dist/es/components/Toolbar/Toolbar.module.css +92 -58
- package/dist/es/styles/mobile-materials.css +65 -24
- package/dist/es/styles/touch.css +321 -121
- package/dist/es/styles/variables-components.css +236 -124
- package/package.json +1 -1
- package/dist/es/components/StatCard/StatCard.module.css +0 -234
|
@@ -401,6 +401,18 @@
|
|
|
401
401
|
appearance: none;
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
+
/* A search field draws no decoration of the browser's: its magnifier is an adornment. Its cancel button gives way
|
|
405
|
+
to the Input's own clear button (onClear); without one the browser's still clears the field. */
|
|
406
|
+
.Input[type="search"]::-webkit-search-decoration {
|
|
407
|
+
-webkit-appearance: none;
|
|
408
|
+
appearance: none;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
:where(.Container:has(> .Clear)) > .Input[type="search"]::-webkit-search-cancel-button {
|
|
412
|
+
-webkit-appearance: none;
|
|
413
|
+
appearance: none;
|
|
414
|
+
}
|
|
415
|
+
|
|
404
416
|
/* Dynamic pill spacing */
|
|
405
417
|
:where(.Container[data-pill]) .Input {
|
|
406
418
|
padding: 0 calc(var(--input-gutter) * var(--control-gutter-pill-scaling));
|
|
@@ -558,6 +570,27 @@
|
|
|
558
570
|
pointer-events: none;
|
|
559
571
|
transition: background-color var(--transition-duration-basic) var(--transition-ease-basic);
|
|
560
572
|
}@media (max-width: 767px) {
|
|
573
|
+
/* A search field (type="search") is the search field of iOS 27.2 that stands in the content: under a large title
|
|
574
|
+
(Files, a search tab, UIKit's stacked placement) or at the top of a sheet (Settings, IMG_5834). It takes the
|
|
575
|
+
magnifier of a Toolbar's search field (from 14px, as native) and sets its text 1px nearer (from 40.67px:
|
|
576
|
+
native 40.7 here, 42.3 in the bar's glass field), Regular, with the placeholder in the secondary label;
|
|
577
|
+
`variant="soft" pill` gives it the fill and the capsule. A Toolbar gives its own field the glass of its buttons,
|
|
578
|
+
and a row keeps its own value column and placeholder for a search Input in it. */
|
|
579
|
+
.Container:has(> .Input[type="search"]):not(:where([data-row] *)) {
|
|
580
|
+
--input-gutter: var(--toolbar-search-gutter);
|
|
581
|
+
--input-gap: calc(var(--toolbar-search-icon-gap) - 1px);
|
|
582
|
+
--input-adornment-offset: 0px;
|
|
583
|
+
--control-gutter-pill-scaling: 1;
|
|
584
|
+
--input-placeholder-text-color: var(--toolbar-search-placeholder-color);
|
|
585
|
+
font-weight: var(--toolbar-search-font-weight);
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
.Container:has(> .Input[type="search"]):not(:where([data-row] *)) > svg {
|
|
589
|
+
flex: none;
|
|
590
|
+
width: var(--toolbar-search-icon-size);
|
|
591
|
+
height: var(--toolbar-search-icon-size);
|
|
592
|
+
}
|
|
593
|
+
|
|
561
594
|
/* The clear button of a phone text field is the filled circle with a cross of iOS (xmark.circle.fill, a 17px
|
|
562
595
|
circle in the tertiary label: kit iOS 27 Text Fields 5433:15635, IMG_5514), drawn with the PlexUI
|
|
563
596
|
XCircleFilled icon, whose circle is 20 of its 24px box. The circle alone shows the button, without the
|
|
@@ -575,24 +608,38 @@
|
|
|
575
608
|
}
|
|
576
609
|
|
|
577
610
|
/* The circle is concentric with the field's rounded end, half the field's height from its end (22px on the
|
|
578
|
-
44px field).
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
611
|
+
44px field). The margins move the 44px target; the circle keeps its size. Physical sides, as the
|
|
612
|
+
container's own end gutter (padding-right) and the button's desktop margin. Nothing may follow it, a text
|
|
613
|
+
adornment either: `:last-child` does not see text, so Input sets data-end-adornment when an end adornment
|
|
614
|
+
is given (it follows the prop, not what is drawn: one that renders nothing still takes the base place). */
|
|
615
|
+
.Container:not([data-end-adornment]) > .Clear {
|
|
582
616
|
margin-right: calc(var(--input-size) / 2 - var(--input-clear-target-size, var(--input-clear-size)) / 2 - var(--input-gutter));
|
|
583
617
|
}
|
|
584
618
|
|
|
585
|
-
.Container[data-pill] > .Clear
|
|
619
|
+
.Container[data-pill]:not([data-end-adornment]) > .Clear {
|
|
586
620
|
margin-right: calc(var(--input-size) / 2 - var(--input-clear-target-size, var(--input-clear-size)) / 2 - var(--input-gutter) * var(--control-gutter-pill-scaling));
|
|
587
621
|
}
|
|
588
622
|
|
|
589
|
-
/*
|
|
590
|
-
|
|
591
|
-
:where([data-row]) .Container > .Clear
|
|
592
|
-
margin-right: calc(10px - var(--input-clear-target-size, var(--input-clear-size)) / 2);
|
|
623
|
+
/* In a row the target stands around the value's line and does not grow the row, before an end adornment too
|
|
624
|
+
(a password eye). */
|
|
625
|
+
:where([data-row]) .Container > .Clear {
|
|
593
626
|
margin-block: calc((var(--input-size) - var(--input-clear-target-size, var(--input-clear-size))) / 2);
|
|
594
627
|
}
|
|
595
628
|
|
|
629
|
+
/* Every row is frameless on a phone (a value under its label or alone too), so the circle keeps the row's
|
|
630
|
+
place in each. iOS 27.2 centres it 15pt inside the row's 20pt inset, 35pt from the cell's edge, and ends the
|
|
631
|
+
value 6pt before it: a UITextField in an inset grouped cell (simulator, iPhone 17) and Settings' Wi-Fi
|
|
632
|
+
Password (IMG_5514) both measure 35.3 and 6. The 44px target starts at the value's end and reaches into the
|
|
633
|
+
inset, so a tap at the end of the value still places the caret; the circle sits 6px into it (its 20.4px box
|
|
634
|
+
draws the 17px circle 1.7px in). Logical sides, so a right-to-left row mirrors it; this rule follows the
|
|
635
|
+
physical ones above with their weight, so it wins in either direction. */
|
|
636
|
+
:where([data-row]) .Container:not([data-end-adornment]) > .Clear.Clear {
|
|
637
|
+
justify-content: flex-start;
|
|
638
|
+
padding-inline-start: calc(6px - var(--input-clear-glyph-size, 17px) * 0.1);
|
|
639
|
+
margin-inline-start: calc(var(--input-gap) * -1);
|
|
640
|
+
margin-inline-end: calc(15px + var(--input-clear-glyph-size, 17px) / 2 + 6px - var(--input-clear-target-size, var(--input-clear-size)));
|
|
641
|
+
}
|
|
642
|
+
|
|
596
643
|
/* In a grouped row the clear button shows only while the value is being edited, as
|
|
597
644
|
the text fields of iOS forms show theirs (UITextField clearButtonMode whileEditing). */
|
|
598
645
|
:where([data-row]) .Container:not(:focus-within) > .Clear {
|
|
@@ -687,6 +734,27 @@
|
|
|
687
734
|
height: 19px;
|
|
688
735
|
}
|
|
689
736
|
}
|
|
737
|
+
/* A search field (type="search") is the search field of iOS 27.2 that stands in the content: under a large title
|
|
738
|
+
(Files, a search tab, UIKit's stacked placement) or at the top of a sheet (Settings, IMG_5834). It takes the
|
|
739
|
+
magnifier of a Toolbar's search field (from 14px, as native) and sets its text 1px nearer (from 40.67px:
|
|
740
|
+
native 40.7 here, 42.3 in the bar's glass field), Regular, with the placeholder in the secondary label;
|
|
741
|
+
`variant="soft" pill` gives it the fill and the capsule. A Toolbar gives its own field the glass of its buttons,
|
|
742
|
+
and a row keeps its own value column and placeholder for a search Input in it. */
|
|
743
|
+
:where([data-plex-layout="phone"]) .Container:has(> .Input[type="search"]):not(:where([data-row] *)) {
|
|
744
|
+
--input-gutter: var(--toolbar-search-gutter);
|
|
745
|
+
--input-gap: calc(var(--toolbar-search-icon-gap) - 1px);
|
|
746
|
+
--input-adornment-offset: 0px;
|
|
747
|
+
--control-gutter-pill-scaling: 1;
|
|
748
|
+
--input-placeholder-text-color: var(--toolbar-search-placeholder-color);
|
|
749
|
+
font-weight: var(--toolbar-search-font-weight);
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
:where([data-plex-layout="phone"]) .Container:has(> .Input[type="search"]):not(:where([data-row] *)) > svg {
|
|
753
|
+
flex: none;
|
|
754
|
+
width: var(--toolbar-search-icon-size);
|
|
755
|
+
height: var(--toolbar-search-icon-size);
|
|
756
|
+
}
|
|
757
|
+
|
|
690
758
|
/* The clear button of a phone text field is the filled circle with a cross of iOS (xmark.circle.fill, a 17px
|
|
691
759
|
circle in the tertiary label: kit iOS 27 Text Fields 5433:15635, IMG_5514), drawn with the PlexUI
|
|
692
760
|
XCircleFilled icon, whose circle is 20 of its 24px box. The circle alone shows the button, without the
|
|
@@ -704,24 +772,38 @@
|
|
|
704
772
|
}
|
|
705
773
|
|
|
706
774
|
/* The circle is concentric with the field's rounded end, half the field's height from its end (22px on the
|
|
707
|
-
44px field).
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
775
|
+
44px field). The margins move the 44px target; the circle keeps its size. Physical sides, as the
|
|
776
|
+
container's own end gutter (padding-right) and the button's desktop margin. Nothing may follow it, a text
|
|
777
|
+
adornment either: `:last-child` does not see text, so Input sets data-end-adornment when an end adornment
|
|
778
|
+
is given (it follows the prop, not what is drawn: one that renders nothing still takes the base place). */
|
|
779
|
+
:where([data-plex-layout="phone"]) .Container:not([data-end-adornment]) > .Clear {
|
|
711
780
|
margin-right: calc(var(--input-size) / 2 - var(--input-clear-target-size, var(--input-clear-size)) / 2 - var(--input-gutter));
|
|
712
781
|
}
|
|
713
782
|
|
|
714
|
-
:where([data-plex-layout="phone"]) .Container[data-pill] > .Clear
|
|
783
|
+
:where([data-plex-layout="phone"]) .Container[data-pill]:not([data-end-adornment]) > .Clear {
|
|
715
784
|
margin-right: calc(var(--input-size) / 2 - var(--input-clear-target-size, var(--input-clear-size)) / 2 - var(--input-gutter) * var(--control-gutter-pill-scaling));
|
|
716
785
|
}
|
|
717
786
|
|
|
718
|
-
/*
|
|
719
|
-
|
|
720
|
-
:where([data-plex-layout="phone"]) :where([data-row]) .Container > .Clear
|
|
721
|
-
margin-right: calc(10px - var(--input-clear-target-size, var(--input-clear-size)) / 2);
|
|
787
|
+
/* In a row the target stands around the value's line and does not grow the row, before an end adornment too
|
|
788
|
+
(a password eye). */
|
|
789
|
+
:where([data-plex-layout="phone"]) :where([data-row]) .Container > .Clear {
|
|
722
790
|
margin-block: calc((var(--input-size) - var(--input-clear-target-size, var(--input-clear-size))) / 2);
|
|
723
791
|
}
|
|
724
792
|
|
|
793
|
+
/* Every row is frameless on a phone (a value under its label or alone too), so the circle keeps the row's
|
|
794
|
+
place in each. iOS 27.2 centres it 15pt inside the row's 20pt inset, 35pt from the cell's edge, and ends the
|
|
795
|
+
value 6pt before it: a UITextField in an inset grouped cell (simulator, iPhone 17) and Settings' Wi-Fi
|
|
796
|
+
Password (IMG_5514) both measure 35.3 and 6. The 44px target starts at the value's end and reaches into the
|
|
797
|
+
inset, so a tap at the end of the value still places the caret; the circle sits 6px into it (its 20.4px box
|
|
798
|
+
draws the 17px circle 1.7px in). Logical sides, so a right-to-left row mirrors it; this rule follows the
|
|
799
|
+
physical ones above with their weight, so it wins in either direction. */
|
|
800
|
+
:where([data-plex-layout="phone"]) :where([data-row]) .Container:not([data-end-adornment]) > .Clear.Clear {
|
|
801
|
+
justify-content: flex-start;
|
|
802
|
+
padding-inline-start: calc(6px - var(--input-clear-glyph-size, 17px) * 0.1);
|
|
803
|
+
margin-inline-start: calc(var(--input-gap) * -1);
|
|
804
|
+
margin-inline-end: calc(15px + var(--input-clear-glyph-size, 17px) / 2 + 6px - var(--input-clear-target-size, var(--input-clear-size)));
|
|
805
|
+
}
|
|
806
|
+
|
|
725
807
|
/* In a grouped row the clear button shows only while the value is being edited, as
|
|
726
808
|
the text fields of iOS forms show theirs (UITextField clearButtonMode whileEditing). */
|
|
727
809
|
:where([data-plex-layout="phone"]) :where([data-row]) .Container:not(:focus-within) > .Clear {
|
|
@@ -600,12 +600,9 @@
|
|
|
600
600
|
}/* iPhone menu items share label/subtitle and selection geometry. */@media (max-width: 767px) {
|
|
601
601
|
.MenuList {
|
|
602
602
|
background: var(--menu-mobile-background, var(--color-surface-elevated));
|
|
603
|
+
backdrop-filter: var(--menu-mobile-backdrop-filter, none);
|
|
603
604
|
}
|
|
604
605
|
|
|
605
|
-
:where([data-theme="dark"]) .MenuList {
|
|
606
|
-
backdrop-filter: var(--menu-mobile-backdrop-filter, none);
|
|
607
|
-
}
|
|
608
|
-
|
|
609
606
|
/* No tracking of its own: the system font tracks the labels. Nine labels of native iOS 26 menus
|
|
610
607
|
(iOS2 IMG_5524, 5525, 17/400) measure within 2px at @3x without it and 7 to 16px short with -0.43px. */
|
|
611
608
|
.MenuList:not([data-layout="horizontal"]) :is(.MenuItem, .MenuItemContent):not(:where(.RadioGroup[data-layout="horizontal"] *)) {
|
|
@@ -619,7 +616,7 @@
|
|
|
619
616
|
display: grid;
|
|
620
617
|
grid-template-columns: minmax(0, 1fr);
|
|
621
618
|
align-content: center;
|
|
622
|
-
min-height: 42px;
|
|
619
|
+
min-height: var(--menu-row-min-height, 42px);
|
|
623
620
|
padding-block: 0;
|
|
624
621
|
}
|
|
625
622
|
|
|
@@ -651,7 +648,7 @@
|
|
|
651
648
|
.MenuList:not([data-layout="horizontal"]) .MenuItem:not(:where(.RadioGroup[data-layout="horizontal"] *)) > .PressableInner {
|
|
652
649
|
grid-area: 1 / 1;
|
|
653
650
|
min-width: 0;
|
|
654
|
-
padding-block: 10px;
|
|
651
|
+
padding-block: var(--menu-row-padding-block, 10px);
|
|
655
652
|
}
|
|
656
653
|
|
|
657
654
|
.MenuList:not([data-layout="horizontal"]) .MenuItem:has(.ItemDescription),
|
|
@@ -663,20 +660,15 @@
|
|
|
663
660
|
gap: 2px;
|
|
664
661
|
}
|
|
665
662
|
|
|
663
|
+
/* A subtitle wraps, as a UIAction's does in an iOS 27.2 menu (ref-app pickers-desc-uikit: 13pt on 18pt lines,
|
|
664
|
+
Owner's on three); the kit's one truncated line gives way to the simulator. */
|
|
666
665
|
.MenuList:not([data-layout="horizontal"]) .ItemDescription {
|
|
667
|
-
font-size: 13px;
|
|
668
|
-
line-height: 18px;
|
|
666
|
+
font-size: var(--menu-description-font-size, 13px);
|
|
667
|
+
line-height: var(--menu-description-line-height, 18px);
|
|
669
668
|
letter-spacing: normal;
|
|
670
669
|
color: var(--menu-description-color, var(--color-text-secondary));
|
|
671
670
|
}
|
|
672
671
|
|
|
673
|
-
/* The native text subtitle is one line; rich description slots retain their layout. */
|
|
674
|
-
.MenuList:not([data-layout="horizontal"]) .ItemDescription:not(:has(*)) {
|
|
675
|
-
overflow: hidden;
|
|
676
|
-
text-overflow: ellipsis;
|
|
677
|
-
white-space: nowrap;
|
|
678
|
-
}
|
|
679
|
-
|
|
680
672
|
.MenuList:not([data-layout="horizontal"]) .MenuItem[data-disabled] {
|
|
681
673
|
color: var(--menu-disabled-label-color, var(--color-text-tertiary));
|
|
682
674
|
opacity: 1;
|
|
@@ -700,7 +692,7 @@
|
|
|
700
692
|
|
|
701
693
|
.MenuList:not([data-layout="horizontal"]) :is(.RadioIndicator, .CheckboxIndicator) {
|
|
702
694
|
width: var(--menu-check-column, 13px);
|
|
703
|
-
height: 22px;
|
|
695
|
+
height: var(--menu-check-slot-height, 22px);
|
|
704
696
|
/* A 22px selection slot beside the 20px label line. */
|
|
705
697
|
border-radius: 0;
|
|
706
698
|
box-shadow: none;
|
|
@@ -719,7 +711,7 @@
|
|
|
719
711
|
|
|
720
712
|
.MenuList:not([data-layout="horizontal"]) .CheckboxCircle {
|
|
721
713
|
width: var(--menu-check-column, 13px);
|
|
722
|
-
height: 22px;
|
|
714
|
+
height: var(--menu-check-slot-height, 22px);
|
|
723
715
|
border-radius: 0;
|
|
724
716
|
background: none;
|
|
725
717
|
color: inherit;
|
|
@@ -747,15 +739,18 @@
|
|
|
747
739
|
height: var(--menu-check-size, 18px);
|
|
748
740
|
color: inherit;
|
|
749
741
|
}
|
|
742
|
+
|
|
743
|
+
.MenuList:not([data-layout="horizontal"]) .SelectionCheck path {
|
|
744
|
+
stroke: currentColor;
|
|
745
|
+
stroke-width: var(--menu-check-stroke, 0);
|
|
746
|
+
stroke-linejoin: round;
|
|
747
|
+
}
|
|
750
748
|
}
|
|
751
749
|
:where([data-plex-layout="phone"]) .MenuList {
|
|
752
750
|
background: var(--menu-mobile-background, var(--color-surface-elevated));
|
|
751
|
+
backdrop-filter: var(--menu-mobile-backdrop-filter, none);
|
|
753
752
|
}
|
|
754
753
|
|
|
755
|
-
:where([data-theme="dark"]) :where([data-plex-layout="phone"]) .MenuList, :where([data-plex-layout="phone"]) :where([data-theme="dark"]) .MenuList {
|
|
756
|
-
backdrop-filter: var(--menu-mobile-backdrop-filter, none);
|
|
757
|
-
}
|
|
758
|
-
|
|
759
754
|
/* No tracking of its own: the system font tracks the labels. Nine labels of native iOS 26 menus
|
|
760
755
|
(iOS2 IMG_5524, 5525, 17/400) measure within 2px at @3x without it and 7 to 16px short with -0.43px. */
|
|
761
756
|
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) :is(.MenuItem, .MenuItemContent):not(:where(.RadioGroup[data-layout="horizontal"] *)) {
|
|
@@ -769,7 +764,7 @@
|
|
|
769
764
|
display: grid;
|
|
770
765
|
grid-template-columns: minmax(0, 1fr);
|
|
771
766
|
align-content: center;
|
|
772
|
-
min-height: 42px;
|
|
767
|
+
min-height: var(--menu-row-min-height, 42px);
|
|
773
768
|
padding-block: 0;
|
|
774
769
|
}
|
|
775
770
|
|
|
@@ -801,7 +796,7 @@
|
|
|
801
796
|
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) .MenuItem:not(:where(.RadioGroup[data-layout="horizontal"] *)) > .PressableInner {
|
|
802
797
|
grid-area: 1 / 1;
|
|
803
798
|
min-width: 0;
|
|
804
|
-
padding-block: 10px;
|
|
799
|
+
padding-block: var(--menu-row-padding-block, 10px);
|
|
805
800
|
}
|
|
806
801
|
|
|
807
802
|
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) .MenuItem:has(.ItemDescription),
|
|
@@ -813,20 +808,15 @@
|
|
|
813
808
|
gap: 2px;
|
|
814
809
|
}
|
|
815
810
|
|
|
811
|
+
/* A subtitle wraps, as a UIAction's does in an iOS 27.2 menu (ref-app pickers-desc-uikit: 13pt on 18pt lines,
|
|
812
|
+
Owner's on three); the kit's one truncated line gives way to the simulator. */
|
|
816
813
|
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) .ItemDescription {
|
|
817
|
-
font-size: 13px;
|
|
818
|
-
line-height: 18px;
|
|
814
|
+
font-size: var(--menu-description-font-size, 13px);
|
|
815
|
+
line-height: var(--menu-description-line-height, 18px);
|
|
819
816
|
letter-spacing: normal;
|
|
820
817
|
color: var(--menu-description-color, var(--color-text-secondary));
|
|
821
818
|
}
|
|
822
819
|
|
|
823
|
-
/* The native text subtitle is one line; rich description slots retain their layout. */
|
|
824
|
-
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) .ItemDescription:not(:has(*)) {
|
|
825
|
-
overflow: hidden;
|
|
826
|
-
text-overflow: ellipsis;
|
|
827
|
-
white-space: nowrap;
|
|
828
|
-
}
|
|
829
|
-
|
|
830
820
|
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) .MenuItem[data-disabled] {
|
|
831
821
|
color: var(--menu-disabled-label-color, var(--color-text-tertiary));
|
|
832
822
|
opacity: 1;
|
|
@@ -850,7 +840,7 @@
|
|
|
850
840
|
|
|
851
841
|
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) :is(.RadioIndicator, .CheckboxIndicator) {
|
|
852
842
|
width: var(--menu-check-column, 13px);
|
|
853
|
-
height: 22px;
|
|
843
|
+
height: var(--menu-check-slot-height, 22px);
|
|
854
844
|
/* A 22px selection slot beside the 20px label line. */
|
|
855
845
|
border-radius: 0;
|
|
856
846
|
box-shadow: none;
|
|
@@ -869,7 +859,7 @@
|
|
|
869
859
|
|
|
870
860
|
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) .CheckboxCircle {
|
|
871
861
|
width: var(--menu-check-column, 13px);
|
|
872
|
-
height: 22px;
|
|
862
|
+
height: var(--menu-check-slot-height, 22px);
|
|
873
863
|
border-radius: 0;
|
|
874
864
|
background: none;
|
|
875
865
|
color: inherit;
|
|
@@ -896,6 +886,12 @@
|
|
|
896
886
|
width: var(--menu-check-size, 18px);
|
|
897
887
|
height: var(--menu-check-size, 18px);
|
|
898
888
|
color: inherit;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
:where([data-plex-layout="phone"]) .MenuList:not([data-layout="horizontal"]) .SelectionCheck path {
|
|
892
|
+
stroke: currentColor;
|
|
893
|
+
stroke-width: var(--menu-check-stroke, 0);
|
|
894
|
+
stroke-linejoin: round;
|
|
899
895
|
}/* The items of a submenu (Menu.tsx SubContent). They lie in the panel itself; a phone submenu scrolls them under its
|
|
900
896
|
heading row (below). */.SubmenuItems {
|
|
901
897
|
display: contents;
|
|
@@ -50,6 +50,10 @@
|
|
|
50
50
|
font-size: var(--page-title-font-size);
|
|
51
51
|
font-weight: var(--font-weight-semibold);
|
|
52
52
|
line-height: var(--page-title-line-height);
|
|
53
|
+
}/* A bare title takes the bar's free space, as a heading does, so it follows Page.Leading and the actions keep
|
|
54
|
+
the end (a phone sets the bar as a grid of its own) */.Bar > .Title {
|
|
55
|
+
flex: 1 1 auto;
|
|
56
|
+
min-width: 0;
|
|
53
57
|
}.Subtitle {
|
|
54
58
|
display: flex;
|
|
55
59
|
align-items: center;
|
|
@@ -301,11 +305,28 @@
|
|
|
301
305
|
--button-radius: var(--radius-full);
|
|
302
306
|
}
|
|
303
307
|
|
|
308
|
+
/* The weight on the button itself, as in a Toolbar: touch.css's semibold --button-font-weight outweighs the one
|
|
309
|
+
above. Medium, a solid one semibold (iOS 27.2, plan 178 block 15). */
|
|
310
|
+
:is(.Leading, .Actions) > :is(button, a, [role="link"]) {
|
|
311
|
+
font-weight: var(--toolbar-label-font-weight);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
:is(.Leading, .Actions) > :is(button, a, [role="link"])[data-variant="solid"] {
|
|
315
|
+
font-weight: var(--toolbar-label-prominent-font-weight);
|
|
316
|
+
}
|
|
317
|
+
|
|
304
318
|
.Leading > :is(button, a):not([data-navigation-action]),
|
|
305
319
|
.Actions > :is(button, a):not([data-navigation-action]) {
|
|
306
320
|
--button-icon-size: 17px;
|
|
307
321
|
}
|
|
308
322
|
|
|
323
|
+
/* A bar's text button keeps the gutters of a Toolbar's (Toolbar.module.css), not those of a content button of
|
|
324
|
+
its step (12px at md since iOS 27.2's 17pt medium button); a disabled ButtonLink renders a span with the
|
|
325
|
+
link role. */
|
|
326
|
+
:is(.Leading, .Actions) > :is(button, a, [role="link"]):not([data-navigation-action], [data-uniform]) {
|
|
327
|
+
--button-gutter: var(--toolbar-label-gutter);
|
|
328
|
+
}
|
|
329
|
+
|
|
309
330
|
/* An icon alone in the circle is a bar symbol, as in a Toolbar: Files' More (IMG_5686) and Freeform's
|
|
310
331
|
ellipsis (IMG_5684) draw it 19.7pt wide, not at the size of a label beside text (owner 08.11). */
|
|
311
332
|
:is(.Leading, .Actions) > :is(button, a)[data-uniform]:not([data-navigation-action]) {
|
|
@@ -582,10 +603,27 @@
|
|
|
582
603
|
--button-radius: var(--radius-full);
|
|
583
604
|
}
|
|
584
605
|
|
|
606
|
+
/* The weight on the button itself, as in a Toolbar: touch.css's semibold --button-font-weight outweighs the one
|
|
607
|
+
above. Medium, a solid one semibold (iOS 27.2, plan 178 block 15). */
|
|
608
|
+
:where([data-plex-layout="phone"]) :is(.Leading, .Actions) > :is(button, a, [role="link"]) {
|
|
609
|
+
font-weight: var(--toolbar-label-font-weight);
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
:where([data-plex-layout="phone"]) :is(.Leading, .Actions) > :is(button, a, [role="link"])[data-variant="solid"] {
|
|
613
|
+
font-weight: var(--toolbar-label-prominent-font-weight);
|
|
614
|
+
}
|
|
615
|
+
|
|
585
616
|
:where([data-plex-layout="phone"]) .Leading > :is(button, a):not([data-navigation-action]), :where([data-plex-layout="phone"]) .Actions > :is(button, a):not([data-navigation-action]) {
|
|
586
617
|
--button-icon-size: 17px;
|
|
587
618
|
}
|
|
588
619
|
|
|
620
|
+
/* A bar's text button keeps the gutters of a Toolbar's (Toolbar.module.css), not those of a content button of
|
|
621
|
+
its step (12px at md since iOS 27.2's 17pt medium button); a disabled ButtonLink renders a span with the
|
|
622
|
+
link role. */
|
|
623
|
+
:where([data-plex-layout="phone"]) :is(.Leading, .Actions) > :is(button, a, [role="link"]):not([data-navigation-action], [data-uniform]) {
|
|
624
|
+
--button-gutter: var(--toolbar-label-gutter);
|
|
625
|
+
}
|
|
626
|
+
|
|
589
627
|
/* An icon alone in the circle is a bar symbol, as in a Toolbar: Files' More (IMG_5686) and Freeform's
|
|
590
628
|
ellipsis (IMG_5684) draw it 19.7pt wide, not at the size of a label beside text (owner 08.11). */
|
|
591
629
|
:where([data-plex-layout="phone"]) :is(.Leading, .Actions) > :is(button, a)[data-uniform]:not([data-navigation-action]) {
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.Popover[data-translucent] {
|
|
23
|
+
/* Its own shadow on a phone too, where the panel otherwise takes the menus' */
|
|
24
|
+
box-shadow: var(--shadow), var(--shadow-hairline);
|
|
23
25
|
backdrop-filter: blur(16px);
|
|
24
26
|
background: linear-gradient(360deg, rgb(247 247 248 / 50%) 0%, rgb(247 247 248 / 100%) 100%);
|
|
25
27
|
}
|
|
@@ -60,23 +62,20 @@
|
|
|
60
62
|
transition-duration: var(--motion-exit);
|
|
61
63
|
transition-property: opacity, transform;
|
|
62
64
|
transition-timing-function: var(--cubic-exit-snappy);
|
|
63
|
-
}/* iPhone: the panel
|
|
64
|
-
|
|
65
|
+
}/* iPhone: the panel is the glass of the menus in both themes, with their shadow and edge, and the phone radius,
|
|
66
|
+
as iOS 27.2 draws a popover (UIPopoverPresentationController and SwiftUI .popover on an iPhone 17, measures/
|
|
67
|
+
sheets.md). A translucent panel and the DatePicker calendar keep their own surface and shadow. */@media (max-width: 767px) {
|
|
65
68
|
.Popover {
|
|
66
69
|
background: var(--popover-mobile-background, var(--color-surface-elevated));
|
|
70
|
+
box-shadow: var(--popover-mobile-shadow, var(--menu-shadow, var(--shadow), var(--shadow-hairline)));
|
|
71
|
+
backdrop-filter: var(--popover-mobile-backdrop-filter, none);
|
|
67
72
|
}
|
|
68
|
-
|
|
69
|
-
:where([data-theme="dark"]) .Popover {
|
|
70
|
-
backdrop-filter: var(--popover-mobile-backdrop-filter, none);
|
|
71
|
-
}
|
|
72
73
|
}
|
|
73
74
|
:where([data-plex-layout="phone"]) .Popover {
|
|
74
75
|
background: var(--popover-mobile-background, var(--color-surface-elevated));
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
backdrop-filter: var(--popover-mobile-backdrop-filter, none);
|
|
79
|
-
}@keyframes shake {
|
|
76
|
+
box-shadow: var(--popover-mobile-shadow, var(--menu-shadow, var(--shadow), var(--shadow-hairline)));
|
|
77
|
+
backdrop-filter: var(--popover-mobile-backdrop-filter, none);
|
|
78
|
+
}@keyframes shake {
|
|
80
79
|
0% {
|
|
81
80
|
transform: translateX(0);
|
|
82
81
|
}
|
|
@@ -177,6 +177,23 @@
|
|
|
177
177
|
max-width: 100%;
|
|
178
178
|
padding-top: calc(var(--spacing) * 2);
|
|
179
179
|
padding-bottom: 0;
|
|
180
|
+
}/* A step that shows its indicator alone keeps its title for screen readers (`visuallyHidden`) and takes no room:
|
|
181
|
+
out of the flow, so neither its padding nor the step's gap shows under the indicator */.StepContent:has(> [data-visually-hidden]):not(:has(> :not([data-visually-hidden]))) {
|
|
182
|
+
position: absolute;
|
|
183
|
+
width: 1px;
|
|
184
|
+
height: 1px;
|
|
185
|
+
padding: 0;
|
|
186
|
+
overflow: hidden;
|
|
187
|
+
clip-path: inset(50%);
|
|
188
|
+
}.StepTitle[data-visually-hidden] {
|
|
189
|
+
position: absolute;
|
|
190
|
+
width: 1px;
|
|
191
|
+
height: 1px;
|
|
192
|
+
padding: 0;
|
|
193
|
+
margin: -1px;
|
|
194
|
+
overflow: hidden;
|
|
195
|
+
clip-path: inset(50%);
|
|
196
|
+
white-space: nowrap;
|
|
180
197
|
}.StepTitle {
|
|
181
198
|
/* Center title vertically with indicator: (indicator-size - line-height) / 2 */
|
|
182
199
|
padding-top: calc((var(--indicator-size) - var(--font-text-sm-line-height)) / 2);
|
|
@@ -155,11 +155,15 @@
|
|
|
155
155
|
100% {
|
|
156
156
|
opacity: 1;
|
|
157
157
|
}
|
|
158
|
-
}/* The touch stylesheet uses the same single-selection mark inside and outside Field rows.
|
|
158
|
+
}/* The touch stylesheet uses the same single-selection mark inside and outside Field rows. It is the checkmark of
|
|
159
|
+
an iOS 27.2 list row: 15 x 14.3pt of ink ending 24.3pt from the cell's edge (UITableViewCell .checkmark and
|
|
160
|
+
SwiftUI's inline Picker on an iPhone 17 alike), so the 24-unit symbol is drawn at 26px over its 22px column,
|
|
161
|
+
as Checkbox draws its ghost mark (--checkbox-ghost-icon-size). */.Checkmark {
|
|
159
162
|
display: var(--radio-group-checkmark-display, none);
|
|
160
163
|
grid-area: 1 / 1;
|
|
161
|
-
width:
|
|
162
|
-
height:
|
|
164
|
+
width: 26px;
|
|
165
|
+
height: 26px;
|
|
166
|
+
margin: -2px;
|
|
163
167
|
color: var(--radio-group-checkmark-color, var(--color-text));
|
|
164
168
|
}
|
|
165
169
|
}
|