From 52110fa2c20d101e162179d7caf3a22992234d56 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 13 May 2015 22:16:51 -0700 Subject: [PATCH 1/2] scope temporal changes to .form-control class, add week input to boot --- less/forms.less | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/less/forms.less b/less/forms.less index cea6f669bea6..1d6c44812777 100644 --- a/less/forms.less +++ b/less/forms.less @@ -178,9 +178,12 @@ input[type="search"] { @media screen and (-webkit-min-device-pixel-ratio: 0) { input[type="date"], input[type="time"], + input[type="week"], input[type="datetime-local"], input[type="month"] { - line-height: @input-height-base; + &.form-control { + line-height: @input-height-base; + } &.input-sm, .input-group-sm & { From e24007c46dba472a5664056857469cf0b050cd11 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 14 May 2015 09:31:23 -0700 Subject: [PATCH 2/2] add comment, remove week type --- less/forms.less | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/less/forms.less b/less/forms.less index 1d6c44812777..b064ede46529 100644 --- a/less/forms.less +++ b/less/forms.less @@ -174,11 +174,12 @@ input[type="search"] { // 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, but only // for Safari. See https://bugs.webkit.org/show_bug.cgi?id=139848 +// +// Note that as of 8.3, iOS doesn't support `datetime` or `week`. @media screen and (-webkit-min-device-pixel-ratio: 0) { input[type="date"], input[type="time"], - input[type="week"], input[type="datetime-local"], input[type="month"] { &.form-control {