Skip to content

Commit

Permalink
fix scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
viperML committed Jul 6, 2024
1 parent 732c401 commit 4634bf0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,11 @@ hr {
background-color: red;
margin: 2rem 3rem;
}

/* [id]::before {
content: '';
display: block;
height: 75px;
margin-top: -75px;
visibility: hidden;
} */
11 changes: 11 additions & 0 deletions src/styles/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,15 @@ main {
ol {
padding-left: 1.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
// Offset anchor links
// https://perishablepress.com/margin-offset-anchor-targets/
scroll-margin-top: 50px;
}
}

0 comments on commit 4634bf0

Please sign in to comment.