From 1be0b57d34c4712ba747ccb0e917acef2117dc13 Mon Sep 17 00:00:00 2001 From: Rob Fletcher Date: Mon, 17 Mar 2014 14:36:58 +0000 Subject: Fix vertical alignment of temporal inputs on iOS Fixes #13098 Closes #13099 --- 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 8578e8ce6..f8de2e403 100644 --- a/less/forms.less +++ b/less/forms.less @@ -170,7 +170,10 @@ input[type="search"] { // given height of the input. Since this fucks up everything else, we have to // appropriately reset it for Internet Explorer and the size variations. -input[type="date"] { +input[type="date"], +input[type="time"], +input[type="datetime-local"], +input[type="month"] { line-height: @input-height-base; // IE8+ misaligns the text within date inputs, so we reset line-height: @line-height-base ~"\0"; -- cgit v1.2.3 From 6f6bce5944bd0e6ab36ab6b39339f381d8a80b2a Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 24 Mar 2014 19:26:41 -0700 Subject: Fixes #13141: Add a max-width: 100%; to label elements so IE8 wraps text --- less/forms.less | 1 + 1 file changed, 1 insertion(+) (limited to 'less/forms.less') diff --git a/less/forms.less b/less/forms.less index f8de2e403..d51065cf6 100644 --- a/less/forms.less +++ b/less/forms.less @@ -31,6 +31,7 @@ legend { label { display: inline-block; + max-width: 100%; // Force IE8 to wrap long content (see #13141) margin-bottom: 5px; font-weight: bold; } -- cgit v1.2.3