Merge pull request #558 from atbaker/543-header-clearance
Make sure anchor links aren't hidden by the header #543
This commit is contained in:
+9
-1
@@ -694,7 +694,7 @@ dd
|
|||||||
width: 100%
|
width: 100%
|
||||||
|
|
||||||
$toc-margin: 15px
|
$toc-margin: 15px
|
||||||
$header-clearance: 40px
|
$header-clearance: $header-height + 20px
|
||||||
|
|
||||||
* + h2, * + h3, * + h4, * + h5, * + h6
|
* + h2, * + h3, * + h4, * + h5, * + h6
|
||||||
margin-top: 30px
|
margin-top: 30px
|
||||||
@@ -706,6 +706,14 @@ dd
|
|||||||
padding-bottom: 10px
|
padding-bottom: 10px
|
||||||
border-bottom: 1px solid #cccccc
|
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
|
h1
|
||||||
font-size: 32px
|
font-size: 32px
|
||||||
padding-right: 60px
|
padding-right: 60px
|
||||||
|
|||||||
Reference in New Issue
Block a user