From 2043921232e9ce03ebd70f15d95f5a871f0d702c Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Wed, 12 Jan 2022 00:08:38 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Add=20smooth=20scrolling=20behav?= =?UTF-8?q?iour?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + assets/css/compiled/main.css | 4 ++++ layouts/_default/baseof.html | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e8a4418..8dbc9c5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Upgrade to Tailwind v3.0.12 - Author images are now Hugo assets - Required Hugo version is now 0.87.0 or later +- Minor style and layout improvements ## [1.6.2] - 2022-01-07 diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index 7983effc..3f46855a 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -2022,6 +2022,10 @@ body a, body button { overflow: hidden; } +.scroll-smooth { + scroll-behavior: smooth; +} + .rounded-full { border-radius: 9999px; } diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 54415aa9..e59a2a9c 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -8,7 +8,7 @@ {{- else -}} ltr {{- end }}" - {{ if .Site.Params.darkMode | default false }}class="dark"{{ end }} + class="scroll-smooth {{ if .Site.Params.darkMode | default false }}dark{{ end }}" > {{- partial "head.html" . -}}