File tree Expand file tree Collapse file tree 4 files changed +23
-11
lines changed Expand file tree Collapse file tree 4 files changed +23
-11
lines changed Original file line number Diff line number Diff line change 73
73
}
74
74
/* Rich's attempt to add scrollbar to nav */
75
75
.sidebar_mhZE {
76
- padding-bottom : 4rem ;
77
76
height : 100% !important ;
78
77
}
79
78
/* Make the navbar move with the page */
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ export default function DocItemLayout({children}) {
111
111
< DocItemPaginator />
112
112
</ div >
113
113
</ div >
114
- { docTOC . desktop && < div className = " col col--3" > { docTOC . desktop } </ div > }
114
+ { docTOC . desktop && < div className = { clsx ( styles . tocSidebar , ' col col--3' ) } > { docTOC . desktop } </ div > }
115
115
</ div >
116
116
) ;
117
117
}
Original file line number Diff line number Diff line change 1
1
@use ' ../../../css/breakpoints.scss' as breakpoints ;
2
2
3
+ .tocSidebar {
4
+ display : none ;
5
+ }
6
+
7
+ @media (min-width : breakpoints .$mobile-breakpoint ) {
8
+ .tocSidebar {
9
+ display : flex ;
10
+ }
11
+ }
12
+
13
+
3
14
.docItemContainer header + * ,
4
15
.docItemContainer article > * :first-child {
5
16
margin-top : 0 ;
Original file line number Diff line number Diff line change 10
10
display : none ; // don't show by default on mobile
11
11
}
12
12
13
- .docTOCContainer {
14
- height : calc (100vh - (var (--ifm-navbar-height ) + 2rem ));
15
- display : flex ;
16
- flex-flow : column nowrap ;
17
- position : sticky ;
18
- gap : 24px ;
19
- padding-bottom : 3.5rem ;
20
- overflow-y : auto ;
21
- top : calc (var (--ifm-navbar-height ) + 1rem );
13
+ @media screen and (min-width : breakpoints .$mobile-breakpoint ) {
14
+ .docTOCContainer {
15
+ height : calc (100vh - (var (--ifm-navbar-height ) + 2rem ));
16
+ display : flex ;
17
+ flex-flow : column nowrap ;
18
+ position : sticky ;
19
+ gap : 24px ;
20
+ padding-bottom : 3.5rem ;
21
+ overflow-y : auto ;
22
+ top : calc (var (--ifm-navbar-height ) + 1rem );
23
+ }
22
24
}
23
25
24
26
.docCloudCardHeader {
You can’t perform that action at this time.
0 commit comments