]> git.wh0rd.org Git - tt-rss.git/commitdiff
use w3c gradient definition
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 15 Apr 2013 11:34:47 +0000 (15:34 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 15 Apr 2013 11:34:47 +0000 (15:34 +0400)
classes/feeds.php

index 07cc427a997eafe7e86ce3114cc5a134592f351b..10877bad54d670d4aedcf1ef6285b88f674a0975 100644 (file)
@@ -541,7 +541,13 @@ class Feeds extends Handler_Protected {
 
                                                $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 {
                                                $row_background = "";