aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTianhao Wang <wth@riseup.net>2023-10-26 22:27:57 +0200
committerTianhao Wang <wth@riseup.net>2023-10-26 22:27:57 +0200
commitd5e48fa7d669037f94011225a159ebd8d1ee3b12 (patch)
tree753f2397ba2609fdf4d6f1bd82b573c66aa536c8
parente996d109acbf9d67503ded59dd83ea642c74f1c8 (diff)
colors for sdiffHEADmaster
-rw-r--r--cgit.css41
1 files changed, 18 insertions, 23 deletions
diff --git a/cgit.css b/cgit.css
index 10a3c87..1c922ee 100644
--- a/cgit.css
+++ b/cgit.css
@@ -7,6 +7,7 @@ body {
margin: 0;
}
+
div#cgit *,
div#cgit {
max-width: 200ch;
@@ -26,7 +27,11 @@ a:hover {
div#cgit table.list td a {
- color: #95df95;
+ color: #39c5cc;
+}
+
+div#cgit table.list td.toplevel-repo a{
+ font-weight: bold;
}
div#cgit table#header td.main a {
@@ -103,7 +108,6 @@ div#cgit table#header td.form select {
div#cgit table#header td.sub {
color: #777;
- border-top: solid 1px #ccc;
padding-left: 10px;
}
@@ -170,51 +174,43 @@ div#cgit table.list {
}
div#cgit table.list tr {
- background: white;
}
div#cgit table.list tr.logheader {
- background: #eee;
}
div#cgit table.list tr:nth-child(even) {
- background: #f7f7f7;
}
div#cgit table.list tr:nth-child(odd) {
- background: white;
}
div#cgit table.list tr:hover {
- background: #eee;
}
div#cgit table.list tr.nohover {
- background: white;
}
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;
border-top: dashed 1px #888;
- border-bottom: dashed 1px #888;
*/
- padding: 0.1em 0.5em 0.05em 0.5em;
+ padding: 0.1em 0.5em 0.5em 0.5em;
vertical-align: baseline;
}
+
+
div#cgit table.list td {
border: none;
padding: 0.1em 0.5em 0.1em 0.5em;
@@ -859,53 +855,52 @@ div#cgit table.ssdiff td {
div#cgit table.ssdiff td.add {
color: white;
- background: #cfc;
+ background: #000044;
min-width: 50%;
}
div#cgit table.ssdiff td.add_dark {
color: white;
- background: #aca;
+ background: #000033;
min-width: 50%;
}
div#cgit table.ssdiff span.add {
- background: #cfc;
+ background: #000099;
font-weight: bold;
}
div#cgit table.ssdiff td.del {
color: white;
- background: #fcc;
+ background: #440000;
min-width: 50%;
}
div#cgit table.ssdiff td.del_dark {
color: white;
- background: #caa;
+ background: #000044;
min-width: 50%;
}
div#cgit table.ssdiff span.del {
- background: #fcc;
+ background: #880000;
font-weight: bold;
}
div#cgit table.ssdiff td.changed {
color: white;
- background: #ffc;
+ background: #000044;
min-width: 50%;
}
div#cgit table.ssdiff td.changed_dark {
color: white;
- background: #cca;
+ background: #000033;
min-width: 50%;
}
div#cgit table.ssdiff td.lineno {
color: white;
- background: #eee;
text-align: right;
width: 3em;
min-width: 3em;
@@ -913,7 +908,7 @@ div#cgit table.ssdiff td.lineno {
div#cgit table.ssdiff td.hunk {
color: white;
- background: #ccf;
+ background: #008;
border-top: solid 1px #aaa;
border-bottom: solid 1px #aaa;
}