aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.css
diff options
context:
space:
mode:
authorChristian Hesse2016-07-06 22:42:36 +0200
committerJason A. Donenfeld2016-11-23 05:20:42 +0100
commit81509a228c7428abeb56ecacb45ccd8dc8fc6209 (patch)
treeb60adc2400493c4de91c6550ecce6f786ec7e5c3 /cgit.css
parent44f8c11c8d6edadedb9b83baf6f6a786c0bd8c30 (diff)
downloadcgit-81509a228c7428abeb56ecacb45ccd8dc8fc6209.tar.gz
cgit-81509a228c7428abeb56ecacb45ccd8dc8fc6209.tar.bz2
cgit-81509a228c7428abeb56ecacb45ccd8dc8fc6209.zip
css: highlight even table rows and skip empty rows
This is stolen from kernel.org css [0]. [0] https://git.kernel.org/cgit-korg-0.10.1.css
Diffstat (limited to 'cgit.css')
-rw-r--r--cgit.css20
1 files changed, 20 insertions, 0 deletions
diff --git a/cgit.css b/cgit.css
index a4331f8..1dc2c11 100644
--- a/cgit.css
+++ b/cgit.css
@@ -134,14 +134,34 @@ div#cgit table.list tr.logheader {
134 background: #eee; 134 background: #eee;
135} 135}
136 136
137div#cgit table.list tr:nth-child(even) {
138 background: #f7f7f7;
139}
140
141div#cgit table.list tr:nth-child(odd) {
142 background: white;
143}
144
137div#cgit table.list tr:hover { 145div#cgit table.list tr:hover {
138 background: #eee; 146 background: #eee;
139} 147}
140 148
149div#cgit table.list tr.nohover {
150 background: white;
151}
152
141div#cgit table.list tr.nohover:hover { 153div#cgit table.list tr.nohover:hover {
142 background: white; 154 background: white;
143} 155}
144 156
157div#cgit table.list tr.nohover-highlight:hover:nth-child(even) {
158 background: #f7f7f7;
159}
160
161div#cgit table.list tr.nohover-highlight:hover:nth-child(odd) {
162 background: white;
163}
164
145div#cgit table.list th { 165div#cgit table.list th {
146 font-weight: bold; 166 font-weight: bold;
147 /* color: #888; 167 /* color: #888;