summary refs log tree commit diff
path: root/www
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-12-18 23:17:45 -0500
committerJune McEnroe <june@causal.agency>2019-12-18 23:17:45 -0500
commit57126590cc5c8f5a7c88729dd4a796a0199a36e0 (patch)
treec74d74444b03db5e7de28ba10dbf3f148124a8a2 /www
parentUse :target rather than :focus pseudo-class (diff)
downloadsrc-57126590cc5c8f5a7c88729dd4a796a0199a36e0.tar.gz
src-57126590cc5c8f5a7c88729dd4a796a0199a36e0.zip
Customize cgit CSS
Diffstat (limited to 'www')
-rw-r--r--www/git.causal.agency/custom.css34
1 files changed, 32 insertions, 2 deletions
diff --git a/www/git.causal.agency/custom.css b/www/git.causal.agency/custom.css
index 7bec1dea..66cdc185 100644
--- a/www/git.causal.agency/custom.css
+++ b/www/git.causal.agency/custom.css
@@ -1,11 +1,41 @@
 @import url("cgit.css");
 
+* { line-height: 1.25em; }
+
 div#cgit {
+	max-width: 117ch;
+	margin: auto;
+	font-family: monospace;
 	-moz-tab-size: 4;
 	tab-size: 4;
 }
 
-div#cgit table.blob td.linenumbers a:focus {
+div#cgit table#header td.logo {
+	display: none;
+}
+div#cgit table#header td.sub {
+	border-top: none;
+}
+div#cgit table.tabs {
+	border-bottom: none;
+}
+div#cgit div.content {
+	border-bottom: none;
+}
+div#cgit table.list th a {
+	color: inherit;
+}
+div#cgit table.list tr:nth-child(even) {
+	background: inherit;
+}
+div#cgit table.list tr:hover {
+	background: inherit;
+}
+div#cgit table.list tr.nohover-highlight:hover:nth-child(even) {
+	background: inherit;
+}
+
+div#cgit table.blob td.linenumbers a:target {
 	color: goldenrod;
 	text-decoration: underline;
 	outline: none;
@@ -14,7 +44,6 @@ div#cgit table.blob td.linenumbers a:focus {
 div#cgit .hi.Keyword { color: dimgray; }
 div#cgit .hi.Macro { color: green; }
 div#cgit .hi.Tag { color: inherit; text-decoration: underline; }
-div#cgit .hi.Tag:focus { color: goldenrod; outline: none; }
 div#cgit .hi.String { color: teal; }
 div#cgit .hi.Format { color: teal; font-weight: bold; }
 div#cgit .hi.Interp { color: olive; }
@@ -22,3 +51,4 @@ div#cgit .hi.Comment { color: navy; }
 div#cgit .hi.Todo { color: navy; font-weight: bold; }
 div#cgit .hi.DiffOld { color: red; }
 div#cgit .hi.DiffNew { color: green; }
+div#cgit .hi.Tag:target { color: goldenrod; outline: none; }