From: Jeremy Martin Date: Thu, 9 Feb 2012 20:27:42 +0000 (-0500) Subject: webkit legend margin fix for non-horizontal forms X-Git-Tag: v2.0.1~1^2~17^2~17^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1879%2Fhead;p=thirdparty%2Fbootstrap.git webkit legend margin fix for non-horizontal forms --- diff --git a/less/forms.less b/less/forms.less index 5bce4cebd4..5fbb53c9ae 100644 --- a/less/forms.less +++ b/less/forms.less @@ -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;