Skip to content

Commit

Permalink
Improved usability with scroll-padding
Browse files Browse the repository at this point in the history
  • Loading branch information
benpate committed Nov 10, 2023
1 parent 4d7b3e0 commit 34ac567
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions _embed/templates/theme-default/stylesheet/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
box-sizing: border-box;
}

html, body {
/* https://tetralogical.com/blog/2023/06/08/focus-in-view/ */
scroll-padding-top: 56px;
}

body {
background-color: var(--body-background);
color: var(--text-color);
Expand Down

0 comments on commit 34ac567

Please sign in to comment.