From 28a6ad32f1ca07a528dde34b7ec8132ec75b5db3 Mon Sep 17 00:00:00 2001 From: Raphael Goetter Date: Sat, 3 May 2014 14:23:39 +0200 Subject: [PATCH] separate IE support on forms --- less/04-forms.less | 5 ----- less/11-ie.less | 9 +++++++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/less/04-forms.less b/less/04-forms.less index 92b1f3b..0728b0c 100644 --- a/less/04-forms.less +++ b/less/04-forms.less @@ -37,7 +37,6 @@ legend { white-space: normal; } textarea { - overflow: auto; /* Removes default vertical scrollbar on empty textarea in IE6/7/8/9 */ min-height: 5em; vertical-align: top; font-family: inherit; @@ -51,10 +50,6 @@ input[type="submit"] { cursor: pointer; -webkit-appearance: button; /* clickable input types in iOS */ } -input[type="checkbox"], -input[type="radio"] { - padding: 0; /* Corrects excess space around these inputs in IE8/9 */ -} input[type="search"] { -webkit-appearance: textfield; } diff --git a/less/11-ie.less b/less/11-ie.less index 209cfd7..d2d915b 100644 --- a/less/11-ie.less +++ b/less/11-ie.less @@ -75,6 +75,15 @@ *display: inline; *zoom: 1; } + + /* forms */ + input[type="checkbox"], + input[type="radio"] { + padding: 0; /* Corrects excess space around these inputs in IE8/9 */ + } + textarea { + overflow: auto; /* Removes default vertical scrollbar on empty textarea in IE6/7/8/9 */ + } /* Active box-sizing for IE6/IE7 */ /* @source https://github.com/Schepp/box-sizing-polyfill */