Merge pull request #558 from atbaker/543-header-clearance

Make sure anchor links aren't hidden by the header #543
pull/554/merge
johndmulhausen 2016-05-22 15:02:45 -07:00
commit 250827fbdf
1 changed files with 9 additions and 1 deletions

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