summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-15 18:09:48 +0400
committerAndrew Dolgov <[email protected]>2013-04-15 18:09:48 +0400
commit86f7d2a9f2b6468a34b20d7a26c7cfc3afbe00ee (patch)
tree9ae7ff20a14b81ae1252fbc3f8c900956c2162bf /classes
parent12a6bd28ace16ff20f1f920831cffe1041b36d5c (diff)
make gradient less visible on read headlines
Diffstat (limited to 'classes')
-rw-r--r--classes/feeds.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/classes/feeds.php b/classes/feeds.php
index 6d15c99e8..6ee5bad0b 100644
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -413,8 +413,13 @@ class Feeds extends Handler_Protected {
$rgba = $rgba_cache[$feed_id];
+ if (sql_bool_to_bool($line["unread"]))
+ $endalpha = '0.3';
+ else
+ $endalpha = '0.1';
+
// W3C definition seems to work in FF and Chrome
- $row_background = "background-image : linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba($rgba, 0.3) 100%);";
+ $row_background = "background-image : linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba($rgba, $endalpha) 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%);";