From 664a5c443849880972cf62aa85306be269d09270 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 21 Feb 2012 13:43:13 -0800 Subject: update forms help-block --- less/forms.less | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'less/forms.less') diff --git a/less/forms.less b/less/forms.less index 68da6c1ce..bc89bdc3f 100644 --- a/less/forms.less +++ b/less/forms.less @@ -335,17 +335,19 @@ select:focus:required:invalid { // HELP TEXT // --------- +.help-block, +.help-inline { + color: @gray; // lighten the text some for contrast +} + .help-block { display: block; // account for any element using help-block - margin-top: 5px; - margin-bottom: 0; - color: @grayLight; + margin-bottom: @baseLineHeight / 2; } .help-inline { display: inline-block; .ie7-inline-block(); - margin-bottom: 9px; vertical-align: middle; padding-left: 5px; } @@ -528,6 +530,11 @@ legend + .control-group { .controls { margin-left: 160px; } + // 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; + } // Move over buttons in .form-actions to align with .controls .form-actions { padding-left: 160px; -- cgit v1.2.3