aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-11-18 15:29:02 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-11-18 15:29:02 +0530
commitfa7fddfa4e254c620fded7b88f754e9cc97d85ce (patch)
tree0452d700e05416a4d52115eb427a36ceca4dafde
parenta9af565a246ddc8b1e57a438984be448d25b4323 (diff)
changed colorscheme a bit for markdown
-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);