[Pkg-mozext-commits] [wot] 182/226: Better user votes' presentation on RW

David Prévot taffit at moszumanska.debian.org
Fri May 1 00:35:49 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository wot.

commit 376fdfbc344b01900939061027b679863ba2e095
Author: Sergey Andryukhin <sorgoz at yandex.com>
Date:   Fri Oct 25 14:29:30 2013 +0300

    Better user votes' presentation on RW
---
 content/rw/ratingwindow.js |  3 +++
 skin/ratingwindow.css      | 31 +++++++++++++++++++++++++------
 2 files changed, 28 insertions(+), 6 deletions(-)

diff --git a/content/rw/ratingwindow.js b/content/rw/ratingwindow.js
index 5d7059f..4a96d82 100644
--- a/content/rw/ratingwindow.js
+++ b/content/rw/ratingwindow.js
@@ -781,6 +781,9 @@ $.extend(wot, { ratingwindow: {
 
 	    $_cat_wrapper.addClass(vote == 1 ? "hand-up" : "hand-down");
         $_hand.addClass(vote == 1 ? "hand-up" : "hand-down");
+	    if (vote == 1) {
+		    $_hand.addClass(wot.get_category_css(category.id));
+	    }
         $_hand.attr("title", wot.i18n("ratingwindow", vote == 1 ? "vote_yes" : "vote_no"));
         $_cat_text.attr("title", cat_name);
         $_cat_text.text(cat_name);
diff --git a/skin/ratingwindow.css b/skin/ratingwindow.css
index 79cc070..d097994 100644
--- a/skin/ratingwindow.css
+++ b/skin/ratingwindow.css
@@ -399,7 +399,7 @@ body {
     float: left;
     font-size: 11px;
     color: #515151;
-    padding-left: 5px;
+    padding-left: 7px;
     line-height: 15px;
     width: 52px;
     white-space: nowrap;
@@ -410,7 +410,7 @@ body {
 
 /* For Up votes no need to show thumbs up */
 #voted-categories-content .votedcategory.hand-up .category-text {
-    width: 72px;
+    width: 58px;
 }
 
 #voted-categories-content .more-categories {
@@ -429,15 +429,35 @@ body {
 
 .category-hand.hand-up {
     background-color: #FCFCFC;
-    display: none;
+    width: 0;
+    /*display: none;*/
+}
+
+.category-hand.hand-up.c-negative {
+    background-color: #f77448;
+}
+
+.category-hand.hand-up.c-questionable {
+    background-color: #f6cd0e;
+}
+
+.category-hand.hand-up.c-positive {
+    background-color: #6dc14a;
+}
+
+.category-hand.hand-up.c-neutral {
+    background-color: #FCFCFC;
 }
 
 .category-hand.hand-down {
-    /*background-color: #A3A3A3;*/
     background-color: #7DA6DB;
 }
 
-.hand-up .hand-icon,
+.hand-up .hand-icon {
+    width: 12px;
+    height: 14px;
+}
+
 .hand-down .hand-icon {
     background-image: url("chrome://wot/skin/b/thumbs.png");
     background-repeat: no-repeat;
@@ -445,7 +465,6 @@ body {
     height: 14px;
 }
 
-
 .hand-down .hand-icon {
     background-position: -12px 0;
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/wot.git



More information about the Pkg-mozext-commits mailing list