Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Commit 7be24c2

Browse files
Merge pull request #24 from matpassmore/fix-scroll-behavior
Fix viewport smooth scroll-behavior
2 parents 63eded4 + 52c4af0 commit 7be24c2

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

dist/reset.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,14 @@ dd {
2727
margin: 0;
2828
}
2929

30+
/* Set core root defaults */
31+
html {
32+
scroll-behavior: smooth;
33+
}
34+
3035
/* Set core body defaults */
3136
body {
3237
min-height: 100vh;
33-
scroll-behavior: smooth;
3438
text-rendering: optimizeSpeed;
3539
line-height: 1.5;
3640
}

dist/reset.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/reset.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,14 @@ dd {
2727
margin: 0;
2828
}
2929

30+
/* Set core root defaults */
31+
html {
32+
scroll-behavior: smooth;
33+
}
34+
3035
/* Set core body defaults */
3136
body {
3237
min-height: 100vh;
33-
scroll-behavior: smooth;
3438
text-rendering: optimizeSpeed;
3539
line-height: 1.5;
3640
}

0 commit comments

Comments
 (0)