fix anchor jump issue

This commit is contained in:
CaptV0rt3x 2021-01-13 03:19:56 +05:30
parent 375205d6c9
commit 427b1b9300

View file

@ -147,3 +147,11 @@ pre > code {
#view-package-listing-button {
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 */
}