From: Mark Otto Date: Wed, 9 Aug 2017 04:45:33 +0000 (-0700) Subject: replacement fix for #23257 without old history X-Git-Tag: v4.0.0-beta~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf3bfa04ef616358c9ee04dc228b2390d60e1220;p=thirdparty%2Fbootstrap.git replacement fix for #23257 without old history --- diff --git a/assets/js/src/application.js b/assets/js/src/application.js index e1b9721a05..ea7d812b0c 100644 --- a/assets/js/src/application.js +++ b/assets/js/src/application.js @@ -96,15 +96,10 @@ .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('') }) - }(jQuery)) - -;(function () { - 'use strict' - - anchors.options = { - icon: '#' - } - anchors.add('.bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5') -}()) diff --git a/assets/scss/_content.scss b/assets/scss/_content.scss index 70b4969bac..c73def39e1 100644 --- a/assets/scss/_content.scss +++ b/assets/scss/_content.scss @@ -11,9 +11,14 @@ > 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;