From 39ff4c2b6692980b0a6e11c588071c364882f45b Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Mon, 15 Jan 2024 15:14:08 -0600 Subject: [PATCH] css: define new slightly-lighter color for code/pre elements --- static/css/custom.css | 13 +++++++++++++ static/css/palettes/runtimeterror.css | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/static/css/custom.css b/static/css/custom.css index 729876c..dcc3109 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -1,3 +1,8 @@ +/* color overrides */ +:root { + --code: var(--base06); +} + /* override page max-width */ .page { max-width: 72rem; @@ -203,4 +208,12 @@ ul.pagination li { small[style^="opacity: .5"] { opacity: 1 !important; +} + +/* code overrides */ +pre, +code, +kbd, +samp { + color: var(--code); } \ No newline at end of file diff --git a/static/css/palettes/runtimeterror.css b/static/css/palettes/runtimeterror.css index 91bc2b8..3838a79 100644 --- a/static/css/palettes/runtimeterror.css +++ b/static/css/palettes/runtimeterror.css @@ -8,7 +8,7 @@ --base03: #585858; /* muted */ --base04: #abaaaa; /* off-fg */ --base05: #d8d8d8; /* fg */ - --base06: #e8e8e8; + --base06: #cfcfcf; /* code */ --base07: #5f8700; /* user prompt */ --base08: #ab4642; /* root prompt */ --base09: #dc9656;