From 60d8365778e707ff6331aa4d397c44770df7432a Mon Sep 17 00:00:00 2001 From: Vamsi Krishna Date: Fri, 15 Jan 2021 23:58:53 +0530 Subject: [PATCH] fix anchor jump issue (#247) --- src/scss/yuzu/yuzu.scss | 8 ++++++++ 1 file changed, 8 insertions(+) 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