summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2016-07-07 13:38:35 +0200
committerChristian Hesse <mail@eworm.de>2016-10-12 14:18:39 +0200
commit697920f5bf076031174b06de3100de4ea6499f9e (patch)
tree644d4a216597446e74fc55127e6992930157564e
parent16e83b9df0a45687e0cae508f332aaffe276079f (diff)
downloadcgit-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.css8
-rw-r--r--ui-log.c2
2 files changed, 9 insertions, 1 deletions
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 c4abf52..3220fd9 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 */