Skip to content

Commit 10aff38

Browse files
committed
Add smooth scrolling to #links
1 parent ae84628 commit 10aff38

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

assets/css/v2/style.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
--flow-gap: 1rem;
6060
}
6161

62+
/* reset */
6263
html,
6364
body,
6465
p,
@@ -112,6 +113,14 @@ h6,
112113
font-weight: 500;
113114
}
114115

116+
html {
117+
scroll-behavior: smooth;
118+
}
119+
120+
h1, h2, h3, h4, h5, h6 {
121+
scroll-margin-top: 1.5rem;
122+
}
123+
115124
/* header */
116125
p {
117126
font-weight: 400;

0 commit comments

Comments
 (0)