You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@db.apache.org by kr...@apache.org on 2012/12/20 00:08:45 UTC
svn commit: r1424210 - /db/site-cms/trunk/content/css/site.css
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;
}