Skip to content

Commit

Permalink
docs: fixes anchor links
Browse files Browse the repository at this point in the history
Signed-off-by: Evgenii Sazhin <prosazhin@gmail.com>
  • Loading branch information
prosazhin committed Sep 28, 2023
1 parent dff4492 commit 7fec0be
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/assets/scss/theme/content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,26 @@

>h2:not(:first-child) {
margin-top: 48px;

// Scroll margin calculation for desktop:
// nav height (80px) + margin-top (48px)
scroll-margin-top: 128px;

@media screen and (max-width: 767px) {
scroll-margin-top: 48px;
}
}

>h2+h3 {
margin-top: 20px;

// Scroll margin calculation for desktop:
// nav height (80px) + margin-top (20px)
scroll-margin-top: 100px;

@media screen and (max-width: 767px) {
scroll-margin-top: 20px;
}
}

>h3,
Expand All @@ -36,6 +52,14 @@
margin-bottom: 12px;
margin-top: 28px !important;
font-weight: 600;

// Scroll margin calculation for desktop:
// nav height (80px) + margin-top (28px)
scroll-margin-top: 108px;

@media screen and (max-width: 767px) {
scroll-margin-top: 28px;
}
}

#whats-next {
Expand Down

0 comments on commit 7fec0be

Please sign in to comment.