]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
update explanatory comment about iOS date/time inputs bug 13651/head
authorChris Rebert <code@rebertia.com>
Wed, 21 May 2014 23:44:09 +0000 (16:44 -0700)
committerChris Rebert <code@rebertia.com>
Wed, 21 May 2014 23:50:23 +0000 (16:50 -0700)
Per:
* http://jsbin.com/purer/2/edit
* https://github.com/cvrebert/bs-css-hacks/blob/6e8aa78384a005b007fc45327c9516dcf6ec0f30/README.md#ios-temporal-input-line-height
Thanks @mdo <3

[skip sauce] [skip validator]

less/forms.less

index 335c1e0e81e174e07859439cb7282899f53c58bb..f0e9204f490ffc8dfaa4c2a74f9716ae45c73df4 100644 (file)
@@ -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.