[5129] trunk/htdocs/system/admin/css/admin.css: Workaround Webkit' s terrible rendering of file inputs.

1 view
Skip to first unread message

s...@habariproject.org

unread,
May 25, 2011, 10:00:26 AM5/25/11
to habar...@googlegroups.com
Revision
5129
Author
lildude
Date
2011-05-25 14:00:19 +0000 (Wed, 25 May 2011)

Log Message

Workaround Webkit's terrible rendering of file inputs.  Fixes #1458

Modified Paths

Diff

Modified: trunk/htdocs/system/admin/css/admin.css (5128 => 5129)


--- trunk/htdocs/system/admin/css/admin.css	2011-05-22 00:00:26 UTC (rev 5128)
+++ trunk/htdocs/system/admin/css/admin.css	2011-05-25 14:00:19 UTC (rev 5129)
@@ -1031,6 +1031,15 @@
 	display:none;
 }
 
+/* Workaround Webkit's terrible rendering of file inputs on dark backgrounds */
+@media screen and (-webkit-min-device-pixel-ratio:0) {
+	  .media_panel input[type="file"] {
+	  background-color: #F0F0F0;
+	  padding: 2px;
+	  -webkit-border-radius: 3px;
+	}
+}
+
 /*-- MEDIA ACTION DROPBUTTONS */
 
 .mediaactions.dropbutton {
Reply all
Reply to author
Forward
0 new messages