aboutsummaryrefslogtreecommitdiff
path: root/less/forms.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2014-05-22 21:48:56 -0700
committerMark Otto <[email protected]>2014-05-22 21:48:56 -0700
commit10e9fef85c6afde2b3804df928d9351b0f110a6c (patch)
tree72448b9780bb8181fac608b70e6dc72c780c7432 /less/forms.less
parent338cff13593a5e10abcab37da9f197fa4eafa3de (diff)
parent3261ab704e0608740919eeedcac866b0b470887c (diff)
downloadbootstrap-10e9fef85c6afde2b3804df928d9351b0f110a6c.tar.xz
bootstrap-10e9fef85c6afde2b3804df928d9351b0f110a6c.zip
Merge pull request #13651 from twbs/ios-temporal
update explanatory comment about iOS date/time inputs bug
Diffstat (limited to 'less/forms.less')
-rw-r--r--less/forms.less6
1 files changed, 4 insertions, 2 deletions
diff --git a/less/forms.less b/less/forms.less
index e3fe6c3d2..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.