From b79916dc10ec2f5ceee5530a875842a2d9f3d259 Mon Sep 17 00:00:00 2001 From: wikai <80284758+wikai@users.noreply.github.com> Date: Sun, 6 Oct 2024 13:28:33 +0200 Subject: [PATCH] SCSS: Add @charset, scroll-behavior:smooth --- css/main.css | 5 +++++ css/scss/base/_base.scss | 6 ++++++ css/scss/base/_typography.scss | 1 + 3 files changed, 12 insertions(+) diff --git a/css/main.css b/css/main.css index b59ecee..bf9be8b 100644 --- a/css/main.css +++ b/css/main.css @@ -97,6 +97,11 @@ h1, h2, h3, h4, h5, h6 { line-height: 1.3; } +@media (prefers-reduced-motion: no-preference) { + :root { + scroll-behavior: smooth; + } +} h1, h2, h3, h4, h5, h6 { color: var(--color-heading); } diff --git a/css/scss/base/_base.scss b/css/scss/base/_base.scss index 1fbdc2a..c2870bd 100644 --- a/css/scss/base/_base.scss +++ b/css/scss/base/_base.scss @@ -1,3 +1,9 @@ +@media (prefers-reduced-motion: no-preference) { + :root { + scroll-behavior: smooth; + } +} + h1, h2, h3, h4, h5, h6 { color: var(--color-heading); } diff --git a/css/scss/base/_typography.scss b/css/scss/base/_typography.scss index 9ec7720..d436570 100644 --- a/css/scss/base/_typography.scss +++ b/css/scss/base/_typography.scss @@ -1,3 +1,4 @@ +@charset "UTF-8"; @use '../abstracts/' as *; @import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');