Skip to content

Commit

Permalink
Add padding for site-nav and content wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
ang-zeyu committed Sep 17, 2020
1 parent 738fe0a commit 586d961
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core-web/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function setupAnchorsForFixedNavbar() {
const headerHeight = headerSelector.height();
const bufferHeight = 1;
jQuery('.nav-inner').css('padding-top', `calc(${headerHeight}px + 1rem)`);
jQuery('#content-wrapper').css('padding-top', `calc(${headerHeight}px)`);
jQuery('#content-wrapper').css('padding-top', `calc(${headerHeight}px + 0.8rem)`);
insertCss(
`span.anchor {
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion packages/core-web/src/styles/markbind.css
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ header[fixed] {
margin: 0 auto;
min-width: 0;
max-width: 1000px;
padding: 0 20px;
padding: 0.8rem 20px 0 20px;
transition: 0.4s;
-webkit-transition: 0.4s;
}
Expand Down
1 change: 1 addition & 0 deletions packages/core-web/src/styles/site-nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
}

#site-nav .nav-inner {
padding-bottom: 20px;
max-height: 100vh;
}

Expand Down

0 comments on commit 586d961

Please sign in to comment.