when linking to an intra-document point, don't scroll too much
This commit is contained in:
parent
9bf17b2c40
commit
f012084123
2 changed files with 10 additions and 0 deletions
|
@ -47,6 +47,14 @@ hr.small {
|
|||
border-radius: 3px;
|
||||
}
|
||||
|
||||
/* fix in-page anchors to not be behind fixed header */
|
||||
:target:before {
|
||||
content: "";
|
||||
display: block;
|
||||
height: 50px; /* navbar height */
|
||||
margin: -50px 0 0;
|
||||
}
|
||||
|
||||
.main-content {
|
||||
padding-top: 80px;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue