]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Better use the CSS
authorlouismaxime.piton <louismaxime.piton@orange.com>
Wed, 8 Mar 2023 13:51:49 +0000 (14:51 +0100)
committerMark Otto <markdotto@gmail.com>
Fri, 10 Mar 2023 17:15:33 +0000 (11:15 -0600)
site/assets/scss/_scrolling.scss

index dcd9f3d3956ca8df9f7276f3b8200dea59132f53..84db8809a7f973bc26172f5f144a7c7a966fa53f 100644 (file)
@@ -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;
+  }
 }