From aa089a5533cf9a7ae55a909dbc739fd8d8008efa Mon Sep 17 00:00:00 2001 From: gilardh Date: Thu, 5 Dec 2019 10:38:00 +0100 Subject: [PATCH] Anchor links count the navbar height #154 With this add, the anchor links count the navbar height #154 It's work on desktop and mobile device. Thanks to @TWiStErRob for here help. --- _sass/_09_elements.scss | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/_sass/_09_elements.scss b/_sass/_09_elements.scss index 2204004c394..33095653358 100644 --- a/_sass/_09_elements.scss +++ b/_sass/_09_elements.scss @@ -148,3 +148,15 @@ img.lazy { transition: opacity 0.7s; opacity: 1; } + +*:target:not([id^='fn:']):not([id^='fnref:']) { + &::before { + content: " "; + width: 0; + height: 0; + + display: block; + padding-top: 50px; + margin-top: -50px; + } +}