From 92046e8027ab1dcd0ca442ed33abf64df29c49d6 Mon Sep 17 00:00:00 2001 From: metonym Date: Tue, 30 Aug 2022 09:55:56 -0700 Subject: [PATCH] doc: apply scroll-margin-top to h2, h3 elements PR-URL: https://github.com/nodejs/node/pull/44414 Reviewed-By: James M Snell Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca --- doc/api_assets/style.css | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/doc/api_assets/style.css b/doc/api_assets/style.css index 663025e1c27ef5..acab9bfa04858e 100644 --- a/doc/api_assets/style.css +++ b/doc/api_assets/style.css @@ -40,17 +40,13 @@ --color-text-secondary: var(--green2); } +h2 :target, +h3 :target, h4 :target, h5 :target { scroll-margin-top: 55px; } -@supports not (content-visibility: auto) { - h3 :target { - scroll-margin-top: 55px; - } -} - .dark-mode { --background-color-highlight: var(--black2); --color-critical: var(--red4);