]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
replacement fix for #23257 without old history
authorMark Otto <markdotto@gmail.com>
Wed, 9 Aug 2017 04:45:33 +0000 (21:45 -0700)
committerMark Otto <markd.otto@gmail.com>
Wed, 9 Aug 2017 15:34:28 +0000 (08:34 -0700)
assets/js/src/application.js
assets/scss/_content.scss

index e1b9721a05393407a378ebb200347fddb2a271ac..ea7d812b0c3ae1a16e600db30ce1ce272a564519 100644 (file)
         .tooltip('_fixTitle')
     })
 
+    anchors.options = {
+      icon: '#'
+    }
+    anchors.add('.bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5')
+    $('.bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5').wrapInner('<span></span>')
   })
-
 }(jQuery))
-
-;(function () {
-  'use strict'
-
-  anchors.options = {
-    icon: '#'
-  }
-  anchors.add('.bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5')
-}())
index 70b4969bace4015e1cc822739ab1b83392313ea8..c73def39e1ec4f985ec6f1f5a1df74afd5ff0302 100644 (file)
   > h2[id],
   > h3[id],
   > h4[id] {
+    pointer-events: none;
+
+    > span,
+    > a {
+      pointer-events: auto;
+    }
+
     &::before {
-      position: relative;
-      z-index: -1;
       display: block;
       height: 6rem;
       margin-top: -6rem;