From f8a51ba2dc6c1e50ab6ae66931b1e54f2d42c611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20Slez=C3=A1k?= Date: Thu, 7 Nov 2024 09:29:13 +0100 Subject: [PATCH] Ensure headings are fully visible when using page URL with anchor --- _sass/custom/_post.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_sass/custom/_post.scss b/_sass/custom/_post.scss index fe9ddcea..24bf4172 100644 --- a/_sass/custom/_post.scss +++ b/_sass/custom/_post.scss @@ -24,18 +24,21 @@ margin-bottom: $spacing-unit; h2 { font-size: 32px; + scroll-margin-top: 80px; @media (max-width: $screen-md-min) { font-size: 28px; } } h3 { font-size: 26px; + scroll-margin-top: 80px; @media (max-width: $screen-md-min) { font-size: 22px; } } h4 { font-size: 20px; + scroll-margin-top: 75px; @media (max-width: $screen-md-min) { font-size: 18px; }