mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-18 15:54:26 +01:00
Fixes #12756: Ensure horizontal dls are cleared by moving the clearfix out of the media query
This commit is contained in:
parent
7a80b801d7
commit
b99be29f32
dist/css
docs
less
3
dist/css/bootstrap.css
vendored
3
dist/css/bootstrap.css
vendored
@ -5590,6 +5590,8 @@ button.close {
|
|||||||
}
|
}
|
||||||
.clearfix:before,
|
.clearfix:before,
|
||||||
.clearfix:after,
|
.clearfix:after,
|
||||||
|
.dl-horizontal dd:before,
|
||||||
|
.dl-horizontal dd:after,
|
||||||
.container:before,
|
.container:before,
|
||||||
.container:after,
|
.container:after,
|
||||||
.container-fluid:before,
|
.container-fluid:before,
|
||||||
@ -5620,6 +5622,7 @@ button.close {
|
|||||||
content: " ";
|
content: " ";
|
||||||
}
|
}
|
||||||
.clearfix:after,
|
.clearfix:after,
|
||||||
|
.dl-horizontal dd:after,
|
||||||
.container:after,
|
.container:after,
|
||||||
.container-fluid:after,
|
.container-fluid:after,
|
||||||
.row:after,
|
.row:after,
|
||||||
|
2
dist/css/bootstrap.css.map
vendored
2
dist/css/bootstrap.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap.min.css
vendored
2
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
2
docs/assets/js/customize.min.js
vendored
2
docs/assets/js/customize.min.js
vendored
File diff suppressed because one or more lines are too long
2
docs/dist/css/bootstrap.css.map
vendored
2
docs/dist/css/bootstrap.css.map
vendored
File diff suppressed because one or more lines are too long
2
docs/dist/css/bootstrap.min.css
vendored
2
docs/dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
@ -141,7 +141,7 @@ cite { font-style: normal; }
|
|||||||
|
|
||||||
|
|
||||||
// Lists
|
// Lists
|
||||||
// --------------------------------------------------
|
// -------------------------
|
||||||
|
|
||||||
// Unordered and Ordered lists
|
// Unordered and Ordered lists
|
||||||
ul,
|
ul,
|
||||||
@ -195,8 +195,12 @@ dd {
|
|||||||
// Defaults to being stacked without any of the below styles applied, until the
|
// Defaults to being stacked without any of the below styles applied, until the
|
||||||
// grid breakpoint is reached (default of ~768px).
|
// grid breakpoint is reached (default of ~768px).
|
||||||
|
|
||||||
@media (min-width: @grid-float-breakpoint) {
|
.dl-horizontal {
|
||||||
.dl-horizontal {
|
dd {
|
||||||
|
&:extend(.clearfix all); // Clear the floated `dt` if an empty `dd` is present
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: @grid-float-breakpoint) {
|
||||||
dt {
|
dt {
|
||||||
float: left;
|
float: left;
|
||||||
width: (@component-offset-horizontal - 20);
|
width: (@component-offset-horizontal - 20);
|
||||||
@ -206,13 +210,13 @@ dd {
|
|||||||
}
|
}
|
||||||
dd {
|
dd {
|
||||||
margin-left: @component-offset-horizontal;
|
margin-left: @component-offset-horizontal;
|
||||||
&:extend(.clearfix all); // Clear the floated `dt` if an empty `dd` is present
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// MISC
|
|
||||||
// ----
|
// Misc
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
// Abbreviations and acronyms
|
// Abbreviations and acronyms
|
||||||
abbr[title],
|
abbr[title],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user