diff options
| author | Mark Otto <[email protected]> | 2013-08-05 12:17:09 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-08-05 12:17:09 -0700 |
| commit | e23906facaa63fcc97bddbd0895c301699c9e942 (patch) | |
| tree | 130ff1656ff0afd55dc0aa2831b433340083e819 /less | |
| parent | bac9e80a460c314209d1ee676a0eb44b9574db89 (diff) | |
| download | bootstrap-e23906facaa63fcc97bddbd0895c301699c9e942.tar.xz bootstrap-e23906facaa63fcc97bddbd0895c301699c9e942.zip | |
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
Diffstat (limited to 'less')
| -rw-r--r-- | less/forms.less | 13 |
1 files changed, 12 insertions, 1 deletions
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 { |
