Skip to content

Commit

Permalink
Fix section vertical aligment
Browse files Browse the repository at this point in the history
This fixes the sections' vertical scroll offset when navigating through
menu anchor links.

Screencast of the observed issue:
https://drive.google.com/file/d/12rB1Pjm_UO2l23cSB1aGOlrpil_CWTvP/view

Signed-off-by: Nick Diego Yamane <[email protected]>
  • Loading branch information
nickdiego committed May 28, 2024
1 parent 2af93b9 commit 3fb7df9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions _assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
--orange-background: #ff9900cc;
}

html {
scroll-padding-top: 5rem;
}

html, body {
margin: 0;
padding: 0;
Expand Down Expand Up @@ -55,6 +59,7 @@ nav {
position: sticky;
top: 0;
z-index: 1;
height: 5rem;
}

nav > ul {
Expand Down

0 comments on commit 3fb7df9

Please sign in to comment.