[PATCH 1/1] css, ui-log: highlight empty rows in commit graph, but do not hover
Christian Hesse
list at eworm.de
Thu Jul 7 13:41:33 CEST 2016
From: Christian Hesse <mail at eworm.de>
Add more CSS to highlight empty rows in commit graph, but do not hover.
Signed-off-by: Christian Hesse <mail at 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
More information about the CGit
mailing list