From ec9ec6fa87d835118387a2bfea5e21a31743306b Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Tue, 7 May 2024 11:33:43 +0800 Subject: [PATCH] Make smooth scrolling target the entire HTML --- _site/assets/css/main.css | 2 +- src/assets/css/main.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_site/assets/css/main.css b/_site/assets/css/main.css index 0dde75f6..27591380 100644 --- a/_site/assets/css/main.css +++ b/_site/assets/css/main.css @@ -120,7 +120,7 @@ textarea:not([rows]) { /* ------------------- */ /* General Styles */ -html:focus-within { +html { scroll-behavior: smooth; } diff --git a/src/assets/css/main.css b/src/assets/css/main.css index 0dde75f6..27591380 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -120,7 +120,7 @@ textarea:not([rows]) { /* ------------------- */ /* General Styles */ -html:focus-within { +html { scroll-behavior: smooth; }