Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Cuppens <martijn.cuppens@gmail.com>2018-11-20 22:53:10 +0300
committerXhmikosR <xhmikosr@gmail.com>2018-11-20 22:53:10 +0300
commitc628921465e606900123b5405db44939fac57206 (patch)
tree6b6f7fc1f056c2faa21ee74def78cb7eee936bb5
parent749c8230c7976b6f01e5c5cb0f4a43e7d7b6432a (diff)
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 29c1253248..5474d36146 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 decb6c4c3b..ecd952bd87 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
//