[PATCH 1/1] css: highlight even table rows

Christian Hesse list at eworm.de
Wed Jul 6 22:56:35 CEST 2016


From: Christian Hesse <mail at eworm.de>

This is stolen from kernel.org css [0].

[0] https://git.kernel.org/cgit-korg-0.10.1.css

Signed-off-by: Christian Hesse <mail at eworm.de>
---
 cgit.css | 12 ++++++++++++
 1 file changed, 12 insertions(+)

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;
 }
-- 
2.9.0



More information about the CGit mailing list