From e23906facaa63fcc97bddbd0895c301699c9e942 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 5 Aug 2013 12:17:09 -0700 Subject: Fixes #8150: add `.static-form-control` for vertical alignment of static form text - Also fixes the vertical alignment of labels in horizontal layouts on account of the recent button and input padding changes - Also changes the vertical alignment of the checkboxes and radios in horizontal forms --- less/forms.less | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'less/forms.less') diff --git a/less/forms.less b/less/forms.less index 5b80d6046..d0211eb14 100644 --- a/less/forms.less +++ b/less/forms.less @@ -266,6 +266,17 @@ textarea { } +// Static form control text +// +// Apply class to a `p` element to make any string of text align with labels in +// a horizontal form layout. + +.form-control-static { + margin-bottom: 0; // Remove default margin from `p` + padding-top: @padding-base-vertical; +} + + // Help text // // Apply to any element you wish to create light text for placement immediately @@ -316,7 +327,7 @@ textarea { .form-horizontal .control-label, .form-horizontal .radio-inline, .form-horizontal .checkbox-inline { - padding-top: 9px; + padding-top: @padding-base-vertical; } .form-horizontal { -- cgit v1.2.3