pub / stagit-scripts

Building src.jayvii.de with stagit
git clone https://src.jayvii.de/pub/stagit-scripts.git
Home | Log | Files | Exports | Refs | README | RSS

commit 55f42fa32e85d5cee7ae2fd1e983f09990ee59dc
parent e00a8223e41ddb63cb39d849ea711011c1bfbd5f
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Sat, 29 Jun 2024 22:01:32 +0200

feat: style codeblocks

Diffstat:
Massets/style.css | 48+++++++++++++++++++++++++++++++++++++++++++++---
1 file changed, 45 insertions(+), 3 deletions(-)

diff --git a/assets/style.css b/assets/style.css @@ -4,6 +4,7 @@ /* Dark Mode: Default */ :root { + --max-width: 1280px; --fg1: #dadadb; --fg2: #8d8e8f; --bg1: #1d1e20; @@ -12,7 +13,13 @@ --hl1: #8c90d4; --del: #db4325; --add: #006164; - --max-width: 1280px; + --fg-code: #ebdbb2; + --fg-code-co: #777e94; + --fg-code-ex: #ff7540; + --fg-code-fu: var(--fg-code-ex); + --fg-code-bu: var(--fg-code-ex); + --fg-code-st: #b8bb26; + --fg-code-op: #ff7540; } /* Bright Mode */ @@ -24,8 +31,14 @@ --bg2: #ffffff; --bg3: #fafafa; --hl1: #6c71c4; - --del: #db4325; - --add: #006164; + --fg-code: teal; + --fg-code-co: #6a737d; + --fg-code-ex: #d73a49; + --fg-code-fu: var(--fg-code-ex); + --fg-code-bu: var(--fg-code-ex); + --fg-code-st: #106303; + --fg-code-op: #d73a49; + } } @@ -118,9 +131,38 @@ pre#blob { color: var(--hl1); } +/* Code Blocks on Summary Page */ code { font-size: 130%; + color: var(--fg-code); +} + +.sourceCode { + background-color: var(--bg2); +} + +code a { + color: var(--fg-code); } +code .co { + color: var(--fg-code-co); +} +code .ex { + color: var(--fg-code-ex); +} +code .fu { + color: var(--fg-code-fu); +} +code .bu { + color: var(--fg-code-bu); +} +code .st { + color: var(--fg-code-st); +} +code .op { + color: var(--fg-code-op); +} + td { padding: 0 0.4em;