0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-28 20:52:21 +01:00

Use wrapping span instead of div (#27695)

This commit is contained in:
Martijn Cuppens 2018-11-20 20:53:10 +01:00 committed by XhmikosR
parent 749c8230c7
commit c628921465
2 changed files with 6 additions and 7 deletions

View File

@ -101,7 +101,7 @@
.tooltip('_fixTitle') .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() bsCustomFileInput.init()
}) })

View File

@ -13,16 +13,10 @@
> h4[id] { > h4[id] {
pointer-events: none; pointer-events: none;
> div,
> a {
pointer-events: auto;
}
&::before { &::before {
display: block; display: block;
height: 6rem; height: 6rem;
margin-top: -6rem; margin-top: -6rem;
visibility: hidden;
content: ""; content: "";
} }
} }
@ -67,6 +61,11 @@
} }
} }
.bd-content-title {
display: block;
pointer-events: auto;
}
// //
// Docs sections // Docs sections
// //