From fa7fddfa4e254c620fded7b88f754e9cc97d85ce Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sat, 18 Nov 2023 15:29:02 +0530 Subject: changed colorscheme a bit for markdown --- cgit.css | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) 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); -- cgit v1.2.3