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;
@@ -462,6 +467,10 @@ nav {
462
467
position : relative;
463
468
z-index : 2 ;
464
469
min-height : 74vh ;
470
+
471
+ .sidebar__mobile__toggle {
472
+ display : none;
473
+ }
465
474
}
466
475
467
476
.sidebar-layout ::before {
@@ -525,8 +534,84 @@ nav {
525
534
column-gap : var (--grid-column-gutter );
526
535
}
527
536
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
+ }
530
615
}
531
616
532
617
main {
@@ -933,6 +1018,10 @@ button:has(~ .product-selector[style*="none"]) > .product-selector-button-icon {
933
1018
}
934
1019
}
935
1020
1021
+ nav .sidebar .sidebar__mobile-open {
1022
+ display : block;
1023
+ }
1024
+
936
1025
/* MARK: Content
937
1026
*/
938
1027
@@ -941,6 +1030,18 @@ p {
941
1030
line-height : 1.5rem ;
942
1031
}
943
1032
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
+
944
1045
.breadcrumb {
945
1046
color : var (--color-foreground );
946
1047
text-decoration : none;
0 commit comments