Fixes #11402: Updated fix for select.form-control width in inline-forms

This commit is contained in:
Mark Otto 2013-12-15 14:52:49 -08:00
parent 24eee65c25
commit b04a1de9b0
3 changed files with 12 additions and 1 deletions

View File

@ -1871,6 +1871,9 @@ textarea.input-lg {
.form-inline select.form-control {
width: auto;
}
.form-inline > select.form-control {
width: auto;
}
.form-inline .radio,
.form-inline .checkbox {
display: inline-block;
@ -3786,6 +3789,9 @@ textarea.input-group-sm > .input-group-btn > .btn {
.navbar-form select.form-control {
width: auto;
}
.navbar-form > select.form-control {
width: auto;
}
.navbar-form .radio,
.navbar-form .checkbox {
display: inline-block;

File diff suppressed because one or more lines are too long

View File

@ -311,6 +311,11 @@ input[type="checkbox"],
width: auto;
}
// Override `width: 100%;` when not within a `.form-group`
> select.form-control {
width: auto;
}
// Remove default margin on radios/checkboxes that were used for stacking, and
// then undo the floating of radios and checkboxes to match (which also avoids
// a bug in WebKit: https://github.com/twbs/bootstrap/issues/1969).