From cc7e4f4d3d32e6df3520c25e563498295c4e03fe Mon Sep 17 00:00:00 2001 From: TJ VanToll Date: Sat, 17 Mar 2012 09:54:25 -0400 Subject: [PATCH] Normalizing the display of disabled fields across Windows browsers by adding a background-color to disabled text inputs and textareas in IE7 & 8. IE6 is not included because it does not support the attribute selector, and IE9 is not included because index.html doesn't currently apply a class to make targeting IE9 possible. For more details see http://tjvantoll.com/2012/03/17/Styling-Disabled-Form-Fields/. --- css/style.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/css/style.css b/css/style.css index 7be1de84e7..f8b6bd075b 100644 --- a/css/style.css +++ b/css/style.css @@ -173,6 +173,11 @@ button, input[type="button"], input[type="reset"], input[type="submit"] { cursor button[disabled], input[disabled] { cursor: default; } +/* + * Normalize the display of disabled fields across Windows browsers. + */ +.lt-ie9 input[type="text"][disabled], .lt-ie9 textarea[disabled] { background-color: #EBEBE4; } + /* * Consistent box sizing and appearance */