From: Christian Hesse <m...@eworm.de> Add more CSS to highlight empty rows in commit graph, but do not hover.
Signed-off-by: Christian Hesse <m...@eworm.de> --- cgit.css | 8 ++++++++ ui-log.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/cgit.css b/cgit.css index e039970..1dc2c11 100644 --- a/cgit.css +++ b/cgit.css @@ -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; diff --git a/ui-log.c b/ui-log.c index 6592267..ea494af 100644 --- a/ui-log.c +++ b/ui-log.c @@ -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 */ -- 2.9.0 _______________________________________________ CGit mailing list CGit@lists.zx2c4.com http://lists.zx2c4.com/mailman/listinfo/cgit