From 011d9f73366efb4ce530b8b6da72055025419527 Mon Sep 17 00:00:00 2001 From: arno Date: Thu, 29 Jul 2010 00:12:33 +0200 Subject: [PATCH] work around webkit #42985 for *all* text inputs --- public/css/generic.css | 12 ++++++++++++ public/css/syj.css | 1 - 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/public/css/generic.css b/public/css/generic.css index 6b166ab..dd70f84 100644 --- a/public/css/generic.css +++ b/public/css/generic.css @@ -1,6 +1,11 @@ /* This file is part of Syj, Copyright (c) 2010 Arnaud Renevier, and is published under the AGPL license. */ +body, html { + background-color: white; + color: black; +} + /* * generic rules */ @@ -62,6 +67,13 @@ input { -moz-transition: background-color 0.3s ease-out; } +@media screen and (-webkit-min-device-pixel-ratio:0) { + /* work around webkit bug #42985 */ + input { + background-color: #FEFEFE; + } +} + /* * footer */ diff --git a/public/css/syj.css b/public/css/syj.css index c64bfdb..a0db8fd 100644 --- a/public/css/syj.css +++ b/public/css/syj.css @@ -58,7 +58,6 @@ body, html { } #geom_title { margin-top: 0.7em; - background-color: #FDFDFD; /* work around webkit bug #42985 */ } #geom_submit { margin-top: 0.7em; -- 2.39.2