Skip to content

Commit

Permalink
SCSS: Add @charset, scroll-behavior:smooth
Browse files Browse the repository at this point in the history
  • Loading branch information
wikjoh committed Oct 6, 2024
1 parent 281ebbb commit b79916d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
6 changes: 6 additions & 0 deletions css/scss/base/_base.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
@media (prefers-reduced-motion: no-preference) {
:root {
scroll-behavior: smooth;
}
}

h1, h2, h3, h4, h5, h6 {
color: var(--color-heading);
}
Expand Down
1 change: 1 addition & 0 deletions css/scss/base/_typography.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@charset "UTF-8";
@use '../abstracts/' as *;

@import url('https://fonts.googleapis.com/css2?family=Manrope:[email protected]&display=swap');
Expand Down

0 comments on commit b79916d

Please sign in to comment.