when linking to an intra-document point, don't scroll too much

This commit is contained in:
Dean Attali 2020-04-28 20:16:59 +00:00
parent 9bf17b2c40
commit f012084123
2 changed files with 10 additions and 0 deletions

View file

@ -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;
}