fix anchor jump issue (#247)

This commit is contained in:
Vamsi Krishna 2021-01-15 23:58:53 +05:30 committed by GitHub
parent c9a5a7def5
commit 60d8365778
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -147,3 +147,11 @@ pre > code {
#view-package-listing-button { #view-package-listing-button {
color: #363636; color: #363636;
} }
// Fix anchor jumps (https://stackoverflow.com/a/28824157)
:target::before {
content: "";
display: block;
height: 64px; /* fixed header height*/
margin: -64px 0 0; /* negative fixed header height */
}