aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-08-05 11:47:12 -0700
committerMark Otto <[email protected]>2013-08-05 11:47:12 -0700
commita82ca0f9e1711b32f7c07e23ea1e23dd253cd21e (patch)
tree36702944d9f3fb661515c9927a33fa1ede931c6a /less
parentd0d8ab83643064751246f945d194a67c5f6f2da4 (diff)
downloadbootstrap-a82ca0f9e1711b32f7c07e23ea1e23dd253cd21e.tar.xz
bootstrap-a82ca0f9e1711b32f7c07e23ea1e23dd253cd21e.zip
Fixes #8795, a reoccurence of #1969
Diffstat (limited to 'less')
-rw-r--r--less/forms.less10
1 files changed, 10 insertions, 0 deletions
diff --git a/less/forms.less b/less/forms.less
index 027131b3b..5b80d6046 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -290,10 +290,20 @@ textarea {
.checkbox {
display: inline-block;
}
+
+ // 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).
.radio,
.checkbox {
margin-top: 0;
margin-bottom: 0;
+ padding-left: 0;
+ }
+ .radio input[type="radio"],
+ .checkbox input[type="checkbox"] {
+ float: none;
+ margin-left: 0;
}
}