From a34326ea002d9e12f05a4f67a40f128f93cbe098 Mon Sep 17 00:00:00 2001 From: Pigges Date: Thu, 25 Jan 2024 23:25:41 +0100 Subject: [PATCH] fix link to heading not hide the heading behind the header --- src/styles/global.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/styles/global.scss b/src/styles/global.scss index 3333ec2..fa1a6ea 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -41,7 +41,9 @@ box-sizing: border-box; } -*:target{ padding-top: 100px;margin-top: -100px} +*:target{ + scroll-margin-top: calc(var(--nav-height) + 1em); +} html { font-family: 'Roboto', sans-serif;