Make sure anchor links aren't hidden by the header #543

This commit is contained in:
Andrew T. Baker
2016-05-22 14:54:02 -07:00
parent 36a6969bc1
commit ca49a72c24
+9 -1
View File
@@ -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