From f790fb08b92edcbe1a591a6c713e6d38d4f32d6a Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 2 Jan 2024 23:35:43 +0000 Subject: [PATCH] Account for hero height when scrolling to comments --- static/src/scss/_content.scss | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/src/scss/_content.scss b/static/src/scss/_content.scss index 3caac92..af2f3f0 100644 --- a/static/src/scss/_content.scss +++ b/static/src/scss/_content.scss @@ -8,7 +8,7 @@ section.content { h5, h6 { .heading-anchor { - scroll-margin-top: var(--hero-height); // navbar height (ish) + scroll-margin-top: var(--hero-height); // hero height (ish) margin-right: 0.5rem; font-weight: 100; } @@ -62,3 +62,7 @@ section.content { } } } + +#comments { + scroll-margin-top: var(--hero-height); // hero height (ish) +}