Jeremy Newman : make rating just the column color not the entire row

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


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

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

make rating just the column color not the entire row

this simply looks better to me ;)

---

 styles.css | 23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)

diff --git a/styles.css b/styles.css
index d9dea97..20fdcaa 100644
--- a/styles.css
+++ b/styles.css
@@ -673,28 +673,27 @@ table tr.rowtitle td:last-child {
 .color4 { background-color: #999999 }
 
 /* Colors for supported apps table */
-.platinum { background-color: #cccccc; }
+.platinum { background-color: #333333; color: #ffffff; }
 .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:nth-child(odd) td.Platinum   { background-color: #333333 !important; color: #ffffff !important; }
+tr:nth-child(even) td.Platinum  { 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:nth-child(odd) td.Gold       { background-color: #FFF600 !important; }
+tr:nth-child(even) td.Gold      { 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:nth-child(odd) td.Silver     { background-color: #C0C0C0 !important; }
+tr:nth-child(even) td.Silver    { 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:nth-child(odd) td.Bronze     { background-color: #FCBA0A !important; }
+tr:nth-child(even) td.Bronze    { background-color: #FCBA0A !important; }
 
-tr.Garbage:nth-child(odd) td    { background-color: #999966 !important; }
-tr.Garbage:nth-child(even) td   { background-color: #ebebe0 !important; }
+tr:nth-child(odd) td.Garbage    { background-color: #999966 !important; }
+tr:nth-child(even) td.Garbage   { background-color: #ebebe0 !important; }
 
 /* labels */
 TD.label  { font-weight: bold }




More information about the wine-cvs mailing list