Skip to content

Commit

Permalink
fix anchor links hiding heading due to sticky header
Browse files Browse the repository at this point in the history
  • Loading branch information
bates64 committed Sep 20, 2023
1 parent 87fdc9c commit 7e1596f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/GlobalNav.astro
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,8 @@ const links = [
</div>
</nav>

<style is:global></style>
<style is:global>
:target {
scroll-margin-top: 74px;
}
</style>

0 comments on commit 7e1596f

Please sign in to comment.