aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2014-02-22 12:13:11 -0800
committerMark Otto <[email protected]>2014-02-22 12:13:11 -0800
commitb99be29f32f3db208b47bd33fbef1f63405ccfdc (patch)
tree06ca0f201baec4290f126177bcc94503dda727c8 /less
parent7a80b801d750387fe34d38835b48051512b95978 (diff)
downloadbootstrap-b99be29f32f3db208b47bd33fbef1f63405ccfdc.tar.xz
bootstrap-b99be29f32f3db208b47bd33fbef1f63405ccfdc.zip
Fixes #12756: Ensure horizontal dls are cleared by moving the clearfix out of the media query
Diffstat (limited to 'less')
-rw-r--r--less/type.less16
1 files changed, 10 insertions, 6 deletions
diff --git a/less/type.less b/less/type.less
index 5e2a21905..c63e5d9f2 100644
--- a/less/type.less
+++ b/less/type.less
@@ -141,7 +141,7 @@ cite { font-style: normal; }
// Lists
-// --------------------------------------------------
+// -------------------------
// Unordered and Ordered lists
ul,
@@ -195,8 +195,12 @@ dd {
// Defaults to being stacked without any of the below styles applied, until the
// 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 {
float: left;
width: (@component-offset-horizontal - 20);
@@ -206,13 +210,13 @@ dd {
}
dd {
margin-left: @component-offset-horizontal;
- &:extend(.clearfix all); // Clear the floated `dt` if an empty `dd` is present
}
}
}
-// MISC
-// ----
+
+// Misc
+// -------------------------
// Abbreviations and acronyms
abbr[title],