Skip to content

Commit 2bdc68e

Browse files
Aterbonusulivz
authored andcommitted
fix: unexpected top blank space when navbar is disable (#316)
1 parent 0eb09b1 commit 2bdc68e

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

lib/default-theme/styles/mobile.styl

+7-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@ $mobileSidebarWidth = $sidebarWidth * 0.82
2121
transition transform .2s ease
2222
.page
2323
padding-left 0
24-
.theme-container.sidebar-open
25-
.sidebar
26-
transform translateX(0)
24+
.theme-container
25+
&.sidebar-open
26+
.sidebar
27+
transform translateX(0)
28+
&.no-navbar
29+
.sidebar
30+
padding-top: 0
2731

2832
// narrow mobile
2933
@media (max-width: $MQMobileNarrow)

lib/default-theme/styles/theme.styl

+5-1
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,14 @@ th, td
167167
.sidebar-mask
168168
display: block
169169
&.no-navbar
170-
.content:not(.custom)
170+
.content:not(.custom) >
171171
h1, h2, h3, h4, h5, h6
172172
margin-top 1.5rem
173173
padding-top 0
174+
.sidebar
175+
top 0
176+
.custom-layout
177+
padding-top 0
174178

175179

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

0 commit comments

Comments
 (0)