1
0
Fork 0
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:
Mark Otto 2013-11-30 23:17:43 -08:00
parent 841da88f3f
commit 48269dcd28
3 changed files with 12 additions and 1 deletions

View file

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

File diff suppressed because one or more lines are too long

View file

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