aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cgit.css31
1 files changed, 31 insertions, 0 deletions
diff --git a/cgit.css b/cgit.css
index 1d18548..c8c7123 100644
--- a/cgit.css
+++ b/cgit.css
@@ -8,6 +8,9 @@
--fg3: #2ed19b;
--fg-disabled: gray;
+ --codeblock-bg: #303132;
+ --codeblock-fg: #ffffff;
+
--accent1: #BF87D0;
--accent1rgb: rgb(191, 135, 208);
--accent1rgba7: rgba(191, 135, 208, 0.7);
@@ -59,6 +62,34 @@
}
}
+.markdown-body h1 a,
+.markdown-body h2 a,
+.markdown-body h3 a,
+.markdown-body h4 a,
+.markdown-body h5 a,
+.markdown-body h6 a {
+ color: var(--fg1) !important;
+}
+
+code {
+ background-color: var(--codeblock-bg);
+ color: var(--codeblock-fg);
+ padding: 5px 8px;
+ border-radius: 4px;
+ font-family: monospace;
+}
+
+pre code {
+ overflow-x: auto;
+ display: block;
+}
+
+.markdown-body pre,
+.markdown-body code {
+ background-color: var(--codeblock-bg) !important;
+ color: var(--codeblock-fg) !important;
+}
+
.ctrl select {
background-color: var(--bg1);
color: var(--fg1);