Skip to content

Commit

Permalink
Fixes twbs#11658: Increase min-height of .radio and .checkbox for hor…
Browse files Browse the repository at this point in the history
…izontal forms to ensure alignment of content below
  • Loading branch information
mdo committed Dec 1, 2013
1 parent 841da88 commit 48269dc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions dist/css/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion dist/css/bootstrap.min.css

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions less/forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 48269dc

Please sign in to comment.