aboutsummaryrefslogtreecommitdiff
path: root/less/forms.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-11-30 23:35:56 -0800
committerMark Otto <[email protected]>2013-11-30 23:35:56 -0800
commit53047fa587fc8ca5cc0cad751f71fca5470d453a (patch)
treea013806bef23a01e7ff0615f82b629703c553d6a /less/forms.less
parentba4c5dae9b8e34e90e86ba28aa6bd5acf3351f0d (diff)
parent57070dcf4525fe82cab6a93300861867aa7f2d1e (diff)
downloadbootstrap-53047fa587fc8ca5cc0cad751f71fca5470d453a.tar.xz
bootstrap-53047fa587fc8ca5cc0cad751f71fca5470d453a.zip
Merge branch 'master' into pr/11536
Conflicts: dist/css/bootstrap.min.css
Diffstat (limited to 'less/forms.less')
-rw-r--r--less/forms.less11
1 files changed, 11 insertions, 0 deletions
diff --git a/less/forms.less b/less/forms.less
index a74babdb3..dc425ecc1 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).
@@ -345,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 {