File tree Expand file tree Collapse file tree 1 file changed +20
-21
lines changed
website/src/layout/components/TocContainer Expand file tree Collapse file tree 1 file changed +20
-21
lines changed Original file line number Diff line number Diff line change @@ -6,27 +6,26 @@ $navbar-height: navbar.$navbar-height;
66$toc-width : toc .$desktop-toc-width ;
77
88.column {
9- width : 100% ;
10- flex : 0 0 #{$toc-width } ;
11- max-width : $toc-width ;
12- }
9+ @include mixins .desktop-only (flex ) { width : 100% ;
10+ flex : 0 0 #{$toc-width } ;
11+ max-width : $toc-width ;
1312
14- .tocContainer {
15- @include mixins . desktop-only ( flex ) {
16- $top : 1rem ;
17- $margin-bottom : 1 rem ;
18-
19- position : sticky ;
20- top : calc (#{$navbar-height } + #{$top } );
21- max-height : calc ( 100 vh - #{ $navbar-height } - #{ $top } - #{ $margin-bottom } );
22-
23- margin : $top auto $margin-bottom 0 ;
24- padding -left : 1 rem ;
25- border-left : 1 px solid #dddddd ;
26-
27- flex-direction : column ;
28-
29- overflow-y : auto ;
30- @include mixins . scrollbar ( 4 px );
13+ .tocContainer {
14+ $top : 1 rem ;
15+ $margin-bottom : 1rem ;
16+
17+ position : sticky ;
18+ top : calc ( #{ $navbar-height } + #{ $top } ) ;
19+ max-height : calc (100 vh - #{$navbar-height } - #{$top } - #{ $margin-bottom } );
20+
21+ margin : $top auto $margin-bottom 0 ;
22+ padding-left : 1 rem ;
23+ border -left : 1 px solid #dddddd ;
24+
25+ flex-direction : column ;
26+
27+ overflow-y : auto ;
28+ @include mixins . scrollbar ( 4 px ) ;
29+ }
3130 }
3231}
You can’t perform that action at this time.
0 commit comments