Skip to content

Commit 1f3963c

Browse files
committed
Styles: Add smooth scrolling to #links
1 parent ae84628 commit 1f3963c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

assets/css/v2/style.css

Lines changed: 14 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,19 @@ h6,
112113
font-weight: 500;
113114
}
114115

116+
html {
117+
scroll-behavior: smooth;
118+
}
119+
120+
h1,
121+
h2,
122+
h3,
123+
h4,
124+
h5,
125+
h6 {
126+
scroll-margin-top: 1.5rem;
127+
}
128+
115129
/* header */
116130
p {
117131
font-weight: 400;

0 commit comments

Comments
 (0)