From 1212d263d6419be79d5c68f4bbf567fd5e107f23 Mon Sep 17 00:00:00 2001 From: isUnknown Date: Tue, 3 Sep 2024 16:27:15 +0200 Subject: [PATCH] nav - add link to page titles --- assets/css/src/page-sectioned.css | 2 +- assets/css/src/vanilla.css | 4 ++++ site/snippets/nav.php | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/assets/css/src/page-sectioned.css b/assets/css/src/page-sectioned.css index 7223b6c..f8053c5 100644 --- a/assets/css/src/page-sectioned.css +++ b/assets/css/src/page-sectioned.css @@ -1,5 +1,5 @@ [data-template="sectioned"] section { - scroll-margin-top: 7rem; + scroll-margin-top: 6rem; } [data-template="sectioned"] .section__row { diff --git a/assets/css/src/vanilla.css b/assets/css/src/vanilla.css index d758bb9..b0efa19 100644 --- a/assets/css/src/vanilla.css +++ b/assets/css/src/vanilla.css @@ -1,3 +1,7 @@ +* { + scroll-behavior: smooth; +} + section:not(.collapsable), footer { box-sizing: border-box; diff --git a/site/snippets/nav.php b/site/snippets/nav.php index 8fedc2c..6d80ce0 100644 --- a/site/snippets/nav.php +++ b/site/snippets/nav.php @@ -50,7 +50,7 @@