use w3c gradient definition

This commit is contained in:
Andrew Dolgov 2013-04-15 15:34:47 +04:00
parent e0deff3933
commit 85eea71e0e
1 changed files with 7 additions and 1 deletions

View File

@ -541,7 +541,13 @@ class Feeds extends Handler_Protected {
$rgba = $rgba_cache[$feed_id]; $rgba = $rgba_cache[$feed_id];
$row_background = "background-image : -moz-linear-gradient(left, rgba(255, 255, 255, 0) 50%, rgba($rgba, 0.2) 95%"; // W3C definition seems to work in FF and Chrome
$row_background = "background-image : linear-gradient(to right, rgba(255, 255, 255, 0) 50%, rgba($rgba, 0.2) 100%);";
/* $row_background = "background-image : -moz-linear-gradient(left, rgba(255, 255, 255, 0) 50%, rgba($rgba, 0.2) 100%);".
"background-image : linear-gradient(to right, rgba(255, 255, 255, 0) 50%, rgba($rgba, 0.2) 100%);";
"background-image : -webkit-gradient(linear, left top, right top, color-stop( 50%, rgba(255,255,255,0)),
color-stop(100%, rgba($rgba, 0.2)));"; */
} else { } else {
$row_background = ""; $row_background = "";