aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2014-05-22 23:01:42 -0700
committerMark Otto <[email protected]>2014-05-22 23:01:42 -0700
commitd66b65ddde1b2f1a5cb14f601d30c552c79d7626 (patch)
treed7f07c493e959cebd256939bf28bcbf4af468a28 /less
parent91d51d3fba1cc2f80138bb2858ce67c28c9c8a89 (diff)
parent10e9fef85c6afde2b3804df928d9351b0f110a6c (diff)
downloadbootstrap-d66b65ddde1b2f1a5cb14f601d30c552c79d7626.tar.xz
bootstrap-d66b65ddde1b2f1a5cb14f601d30c552c79d7626.zip
Merge branch 'master' into icon_paths
Conflicts: dist/css/bootstrap.css.map docs/dist/css/bootstrap.css.map
Diffstat (limited to 'less')
-rw-r--r--less/forms.less11
1 files changed, 8 insertions, 3 deletions
diff --git a/less/forms.less b/less/forms.less
index 335c1e0e8..cb8a74fa1 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -165,9 +165,11 @@ input[type="search"] {
}
-// Special styles for iOS date input
+// Special styles for iOS temporal inputs
//
-// In Mobile Safari, date inputs require a pixel line-height that matches the
+// In Mobile Safari, setting `display: block` on temporal inputs causes the
+// text within the input to become vertically misaligned.
+// As a workaround, we set a pixel line-height that matches the
// given height of the input. Since this fucks up everything else, we have to
// appropriately reset it for Internet Explorer and the size variations.
@@ -410,8 +412,11 @@ input[type="checkbox"],
display: inline-block;
margin-top: 0;
margin-bottom: 0;
- padding-left: 0;
vertical-align: middle;
+
+ label {
+ padding-left: 0;
+ }
}
.radio input[type="radio"],
.checkbox input[type="checkbox"] {