Skip to content

Commit

Permalink
Fix anchor links hiding heading due to sticky header (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
bates64 authored Sep 20, 2023
1 parent 87fdc9c commit c4f0e8a
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 c4f0e8a

Please sign in to comment.