Add smooth-scrolling site-wide
commit8ef45d55caef6e0680e36b6802b7a6aa66e8dfa7
authorMatilde Park <matilde@tlon.io>
dateTue 17 Sep 2019, 20:37 (7 years ago)
parent39dc6e1
sass/_main.scss+7−1
@@ -480,8 +480,14 @@ nav.docs details {
480480 height: 100%;
481481 }
482482
483+ // horizontal rules
483484hr {
484485 border-top-width: 0;
485486 border-bottom-style: solid;
486487 margin: 2rem 0 2rem 0;
487−}
488+}
489+
490+ // smooth scroll on /updates, etc.
491+ .scroll-smooth {
492+ scroll-behavior: smooth;
493+ }
templates/base.html+1−1
@@ -1,5 +1,5 @@
11<!DOCTYPE html>
2−<html lang="en">
2+<html lang="en" class="scroll-smooth">
33 <head>
44 <!-- meta -->
55 <meta charset="UTF-8">