From 920d9958431b3d0a08401bfbc097416bc83211bd Mon Sep 17 00:00:00 2001 From: Jeremy Martin Date: Thu, 9 Feb 2012 15:27:42 -0500 Subject: [PATCH] webkit legend margin fix for non-horizontal forms --- less/forms.less | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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;