From 1a5b8d39fb56b2968e3b18d7b6d325cde55ab247 Mon Sep 17 00:00:00 2001 From: Danielle De Leo Date: Tue, 1 Apr 2025 15:13:32 -0400 Subject: [PATCH] Styles: Add smooth scrolling to #links --- assets/css/v2/style.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/assets/css/v2/style.css b/assets/css/v2/style.css index 24d9f1ea..a30f95b0 100644 --- a/assets/css/v2/style.css +++ b/assets/css/v2/style.css @@ -59,6 +59,7 @@ --flow-gap: 1rem; } +/* reset */ html, body, p, @@ -112,6 +113,19 @@ h6, font-weight: 500; } +html { + scroll-behavior: smooth; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + scroll-margin-top: 1.5rem; +} + /* header */ p { font-weight: 400;