Skip to content

Commit

Permalink
Avoid the header hiding the content on anchor scroll.
Browse files Browse the repository at this point in the history
  • Loading branch information
cramforce committed Dec 25, 2020
1 parent db42be9 commit 5fd62ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ main img {
content-visibility: auto;
}

/* Avoid the header hiding the content on anchor scroll. */
article * {
scroll-margin-top: 50px;
}

/* "Content-visibility: auto" move the images over the other elements
Set z-index to keep the nav over the rasterized images */
header nav {
Expand Down

0 comments on commit 5fd62ae

Please sign in to comment.