From 609142eee254ef0981a72a1921a053d2a7f16bc6 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 27 Aug 2012 22:42:12 -0700 Subject: fixes #4729: only use margin-top on .help-block when it follows an input, select, textarea --- less/forms.less | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'less/forms.less') diff --git a/less/forms.less b/less/forms.less index d2445b987..2864bff0d 100644 --- a/less/forms.less +++ b/less/forms.less @@ -633,9 +633,16 @@ legend + .control-group { } // Remove bottom margin on block level help text since that's accounted for on .control-group .help-block { - margin-top: @baseLineHeight / 2; margin-bottom: 0; } + // And apply it only to .help-block instances that follow a form control + input, + select, + textarea { + + .help-block { + margin-top: @baseLineHeight / 2; + } + } // Move over buttons in .form-actions to align with .controls .form-actions { padding-left: 160px; -- cgit v1.2.3