summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-15 15:34:47 +0400
committerAndrew Dolgov <[email protected]>2013-04-15 15:34:47 +0400
commit85eea71e0e8432349ffc38ef504f34fc34d70530 (patch)
tree26292124739980752aae470387af851ce6b5ae05 /classes
parente0deff393383982d33045a2a1ec47862141b988b (diff)
use w3c gradient definition
Diffstat (limited to 'classes')
-rw-r--r--classes/feeds.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/classes/feeds.php b/classes/feeds.php
index 07cc427a9..10877bad5 100644
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -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 = "";