From 3261ab704e0608740919eeedcac866b0b470887c Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Wed, 21 May 2014 16:44:09 -0700 Subject: update explanatory comment about iOS date/time inputs bug 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'less/forms.less') diff --git a/less/forms.less b/less/forms.less index 335c1e0e8..f0e9204f4 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. -- cgit v1.2.3 From fab9ab8fe9b51ebc88872482556df3f793e5ac4a Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 22 May 2014 18:42:21 -0700 Subject: Reset the padding on radio/checkbox labels in form-inline --- less/forms.less | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'less/forms.less') diff --git a/less/forms.less b/less/forms.less index 335c1e0e8..e3fe6c3d2 100644 --- a/less/forms.less +++ b/less/forms.less @@ -410,8 +410,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"] { -- cgit v1.2.3