aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Cuppens <[email protected]>2018-11-20 20:53:10 +0100
committerXhmikosR <[email protected]>2018-11-20 21:53:10 +0200
commitc628921465e606900123b5405db44939fac57206 (patch)
tree6b6f7fc1f056c2faa21ee74def78cb7eee936bb5
parent749c8230c7976b6f01e5c5cb0f4a43e7d7b6432a (diff)
downloadbootstrap-c628921465e606900123b5405db44939fac57206.tar.xz
bootstrap-c628921465e606900123b5405db44939fac57206.zip
Use wrapping span instead of div (#27695)
-rw-r--r--site/docs/4.1/assets/js/src/application.js2
-rw-r--r--site/docs/4.1/assets/scss/_content.scss11
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 29c125324..5474d3614 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('<div></div>')
+ $('.bd-content').children('h2, h3, h4, h5').wrapInner('<span class="bd-content-title"></span>')
bsCustomFileInput.init()
})
diff --git a/site/docs/4.1/assets/scss/_content.scss b/site/docs/4.1/assets/scss/_content.scss
index decb6c4c3..ecd952bd8 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
//