]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fixes #4506: clearfix added to .dl-horizontal to account for empty dd elements
authorMark Otto <markotto@twitter.com>
Mon, 27 Aug 2012 06:06:56 +0000 (23:06 -0700)
committerMark Otto <markotto@twitter.com>
Mon, 27 Aug 2012 06:06:56 +0000 (23:06 -0700)
docs/assets/css/bootstrap.css
less/type.less

index c01aa8c36a26f720f43c096d55bfe45bb02ee162..c935c084cff853074da7d2677084fa7bc21f2e8d 100644 (file)
@@ -725,6 +725,21 @@ dd {
   margin-left: 10px;
 }
 
+.dl-horizontal {
+  *zoom: 1;
+}
+
+.dl-horizontal:before,
+.dl-horizontal:after {
+  display: table;
+  line-height: 0;
+  content: "";
+}
+
+.dl-horizontal:after {
+  clear: both;
+}
+
 .dl-horizontal dt {
   float: left;
   width: 120px;
index 58723f788c98fbddd6fd6bab7fd7185726fb4079..5557b7e4a2b8462c2a3eb044d124a708cb78db52 100644 (file)
@@ -116,6 +116,7 @@ dd {
 }
 // Horizontal layout (like forms)
 .dl-horizontal {
+  .clearfix(); // Ensure dl clears floats if empty dd elements present
   dt {
     float: left;
     width: 120px;