Add HTML element "scroll-padding-top"

This fixes the issue of the navigation bar overlapping anchors on small
displays.
This commit is contained in:
inference 2023-11-14 18:53:03 +00:00
parent 462c21ff2f
commit 7b98e7a6a9
Signed by: inference
SSH Key Fingerprint: SHA256:FtEVfx1CmTKMy40VwZvF4k+3TC+QhCWy+EmPRg50Nnc

View File

@ -3,7 +3,7 @@
/* Copyright 2022 Jake Winters */ /* Copyright 2022 Jake Winters */
/* SPDX-License-Identifier: BSD-3-Clause */ /* SPDX-License-Identifier: BSD-3-Clause */
/* Version: 11.1.0-alpha.6 */ /* Version: 11.1.0-alpha.7 */
/* Body */ /* Body */
@ -247,6 +247,10 @@ strong {
/* Media */ /* Media */
@media (max-width: 600px) { @media (max-width: 600px) {
html {
scroll-padding-top: 75px;
}
body { body {
padding-top: 80px; padding-top: 80px;
margin: 15px; margin: 15px;