db-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r1424210 - /db/site-cms/trunk/content/css/site.css
Date Wed, 19 Dec 2012 23:08:45 GMT
Author: kristwaa
Date: Wed Dec 19 23:08:44 2012
New Revision: 1424210

URL: http://svn.apache.org/viewvc?rev=1424210&view=rev
Log:
Added CSS for alternating row color in tables.

Modified:
    db/site-cms/trunk/content/css/site.css

Modified: db/site-cms/trunk/content/css/site.css
URL: http://svn.apache.org/viewvc/db/site-cms/trunk/content/css/site.css?rev=1424210&r1=1424209&r2=1424210&view=diff
==============================================================================
--- db/site-cms/trunk/content/css/site.css (original)
+++ db/site-cms/trunk/content/css/site.css Wed Dec 19 23:08:44 2012
@@ -55,6 +55,7 @@ div.navigation li {
     padding: 4px 4px;
 }
 
+/* Manual alternating color for table rows. */
 table.altBgColor tr.b {
     background-color: #EEEEEE;
 }
@@ -63,6 +64,15 @@ table.altBgColor tr.a {
     background-color: #DDDDDD;
 }
 
+/* Automatic alternating color for table rows (set table class to 'alternate'). */
+table.alternate tr:nth-child(odd) {
+    background-color: #EEEEEE;
+}
+ 
+table.alternate tr:nth-child(even) {
+    background-color: #DDDDDD;
+}
+
 a {
   text-decoration: none;
 }



Mime
View raw message