From 47a49ab7f1afb4afc8cf9389de235c2448f02737 Mon Sep 17 00:00:00 2001 From: David Aerne Date: Tue, 17 Dec 2024 16:53:15 +0100 Subject: [PATCH] fix scroll top in nav --- src/css/custom.scss | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/css/custom.scss b/src/css/custom.scss index 2e4a88e8cf..30e2ce5fa0 100644 --- a/src/css/custom.scss +++ b/src/css/custom.scss @@ -446,6 +446,17 @@ div[class^="announcementBarContent"] { cursor: pointer; } +.markdown { + & > h1, + & > h2, + & > h3, + & > h4, + & > h5, + & > h6 { + scroll-margin-top: 10rem; + } +} + .gradient-text { background-image: linear-gradient(108.55deg, #3b00b9 0%, #18d0b5 149.76%); } @@ -774,4 +785,4 @@ div[class^="announcementBarContent"] { @tailwind base; @tailwind components; -@tailwind utilities; \ No newline at end of file +@tailwind utilities;