From 1dc82151c3c6d78d38a736d5701bd9b669c5ed28 Mon Sep 17 00:00:00 2001 From: metonym Date: Fri, 26 Aug 2022 14:48:26 -0700 Subject: [PATCH] doc: apply scroll-margin-top to h2, h3 elements --- 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);