Jeremy Newman : fix rating row colors

Jeremy Newman jnewman at winehq.org
Mon Nov 21 08:38:09 CST 2016


Module: appdb
Branch: master
Commit: d3a06f4fc89cf28fbb899b6c4ffc6af7abfd5f87
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=d3a06f4fc89cf28fbb899b6c4ffc6af7abfd5f87

Author: Jeremy Newman <jnewman at codeweavers.com>
Date:   Fri Nov 18 10:23:09 2016 -0600

fix rating row colors

---

 styles.css | 35 ++++++++++++++++++++++++++---------
 1 file changed, 26 insertions(+), 9 deletions(-)

diff --git a/styles.css b/styles.css
index fc96fb9..d9dea97 100644
--- a/styles.css
+++ b/styles.css
@@ -673,19 +673,36 @@ table tr.rowtitle td:last-child {
 .color4 { background-color: #999999 }
 
 /* Colors for supported apps table */
-.platinum {background-color: #ECECEC; }
-.gold { background-color: #FFF600 }
-.silver { background-color: silver; }
-.bronze { background-color: #FCBA0A; }
-.garbage { background-color: #999966; }
+.platinum { background-color: #cccccc; }
+.gold     { background-color: #FFF600; }
+.silver   { background-color: #C0C0C0; }
+.bronze   { background-color: #FCBA0A; }
+.garbage  { background-color: #999966; }
+
+/* table row colors for ratings (alternating colors for rows) */
+tr.Platinum a, tr.Platinum a:visited { color: #ffcccc; }
+tr.Platinum:nth-child(odd) td   { background-color: #333333 !important; color: #ffffff !important; }
+tr.Platinum:nth-child(even) td  { background-color: #666666 !important; color: #ffffff !important; }
+
+tr.Gold:nth-child(odd) td       { background-color: #FFF600 !important; }
+tr.Gold:nth-child(even) td      { background-color: #fffcb3 !important; }
+
+tr.Silver:nth-child(odd) td     { background-color: #C0C0C0 !important; }
+tr.Silver:nth-child(even) td    { background-color: #e6e6e6 !important; }
+
+tr.Bronze:nth-child(odd) td     { background-color: #FCBA0A !important; }
+tr.Bronze:nth-child(even) td    { background-color: #FCBA0A !important; }
+
+tr.Garbage:nth-child(odd) td    { background-color: #999966 !important; }
+tr.Garbage:nth-child(even) td   { background-color: #ebebe0 !important; }
 
 /* labels */
-TD.label { font-weight: bold }
+TD.label  { font-weight: bold }
 
 /* for inwine/intwine */
-TD.yes { color: #00B100; font-style: italic; text-align: center }
-TD.no  { color: #B10000; font-style: italic; text-align: center }
-TD.stub { color: #0000B1; font-style: italic; text-align: center }
+TD.yes    { color: #00B100; font-style: italic; text-align: center }
+TD.no     { color: #B10000; font-style: italic; text-align: center }
+TD.stub   { color: #0000B1; font-style: italic; text-align: center }
 
 /* width of the application column in the top 'X' lists on the main page */
 TD.app_name { padding:10px; width: 150px }




More information about the wine-cvs mailing list