summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2016-07-06 22:42:36 +0200
committerChristian Hesse <mail@eworm.de>2016-10-12 14:18:39 +0200
commit6565f1c8a3c15afbe451cbf7e665fd073c5b1675 (patch)
tree4aad716c8b07efc107aaade050edfc03cfdff5c6
parentc330a2e5f86e1f77d3b724877935e11014cefa21 (diff)
downloadcgit-6565f1c8a3c15afbe451cbf7e665fd073c5b1675.tar.gz
css: highlight even table rows
This is stolen from kernel.org css [0]. [0] https://git.kernel.org/cgit-korg-0.10.1.css
-rw-r--r--cgit.css12
1 files changed, 12 insertions, 0 deletions
diff --git a/cgit.css b/cgit.css
index a4331f8..e039970 100644
--- a/cgit.css
+++ b/cgit.css
@@ -134,10 +134,22 @@ div#cgit table.list tr.logheader {
background: #eee;
}
+div#cgit table.list tr:nth-child(even) {
+ background: #f7f7f7;
+}
+
+div#cgit table.list tr:nth-child(odd) {
+ background: white;
+}
+
div#cgit table.list tr:hover {
background: #eee;
}
+div#cgit table.list tr.nohover {
+ background: white;
+}
+
div#cgit table.list tr.nohover:hover {
background: white;
}