Skip to content

Commit

Permalink
fix: unexpected top blank space when navbar is disable (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aterbonus authored and ulivz committed May 2, 2018
1 parent 0eb09b1 commit 2bdc68e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 7 additions & 3 deletions lib/default-theme/styles/mobile.styl
Expand Up @@ -21,9 +21,13 @@ $mobileSidebarWidth = $sidebarWidth * 0.82
transition transform .2s ease
.page
padding-left 0
.theme-container.sidebar-open
.sidebar
transform translateX(0)
.theme-container
&.sidebar-open
.sidebar
transform translateX(0)
&.no-navbar
.sidebar
padding-top: 0

// narrow mobile
@media (max-width: $MQMobileNarrow)
Expand Down
6 changes: 5 additions & 1 deletion lib/default-theme/styles/theme.styl
Expand Up @@ -167,10 +167,14 @@ th, td
.sidebar-mask
display: block
&.no-navbar
.content:not(.custom)
.content:not(.custom) >
h1, h2, h3, h4, h5, h6
margin-top 1.5rem
padding-top 0
.sidebar
top 0
.custom-layout
padding-top 0


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

0 comments on commit 2bdc68e

Please sign in to comment.