mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Fixes #11658: Increase min-height of .radio and .checkbox for horizontal forms to ensure alignment of content below
This commit is contained in:
parent
841da88f3f
commit
48269dcd28
3 changed files with 12 additions and 1 deletions
5
dist/css/bootstrap.css
vendored
5
dist/css/bootstrap.css
vendored
|
@ -2209,6 +2209,11 @@ textarea.input-lg {
|
|||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.form-horizontal .radio,
|
||||
.form-horizontal .checkbox {
|
||||
min-height: 27px;
|
||||
}
|
||||
|
||||
.form-horizontal .form-group {
|
||||
margin-right: -15px;
|
||||
margin-left: -15px;
|
||||
|
|
2
dist/css/bootstrap.min.css
vendored
2
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -350,6 +350,12 @@ input[type="checkbox"],
|
|||
margin-bottom: 0;
|
||||
padding-top: (@padding-base-vertical + 1); // Default padding plus a border
|
||||
}
|
||||
// Account for padding we're adding to ensure the alignment and of help text
|
||||
// and other content below items
|
||||
.radio,
|
||||
.checkbox {
|
||||
min-height: @line-height-computed + (@padding-base-vertical + 1);
|
||||
}
|
||||
|
||||
// Make form groups behave like rows
|
||||
.form-group {
|
||||
|
|
Loading…
Reference in a new issue