91
91
--sidebar-line-box-left : 12px ;
92
92
--sidebar-width : 22rem ;
93
93
--sidebar-line-width : 11.5px ;
94
+ --sidebar-mobile-top-displacement : 5rem ;
94
95
--side-gutter-width : 20rem ;
95
96
--table-top-bottom-spacing : 1rem ;
96
97
--table-row-space-between : 1.5rem ;
@@ -266,6 +267,10 @@ header {
266
267
padding : 20px 10px ;
267
268
}
268
269
270
+ .nav-item-explore {
271
+ margin : 0 ;
272
+ }
273
+
269
274
.navbar-button {
270
275
padding : 0.5rem 0.5rem ;
271
276
border : none;
@@ -525,8 +530,82 @@ nav {
525
530
column-gap : var (--grid-column-gutter );
526
531
}
527
532
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
+ }
530
609
}
531
610
532
611
main {
@@ -933,6 +1012,10 @@ button:has(~ .product-selector[style*="none"]) > .product-selector-button-icon {
933
1012
}
934
1013
}
935
1014
1015
+ .sidebar__mobile-open {
1016
+ display : block !important ;
1017
+ }
1018
+
936
1019
/* MARK: Content
937
1020
*/
938
1021
@@ -941,6 +1024,14 @@ p {
941
1024
line-height : 1.5rem ;
942
1025
}
943
1026
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
+
944
1035
.breadcrumb {
945
1036
color : var (--color-foreground );
946
1037
text-decoration : none;
0 commit comments