diff --git a/src/scss/yuzu/yuzu.scss b/src/scss/yuzu/yuzu.scss index 51c961f8..8ae9aa5e 100644 --- a/src/scss/yuzu/yuzu.scss +++ b/src/scss/yuzu/yuzu.scss @@ -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 */ +} \ No newline at end of file