Skip to content

Commit

Permalink
docs: adds comment to css
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 ec13bb1 commit 0486c35
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/assets/scss/theme/content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@

>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) {
Expand All @@ -32,6 +35,9 @@

>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) {
Expand All @@ -46,6 +52,9 @@
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) {
Expand Down

0 comments on commit 0486c35

Please sign in to comment.