From c628921465e606900123b5405db44939fac57206 Mon Sep 17 00:00:00 2001 From: Martijn Cuppens Date: Tue, 20 Nov 2018 20:53:10 +0100 Subject: [PATCH] Use wrapping span instead of div (#27695) --- site/docs/4.1/assets/js/src/application.js | 2 +- site/docs/4.1/assets/scss/_content.scss | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/site/docs/4.1/assets/js/src/application.js b/site/docs/4.1/assets/js/src/application.js index 29c12532480d..5474d361466f 100644 --- a/site/docs/4.1/assets/js/src/application.js +++ b/site/docs/4.1/assets/js/src/application.js @@ -101,7 +101,7 @@ .tooltip('_fixTitle') }) - $('.bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5').wrapInner('
') + $('.bd-content').children('h2, h3, h4, h5').wrapInner('') bsCustomFileInput.init() }) diff --git a/site/docs/4.1/assets/scss/_content.scss b/site/docs/4.1/assets/scss/_content.scss index decb6c4c3bb7..ecd952bd878b 100644 --- a/site/docs/4.1/assets/scss/_content.scss +++ b/site/docs/4.1/assets/scss/_content.scss @@ -13,16 +13,10 @@ > h4[id] { pointer-events: none; - > div, - > a { - pointer-events: auto; - } - &::before { display: block; height: 6rem; margin-top: -6rem; - visibility: hidden; content: ""; } } @@ -67,6 +61,11 @@ } } +.bd-content-title { + display: block; + pointer-events: auto; +} + // // Docs sections //