summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--custom.css.in27
-rw-r--r--dark.css5
2 files changed, 32 insertions, 0 deletions
diff --git a/custom.css.in b/custom.css.in
index 88df7a7..5156978 100644
--- a/custom.css.in
+++ b/custom.css.in
@@ -1,5 +1,9 @@
+/*** Default theme ***/
+
m4_include(/usr/share/cgit/cgit.css)
+/*** Libravatar ***/
+
div#cgit span.libravatar img.onhover {
display: none;
border: 1px solid gray;
@@ -28,6 +32,29 @@ div#cgit span.libravatar:hover > img.onhover {
box-shadow: 2px 2px 7px rgba(100,100,100,0.75);
}
+/*** ReST ***/
+
+div#summary h1 a.toc-backref, div#summary h2 a.toc-backref, div#summary h3 a.toc-backref,
+div#summary h4 a.toc-backref, div#summary h5 a.toc-backref, div#summary h6 a.toc-backref {
+ color: #000 !important;
+}
+
+div#summary div.sidebar { background-color: #f8f8f8 !important }
+div#summary pre.code, div#summary code { background-color: #f8f8f8 !important }
+div#summary pre.code .comment, div#summary code .comment { color: #888 !important }
+div#summary pre.code .keyword, div#summary code .keyword { color: #080 !important }
+div#summary pre.code .literal.string, div#summary code .literal.string {
+ color: #d20 !important; background-color: #fff0f0 !important }
+div#summary pre.code .name.builtin, div#summary code .name.builtin { color: #00d !important }
+div#summary pre.code .deleted, div#summary code .deleted { background-color: #fdd !important }
+div#summary pre.code .inserted, div#summary code .inserted { background-color: #dfd !important }
+
+/*** Syntax highlighting ***/
+
+.highlight .no, .highlight .nb, .highlight .bp { color: #00d !important }
+
+/*** Dark theme ***/
+
@media (prefers-color-scheme: dark) {
m4_include(dark.css)
}
diff --git a/dark.css b/dark.css
index dc7eef3..24cebf2 100644
--- a/dark.css
+++ b/dark.css
@@ -154,6 +154,11 @@ div#cgit span.libravatar img.inline {
/*** ReST ***/
+div#summary h1 a.toc-backref, div#summary h2 a.toc-backref, div#summary h3 a.toc-backref,
+div#summary h4 a.toc-backref, div#summary h5 a.toc-backref, div#summary h6 a.toc-backref {
+ color: rgb(230, 230, 230) !important;
+}
+
div#summary div.sidebar { background-color: rgb(52, 52, 52) !important }
div#summary pre.code, div#summary code { background-color: rgb(52, 52, 52) !important }
div#summary pre.code .comment, div#summary code .comment { color: #888 !important }