From 3361778c6619c5cc415bd2bddb160ca00f8605c5 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Mon, 15 Apr 2024 21:08:21 +0800 Subject: [PATCH] Add smooth-scrolling --- src/assets/css/main.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/assets/css/main.css b/src/assets/css/main.css index 016bd580..f63b6b8c 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -116,6 +116,10 @@ textarea:not([rows]) { /* ------------------- */ /* General Styles */ +html:focus-within { + scroll-behavior: smooth; +} + body { display: flex; align-items: center;