diff options
author | Christian Hesse <mail@eworm.de> | 2016-07-07 13:38:35 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2016-10-12 14:18:39 +0200 |
commit | 697920f5bf076031174b06de3100de4ea6499f9e (patch) | |
tree | 644d4a216597446e74fc55127e6992930157564e | |
parent | 16e83b9df0a45687e0cae508f332aaffe276079f (diff) | |
download | cgit-697920f5bf076031174b06de3100de4ea6499f9e.tar.gz |
css,ui-log: highlight empty rows in commit graph, but do not hover
Add more CSS to highlight empty rows in commit graph, but do not hover.
-rw-r--r-- | cgit.css | 8 | ||||
-rw-r--r-- | ui-log.c | 2 |
2 files changed, 9 insertions, 1 deletions
@@ -154,6 +154,14 @@ div#cgit table.list tr.nohover:hover { background: white; } +div#cgit table.list tr.nohover-highlight:hover:nth-child(even) { + background: #f7f7f7; +} + +div#cgit table.list tr.nohover-highlight:hover:nth-child(odd) { + background: white; +} + div#cgit table.list th { font-weight: bold; /* color: #888; @@ -265,7 +265,7 @@ static void print_commit(struct commit *commit, struct rev_info *revs) if ((revs->graph && !graph_is_commit_finished(revs->graph)) || ctx.qry.showmsg) { /* Print a second table row */ - html("<tr class='nohover'>"); + html("<tr class='nohover-highlight'>"); if (ctx.qry.showmsg) { /* Concatenate commit message + notes in msgbuf */ |