@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
|
@@ -243,11 +243,11 @@
|
|
|
243
243
|
padding-right: var(--sidebar-menu-item-trailing-padding);
|
|
244
244
|
overflow: hidden;
|
|
245
245
|
}@media (min-width: 768px) {
|
|
246
|
-
.MenuButtonInner {
|
|
246
|
+
.MenuButtonInner:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
|
|
247
247
|
--sidebar-menu-row-height: var(--sidebar-menu-item-height-desktop);
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
.MenuButton {
|
|
250
|
+
.MenuButton:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
|
|
251
251
|
margin: var(--sidebar-menu-item-margin-desktop);
|
|
252
252
|
}
|
|
253
253
|
}/* Icon wrapper - fixed width for centering */.MenuButtonIcon {
|
|
@@ -461,7 +461,7 @@
|
|
|
461
461
|
}.MenuSubButton:focus-visible::before {
|
|
462
462
|
box-shadow: 0 0 0 2px var(--color-ring);
|
|
463
463
|
}@media (min-width: 768px) {
|
|
464
|
-
.MenuSubButton {
|
|
464
|
+
.MenuSubButton:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
|
|
465
465
|
--sidebar-menu-row-height: calc(12px + var(--sidebar-menu-sub-item-line-height, 20px));
|
|
466
466
|
|
|
467
467
|
padding: 6px var(--sidebar-menu-item-trailing-padding);
|
|
@@ -574,11 +574,41 @@
|
|
|
574
574
|
font-weight: var(--font-weight-semibold);
|
|
575
575
|
color: var(--sidebar-foreground);
|
|
576
576
|
}.CardDismiss {
|
|
577
|
+
/* Keeps its 3xs face and glyph on a phone, where a uniform 3xs button is otherwise the kit's 28px circle (touch.css). */
|
|
578
|
+
--button-uniform-size-3xs: var(--control-size-3xs);
|
|
579
|
+
--button-icon-size-3xs: var(--control-icon-size-xs);
|
|
580
|
+
|
|
577
581
|
position: absolute;
|
|
578
582
|
top: 6px;
|
|
579
583
|
right: 6px;
|
|
580
584
|
border-radius: var(--radius-xs);
|
|
581
|
-
}
|
|
585
|
+
}/* On a phone the dismiss button takes the 44px target of iOS around its face; the negative margin
|
|
586
|
+
keeps the glyph in the card's corner. */@media (max-width: 767px) {
|
|
587
|
+
.CardDismiss {
|
|
588
|
+
min-width: 44px;
|
|
589
|
+
min-height: 44px;
|
|
590
|
+
margin: calc((var(--button-size) - 44px) / 2);
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
.CardDismiss::before,
|
|
594
|
+
.CardDismiss::after {
|
|
595
|
+
width: var(--button-size);
|
|
596
|
+
height: var(--button-size);
|
|
597
|
+
margin: auto;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
:where([data-plex-layout="phone"]) .CardDismiss {
|
|
601
|
+
min-width: 44px;
|
|
602
|
+
min-height: 44px;
|
|
603
|
+
margin: calc((var(--button-size) - 44px) / 2);
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
:where([data-plex-layout="phone"]) .CardDismiss::before,
|
|
607
|
+
:where([data-plex-layout="phone"]) .CardDismiss::after {
|
|
608
|
+
width: var(--button-size);
|
|
609
|
+
height: var(--button-size);
|
|
610
|
+
margin: auto;
|
|
611
|
+
}.CardContent {
|
|
582
612
|
flex: 1;
|
|
583
613
|
color: var(--color-text-secondary);
|
|
584
614
|
font-size: var(--font-text-sm-size);
|
|
@@ -677,7 +707,7 @@
|
|
|
677
707
|
align-items: center;
|
|
678
708
|
height: var(--sidebar-menu-item-height);
|
|
679
709
|
}@media (min-width: 768px) {
|
|
680
|
-
.TriggerInner {
|
|
710
|
+
.TriggerInner:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
|
|
681
711
|
height: var(--sidebar-menu-item-height-desktop);
|
|
682
712
|
}
|
|
683
713
|
}/* Icon wrapper - same as MenuButtonIcon for alignment */.TriggerIcon {
|
|
@@ -704,11 +734,48 @@
|
|
|
704
734
|
align-items: center;
|
|
705
735
|
box-sizing: border-box;
|
|
706
736
|
padding: 12px 0 8px; /* No horizontal padding - Input component has its own */
|
|
707
|
-
}/*
|
|
708
|
-
|
|
737
|
+
}/* Phone drawer search: the iOS 26 kit Sidebar Search Field (5840:30501), a 44px capsule with 11px insets
|
|
738
|
+
on the field's own soft fill. The magnifier is the 26px PlexUI Search with a 4px gap (text at 41; the kit
|
|
739
|
+
glyph frame 21 and gap 8 put it at 40), the earlier toolbar search, which now follows the native bottom bar.
|
|
740
|
+
The glyph and the placeholder take the secondary label, as the kit's Vibrant Secondary. */@media (max-width: 767px) {
|
|
741
|
+
.MobileSidebar .Input > [data-slot="input"][data-variant] {
|
|
742
|
+
--input-size: 44px;
|
|
743
|
+
--input-gap: 4px;
|
|
744
|
+
--input-adornment-offset: 0px;
|
|
745
|
+
--control-gutter-pill-scaling: 1;
|
|
746
|
+
--input-placeholder-text-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
747
|
+
|
|
748
|
+
border-radius: var(--radius-full);
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
.MobileSidebar .Input > [data-slot="input"][data-variant] > svg {
|
|
752
|
+
flex: none;
|
|
753
|
+
width: 26px;
|
|
754
|
+
height: 26px;
|
|
755
|
+
color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
:where([data-plex-layout="phone"]) .MobileSidebar .Input > [data-slot="input"][data-variant] {
|
|
759
|
+
--input-size: 44px;
|
|
760
|
+
--input-gap: 4px;
|
|
761
|
+
--input-adornment-offset: 0px;
|
|
762
|
+
--control-gutter-pill-scaling: 1;
|
|
763
|
+
--input-placeholder-text-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
764
|
+
|
|
765
|
+
border-radius: var(--radius-full);
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
:where([data-plex-layout="phone"]) .MobileSidebar .Input > [data-slot="input"][data-variant] > svg {
|
|
769
|
+
flex: none;
|
|
770
|
+
width: 26px;
|
|
771
|
+
height: 26px;
|
|
772
|
+
color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
773
|
+
}/* =============================================
|
|
774
|
+
Mobile Menu Button (PlexUI SidebarMenuMobile → X)
|
|
709
775
|
============================================= */.MobileMenuButton {
|
|
710
776
|
position: relative;
|
|
711
|
-
display:
|
|
777
|
+
display: grid;
|
|
778
|
+
place-items: center;
|
|
712
779
|
width: var(--sidebar-mobile-button-size);
|
|
713
780
|
height: var(--sidebar-mobile-button-size);
|
|
714
781
|
padding: 0;
|
|
@@ -717,12 +784,13 @@
|
|
|
717
784
|
background: none;
|
|
718
785
|
cursor: pointer;
|
|
719
786
|
transition: box-shadow 0.3s var(--cubic-enter);
|
|
720
|
-
}
|
|
787
|
+
}/* Hover, press and the open menu take the fill of the neighbouring Trigger and menu rows, which shows in
|
|
788
|
+
both themes; the surface color matched a white page in light and only showed in dark (plan 124). */.MobileMenuButton::before {
|
|
721
789
|
position: absolute;
|
|
722
790
|
inset: 0;
|
|
723
791
|
display: block;
|
|
724
792
|
border-radius: var(--sidebar-mobile-button-radius);
|
|
725
|
-
background: var(--
|
|
793
|
+
background: var(--sidebar-accent);
|
|
726
794
|
content: "";
|
|
727
795
|
opacity: 0;
|
|
728
796
|
transition: opacity 0.15s ease;
|
|
@@ -736,62 +804,30 @@
|
|
|
736
804
|
}.MobileMenuButton:focus-visible {
|
|
737
805
|
box-shadow: 0 0 0 2px var(--color-ring);
|
|
738
806
|
outline: 0;
|
|
739
|
-
}/*
|
|
807
|
+
}/* The glyphs are PlexUI icons, not drawn lines: the menu glyph turns away as the X turns in. */.MobileMenuIcon {
|
|
740
808
|
position: relative;
|
|
741
|
-
top: 0;
|
|
742
|
-
left: 7px;
|
|
743
|
-
overflow: hidden;
|
|
744
809
|
display: block;
|
|
745
810
|
width: var(--sidebar-mobile-icon-size);
|
|
746
811
|
height: var(--sidebar-mobile-icon-size);
|
|
747
|
-
|
|
812
|
+
color: var(--sidebar-mobile-icon-color);
|
|
813
|
+
}.MobileMenuGlyph {
|
|
748
814
|
position: absolute;
|
|
749
|
-
|
|
750
|
-
left: 0;
|
|
751
|
-
display: block;
|
|
752
|
-
width: var(--sidebar-mobile-icon-size);
|
|
753
|
-
height: var(--sidebar-mobile-line-height);
|
|
754
|
-
transition: transform var(--sidebar-mobile-line-transition-duration) var(--cubic-move) 0.2s;
|
|
755
|
-
}.MobileMenuLine::before {
|
|
756
|
-
display: block;
|
|
757
|
-
width: var(--sidebar-mobile-icon-size);
|
|
758
|
-
height: var(--sidebar-mobile-line-height);
|
|
759
|
-
background: var(--sidebar-mobile-line-color);
|
|
760
|
-
content: "";
|
|
761
|
-
transform-origin: center;
|
|
762
|
-
transition: transform var(--sidebar-mobile-line-transition-duration) var(--cubic-move);
|
|
763
|
-
will-change: transform;
|
|
764
|
-
}/* Top line - closed state */.MobileMenuLine[data-top] {
|
|
765
|
-
transform: translateY(0);
|
|
766
|
-
transition-delay: 0.2s;
|
|
767
|
-
}.MobileMenuLine[data-top]::before {
|
|
768
|
-
transform: rotate(0);
|
|
769
|
-
transition-delay: 0s;
|
|
770
|
-
}/* Bottom line - closed state */.MobileMenuLine[data-bottom] {
|
|
771
|
-
top: 12px;
|
|
772
|
-
transform: translateY(0);
|
|
773
|
-
transition-delay: 0.2s;
|
|
774
|
-
}.MobileMenuLine[data-bottom]::before {
|
|
775
|
-
transform: rotate(0);
|
|
776
|
-
transition-delay: 0s;
|
|
777
|
-
}/* Middle wrapper */.MobileMenuMiddle {
|
|
815
|
+
inset: 0;
|
|
778
816
|
display: block;
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
}.
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
}.MobileMenuButton[data-expanded] .
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
}.MobileMenuButton[data-expanded] .MobileMenuMiddle {
|
|
794
|
-
transform: translateX(0);
|
|
817
|
+
width: 100%;
|
|
818
|
+
height: 100%;
|
|
819
|
+
transition:
|
|
820
|
+
opacity var(--sidebar-mobile-icon-transition-duration) var(--cubic-move),
|
|
821
|
+
transform var(--sidebar-mobile-icon-transition-duration) var(--cubic-move);
|
|
822
|
+
}.MobileMenuGlyph[data-glyph="close"],
|
|
823
|
+
.MobileMenuButton[data-expanded] .MobileMenuGlyph[data-glyph="menu"] {
|
|
824
|
+
opacity: 0;
|
|
825
|
+
transform: rotate(-45deg) scale(0.8);
|
|
826
|
+
}.MobileMenuButton[data-expanded] .MobileMenuGlyph[data-glyph="menu"] {
|
|
827
|
+
transform: rotate(45deg) scale(0.8);
|
|
828
|
+
}.MobileMenuButton[data-expanded] .MobileMenuGlyph[data-glyph="close"] {
|
|
829
|
+
opacity: 1;
|
|
830
|
+
transform: none;
|
|
795
831
|
}/* =============================================
|
|
796
832
|
Mobile Drawer
|
|
797
833
|
============================================= */.MobileBackdrop {
|
|
@@ -880,12 +916,424 @@
|
|
|
880
916
|
.MobileMenuContent .GroupLabel {
|
|
881
917
|
opacity: 1 !important;
|
|
882
918
|
pointer-events: auto !important;
|
|
883
|
-
}/*
|
|
884
|
-
|
|
919
|
+
}/* =============================================
|
|
920
|
+
Mobile drawer list
|
|
921
|
+
On an iPhone the sidebar of an app is a list on a grouped page (Mail and
|
|
922
|
+
Freeform in iOS 26). Each menu is a card of 52px rows: the icon in a 40px
|
|
923
|
+
column, the label at 17px, counts in the secondary label color and a
|
|
924
|
+
disclosure chevron on a row that leads somewhere. A group label heads its
|
|
925
|
+
section in semibold 20px; an item with a submenu stays a row of the card, its
|
|
926
|
+
chevron turns down and its items follow it, indented, as nested folders do
|
|
927
|
+
in iOS lists. The App variant keeps its side drawer.
|
|
928
|
+
============================================= */.MenuDisclosure {
|
|
929
|
+
display: none;
|
|
930
|
+
}@media (max-width: 767px) {
|
|
931
|
+
.MobileSidebar:not(:where(.App *)) {
|
|
932
|
+
--sidebar-list-inset: var(--sidebar-mobile-list-inset, var(--mobile-layout-margin, 16px));
|
|
933
|
+
--sidebar-list-icon-column: var(--sidebar-mobile-list-icon-column, 40px);
|
|
934
|
+
--sidebar-list-indent: var(--sidebar-mobile-list-indent, 20px);
|
|
935
|
+
--sidebar-row-inset: var(--sidebar-list-inset);
|
|
936
|
+
--sidebar-menu-item-height: var(--sidebar-mobile-list-row-height, 52px);
|
|
937
|
+
--sidebar-menu-sub-item-padding-y: calc(
|
|
938
|
+
(var(--sidebar-mobile-list-row-height, 52px) - var(--sidebar-menu-sub-item-line-height, 20px)) / 2
|
|
939
|
+
);
|
|
940
|
+
--sidebar-menu-item-trailing-padding: var(--sidebar-list-inset);
|
|
941
|
+
--sidebar-menu-item-radius: 0px;
|
|
942
|
+
--sidebar-menu-text: var(--color-text);
|
|
943
|
+
--sidebar-menu-text-active: var(--color-text);
|
|
944
|
+
--sidebar-icon-size: var(--sidebar-mobile-list-icon-size, 24px);
|
|
945
|
+
--sidebar-icon-wrapper-size: var(--sidebar-icon-size);
|
|
946
|
+
--sidebar-icon-margin: 0 calc(var(--sidebar-list-icon-column) - var(--sidebar-icon-size)) 0 0;
|
|
947
|
+
|
|
948
|
+
background: var(--sidebar-mobile-background, var(--mobile-surface-grouped-primary, var(--color-surface-secondary)));
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
.MobileSidebar:not(:where(.App *)) .Content {
|
|
952
|
+
padding: 0;
|
|
953
|
+
-webkit-mask-image: none;
|
|
954
|
+
mask-image: none;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
.MobileSidebar:not(:where(.App *)) .FooterSeparator {
|
|
958
|
+
display: none;
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
.MobileSidebar:not(:where(.App *)) .Content + .Footer,
|
|
962
|
+
.MobileSidebar:not(:where(.App *)) .Header + .Content {
|
|
963
|
+
margin-top: var(--sidebar-mobile-list-section-gap, 20px);
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
.MobileSidebar:not(:where(.App *)) .Group {
|
|
967
|
+
padding-bottom: 0;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
/* Cards without a header stand 20px apart (iOS 26 Settings); a header
|
|
971
|
+
takes its own 44px, 18px below the card above it, as in Mail. */
|
|
972
|
+
.MobileSidebar:not(:where(.App *)) .Group + .Group {
|
|
973
|
+
margin-top: var(--sidebar-mobile-list-section-gap, 20px);
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
.MobileSidebar:not(:where(.App *)) .Group + .Group:has(> .GroupLabel:first-child) {
|
|
977
|
+
margin-top: var(--sidebar-mobile-list-header-gap, 18px);
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
.MobileSidebar:not(:where(.App *)) .Group .GroupLabel,
|
|
981
|
+
.MobileSidebar:not(:where(.App *)) .Group .GroupLabel[data-size] {
|
|
982
|
+
display: flex;
|
|
983
|
+
align-items: center;
|
|
984
|
+
min-height: var(--sidebar-mobile-list-header-height, 44px);
|
|
985
|
+
margin: 0;
|
|
986
|
+
padding: 0 var(--sidebar-list-inset);
|
|
987
|
+
color: var(--color-text);
|
|
988
|
+
font-size: var(--sidebar-mobile-list-header-font-size, 20px);
|
|
989
|
+
font-weight: var(--sidebar-mobile-list-header-font-weight, var(--font-weight-semibold));
|
|
990
|
+
line-height: var(--sidebar-mobile-list-header-line-height, 25px);
|
|
991
|
+
letter-spacing: normal;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
/* The card. The page's surface sets its color: white on a grouped page. */
|
|
995
|
+
.MobileSidebar:not(:where(.App *)) .Menu {
|
|
996
|
+
overflow: hidden;
|
|
997
|
+
border-radius: var(--sidebar-mobile-list-radius, 26px);
|
|
998
|
+
background: var(
|
|
999
|
+
--sidebar-mobile-list-background,
|
|
1000
|
+
var(--mobile-surface-secondary, var(--mobile-surface-grouped-secondary, var(--color-surface)))
|
|
1001
|
+
);
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
.MobileSidebar:not(:where(.App *)) .Menu .Menu,
|
|
1005
|
+
.MobileSidebar:not(:where(.App *)) .MenuSub {
|
|
1006
|
+
border-radius: 0;
|
|
1007
|
+
background: none;
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
.MobileSidebar:not(:where(.App *)) .MenuButton {
|
|
1011
|
+
margin: 0;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
.MobileSidebar:not(:where(.App *)) .MenuButtonInner {
|
|
1015
|
+
padding-inline: var(--sidebar-row-inset) var(--sidebar-list-inset);
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
.MobileSidebar:not(:where(.App *)) .MenuButtonLabel:first-child {
|
|
1019
|
+
padding-left: 0;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
/* Every submenu button has an indent class: this outranks their desktop padding */
|
|
1023
|
+
.MobileSidebar:not(:where(.App *)) .Menu .MenuSubButton:is(.indent0, .indent1, .indent2, .indent3) {
|
|
1024
|
+
margin: 0;
|
|
1025
|
+
padding-inline: var(--sidebar-row-inset) var(--sidebar-list-inset);
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
/* An item of a submenu starts under its parent's label, one step further
|
|
1029
|
+
for every level below. */
|
|
1030
|
+
.MobileSidebar:not(:where(.App *)) .MenuSubButton.indent1 {
|
|
1031
|
+
--sidebar-row-inset: calc(var(--sidebar-list-inset) + var(--sidebar-list-indent));
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
.MobileSidebar:not(:where(.App *)) .MenuSub[data-has-icons="true"] .MenuSubButton.indent1 {
|
|
1035
|
+
--sidebar-row-inset: calc(var(--sidebar-list-inset) + var(--sidebar-list-icon-column));
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
.MobileSidebar:not(:where(.App *)) .MenuSubButton.indent2 {
|
|
1039
|
+
--sidebar-row-inset: calc(var(--sidebar-list-inset) + 2 * var(--sidebar-list-indent));
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
.MobileSidebar:not(:where(.App *)) .MenuSubButton.indent3 {
|
|
1043
|
+
--sidebar-row-inset: calc(var(--sidebar-list-inset) + 3 * var(--sidebar-list-indent));
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
/* A selected or pressed row fills its cell edge to edge; the card clips
|
|
1047
|
+
the corners. */
|
|
1048
|
+
.MobileSidebar:not(:where(.App *)) :is(.MenuButton, .MenuSubButton):is(*, :hover, :active, :focus-visible)::before {
|
|
1049
|
+
border-radius: 0;
|
|
1050
|
+
transform: none;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
.MobileSidebar:not(:where(.App *)) :is(.MenuButton, .MenuSubButton):focus-visible::before {
|
|
1054
|
+
opacity: 1;
|
|
1055
|
+
box-shadow: inset 0 0 0 2px var(--color-ring);
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
.MobileSidebar:not(:where(.App *)) :is(.MenuButton, .MenuSubButton):focus-visible:not([data-active="true"])::before {
|
|
1059
|
+
background: transparent;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
/* Separators between the rows of a card start at the label and end at
|
|
1063
|
+
the inset, like FieldGroup rows. */
|
|
1064
|
+
.MobileSidebar:not(:where(.App *)) .Menu :is(.MenuButton, .MenuSubButton)::after {
|
|
1065
|
+
position: absolute;
|
|
1066
|
+
z-index: 1;
|
|
1067
|
+
top: 0;
|
|
1068
|
+
inset-inline: var(--sidebar-row-inset) var(--sidebar-list-inset);
|
|
1069
|
+
height: 1px;
|
|
1070
|
+
background: var(--color-border);
|
|
1071
|
+
content: "";
|
|
1072
|
+
pointer-events: none;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
.MobileSidebar:not(:where(.App *)) .Menu .MenuButton:has(> .MenuButtonInner > .MenuButtonIcon)::after {
|
|
1076
|
+
inset-inline-start: calc(var(--sidebar-row-inset) + var(--sidebar-list-icon-column));
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
.MobileSidebar:not(:where(.App *)) .Menu > .MenuItem:first-child > .MenuButton::after,
|
|
1080
|
+
.MobileSidebar:not(:where(.App *)) .Menu > .MenuItem:first-child > * > .MenuButton::after {
|
|
1081
|
+
display: none;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
/* A selected cell hides the separators at its edges, as in iOS lists. */
|
|
1085
|
+
.MobileSidebar:not(:where(.App *)) .Menu :is(.MenuButton, .MenuSubButton)[data-active="true"]::after, .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuItem, .MenuSubItem):has(> :is(.MenuButton, .MenuSubButton)[data-active="true"], > * > :is(.MenuButton, .MenuSubButton)[data-active="true"]) + * > :is(.MenuButton, .MenuSubButton)::after, .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuItem, .MenuSubItem):has(> :is(.MenuButton, .MenuSubButton)[data-active="true"], > * > :is(.MenuButton, .MenuSubButton)[data-active="true"]) + * > * > :is(.MenuButton, .MenuSubButton)::after, .MobileSidebar:not(:where(.App *)) .Menu .MenuItem:has(> .MenuButton[data-active="true"], > * > .MenuButton[data-active="true"]) > .MenuSub > :first-child > :is(.MenuButton, .MenuSubButton)::after {
|
|
1086
|
+
opacity: 0;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
/* Counts read as values of the row */
|
|
1090
|
+
.MobileSidebar:not(:where(.App *)) .MenuBadge {
|
|
1091
|
+
color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
1092
|
+
font-size: var(--sidebar-menu-item-font-size);
|
|
1093
|
+
line-height: var(--sidebar-menu-item-line-height);
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
.MobileSidebar:not(:where(.App *)) .MenuChevron {
|
|
1097
|
+
color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
1098
|
+
margin-right: var(--sidebar-mobile-list-chevron-offset, -2.83px);
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
.MobileSidebar:not(:where(.App *)) .MenuChevron svg {
|
|
1102
|
+
width: var(--sidebar-mobile-list-chevron-size, 20px);
|
|
1103
|
+
height: var(--sidebar-mobile-list-chevron-size, 20px);
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
/* The disclosure ends 3px inside the inset (Mail): its glyph has 6.67px
|
|
1107
|
+
of air on the right in its 20px box. It keeps 8px after a count. */
|
|
1108
|
+
.MobileSidebar:not(:where(.App *)) .MenuDisclosure {
|
|
1109
|
+
position: relative;
|
|
1110
|
+
z-index: 1;
|
|
1111
|
+
display: flex;
|
|
1112
|
+
flex-shrink: 0;
|
|
1113
|
+
margin-inline: auto var(--sidebar-mobile-list-disclosure-offset, -3.67px);
|
|
1114
|
+
color: var(--mobile-label-tertiary, var(--color-text-tertiary));
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
.MobileSidebar:not(:where(.App *)) .MenuDisclosure svg {
|
|
1118
|
+
width: var(--sidebar-mobile-list-chevron-size, 20px);
|
|
1119
|
+
height: var(--sidebar-mobile-list-chevron-size, 20px);
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
.MobileSidebar:not(:where(.App *)) .MenuBadge ~ .MenuDisclosure {
|
|
1123
|
+
margin-inline-start: var(--sidebar-mobile-list-disclosure-gap, 8px);
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
/* Rows that open a menu, expand a level or carry their own controls do
|
|
1127
|
+
not lead to another page. */
|
|
1128
|
+
.MobileSidebar:not(:where(.App *)) :is(.MenuButton, .MenuSubButton):is([aria-haspopup], [aria-expanded], :has(.MenuChevron)) .MenuDisclosure, .MobileSidebar:not(:where(.App *)) :is(.MenuItem, .MenuSubItem) > :is(.MenuButton, .MenuSubButton):has(~ :not(.MenuSub)) .MenuDisclosure, .MobileSidebar:not(:where(.App *)) :is(.MenuItem, .MenuSubItem) > * > :is(.MenuButton, .MenuSubButton):has(~ *) .MenuDisclosure {
|
|
1129
|
+
display: none;
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) {
|
|
1133
|
+
--sidebar-list-inset: var(--sidebar-mobile-list-inset, var(--mobile-layout-margin, 16px));
|
|
1134
|
+
--sidebar-list-icon-column: var(--sidebar-mobile-list-icon-column, 40px);
|
|
1135
|
+
--sidebar-list-indent: var(--sidebar-mobile-list-indent, 20px);
|
|
1136
|
+
--sidebar-row-inset: var(--sidebar-list-inset);
|
|
1137
|
+
--sidebar-menu-item-height: var(--sidebar-mobile-list-row-height, 52px);
|
|
1138
|
+
--sidebar-menu-sub-item-padding-y: calc(
|
|
1139
|
+
(var(--sidebar-mobile-list-row-height, 52px) - var(--sidebar-menu-sub-item-line-height, 20px)) / 2
|
|
1140
|
+
);
|
|
1141
|
+
--sidebar-menu-item-trailing-padding: var(--sidebar-list-inset);
|
|
1142
|
+
--sidebar-menu-item-radius: 0px;
|
|
1143
|
+
--sidebar-menu-text: var(--color-text);
|
|
1144
|
+
--sidebar-menu-text-active: var(--color-text);
|
|
1145
|
+
--sidebar-icon-size: var(--sidebar-mobile-list-icon-size, 24px);
|
|
1146
|
+
--sidebar-icon-wrapper-size: var(--sidebar-icon-size);
|
|
1147
|
+
--sidebar-icon-margin: 0 calc(var(--sidebar-list-icon-column) - var(--sidebar-icon-size)) 0 0;
|
|
1148
|
+
|
|
1149
|
+
background: var(--sidebar-mobile-background, var(--mobile-surface-grouped-primary, var(--color-surface-secondary)));
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Content {
|
|
1153
|
+
padding: 0;
|
|
1154
|
+
-webkit-mask-image: none;
|
|
1155
|
+
mask-image: none;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .FooterSeparator {
|
|
1159
|
+
display: none;
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Content + .Footer,
|
|
1163
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Header + .Content {
|
|
1164
|
+
margin-top: var(--sidebar-mobile-list-section-gap, 20px);
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Group {
|
|
1168
|
+
padding-bottom: 0;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
/* Cards without a header stand 20px apart (iOS 26 Settings); a header
|
|
1172
|
+
takes its own 44px, 18px below the card above it, as in Mail. */
|
|
1173
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Group + .Group {
|
|
1174
|
+
margin-top: var(--sidebar-mobile-list-section-gap, 20px);
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Group + .Group:has(> .GroupLabel:first-child) {
|
|
1178
|
+
margin-top: var(--sidebar-mobile-list-header-gap, 18px);
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Group .GroupLabel,
|
|
1182
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Group .GroupLabel[data-size] {
|
|
1183
|
+
display: flex;
|
|
1184
|
+
align-items: center;
|
|
1185
|
+
min-height: var(--sidebar-mobile-list-header-height, 44px);
|
|
1186
|
+
margin: 0;
|
|
1187
|
+
padding: 0 var(--sidebar-list-inset);
|
|
1188
|
+
color: var(--color-text);
|
|
1189
|
+
font-size: var(--sidebar-mobile-list-header-font-size, 20px);
|
|
1190
|
+
font-weight: var(--sidebar-mobile-list-header-font-weight, var(--font-weight-semibold));
|
|
1191
|
+
line-height: var(--sidebar-mobile-list-header-line-height, 25px);
|
|
1192
|
+
letter-spacing: normal;
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
/* The card. The page's surface sets its color: white on a grouped page. */
|
|
1196
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu {
|
|
1197
|
+
overflow: hidden;
|
|
1198
|
+
border-radius: var(--sidebar-mobile-list-radius, 26px);
|
|
1199
|
+
background: var(
|
|
1200
|
+
--sidebar-mobile-list-background,
|
|
1201
|
+
var(--mobile-surface-secondary, var(--mobile-surface-grouped-secondary, var(--color-surface)))
|
|
1202
|
+
);
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu .Menu,
|
|
1206
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuSub {
|
|
1207
|
+
border-radius: 0;
|
|
1208
|
+
background: none;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuButton {
|
|
1212
|
+
margin: 0;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuButtonInner {
|
|
1216
|
+
padding-inline: var(--sidebar-row-inset) var(--sidebar-list-inset);
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuButtonLabel:first-child {
|
|
1220
|
+
padding-left: 0;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
/* Every submenu button has an indent class: this outranks their desktop padding */
|
|
1224
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu .MenuSubButton:is(.indent0, .indent1, .indent2, .indent3) {
|
|
1225
|
+
margin: 0;
|
|
1226
|
+
padding-inline: var(--sidebar-row-inset) var(--sidebar-list-inset);
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
/* An item of a submenu starts under its parent's label, one step further
|
|
1230
|
+
for every level below. */
|
|
1231
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuSubButton.indent1 {
|
|
1232
|
+
--sidebar-row-inset: calc(var(--sidebar-list-inset) + var(--sidebar-list-indent));
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuSub[data-has-icons="true"] .MenuSubButton.indent1 {
|
|
1236
|
+
--sidebar-row-inset: calc(var(--sidebar-list-inset) + var(--sidebar-list-icon-column));
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuSubButton.indent2 {
|
|
1240
|
+
--sidebar-row-inset: calc(var(--sidebar-list-inset) + 2 * var(--sidebar-list-indent));
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuSubButton.indent3 {
|
|
1244
|
+
--sidebar-row-inset: calc(var(--sidebar-list-inset) + 3 * var(--sidebar-list-indent));
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
/* A selected or pressed row fills its cell edge to edge; the card clips
|
|
1248
|
+
the corners. */
|
|
1249
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) :is(.MenuButton, .MenuSubButton):is(*, :hover, :active, :focus-visible)::before {
|
|
1250
|
+
border-radius: 0;
|
|
1251
|
+
transform: none;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) :is(.MenuButton, .MenuSubButton):focus-visible::before {
|
|
1255
|
+
opacity: 1;
|
|
1256
|
+
box-shadow: inset 0 0 0 2px var(--color-ring);
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) :is(.MenuButton, .MenuSubButton):focus-visible:not([data-active="true"])::before {
|
|
1260
|
+
background: transparent;
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
/* Separators between the rows of a card start at the label and end at
|
|
1264
|
+
the inset, like FieldGroup rows. */
|
|
1265
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuButton, .MenuSubButton)::after {
|
|
1266
|
+
position: absolute;
|
|
1267
|
+
z-index: 1;
|
|
1268
|
+
top: 0;
|
|
1269
|
+
inset-inline: var(--sidebar-row-inset) var(--sidebar-list-inset);
|
|
1270
|
+
height: 1px;
|
|
1271
|
+
background: var(--color-border);
|
|
1272
|
+
content: "";
|
|
1273
|
+
pointer-events: none;
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu .MenuButton:has(> .MenuButtonInner > .MenuButtonIcon)::after {
|
|
1277
|
+
inset-inline-start: calc(var(--sidebar-row-inset) + var(--sidebar-list-icon-column));
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu > .MenuItem:first-child > .MenuButton::after,
|
|
1281
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu > .MenuItem:first-child > * > .MenuButton::after {
|
|
1282
|
+
display: none;
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
/* A selected cell hides the separators at its edges, as in iOS lists. */
|
|
1286
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuButton, .MenuSubButton)[data-active="true"]::after, :where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuItem, .MenuSubItem):has(> :is(.MenuButton, .MenuSubButton)[data-active="true"], > * > :is(.MenuButton, .MenuSubButton)[data-active="true"]) + * > :is(.MenuButton, .MenuSubButton)::after, :where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu :is(.MenuItem, .MenuSubItem):has(> :is(.MenuButton, .MenuSubButton)[data-active="true"], > * > :is(.MenuButton, .MenuSubButton)[data-active="true"]) + * > * > :is(.MenuButton, .MenuSubButton)::after, :where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .Menu .MenuItem:has(> .MenuButton[data-active="true"], > * > .MenuButton[data-active="true"]) > .MenuSub > :first-child > :is(.MenuButton, .MenuSubButton)::after {
|
|
1287
|
+
opacity: 0;
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
/* Counts read as values of the row */
|
|
1291
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuBadge {
|
|
1292
|
+
color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
1293
|
+
font-size: var(--sidebar-menu-item-font-size);
|
|
1294
|
+
line-height: var(--sidebar-menu-item-line-height);
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuChevron {
|
|
1298
|
+
color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
1299
|
+
margin-right: var(--sidebar-mobile-list-chevron-offset, -2.83px);
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuChevron svg {
|
|
1303
|
+
width: var(--sidebar-mobile-list-chevron-size, 20px);
|
|
1304
|
+
height: var(--sidebar-mobile-list-chevron-size, 20px);
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
/* The disclosure ends 3px inside the inset (Mail): its glyph has 6.67px
|
|
1308
|
+
of air on the right in its 20px box. It keeps 8px after a count. */
|
|
1309
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuDisclosure {
|
|
1310
|
+
position: relative;
|
|
1311
|
+
z-index: 1;
|
|
1312
|
+
display: flex;
|
|
1313
|
+
flex-shrink: 0;
|
|
1314
|
+
margin-inline: auto var(--sidebar-mobile-list-disclosure-offset, -3.67px);
|
|
1315
|
+
color: var(--mobile-label-tertiary, var(--color-text-tertiary));
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuDisclosure svg {
|
|
1319
|
+
width: var(--sidebar-mobile-list-chevron-size, 20px);
|
|
1320
|
+
height: var(--sidebar-mobile-list-chevron-size, 20px);
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) .MenuBadge ~ .MenuDisclosure {
|
|
1324
|
+
margin-inline-start: var(--sidebar-mobile-list-disclosure-gap, 8px);
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
/* Rows that open a menu, expand a level or carry their own controls do
|
|
1328
|
+
not lead to another page. */
|
|
1329
|
+
:where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) :is(.MenuButton, .MenuSubButton):is([aria-haspopup], [aria-expanded], :has(.MenuChevron)) .MenuDisclosure, :where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) :is(.MenuItem, .MenuSubItem) > :is(.MenuButton, .MenuSubButton):has(~ :not(.MenuSub)) .MenuDisclosure, :where([data-plex-layout="phone"]) .MobileSidebar:not(:where(.App *)) :is(.MenuItem, .MenuSubItem) > * > :is(.MenuButton, .MenuSubButton):has(~ *) .MenuDisclosure {
|
|
1330
|
+
display: none;
|
|
1331
|
+
}/* Desktop breakpoint - sidebar becomes fixed */@media (min-width: 768px) {
|
|
1332
|
+
.MobileSidebar:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
|
|
885
1333
|
display: none;
|
|
886
1334
|
}
|
|
887
1335
|
|
|
888
|
-
.MobileBackdrop {
|
|
1336
|
+
.MobileBackdrop:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
|
|
889
1337
|
display: none;
|
|
890
1338
|
}
|
|
891
1339
|
}/* Containment changes positioning; keep the token-based drawer/backdrop stacking. */.MobileBackdrop.contained {
|
|
@@ -893,11 +1341,11 @@
|
|
|
893
1341
|
}.MobileSidebar.contained {
|
|
894
1342
|
position: absolute;
|
|
895
1343
|
}/* Contained mode - override desktop hiding for demo purposes */@media (min-width: 768px) {
|
|
896
|
-
.MobileSidebar.contained {
|
|
1344
|
+
.MobileSidebar.contained:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
|
|
897
1345
|
display: flex;
|
|
898
1346
|
}
|
|
899
1347
|
|
|
900
|
-
.MobileBackdrop.contained {
|
|
1348
|
+
.MobileBackdrop.contained:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
|
|
901
1349
|
display: block;
|
|
902
1350
|
}
|
|
903
1351
|
}/* Contained mode visible state - full width positioning */:global([data-mobile-menu="visible"]) .MobileSidebar.contained {
|
|
@@ -934,7 +1382,7 @@
|
|
|
934
1382
|
padding: 8px 12px;
|
|
935
1383
|
height: auto;
|
|
936
1384
|
}@media (min-width: 768px) {
|
|
937
|
-
.Sidebar[data-variant="docs"] .MenuButtonInner {
|
|
1385
|
+
.Sidebar[data-variant="docs"] .MenuButtonInner:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
|
|
938
1386
|
padding: 6px 12px;
|
|
939
1387
|
}
|
|
940
1388
|
}@media (hover: hover) and (pointer: fine) {
|
|
@@ -955,7 +1403,7 @@ background: var(--gray-300);
|
|
|
955
1403
|
}/* MenuSubButton needs explicit padding in docs variant (composes MenuButton which has padding: 0) */.Sidebar[data-variant="docs"] .MenuSubButton {
|
|
956
1404
|
padding: 8px 12px;
|
|
957
1405
|
}@media (min-width: 768px) {
|
|
958
|
-
.Sidebar[data-variant="docs"] .MenuSubButton {
|
|
1406
|
+
.Sidebar[data-variant="docs"] .MenuSubButton:not(:where([data-plex-layout="phone"], [data-plex-layout="phone"] *)) {
|
|
959
1407
|
padding: 6px 12px;
|
|
960
1408
|
}
|
|
961
1409
|
}/* Docs variant indent levels - override base padding-left *//* indent0 = 12px aligns with section header (GroupLabel) */.Sidebar[data-variant="docs"] .MenuSubButton.indent0 {
|
|
@@ -1140,7 +1588,113 @@ background: var(--gray-300);
|
|
|
1140
1588
|
padding-block: 8px;
|
|
1141
1589
|
border-top: 1px solid var(--sidebar-border);
|
|
1142
1590
|
}
|
|
1143
|
-
}
|
|
1591
|
+
}
|
|
1592
|
+
:where([data-plex-layout="phone"]) .App {
|
|
1593
|
+
--sidebar-drawer-width: min(20.625rem, calc(100vw - 4.5rem));
|
|
1594
|
+
--sidebar-mobile-gutter: 16px;
|
|
1595
|
+
--sidebar-mobile-header-height: 68px;
|
|
1596
|
+
--sidebar-footer-shadow: none;
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
:where([data-plex-layout="phone"]) .App .Inset {
|
|
1600
|
+
z-index: 41;
|
|
1601
|
+
transition: transform 200ms var(--cubic-exit);
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
:where([data-plex-layout="phone"]) .App[data-mobile-menu="visible"] .Inset {
|
|
1605
|
+
box-shadow: 0 0 2rem rgb(0 0 0 / 12%);
|
|
1606
|
+
transform: translateX(var(--sidebar-drawer-width));
|
|
1607
|
+
transition: transform var(--motion-enter-large) var(--cubic-enter);
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
:where([data-plex-layout="phone"]) .App .MobileBackdrop {
|
|
1611
|
+
left: var(--sidebar-drawer-width);
|
|
1612
|
+
z-index: 42;
|
|
1613
|
+
background: transparent;
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
:where([data-plex-layout="phone"]) .App .MobileSidebar {
|
|
1617
|
+
--sidebar-background: var(--color-surface-secondary);
|
|
1618
|
+
--sidebar-menu-item-height: 44px;
|
|
1619
|
+
--sidebar-menu-item-font-size: 17px;
|
|
1620
|
+
--sidebar-menu-item-margin: 0;
|
|
1621
|
+
--sidebar-icon-size: 20px;
|
|
1622
|
+
--sidebar-icon-margin: 0 5px 0 11px;
|
|
1623
|
+
right: auto;
|
|
1624
|
+
left: 0;
|
|
1625
|
+
width: var(--sidebar-drawer-width);
|
|
1626
|
+
padding-top: 0;
|
|
1627
|
+
transition: visibility 0s 200ms;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
:where([data-plex-layout="phone"]) .App[data-mobile-menu="visible"] .MobileSidebar {
|
|
1631
|
+
right: auto;
|
|
1632
|
+
width: var(--sidebar-drawer-width);
|
|
1633
|
+
transition: visibility 0s;
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
:where([data-plex-layout="phone"]) .App .MobileSidebar > * {
|
|
1637
|
+
opacity: 1;
|
|
1638
|
+
transform: none;
|
|
1639
|
+
transition: none;
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
/* The drawer sits in the page's shadow until the page has moved off it */
|
|
1643
|
+
:where([data-plex-layout="phone"]) .App .MobileSidebar::after {
|
|
1644
|
+
position: absolute;
|
|
1645
|
+
inset: 0;
|
|
1646
|
+
background: rgb(0 0 0 / 40%);
|
|
1647
|
+
content: "";
|
|
1648
|
+
pointer-events: none;
|
|
1649
|
+
transition: opacity 200ms var(--cubic-exit);
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
:where([data-plex-layout="phone"]) .App[data-mobile-menu="visible"] .MobileSidebar::after {
|
|
1653
|
+
opacity: 0;
|
|
1654
|
+
transition: opacity var(--motion-enter-large) var(--cubic-enter);
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
:where([data-plex-layout="phone"]) .App .MobileSidebar .Content {
|
|
1658
|
+
padding: 0;
|
|
1659
|
+
-webkit-mask-image: none;
|
|
1660
|
+
mask-image: none;
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
:where([data-plex-layout="phone"]) .App .MobileSidebar .MenuButtonInner {
|
|
1664
|
+
--sidebar-menu-item-trailing-padding: 8px;
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
:where([data-plex-layout="phone"]) .App .MobileSidebar .MenuButtonLabel {
|
|
1668
|
+
line-height: 22px;
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
:where([data-plex-layout="phone"]) .App .MobileSidebar .MenuChevron svg {
|
|
1672
|
+
width: 18px;
|
|
1673
|
+
height: 18px;
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
:where([data-plex-layout="phone"]) .App .MobileSidebar .MenuBadge {
|
|
1677
|
+
font-size: 17px;
|
|
1678
|
+
line-height: 22px;
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
:where([data-plex-layout="phone"]) .App .MobileSidebar .MenuBadge span {
|
|
1682
|
+
padding-right: 0;
|
|
1683
|
+
font-size: 17px;
|
|
1684
|
+
line-height: 22px;
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
:where([data-plex-layout="phone"]) .App .MobileSidebar .MenuSub .MenuSubButton.indent1 {
|
|
1688
|
+
padding: 11px 8px 11px 48px;
|
|
1689
|
+
font-size: 17px;
|
|
1690
|
+
line-height: 22px;
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
:where([data-plex-layout="phone"]) .App .MobileFooter {
|
|
1694
|
+
--sidebar-menu-item-margin: 0;
|
|
1695
|
+
padding-block: 8px;
|
|
1696
|
+
border-top: 1px solid var(--sidebar-border);
|
|
1697
|
+
}/* =============================================
|
|
1144
1698
|
RTL Support
|
|
1145
1699
|
============================================= *//* Layout reverses for RTL with side="right" */.SidebarLayout[dir="rtl"] {
|
|
1146
1700
|
flex-direction: row-reverse;
|
|
@@ -1176,8 +1730,7 @@ background: var(--gray-300);
|
|
|
1176
1730
|
.Card,
|
|
1177
1731
|
.CardTitleChevron,
|
|
1178
1732
|
.MobileMenuButton,
|
|
1179
|
-
.
|
|
1180
|
-
.MobileMenuMiddle,
|
|
1733
|
+
.MobileMenuGlyph,
|
|
1181
1734
|
.MobileBackdrop,
|
|
1182
1735
|
.MobileSidebar,
|
|
1183
1736
|
.MobileSidebar > *,
|
|
@@ -1186,7 +1739,7 @@ background: var(--gray-300);
|
|
|
1186
1739
|
.App .Header,
|
|
1187
1740
|
.App .Header span,
|
|
1188
1741
|
.App .Inset,
|
|
1189
|
-
:is(.MenuButton, .MenuSubButton, .Trigger, .MobileMenuButton
|
|
1742
|
+
:is(.MenuButton, .MenuSubButton, .Trigger, .MobileMenuButton)::before,
|
|
1190
1743
|
.MenuButtonIcon::after,
|
|
1191
1744
|
.MobileSidebar::after {
|
|
1192
1745
|
/* Preference overrides every state/variant's duration and delay, including
|