From 1f7e7ebd1033aa50ba39fdd66b2fb48b8540a05d Mon Sep 17 00:00:00 2001 From: "louismaxime.piton" Date: Wed, 8 Mar 2023 14:51:49 +0100 Subject: [PATCH] Better use the CSS --- site/assets/scss/_scrolling.scss | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/site/assets/scss/_scrolling.scss b/site/assets/scss/_scrolling.scss index dcd9f3d3956c..84db8809a7f9 100644 --- a/site/assets/scss/_scrolling.scss +++ b/site/assets/scss/_scrolling.scss @@ -1,5 +1,10 @@ // When navigating with the keyboard, prevent focus from landing behind the sticky header -main *:focus { - scroll-margin-top: 100px; +main { + a, + button, + [tabindex="0"] { + scroll-margin-top: 100px; + scroll-margin-bottom: 100px; + } }