From 2d92ec28316a999c7008685179d005cf6df232a1 Mon Sep 17 00:00:00 2001 From: Cloyd Lau <31238760+cloydlau@users.noreply.github.com> Date: Wed, 10 Jul 2024 17:24:43 +0800 Subject: [PATCH] doc: update `scroll-padding-top` to 4rem PR-URL: https://github.com/nodejs/node/pull/53662 Reviewed-By: Claudio Wunder Reviewed-By: James M Snell --- doc/api_assets/style.css | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/doc/api_assets/style.css b/doc/api_assets/style.css index 53da92ae512490..3921f05b0ca965 100644 --- a/doc/api_assets/style.css +++ b/doc/api_assets/style.css @@ -40,13 +40,6 @@ --color-text-secondary: var(--green2); } -h2 :target, -h3 :target, -h4 :target, -h5 :target { - scroll-margin-top: 55px; -} - .dark-mode { --background-color-highlight: var(--black2); --color-critical: var(--red4); @@ -76,7 +69,7 @@ h5 :target { html { font-size: 1rem; overflow-wrap: break-word; - scroll-padding-top: 50vh; + scroll-padding-top: 4rem; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-font-variant-ligatures: none;