Skip to content

Commit 81fb5af

Browse files
committed
handle mobile
1 parent de15dde commit 81fb5af

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

styles/global.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,16 @@ section,
217217
margin-top: 0px;
218218
margin-bottom: 40px;
219219
}
220+
221+
h2,
222+
.text-h2,
223+
h3,
224+
text-h3 {
225+
scroll-margin-top: 40px;
226+
@media (min-width: $breakpoint-tablet) {
227+
scroll-margin-top: 0;
228+
}
229+
}
220230
}
221231

222232
.astro-code {

0 commit comments

Comments
 (0)