Skip to content

Commit

Permalink
revert to previous offset
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Aug 26, 2021
1 parent 75d9fcd commit 410a933
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ the browser does not scroll that anchor behind the navbar
See https://twitter.com/JoshWComeau/status/1332015868725891076
*/
.anchorWithStickyNavbar {
scroll-margin-top: calc(var(--ifm-navbar-height) + 0.8rem);
/* top: calc(var(--ifm-navbar-height) * -1 - 0.8rem); */
scroll-margin-top: calc(var(--ifm-navbar-height) + 0.5rem);
/* top: calc(var(--ifm-navbar-height) * -1 - 0.5rem); */
}

.anchorWithHideOnScrollNavbar {
scroll-margin-top: 0.8rem;
scroll-margin-top: 0.5rem;
}

0 comments on commit 410a933

Please sign in to comment.