mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-18 03:11:19 +02:00
Fixes #11658: Increase min-height of .radio and .checkbox for horizontal forms to ensure alignment of content below
This commit is contained in:
5
dist/css/bootstrap.css
vendored
5
dist/css/bootstrap.css
vendored
@@ -2209,6 +2209,11 @@ textarea.input-lg {
|
|||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.form-horizontal .radio,
|
||||||
|
.form-horizontal .checkbox {
|
||||||
|
min-height: 27px;
|
||||||
|
}
|
||||||
|
|
||||||
.form-horizontal .form-group {
|
.form-horizontal .form-group {
|
||||||
margin-right: -15px;
|
margin-right: -15px;
|
||||||
margin-left: -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;
|
margin-bottom: 0;
|
||||||
padding-top: (@padding-base-vertical + 1); // Default padding plus a border
|
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
|
// Make form groups behave like rows
|
||||||
.form-group {
|
.form-group {
|
||||||
|
Reference in New Issue
Block a user