9191 --sidebar-line-box-left : 12px ;
9292 --sidebar-width : 22rem ;
9393 --sidebar-line-width : 11.5px ;
94+ --sidebar-mobile-top-displacement : 5rem ;
9495 --side-gutter-width : 20rem ;
9596 --table-top-bottom-spacing : 1rem ;
9697 --table-row-space-between : 1.5rem ;
@@ -266,6 +267,10 @@ header {
266267 padding : 20px 10px ;
267268 }
268269
270+ .nav-item-explore {
271+ margin : 0 ;
272+ }
273+
269274 .navbar-button {
270275 padding : 0.5rem 0.5rem ;
271276 border : none;
@@ -525,8 +530,82 @@ nav {
525530 column-gap : var (--grid-column-gutter );
526531 }
527532
528- .sidebar-layout {
529- display : none;
533+ .breadcrumb-layout {
534+ position : sticky !important ;
535+ top : 0 ;
536+ z-index : 3 ;
537+ }
538+
539+ body : has (.sidebar__mobile-open ) {
540+ /* Disable scrolling in main content + hide footer if the sidebar is visible */
541+ overflow-y : hidden;
542+
543+ .sidebar-layout {
544+ position : absolute;
545+ height : 100% ;
546+ }
547+
548+ footer {
549+ display : none;
550+ }
551+
552+ .sidebar-layout .sidebar__mobile__toggle {
553+ display : flex !important ;
554+ align-items : center;
555+ position : sticky;
556+ top : 1rem ;
557+ margin-top : 2rem ;
558+ margin-left : 2rem ;
559+ margin-right : 2rem ;
560+ padding : 0.5rem ;
561+ color : white;
562+ background-color : oklch (var (--color-brand ));
563+ }
564+ }
565+
566+ .breadcrumb .sidebar__mobile__toggle {
567+ display : inline !important ;
568+ padding : 0 ;
569+ }
570+
571+ .sidebar__mobile__toggle {
572+ background-color : transparent;
573+ border : none;
574+
575+ .lucide {
576+ margin-right : 1rem ;
577+ }
578+ }
579+
580+ .main-layout {
581+ /* Mobile support for sidebar */
582+ display : flex;
583+ flex-direction : column;
584+ position : relative;
585+
586+ .sidebar-layout {
587+ min-height : fit-content;
588+ background : white;
589+ z-index : 999 ;
590+ width : calc (100% + 4rem );
591+ margin-left : -2rem ;
592+
593+ & ::before {
594+ display : none;
595+ }
596+
597+ nav {
598+ width : 100% ;
599+ display : none;
600+ top : var (--sidebar-mobile-top-displacement );
601+ max-height : calc (100vh - var (--sidebar-mobile-top-displacement ));
602+ padding : 0 2rem ;
603+
604+ .sidebar__container {
605+ width : 100% ;
606+ }
607+ }
608+ }
530609 }
531610
532611 main {
@@ -933,6 +1012,10 @@ button:has(~ .product-selector[style*="none"]) > .product-selector-button-icon {
9331012 }
9341013}
9351014
1015+ .sidebar__mobile-open {
1016+ display : block !important ;
1017+ }
1018+
9361019/* MARK: Content
9371020*/
9381021
@@ -941,6 +1024,14 @@ p {
9411024 line-height : 1.5rem ;
9421025}
9431026
1027+ .breadcrumb-layout {
1028+ position : relative;
1029+ background-color : white;
1030+ width : calc (100% + 4rem );
1031+ margin-left : -2rem ;
1032+ padding : 1rem 2rem ;
1033+ }
1034+
9441035.breadcrumb {
9451036 color : var (--color-foreground );
9461037 text-decoration : none;
0 commit comments