aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-11-30 15:57:25 -0800
committerMark Otto <[email protected]>2013-11-30 15:57:25 -0800
commit7aa6b4190be5316756fa179bb192258ce3b47548 (patch)
tree05f32450e984201b3f6242125c264956ac984a3b /less
parentd2f8b5327b36b9a9839d595070d841146aa4c6ab (diff)
downloadbootstrap-7aa6b4190be5316756fa179bb192258ce3b47548.tar.xz
bootstrap-7aa6b4190be5316756fa179bb192258ce3b47548.zip
Fixes #11402: Set width: auto; to select.form-control within .form-inline
Diffstat (limited to 'less')
-rw-r--r--less/forms.less5
1 files changed, 5 insertions, 0 deletions
diff --git a/less/forms.less b/less/forms.less
index a74babdb3..af1f5ac9e 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -309,6 +309,11 @@ input[type="checkbox"],
display: inline-block;
}
+ // 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).