From ca49a72c2476ef424d7856e6d81c184ec481385a Mon Sep 17 00:00:00 2001 From: "Andrew T. Baker" Date: Sun, 22 May 2016 14:54:02 -0700 Subject: [PATCH] Make sure anchor links aren't hidden by the header #543 --- _sass/_base.sass | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/_sass/_base.sass b/_sass/_base.sass index f9b8c82f84..0fbf8b32ce 100644 --- a/_sass/_base.sass +++ b/_sass/_base.sass @@ -694,7 +694,7 @@ dd width: 100% $toc-margin: 15px - $header-clearance: 40px + $header-clearance: $header-height + 20px * + h2, * + h3, * + h4, * + h5, * + h6 margin-top: 30px @@ -706,6 +706,14 @@ dd padding-bottom: 10px border-bottom: 1px solid #cccccc + // Make sure anchor links aren't hidden by the header + &:before + display: block + content: " " + margin-top: -$header-clearance + height: $header-clearance + visibility: hidden + h1 font-size: 32px padding-right: 60px