aboutsummaryrefslogtreecommitdiff
path: root/less/forms.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-12-15 14:52:49 -0800
committerMark Otto <[email protected]>2013-12-15 14:52:49 -0800
commitb04a1de9b097de7f4df95b30df040efe86563e75 (patch)
tree254ebd9ab61afa7a37f42797c524b684707f3290 /less/forms.less
parent24eee65c2559950e321161965ff5afd4a4b51001 (diff)
downloadbootstrap-b04a1de9b097de7f4df95b30df040efe86563e75.tar.xz
bootstrap-b04a1de9b097de7f4df95b30df040efe86563e75.zip
Fixes #11402: Updated fix for select.form-control width in inline-forms
Diffstat (limited to 'less/forms.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 f7fc5d66c..d2d089c30 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -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).