Skip to content
Permalink
Browse files
🐾 Enable smooth scrolling throughout site
  • Loading branch information
claire-codes committed May 29, 2020
1 parent dad8ce8 commit d5a7029db698d42ce6eef9f4ec828e913aa60564
Showing 3 changed files with 15 additions and 2 deletions.
@@ -1,3 +1,15 @@
// Smooth scrolling
html {
scroll-behavior: smooth;
}

// No smooth scrolling for users who want reduced motion
@media screen and (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
}

body {
color: $color-body-font;
font-family: $body-font-family;
@@ -59,6 +71,7 @@ blockquote {

table {
border-collapse: collapse;

th {
border: 1px solid #dbdbdb;
padding: 5px 1vw;

0 comments on commit d5a7029

Please sign in to comment.