File tree Expand file tree Collapse file tree 3 files changed +50
-15
lines changed Expand file tree Collapse file tree 3 files changed +50
-15
lines changed Original file line number Diff line number Diff line change @@ -527,39 +527,63 @@ nav {
527
527
}
528
528
529
529
body : has (# sidebar-v2 [style *= "block" ]) {
530
+ /* Disable scrolling in main content + hide footer if the sidebar is visible */
530
531
overflow-y : hidden;
532
+
533
+ .sidebar-layout {
534
+ height : 100vh ;
535
+ }
536
+
537
+ footer {
538
+ display : none;
539
+ }
540
+
541
+ .sidebar-layout .sidebar-mobile-toggle {
542
+ display : flex !important ;
543
+ align-items : center;
544
+ margin-top : 2rem ;
545
+ padding : 0.5rem ;
546
+ color : white;
547
+ background-color : oklch (var (--color-brand ));
548
+ }
549
+ }
550
+
551
+ .breadcrumb .sidebar-mobile-toggle {
552
+ display : inline !important ;
553
+ }
554
+
555
+ .sidebar-mobile-toggle {
556
+ background-color : transparent;
557
+ border : none;
558
+
559
+ .lucide {
560
+ width : 1rem ;
561
+ height : 1rem ;
562
+ margin-right : 1rem ;
563
+ }
531
564
}
532
565
533
566
.main-layout {
567
+ /* Mobile support for sidebar */
534
568
display : flex;
535
569
flex-direction : column;
536
570
position : relative;
537
571
538
572
.sidebar-layout {
539
573
min-height : fit-content;
540
- position : sticky;
541
- top : 0 ;
542
- padding : 1rem ;
543
- background-color : white;
574
+ background : white;
575
+ z-index : 3 ;
544
576
width : calc (100% + 4rem );
545
577
margin-left : -2rem ;
546
- overflow-y : scroll;
547
578
548
579
& ::before {
549
580
display : none;
550
581
}
551
582
552
- .sidebar-mobile-toggle {
553
- background-color : oklch (var (--color-brand ));
554
- color : white;
555
- border : none;
556
- display : block !important ;
557
- }
558
-
559
583
nav {
560
584
width : 100% ;
561
- height : 100vh ;
562
585
display : none;
586
+ padding : 0 ;
563
587
564
588
.sidebar__container {
565
589
width : 100% ;
@@ -981,6 +1005,16 @@ p {
981
1005
line-height : 1.5rem ;
982
1006
}
983
1007
1008
+ .breadcrumb-layout {
1009
+ position : sticky;
1010
+ top : 0 ;
1011
+ z-index : 3 ;
1012
+ background-color : white;
1013
+ width : calc (100% + 4rem );
1014
+ margin-left : -2rem ;
1015
+ padding : 1rem 2rem ;
1016
+ }
1017
+
984
1018
.breadcrumb {
985
1019
color : var (--color-foreground );
986
1020
text-decoration : none;
Original file line number Diff line number Diff line change 69
69
70
70
< section class ="main-layout ">
71
71
< div class ="sidebar-layout " id ="sidebar-layout ">
72
- < button class ="sidebar-mobile-toggle " aria-expanded ="false " style =" display: none; " > < p > Click </ p > </ button >
73
- < nav data-mf ="true " id ="sidebar-v2 " class ="sidebar " style =" display:none; " >
72
+ < button class ="sidebar-mobile-toggle " style =" display: none; " aria-expanded ="false "> {{ partial "lucide" (dict "context" . "icon" "x")}}Close </ button >
73
+ < nav data-mf ="true " id ="sidebar-v2 " class ="sidebar ">
74
74
{{ partial "sidebar-v2.html" . }}
75
75
</ nav >
76
76
</ div >
Original file line number Diff line number Diff line change 1
1
< nav aria-label ="breadcrumb " class ="breadcrumb navbar ">
2
2
< div class ="nav flex-md-row ">
3
3
< ol class ="breadcrumb ">
4
+ < button class ="sidebar-mobile-toggle " aria-expanded ="false " style ="display: none; "> {{ partial "lucide" (dict "context" . "icon" "align-justify") }}</ button >
4
5
< li > < a href ="/ " alt ="NGINX Docs Home "> Home</ a > </ li >
5
6
{{- define "breadcrumb" -}}
6
7
{{- with .Parent -}}
You can’t perform that action at this time.
0 commit comments