Skip to content

Commit b7f3ac4

Browse files
matthieumotaulivz
authored andcommitted
fix: sidebar button should be hidden when there are no sidebars in mobile side (#1159)
1 parent cb8fce9 commit b7f3ac4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Diff for: lib/default-theme/styles/theme.styl

+7-2
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,17 @@ th, td
172172
display: block
173173
&.no-navbar
174174
.content:not(.custom) > h1, h2, h3, h4, h5, h6
175-
margin-top 1.5rem
176-
padding-top 0
175+
margin-top 1.5rem
176+
padding-top 0
177177
.sidebar
178178
top 0
179179
.custom-layout
180180
padding-top 0
181+
&.no-sidebar
182+
.sidebar-button
183+
display: none
184+
.navbar
185+
padding-left 1.5rem
181186

182187

183188
@media (min-width: ($MQMobile + 1px))

0 commit comments

Comments
 (0)