From 043ac62b85d183b4b2f9a2419ca408401dc83aa0 Mon Sep 17 00:00:00 2001 From: David Oliver Date: Tue, 26 Nov 2024 15:15:09 +0100 Subject: [PATCH] Set smooth scroll behaviour --- assets/css/_html.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/css/_html.css b/assets/css/_html.css index debfa40c6..34f174b94 100644 --- a/assets/css/_html.css +++ b/assets/css/_html.css @@ -39,6 +39,10 @@ @import "tabset.css"; @import "preview.css"; +html { + scroll-behavior: smooth; +} + body:not(.dark) .content-inner img[src*="#gh-dark-mode-only"], body.dark .content-inner img[src*="#gh-light-mode-only"] { display: none;