Commit 14455aa 1 parent d30b1c9 commit 14455aa Copy full SHA for 14455aa
File tree 2 files changed +30
-7
lines changed
2 files changed +30
-7
lines changed Original file line number Diff line number Diff line change 2
2
// Left side navigation
3
3
//
4
4
.td-sidebar-nav {
5
+ $_max-height : calc (100vh - 8.5rem );
6
+
5
7
padding-right : 0.5rem ;
6
8
margin-right : -15px ;
7
9
margin-left : -15px ;
8
10
9
11
@include media-breakpoint-up (md) {
10
12
@supports (position : sticky ) {
11
- max-height : calc ( 100 vh - 10 rem ) ;
13
+ max-height : $_max-height ;
12
14
overflow-y : auto ;
13
15
}
14
16
}
15
17
18
+ // Adjust height and padding when sidebar_search_disable is true
19
+ & .td-sidebar-nav--search-disabled {
20
+ padding-top : 1rem ;
21
+
22
+ @include media-breakpoint-up (md) {
23
+ @supports (position : sticky ) {
24
+ max-height : calc (#{$_max-height } + 4.5rem );
25
+ }
26
+ }
27
+ }
28
+
29
+ // Handle the case where #content-mobile is displayed with a search box,
30
+ // regardless of the value of sidebar_search_disable:
31
+ @include media-breakpoint-only (md) {
32
+ padding-top : 0 !important ;
33
+ @supports (position : sticky ) {
34
+ max-height : $_max-height !important ;
35
+ }
36
+ }
37
+
16
38
@include media-breakpoint-up (md) {
17
39
display : block !important ;
18
40
}
22
44
list-style : none ;
23
45
}
24
46
25
- ul {
47
+ & .ul-0 , ul {
26
48
padding : 0 ;
27
49
margin : 0 ;
28
50
}
119
141
}
120
142
121
143
& __search {
122
- padding : 1rem 15px ;
123
- margin-right : -15px ;
124
- margin-left : -15px ;
144
+ padding : 1rem 0 ;
125
145
}
126
146
127
147
& __inner {
132
152
position : sticky ;
133
153
top : 4rem ;
134
154
z-index : 10 ;
135
- height : calc (100vh - 6 rem );
155
+ height : calc (100vh - 5 rem );
136
156
}
137
157
}
138
158
Original file line number Diff line number Diff line change 18
18
</ div >
19
19
< div id ="content-desktop "> </ div >
20
20
{{ end -}}
21
- < nav class ="collapse td-sidebar-nav{{ if .Site.Params.ui.sidebar_menu_foldable }} foldable-nav{{ end }} " id ="td-section-nav ">
21
+ < nav class ="td-sidebar-nav collapse
22
+ {{- if .Site.Params.ui.sidebar_search_disable }} td-sidebar-nav--search-disabled{{ end -}}
23
+ {{- if .Site.Params.ui.sidebar_menu_foldable }} foldable-nav{{ end -}}
24
+ " id ="td-section-nav ">
22
25
{{ if (gt (len .Site.Home.Translations) 0) -}}
23
26
< div class ="td-sidebar-nav__section nav-item dropdown d-block d-lg-none ">
24
27
{{ partial "navbar-lang-selector.html" . }}
You can’t perform that action at this time.
0 commit comments