summaryrefslogtreecommitdiff
path: root/frontend/src/index.sass
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2020-10-28 00:03:05 +0100
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-10-28 11:38:33 +0100
commit5ec42736f3f17e9f5432063b4cc17e6ad9a75713 (patch)
treed5c0c0500f913cd694f1ff5d80b3986df7b3f4fa /frontend/src/index.sass
parentbb03ab6a934eaf29cea86e877c4b2024f068dd1c (diff)
Use scroll-padding for aligning anchors
This change is one in a series of patches to remove the use of jQuery. Here, we can utilize the scroll-padding CSS property to align anchors properly in presence of a fixed top header.
Diffstat (limited to 'frontend/src/index.sass')
-rw-r--r--frontend/src/index.sass3
1 files changed, 3 insertions, 0 deletions
diff --git a/frontend/src/index.sass b/frontend/src/index.sass
index 77acc23a..efb2bed5 100644
--- a/frontend/src/index.sass
+++ b/frontend/src/index.sass
@@ -10,6 +10,9 @@ html, body, #root
font-family: Roboto, Helvetica, Verdana, sans-serif
background: #eee
+ // Scroll padding for top navbar
+ scroll-padding-top: 60px
+
.full-height
position: relative
height: 100% !important