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;
@@ -462,6 +467,10 @@ nav {
462467 position : relative;
463468 z-index : 2 ;
464469 min-height : 74vh ;
470+
471+ .sidebar__mobile__toggle {
472+ display : none;
473+ }
465474}
466475
467476.sidebar-layout ::before {
@@ -525,8 +534,84 @@ nav {
525534 column-gap : var (--grid-column-gutter );
526535 }
527536
528- .sidebar-layout {
529- display : none;
537+ .content-layout .breadcrumb-layout {
538+ position : sticky;
539+ top : 0 ;
540+ z-index : 3 ;
541+ }
542+
543+ body : has (.sidebar__mobile-open ) {
544+ /* Disable scrolling in main content + hide footer if the sidebar is visible */
545+ overflow-y : hidden;
546+
547+ .sidebar-layout {
548+ position : absolute;
549+ height : 100% ;
550+ }
551+
552+ footer {
553+ display : none;
554+ }
555+
556+ .sidebar-layout .sidebar__mobile__toggle {
557+ display : flex;
558+ align-items : center;
559+ position : sticky;
560+ top : 1rem ;
561+ margin-top : 2rem ;
562+ margin-left : 2rem ;
563+ margin-right : 2rem ;
564+ padding : 0.5rem ;
565+ color : white;
566+ background-color : oklch (var (--color-brand ));
567+ }
568+ }
569+
570+ .sidebar__mobile__toggle {
571+ background-color : transparent;
572+ border : none;
573+
574+ .lucide {
575+ margin-right : 1rem ;
576+ }
577+ }
578+
579+ .main-layout {
580+ /* Mobile support for sidebar */
581+ display : flex;
582+ flex-direction : column;
583+ position : relative;
584+
585+ .sidebar-layout {
586+ min-height : fit-content;
587+ background : white;
588+ z-index : 999 ;
589+ width : calc (100% + 4rem );
590+ margin-left : -2rem ;
591+
592+ & ::before {
593+ display : none;
594+ }
595+
596+ nav {
597+ width : 100% ;
598+ display : none;
599+ top : var (--sidebar-mobile-top-displacement );
600+ max-height : calc (100vh - var (--sidebar-mobile-top-displacement ));
601+ padding : 0 2rem ;
602+
603+ .sidebar__container {
604+ width : 100% ;
605+ }
606+ }
607+ }
608+
609+ .content-layout {
610+ .breadcrumb-layout .sidebar__mobile__toggle {
611+ display : inline;
612+ padding : 0 ;
613+ }
614+ }
530615 }
531616
532617 main {
@@ -933,6 +1018,10 @@ button:has(~ .product-selector[style*="none"]) > .product-selector-button-icon {
9331018 }
9341019}
9351020
1021+ nav .sidebar .sidebar__mobile-open {
1022+ display : block;
1023+ }
1024+
9361025/* MARK: Content
9371026*/
9381027
@@ -941,6 +1030,18 @@ p {
9411030 line-height : 1.5rem ;
9421031}
9431032
1033+ .breadcrumb-layout {
1034+ position : relative;
1035+ background-color : white;
1036+ width : calc (100% + 4rem );
1037+ margin-left : -2rem ;
1038+ padding : 1rem 2rem ;
1039+
1040+ .sidebar__mobile__toggle {
1041+ display : none;
1042+ }
1043+ }
1044+
9441045.breadcrumb {
9451046 color : var (--color-foreground );
9461047 text-decoration : none;
0 commit comments