From 5144c77b272e12a48913faa0b7d1e54eccd2e638 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 14 Aug 2012 14:57:49 -0700 Subject: fixes #4358: make select elements 30px tall to match inputs --- less/forms.less | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'less/forms.less') diff --git a/less/forms.less b/less/forms.less index 0b3f10cb0..852f0bb6b 100644 --- a/less/forms.less +++ b/less/forms.less @@ -151,9 +151,9 @@ input[type="checkbox"] { // Set the height of select and file controls to match text inputs select, input[type="file"] { - height: 28px; /* In IE7, the height of the select element cannot be changed by height, only font-size */ + height: 30px; /* In IE7, the height of the select element cannot be changed by height, only font-size */ *margin-top: 4px; /* For IE7, add top margin to align select with labels */ - line-height: 28px; + line-height: 30px; } // Make select elements obey height by applying a border -- cgit v1.2.3 From 780636d955d5c121133de526ba72c1874f7c0337 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 14 Aug 2012 15:29:47 -0700 Subject: fixes #3674: checkbox vertical alignment in IE9 --- 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 852f0bb6b..490b6bb91 100644 --- a/less/forms.less +++ b/less/forms.less @@ -134,6 +134,7 @@ input[type="radio"], input[type="checkbox"] { margin: 4px 0; *margin-top: 0; /* IE7 */ + margin-top: 1px \9; /* IE8-9 */ line-height: normal; cursor: pointer; } -- cgit v1.2.3 From f933a41c7bb71e58a4c151389748b92c8a204a27 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 14 Aug 2012 15:34:10 -0700 Subject: remove bottom margin on radios and checkboxes --- less/forms.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'less/forms.less') diff --git a/less/forms.less b/less/forms.less index 490b6bb91..02ea7a518 100644 --- a/less/forms.less +++ b/less/forms.less @@ -132,7 +132,7 @@ input[type="color"], // Position radios and checkboxes better input[type="radio"], input[type="checkbox"] { - margin: 4px 0; + margin: 4px 0 0; *margin-top: 0; /* IE7 */ margin-top: 1px \9; /* IE8-9 */ line-height: normal; -- cgit v1.2.3