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
This commit is contained in:
Mark Otto
2013-08-05 12:17:09 -07:00
parent bac9e80a46
commit e23906faca
5 changed files with 54 additions and 8 deletions

View File

@@ -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 {