From c3c15ed2ce672e708f5e5e8bec9602d980ddc921 Mon Sep 17 00:00:00 2001 From: BurnyLlama Date: Wed, 29 Mar 2023 10:52:58 +0200 Subject: [PATCH] Added scrollbehaviour. --- src/_settings.scss | 6 +++++- src/defaults.scss | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/_settings.scss b/src/_settings.scss index e89593f..3b58132 100644 --- a/src/_settings.scss +++ b/src/_settings.scss @@ -1,2 +1,6 @@ +// Select the font to be used for most of the text. // $font-body-text: 'Manrope', sans-serif; -$font-body-text: 'Alegreya', serif; \ No newline at end of file +$font-body-text: 'Alegreya', serif; + +// Select the scroll behavior. [ smooth | auto ] +$scroll-behaviour: smooth; \ No newline at end of file diff --git a/src/defaults.scss b/src/defaults.scss index fd26d22..b5c92cd 100644 --- a/src/defaults.scss +++ b/src/defaults.scss @@ -1,4 +1,5 @@ @use "palette"; +@use "settings"; :root, *, @@ -8,6 +9,7 @@ padding: 0; box-sizing: border-box; line-height: 1.5; + scroll-behavior: settings.$scroll-behaviour; } :root,