make space on the top when scrolling to elements via URL anchors #
This commit is contained in:
parent
74baa61122
commit
c1cf9e0812
1 changed files with 4 additions and 0 deletions
|
@ -33,6 +33,10 @@ html {
|
||||||
--virtual-space-ratio: 1.75;
|
--virtual-space-ratio: 1.75;
|
||||||
|
|
||||||
height: calc(100% * var(--virtual-space-ratio));
|
height: calc(100% * var(--virtual-space-ratio));
|
||||||
|
|
||||||
|
/* Leave a bunch of space at the top when scrolling to elements.
|
||||||
|
I'm honestly not sure why this is needed on <html> and not the scrolled-to element... */
|
||||||
|
scroll-padding-top: 10vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
|
Loading…
Reference in a new issue