From de1ed3d7fd10f4ccd144af004ded1a0f90dd5824 Mon Sep 17 00:00:00 2001 From: Johns Beharry Date: Tue, 15 Dec 2020 22:41:14 +0100 Subject: [PATCH] fix: offset heading anchors to compensate for nav --- _sass/minima/_article.scss | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/_sass/minima/_article.scss b/_sass/minima/_article.scss index ddd99d9a5..09b77f980 100644 --- a/_sass/minima/_article.scss +++ b/_sass/minima/_article.scss @@ -184,6 +184,21 @@ article.guide { margin-left: 30px; } } + + // fix: add offset for in page links + h1[id]::before, h2[id]::before, h3[id]::before, + h4[id]::before, h5[id]::before, h6[id]::before { + content: ''; + display: block; + position: relative; + width: 0; + height: 2em; + margin-top: -2em; + @include media-query(medium-up) { + height: 3em; + margin-top: -3em; + } + } } .footnotes {