From: arno Date: Wed, 28 Jul 2010 22:12:33 +0000 (+0200) Subject: work around webkit #42985 for *all* text inputs X-Git-Tag: v0.2~83 X-Git-Url: https://dev.renevier.net/?p=syj.git;a=commitdiff_plain;h=011d9f73366efb4ce530b8b6da72055025419527 work around webkit #42985 for *all* text inputs --- 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;