@plexui/styles 0.1.32 → 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 +30 -0
- package/dist/es/components/Alert/Alert.module.css +112 -1
- package/dist/es/components/Badge/Badge.module.css +41 -8
- package/dist/es/components/Breadcrumb/Breadcrumb.module.css +35 -1
- package/dist/es/components/Button/Button.module.css +178 -77
- package/dist/es/components/Button/NavigationButton.module.css +27 -0
- package/dist/es/components/Card/Card.module.css +27 -9
- package/dist/es/components/Checkbox/Checkbox.module.css +83 -90
- 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 +35 -5
- package/dist/es/components/DatePicker/Calendar.module.css +280 -3
- package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +20 -0
- package/dist/es/components/DateRangePicker/Calendar.module.css +223 -3
- package/dist/es/components/DateRangePicker/Trigger.module.css +29 -1
- package/dist/es/components/Dialog/Dialog.module.css +386 -86
- package/dist/es/components/EmptyMessage/EmptyMessage.module.css +89 -14
- package/dist/es/components/Field/Field.module.css +346 -19
- package/dist/es/components/FieldError/FieldError.module.css +13 -10
- package/dist/es/components/FieldGroup/FieldGroup.module.css +103 -4
- package/dist/es/components/FileUpload/FileUpload.module.css +103 -10
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +46 -14
- package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +36 -14
- package/dist/es/components/Indicator/LoadingIndicator.module.css +48 -6
- package/dist/es/components/Input/Input.module.css +195 -25
- package/dist/es/components/InputGroup/InputGroup.module.css +5 -1
- package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +27 -147
- package/dist/es/components/Menu/Menu.module.css +425 -33
- package/dist/es/components/OTPInput/OTPInput.module.css +11 -3
- package/dist/es/components/Page/Page.module.css +217 -20
- package/dist/es/components/PageControl/PageControl.module.css +81 -0
- package/dist/es/components/Popover/Popover.module.css +10 -1
- package/dist/es/components/RadioGroup/RadioGroup.module.css +10 -10
- package/dist/es/components/Select/Select.module.css +162 -13
- package/dist/es/components/SelectControl/SelectControl.module.css +118 -11
- package/dist/es/components/ShimmerText/ShimmerText.module.css +7 -0
- package/dist/es/components/Sidebar/Sidebar.module.css +347 -72
- package/dist/es/components/Skeleton/Skeleton.module.css +4 -0
- package/dist/es/components/Slider/Slider.module.css +96 -52
- package/dist/es/components/Sortable/Sortable.module.css +20 -7
- package/dist/es/components/Stepper/Stepper.module.css +98 -0
- package/dist/es/components/Switch/Switch.module.css +16 -7
- package/dist/es/components/TabBar/TabBar.module.css +233 -0
- package/dist/es/components/Table/Table.module.css +4 -2
- package/dist/es/components/Tabs/Tabs.module.css +186 -6
- package/dist/es/components/TagInput/TagInput.module.css +64 -19
- package/dist/es/components/TextLink/TextLink.module.css +4 -4
- package/dist/es/components/Textarea/Textarea.module.css +1 -1
- package/dist/es/components/Toast/Toast.module.css +120 -5
- package/dist/es/components/Toolbar/Toolbar.module.css +579 -0
- package/dist/es/components/Tooltip/Tooltip.module.css +1 -1
- package/dist/es/styles/base.css +1 -1
- 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 +69 -0
- package/dist/es/styles/mobile-surfaces.css +46 -0
- package/dist/es/styles/touch.css +524 -63
- package/dist/es/styles/variables-components.css +286 -7
- package/package.json +1 -1
- package/postcss/mixins.mjs +1 -1
|
@@ -211,11 +211,11 @@
|
|
|
211
211
|
transition-timing-function: var(--cubic-enter);
|
|
212
212
|
will-change: opacity, transform;
|
|
213
213
|
}/* Hover state */@media (hover: hover) and (pointer: fine) {
|
|
214
|
-
.MenuButton:hover {
|
|
214
|
+
.MenuButton:hover:where(:not(:root[data-input="touch"] *)) {
|
|
215
215
|
color: var(--sidebar-menu-text-active);
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
.MenuButton:hover::before {
|
|
218
|
+
.MenuButton:hover:where(:not(:root[data-input="touch"] *))::before {
|
|
219
219
|
opacity: 0.5;
|
|
220
220
|
transform: scale(1);
|
|
221
221
|
}
|
|
@@ -372,8 +372,17 @@
|
|
|
372
372
|
margin-left: auto;
|
|
373
373
|
opacity: 0;
|
|
374
374
|
transition: opacity var(--transition-duration-basic) var(--cubic-enter);
|
|
375
|
-
}.MenuItem:
|
|
376
|
-
|
|
375
|
+
}.MenuItem:focus-within .MenuAction {
|
|
376
|
+
opacity: 1;
|
|
377
|
+
}@media (hover: hover) and (pointer: fine) {
|
|
378
|
+
.MenuItem:hover:where(:not(:root[data-input="touch"] *)) .MenuAction {
|
|
379
|
+
opacity: 1;
|
|
380
|
+
}
|
|
381
|
+
}/* Touch actions remain discoverable without a hover state. */@media (hover: none), (pointer: coarse) {
|
|
382
|
+
.MenuAction {
|
|
383
|
+
opacity: 1;
|
|
384
|
+
}
|
|
385
|
+
}:where(:root[data-input="touch"]) .MenuAction {
|
|
377
386
|
opacity: 1;
|
|
378
387
|
}/* =============================================
|
|
379
388
|
Submenu
|
|
@@ -432,11 +441,11 @@
|
|
|
432
441
|
transition-timing-function: var(--cubic-enter);
|
|
433
442
|
will-change: opacity, transform;
|
|
434
443
|
}@media (hover: hover) and (pointer: fine) {
|
|
435
|
-
.MenuSubButton:hover {
|
|
444
|
+
.MenuSubButton:hover:where(:not(:root[data-input="touch"] *)) {
|
|
436
445
|
color: var(--sidebar-menu-text-active);
|
|
437
446
|
}
|
|
438
447
|
|
|
439
|
-
.MenuSubButton:hover::before {
|
|
448
|
+
.MenuSubButton:hover:where(:not(:root[data-input="touch"] *))::before {
|
|
440
449
|
opacity: 0.5;
|
|
441
450
|
transform: scale(1);
|
|
442
451
|
}
|
|
@@ -552,8 +561,10 @@
|
|
|
552
561
|
padding 0.15s ease,
|
|
553
562
|
margin 0.15s ease,
|
|
554
563
|
opacity 0.5s ease 0.25s;
|
|
555
|
-
}
|
|
556
|
-
|
|
564
|
+
}@media (hover: hover) and (pointer: fine) {
|
|
565
|
+
.Card:hover:where(:not(:root[data-input="touch"] *)) {
|
|
566
|
+
border-color: var(--color-border-strong);
|
|
567
|
+
}
|
|
557
568
|
}.CardHeader {
|
|
558
569
|
display: flex;
|
|
559
570
|
align-items: center;
|
|
@@ -563,10 +574,28 @@
|
|
|
563
574
|
font-weight: var(--font-weight-semibold);
|
|
564
575
|
color: var(--sidebar-foreground);
|
|
565
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
|
+
|
|
566
581
|
position: absolute;
|
|
567
582
|
top: 6px;
|
|
568
583
|
right: 6px;
|
|
569
584
|
border-radius: var(--radius-xs);
|
|
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
|
+
}
|
|
570
599
|
}.CardContent {
|
|
571
600
|
flex: 1;
|
|
572
601
|
color: var(--color-text-secondary);
|
|
@@ -586,9 +615,11 @@
|
|
|
586
615
|
transition:
|
|
587
616
|
opacity 0.15s ease,
|
|
588
617
|
transform 0.15s ease;
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
|
|
618
|
+
}@media (hover: hover) and (pointer: fine) {
|
|
619
|
+
.Card:hover:where(:not(:root[data-input="touch"] *)) .CardTitleChevron {
|
|
620
|
+
opacity: 1;
|
|
621
|
+
transform: translateX(0);
|
|
622
|
+
}
|
|
592
623
|
}/* Hide card when collapsed - fully collapse height */:global([data-sidebar="collapsed"]) .Card {
|
|
593
624
|
height: 0;
|
|
594
625
|
padding: 0;
|
|
@@ -646,7 +677,7 @@
|
|
|
646
677
|
transition-timing-function: var(--cubic-enter);
|
|
647
678
|
will-change: opacity, transform;
|
|
648
679
|
}@media (hover: hover) and (pointer: fine) {
|
|
649
|
-
.Trigger:hover::before {
|
|
680
|
+
.Trigger:hover:where(:not(:root[data-input="touch"] *))::before {
|
|
650
681
|
opacity: 0.5;
|
|
651
682
|
}
|
|
652
683
|
}.Trigger:focus-visible::before {
|
|
@@ -691,11 +722,32 @@
|
|
|
691
722
|
align-items: center;
|
|
692
723
|
box-sizing: border-box;
|
|
693
724
|
padding: 12px 0 8px; /* No horizontal padding - Input component has its own */
|
|
725
|
+
}/* Phone drawer search: the iOS 26 kit Sidebar Search Field (5840:30501), a 44px capsule with 11px insets
|
|
726
|
+
on the field's own soft fill. The magnifier and its gap are those of the toolbar search (26px PlexUI
|
|
727
|
+
Search and 4px: text at 41; the kit glyph frame 21 and gap 8 put it at 40). The glyph and the
|
|
728
|
+
placeholder take the secondary label, as the kit's Vibrant Secondary. */@media (max-width: 767px) {
|
|
729
|
+
.MobileSidebar .Input > [data-slot="input"][data-variant] {
|
|
730
|
+
--input-size: 44px;
|
|
731
|
+
--input-gap: var(--toolbar-search-icon-gap);
|
|
732
|
+
--input-adornment-offset: 0px;
|
|
733
|
+
--control-gutter-pill-scaling: 1;
|
|
734
|
+
--input-placeholder-text-color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
735
|
+
|
|
736
|
+
border-radius: var(--radius-full);
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
.MobileSidebar .Input > [data-slot="input"][data-variant] > svg {
|
|
740
|
+
flex: none;
|
|
741
|
+
width: var(--toolbar-search-icon-size);
|
|
742
|
+
height: var(--toolbar-search-icon-size);
|
|
743
|
+
color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
744
|
+
}
|
|
694
745
|
}/* =============================================
|
|
695
|
-
Mobile Menu Button (
|
|
746
|
+
Mobile Menu Button (PlexUI SidebarMenuMobile → X)
|
|
696
747
|
============================================= */.MobileMenuButton {
|
|
697
748
|
position: relative;
|
|
698
|
-
display:
|
|
749
|
+
display: grid;
|
|
750
|
+
place-items: center;
|
|
699
751
|
width: var(--sidebar-mobile-button-size);
|
|
700
752
|
height: var(--sidebar-mobile-button-size);
|
|
701
753
|
padding: 0;
|
|
@@ -704,79 +756,50 @@
|
|
|
704
756
|
background: none;
|
|
705
757
|
cursor: pointer;
|
|
706
758
|
transition: box-shadow 0.3s var(--cubic-enter);
|
|
707
|
-
}
|
|
759
|
+
}/* Hover, press and the open menu take the fill of the neighbouring Trigger and menu rows, which shows in
|
|
760
|
+
both themes; the surface color matched a white page in light and only showed in dark (plan 124). */.MobileMenuButton::before {
|
|
708
761
|
position: absolute;
|
|
709
762
|
inset: 0;
|
|
710
763
|
display: block;
|
|
711
764
|
border-radius: var(--sidebar-mobile-button-radius);
|
|
712
|
-
background: var(--
|
|
765
|
+
background: var(--sidebar-accent);
|
|
713
766
|
content: "";
|
|
714
767
|
opacity: 0;
|
|
715
768
|
transition: opacity 0.15s ease;
|
|
716
|
-
}
|
|
717
|
-
|
|
769
|
+
}@media (hover: hover) and (pointer: fine) {
|
|
770
|
+
.MobileMenuButton:hover:where(:not(:root[data-input="touch"] *))::before {
|
|
771
|
+
opacity: 0.65;
|
|
772
|
+
}
|
|
718
773
|
}.MobileMenuButton:active::before,
|
|
719
774
|
.MobileMenuButton[data-expanded]::before {
|
|
720
775
|
opacity: 1;
|
|
721
776
|
}.MobileMenuButton:focus-visible {
|
|
722
777
|
box-shadow: 0 0 0 2px var(--color-ring);
|
|
723
778
|
outline: 0;
|
|
724
|
-
}/*
|
|
779
|
+
}/* The glyphs are PlexUI icons, not drawn lines: the menu glyph turns away as the X turns in. */.MobileMenuIcon {
|
|
725
780
|
position: relative;
|
|
726
|
-
top: 0;
|
|
727
|
-
left: 7px;
|
|
728
|
-
overflow: hidden;
|
|
729
781
|
display: block;
|
|
730
782
|
width: var(--sidebar-mobile-icon-size);
|
|
731
783
|
height: var(--sidebar-mobile-icon-size);
|
|
732
|
-
|
|
784
|
+
color: var(--sidebar-mobile-icon-color);
|
|
785
|
+
}.MobileMenuGlyph {
|
|
733
786
|
position: absolute;
|
|
734
|
-
|
|
735
|
-
left: 0;
|
|
736
|
-
display: block;
|
|
737
|
-
width: var(--sidebar-mobile-icon-size);
|
|
738
|
-
height: var(--sidebar-mobile-line-height);
|
|
739
|
-
transition: transform var(--sidebar-mobile-line-transition-duration) var(--cubic-move) 0.2s;
|
|
740
|
-
}.MobileMenuLine::before {
|
|
741
|
-
display: block;
|
|
742
|
-
width: var(--sidebar-mobile-icon-size);
|
|
743
|
-
height: var(--sidebar-mobile-line-height);
|
|
744
|
-
background: var(--sidebar-mobile-line-color);
|
|
745
|
-
content: "";
|
|
746
|
-
transform-origin: center;
|
|
747
|
-
transition: transform var(--sidebar-mobile-line-transition-duration) var(--cubic-move);
|
|
748
|
-
will-change: transform;
|
|
749
|
-
}/* Top line - closed state */.MobileMenuLine[data-top] {
|
|
750
|
-
transform: translateY(0);
|
|
751
|
-
transition-delay: 0.2s;
|
|
752
|
-
}.MobileMenuLine[data-top]::before {
|
|
753
|
-
transform: rotate(0);
|
|
754
|
-
transition-delay: 0s;
|
|
755
|
-
}/* Bottom line - closed state */.MobileMenuLine[data-bottom] {
|
|
756
|
-
top: 12px;
|
|
757
|
-
transform: translateY(0);
|
|
758
|
-
transition-delay: 0.2s;
|
|
759
|
-
}.MobileMenuLine[data-bottom]::before {
|
|
760
|
-
transform: rotate(0);
|
|
761
|
-
transition-delay: 0s;
|
|
762
|
-
}/* Middle wrapper */.MobileMenuMiddle {
|
|
787
|
+
inset: 0;
|
|
763
788
|
display: block;
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
}.
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
}.MobileMenuButton[data-expanded] .
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
}.MobileMenuButton[data-expanded] .MobileMenuMiddle {
|
|
779
|
-
transform: translateX(0);
|
|
789
|
+
width: 100%;
|
|
790
|
+
height: 100%;
|
|
791
|
+
transition:
|
|
792
|
+
opacity var(--sidebar-mobile-icon-transition-duration) var(--cubic-move),
|
|
793
|
+
transform var(--sidebar-mobile-icon-transition-duration) var(--cubic-move);
|
|
794
|
+
}.MobileMenuGlyph[data-glyph="close"],
|
|
795
|
+
.MobileMenuButton[data-expanded] .MobileMenuGlyph[data-glyph="menu"] {
|
|
796
|
+
opacity: 0;
|
|
797
|
+
transform: rotate(-45deg) scale(0.8);
|
|
798
|
+
}.MobileMenuButton[data-expanded] .MobileMenuGlyph[data-glyph="menu"] {
|
|
799
|
+
transform: rotate(45deg) scale(0.8);
|
|
800
|
+
}.MobileMenuButton[data-expanded] .MobileMenuGlyph[data-glyph="close"] {
|
|
801
|
+
opacity: 1;
|
|
802
|
+
transform: none;
|
|
780
803
|
}/* =============================================
|
|
781
804
|
Mobile Drawer
|
|
782
805
|
============================================= */.MobileBackdrop {
|
|
@@ -865,6 +888,218 @@
|
|
|
865
888
|
.MobileMenuContent .GroupLabel {
|
|
866
889
|
opacity: 1 !important;
|
|
867
890
|
pointer-events: auto !important;
|
|
891
|
+
}/* =============================================
|
|
892
|
+
Mobile drawer list
|
|
893
|
+
On an iPhone the sidebar of an app is a list on a grouped page (Mail and
|
|
894
|
+
Freeform in iOS 26). Each menu is a card of 52px rows: the icon in a 40px
|
|
895
|
+
column, the label at 17px, counts in the secondary label color and a
|
|
896
|
+
disclosure chevron on a row that leads somewhere. A group label heads its
|
|
897
|
+
section in semibold 20px; an item with a submenu stays a row of the card, its
|
|
898
|
+
chevron turns down and its items follow it, indented, as nested folders do
|
|
899
|
+
in iOS lists. The App variant keeps its side drawer.
|
|
900
|
+
============================================= */.MenuDisclosure {
|
|
901
|
+
display: none;
|
|
902
|
+
}@media (max-width: 767px) {
|
|
903
|
+
.MobileSidebar:not(:where(.App *)) {
|
|
904
|
+
--sidebar-list-inset: var(--sidebar-mobile-list-inset, var(--mobile-layout-margin, 16px));
|
|
905
|
+
--sidebar-list-icon-column: var(--sidebar-mobile-list-icon-column, 40px);
|
|
906
|
+
--sidebar-list-indent: var(--sidebar-mobile-list-indent, 20px);
|
|
907
|
+
--sidebar-row-inset: var(--sidebar-list-inset);
|
|
908
|
+
--sidebar-menu-item-height: var(--sidebar-mobile-list-row-height, 52px);
|
|
909
|
+
--sidebar-menu-sub-item-padding-y: calc(
|
|
910
|
+
(var(--sidebar-mobile-list-row-height, 52px) - var(--sidebar-menu-sub-item-line-height, 20px)) / 2
|
|
911
|
+
);
|
|
912
|
+
--sidebar-menu-item-trailing-padding: var(--sidebar-list-inset);
|
|
913
|
+
--sidebar-menu-item-radius: 0px;
|
|
914
|
+
--sidebar-menu-text: var(--color-text);
|
|
915
|
+
--sidebar-menu-text-active: var(--color-text);
|
|
916
|
+
--sidebar-icon-size: var(--sidebar-mobile-list-icon-size, 24px);
|
|
917
|
+
--sidebar-icon-wrapper-size: var(--sidebar-icon-size);
|
|
918
|
+
--sidebar-icon-margin: 0 calc(var(--sidebar-list-icon-column) - var(--sidebar-icon-size)) 0 0;
|
|
919
|
+
|
|
920
|
+
background: var(--sidebar-mobile-background, var(--mobile-surface-grouped-primary, var(--color-surface-secondary)));
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
.MobileSidebar:not(:where(.App *)) .Content {
|
|
924
|
+
padding: 0;
|
|
925
|
+
-webkit-mask-image: none;
|
|
926
|
+
mask-image: none;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
.MobileSidebar:not(:where(.App *)) .FooterSeparator {
|
|
930
|
+
display: none;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
.MobileSidebar:not(:where(.App *)) .Content + .Footer,
|
|
934
|
+
.MobileSidebar:not(:where(.App *)) .Header + .Content {
|
|
935
|
+
margin-top: var(--sidebar-mobile-list-section-gap, 20px);
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
.MobileSidebar:not(:where(.App *)) .Group {
|
|
939
|
+
padding-bottom: 0;
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
/* Cards without a header stand 20px apart (iOS 26 Settings); a header
|
|
943
|
+
takes its own 44px, 18px below the card above it, as in Mail. */
|
|
944
|
+
.MobileSidebar:not(:where(.App *)) .Group + .Group {
|
|
945
|
+
margin-top: var(--sidebar-mobile-list-section-gap, 20px);
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
.MobileSidebar:not(:where(.App *)) .Group + .Group:has(> .GroupLabel:first-child) {
|
|
949
|
+
margin-top: var(--sidebar-mobile-list-header-gap, 18px);
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
.MobileSidebar:not(:where(.App *)) .Group .GroupLabel,
|
|
953
|
+
.MobileSidebar:not(:where(.App *)) .Group .GroupLabel[data-size] {
|
|
954
|
+
display: flex;
|
|
955
|
+
align-items: center;
|
|
956
|
+
min-height: var(--sidebar-mobile-list-header-height, 44px);
|
|
957
|
+
margin: 0;
|
|
958
|
+
padding: 0 var(--sidebar-list-inset);
|
|
959
|
+
color: var(--color-text);
|
|
960
|
+
font-size: var(--sidebar-mobile-list-header-font-size, 20px);
|
|
961
|
+
font-weight: var(--sidebar-mobile-list-header-font-weight, var(--font-weight-semibold));
|
|
962
|
+
line-height: var(--sidebar-mobile-list-header-line-height, 25px);
|
|
963
|
+
letter-spacing: normal;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
/* The card. The page's surface sets its color: white on a grouped page. */
|
|
967
|
+
.MobileSidebar:not(:where(.App *)) .Menu {
|
|
968
|
+
overflow: hidden;
|
|
969
|
+
border-radius: var(--sidebar-mobile-list-radius, 26px);
|
|
970
|
+
background: var(
|
|
971
|
+
--sidebar-mobile-list-background,
|
|
972
|
+
var(--mobile-surface-secondary, var(--mobile-surface-grouped-secondary, var(--color-surface)))
|
|
973
|
+
);
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
.MobileSidebar:not(:where(.App *)) .Menu .Menu,
|
|
977
|
+
.MobileSidebar:not(:where(.App *)) .MenuSub {
|
|
978
|
+
border-radius: 0;
|
|
979
|
+
background: none;
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
.MobileSidebar:not(:where(.App *)) .MenuButton {
|
|
983
|
+
margin: 0;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
.MobileSidebar:not(:where(.App *)) .MenuButtonInner {
|
|
987
|
+
padding-inline: var(--sidebar-row-inset) var(--sidebar-list-inset);
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
.MobileSidebar:not(:where(.App *)) .MenuButtonLabel:first-child {
|
|
991
|
+
padding-left: 0;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
/* Every submenu button has an indent class: this outranks their desktop padding */
|
|
995
|
+
.MobileSidebar:not(:where(.App *)) .Menu .MenuSubButton:is(.indent0, .indent1, .indent2, .indent3) {
|
|
996
|
+
margin: 0;
|
|
997
|
+
padding-inline: var(--sidebar-row-inset) var(--sidebar-list-inset);
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
/* An item of a submenu starts under its parent's label, one step further
|
|
1001
|
+
for every level below. */
|
|
1002
|
+
.MobileSidebar:not(:where(.App *)) .MenuSubButton.indent1 {
|
|
1003
|
+
--sidebar-row-inset: calc(var(--sidebar-list-inset) + var(--sidebar-list-indent));
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
.MobileSidebar:not(:where(.App *)) .MenuSub[data-has-icons="true"] .MenuSubButton.indent1 {
|
|
1007
|
+
--sidebar-row-inset: calc(var(--sidebar-list-inset) + var(--sidebar-list-icon-column));
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
.MobileSidebar:not(:where(.App *)) .MenuSubButton.indent2 {
|
|
1011
|
+
--sidebar-row-inset: calc(var(--sidebar-list-inset) + 2 * var(--sidebar-list-indent));
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
.MobileSidebar:not(:where(.App *)) .MenuSubButton.indent3 {
|
|
1015
|
+
--sidebar-row-inset: calc(var(--sidebar-list-inset) + 3 * var(--sidebar-list-indent));
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
/* A selected or pressed row fills its cell edge to edge; the card clips
|
|
1019
|
+
the corners. */
|
|
1020
|
+
.MobileSidebar:not(:where(.App *)) :is(.MenuButton, .MenuSubButton):is(*, :hover, :active, :focus-visible)::before {
|
|
1021
|
+
border-radius: 0;
|
|
1022
|
+
transform: none;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
.MobileSidebar:not(:where(.App *)) :is(.MenuButton, .MenuSubButton):focus-visible::before {
|
|
1026
|
+
opacity: 1;
|
|
1027
|
+
box-shadow: inset 0 0 0 2px var(--color-ring);
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
.MobileSidebar:not(:where(.App *)) :is(.MenuButton, .MenuSubButton):focus-visible:not([data-active="true"])::before {
|
|
1031
|
+
background: transparent;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
/* Separators between the rows of a card start at the label and end at
|
|
1035
|
+
the inset, like FieldGroup rows. */
|
|
1036
|
+
.MobileSidebar:not(:where(.App *)) .Menu :is(.MenuButton, .MenuSubButton)::after {
|
|
1037
|
+
position: absolute;
|
|
1038
|
+
z-index: 1;
|
|
1039
|
+
top: 0;
|
|
1040
|
+
inset-inline: var(--sidebar-row-inset) var(--sidebar-list-inset);
|
|
1041
|
+
height: 1px;
|
|
1042
|
+
background: var(--color-border);
|
|
1043
|
+
content: "";
|
|
1044
|
+
pointer-events: none;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
.MobileSidebar:not(:where(.App *)) .Menu .MenuButton:has(> .MenuButtonInner > .MenuButtonIcon)::after {
|
|
1048
|
+
inset-inline-start: calc(var(--sidebar-row-inset) + var(--sidebar-list-icon-column));
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
.MobileSidebar:not(:where(.App *)) .Menu > .MenuItem:first-child > .MenuButton::after,
|
|
1052
|
+
.MobileSidebar:not(:where(.App *)) .Menu > .MenuItem:first-child > * > .MenuButton::after {
|
|
1053
|
+
display: none;
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
/* A selected cell hides the separators at its edges, as in iOS lists. */
|
|
1057
|
+
.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 {
|
|
1058
|
+
opacity: 0;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
/* Counts read as values of the row */
|
|
1062
|
+
.MobileSidebar:not(:where(.App *)) .MenuBadge {
|
|
1063
|
+
color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
1064
|
+
font-size: var(--sidebar-menu-item-font-size);
|
|
1065
|
+
line-height: var(--sidebar-menu-item-line-height);
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
.MobileSidebar:not(:where(.App *)) .MenuChevron {
|
|
1069
|
+
color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
1070
|
+
margin-right: var(--sidebar-mobile-list-chevron-offset, -2.83px);
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
.MobileSidebar:not(:where(.App *)) .MenuChevron svg {
|
|
1074
|
+
width: var(--sidebar-mobile-list-chevron-size, 20px);
|
|
1075
|
+
height: var(--sidebar-mobile-list-chevron-size, 20px);
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
/* The disclosure ends 3px inside the inset (Mail): its glyph has 6.67px
|
|
1079
|
+
of air on the right in its 20px box. It keeps 8px after a count. */
|
|
1080
|
+
.MobileSidebar:not(:where(.App *)) .MenuDisclosure {
|
|
1081
|
+
position: relative;
|
|
1082
|
+
z-index: 1;
|
|
1083
|
+
display: flex;
|
|
1084
|
+
flex-shrink: 0;
|
|
1085
|
+
margin-inline: auto var(--sidebar-mobile-list-disclosure-offset, -3.67px);
|
|
1086
|
+
color: var(--mobile-label-tertiary, var(--color-text-tertiary));
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
.MobileSidebar:not(:where(.App *)) .MenuDisclosure svg {
|
|
1090
|
+
width: var(--sidebar-mobile-list-chevron-size, 20px);
|
|
1091
|
+
height: var(--sidebar-mobile-list-chevron-size, 20px);
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
.MobileSidebar:not(:where(.App *)) .MenuBadge ~ .MenuDisclosure {
|
|
1095
|
+
margin-inline-start: var(--sidebar-mobile-list-disclosure-gap, 8px);
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
/* Rows that open a menu, expand a level or carry their own controls do
|
|
1099
|
+
not lead to another page. */
|
|
1100
|
+
.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 {
|
|
1101
|
+
display: none;
|
|
1102
|
+
}
|
|
868
1103
|
}/* Desktop breakpoint - sidebar becomes fixed */@media (min-width: 768px) {
|
|
869
1104
|
.MobileSidebar {
|
|
870
1105
|
display: none;
|
|
@@ -873,7 +1108,7 @@
|
|
|
873
1108
|
.MobileBackdrop {
|
|
874
1109
|
display: none;
|
|
875
1110
|
}
|
|
876
|
-
}/*
|
|
1111
|
+
}/* Containment changes positioning; keep the token-based drawer/backdrop stacking. */.MobileBackdrop.contained {
|
|
877
1112
|
position: absolute;
|
|
878
1113
|
}.MobileSidebar.contained {
|
|
879
1114
|
position: absolute;
|
|
@@ -890,7 +1125,6 @@
|
|
|
890
1125
|
right: 0;
|
|
891
1126
|
width: auto;
|
|
892
1127
|
background: var(--color-surface);
|
|
893
|
-
z-index: 10;
|
|
894
1128
|
}/* =============================================
|
|
895
1129
|
Footer Links (horizontal layout)
|
|
896
1130
|
============================================= */.FooterLinks {
|
|
@@ -923,10 +1157,13 @@
|
|
|
923
1157
|
.Sidebar[data-variant="docs"] .MenuButtonInner {
|
|
924
1158
|
padding: 6px 12px;
|
|
925
1159
|
}
|
|
926
|
-
}
|
|
1160
|
+
}@media (hover: hover) and (pointer: fine) {
|
|
1161
|
+
.Sidebar[data-variant="docs"] .MenuButton:hover:where(:not(:root[data-input="touch"] *)):not([data-active="true"]), :where([data-theme="light"]) .Sidebar[data-variant="docs"] .MenuButton:hover:where(:not(:root[data-input="touch"] *)):not([data-active="true"]) {
|
|
927
1162
|
background: var(--gray-150);
|
|
928
|
-
}
|
|
1163
|
+
}
|
|
1164
|
+
:where([data-theme="dark"]) .Sidebar[data-variant="docs"] .MenuButton:hover:where(:not(:root[data-input="touch"] *)):not([data-active="true"]) {
|
|
929
1165
|
background: var(--gray-300);
|
|
1166
|
+
}
|
|
930
1167
|
}.Sidebar[data-variant="docs"] .MenuButton[data-active="true"] {
|
|
931
1168
|
color: var(--color-text);
|
|
932
1169
|
}.Sidebar[data-variant="docs"] .MenuButton[data-active="true"], :where([data-theme="light"]) .Sidebar[data-variant="docs"] .MenuButton[data-active="true"] {
|
|
@@ -1143,5 +1380,43 @@ background: var(--gray-300);
|
|
|
1143
1380
|
margin-right: 36px;
|
|
1144
1381
|
}.SidebarLayout[dir="rtl"] .DocsNavChild.indent3 {
|
|
1145
1382
|
margin-right: 48px;
|
|
1383
|
+
}/* Sidebar owns timings beyond the global motion tokens, including literal
|
|
1384
|
+
delays on staggered rows and visibility. End states remain unchanged. */@media (prefers-reduced-motion: reduce) {
|
|
1385
|
+
.Sidebar,
|
|
1386
|
+
.HeaderTitle,
|
|
1387
|
+
.GroupLabel,
|
|
1388
|
+
.MenuButton,
|
|
1389
|
+
.MenuButtonLabel,
|
|
1390
|
+
.MenuBadge,
|
|
1391
|
+
.MenuAction,
|
|
1392
|
+
.MenuSubButton,
|
|
1393
|
+
.MenuSub,
|
|
1394
|
+
.MenuChevron,
|
|
1395
|
+
.Separator,
|
|
1396
|
+
.Card,
|
|
1397
|
+
.CardTitleChevron,
|
|
1398
|
+
.MobileMenuButton,
|
|
1399
|
+
.MobileMenuGlyph,
|
|
1400
|
+
.MobileBackdrop,
|
|
1401
|
+
.MobileSidebar,
|
|
1402
|
+
.MobileSidebar > *,
|
|
1403
|
+
.FooterLinks,
|
|
1404
|
+
.DocsNavChevron,
|
|
1405
|
+
.App .Header,
|
|
1406
|
+
.App .Header span,
|
|
1407
|
+
.App .Inset,
|
|
1408
|
+
:is(.MenuButton, .MenuSubButton, .Trigger, .MobileMenuButton)::before,
|
|
1409
|
+
.MenuButtonIcon::after,
|
|
1410
|
+
.MobileSidebar::after {
|
|
1411
|
+
/* Preference overrides every state/variant's duration and delay, including
|
|
1412
|
+
nth-child stagger rules; it does not target arbitrary descendants. */
|
|
1413
|
+
transition-duration: 0s !important;
|
|
1414
|
+
transition-delay: 0s !important;
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
.MenuSkeletonIcon,
|
|
1418
|
+
.MenuSkeletonLabel {
|
|
1419
|
+
animation: none;
|
|
1420
|
+
}
|
|
1146
1421
|
}
|
|
1147
1422
|
}
|