diff --git a/src/styles/global.css b/src/styles/global.css index 6d15e90..99077b1 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -57,3 +57,9 @@ html[data-theme="dark"] { .active-nav { @apply underline decoration-wavy decoration-2 underline-offset-4; } + +/* Source: https://piccalil.li/blog/a-more-modern-css-reset/ */ +/* Anything that has been anchored to should have extra scroll margin */ +:target { + scroll-margin-block: 1rem; +}