From a3e6f2d5b88c47e57e01d48b002f7c1d337f6d53 Mon Sep 17 00:00:00 2001 From: rating89us <45968869+rating89us@users.noreply.github.com> Date: Mon, 9 Aug 2021 01:26:23 +0200 Subject: [PATCH] custom.css: avoid fixed page header overlapping in-page anchors on mobile --- css/custom.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/css/custom.css b/css/custom.css index 45d4ed11..da8a0a9a 100644 --- a/css/custom.css +++ b/css/custom.css @@ -2443,6 +2443,14 @@ label[for="mobile-burger"] { background-color: #f5f5f5; } +/*Avoid fixed page header overlapping in-page anchors on mobile*/ +:target::before { + content: ""; + display: block; + height: 80px; + margin: -60px 0 0; +} + #drop1:checked ~ .dropdown-content, #drop2:checked ~ .dropdown-content, #drop3:checked ~ .dropdown-content, #drop4:checked ~ .dropdown-content { background-color: #fcfcfc; }