]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
webkit legend margin fix for non-horizontal forms 1879/head
authorJeremy Martin <jmar777@gmail.com>
Thu, 9 Feb 2012 20:27:42 +0000 (15:27 -0500)
committerJeremy Martin <jmar777@gmail.com>
Thu, 9 Feb 2012 20:27:42 +0000 (15:27 -0500)
less/forms.less

index 5bce4cebd4d998d68269992daf6dbea876ea41b1..5fbb53c9ae33a97f65e2602ff4c47f2dee555db1 100644 (file)
@@ -459,15 +459,16 @@ select:focus:required:invalid {
   margin-bottom: @baseLineHeight / 2;
 }
 
+// Legend collapses margin, so next element is responsible for spacing
+legend + .control-group {
+  margin-top: @baseLineHeight;
+  -webkit-margin-top-collapse: separate;
+}
+
 // Horizontal-specific styles
 // --------------------------
 
 .form-horizontal {
-  // Legend collapses margin, so we're relegated to padding
-  legend + .control-group {
-    margin-top: @baseLineHeight;
-    -webkit-margin-top-collapse: separate;
-  }
   // Increase spacing between groups
   .control-group {
     margin-bottom: @baseLineHeight;