From be647664bedce7e5080d22e744ebbceda73b8da9 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Wed, 17 Jul 2019 03:12:38 -0600 Subject: [PATCH] make font color of inline code configurable --- src/css/doc.css | 5 +++-- src/css/vars.css | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/css/doc.css b/src/css/doc.css index bbd43ca..fe59e86 100644 --- a/src/css/doc.css +++ b/src/css/doc.css @@ -108,10 +108,11 @@ .doc p code, .doc thead code { - font-size: 0.9em; + color: var(--code-font-color); background: var(--code-background); - padding: 0.075rem 0.25rem 0.125rem; border-radius: 0.2rem; + font-size: 0.9em; + padding: 0.075rem 0.25rem 0.125rem; } .doc pre { diff --git a/src/css/vars.css b/src/css/vars.css index 174882a..83f237b 100644 --- a/src/css/vars.css +++ b/src/css/vars.css @@ -73,6 +73,7 @@ --admonition-background: var(--panel-background); --caption-font-color: var(--color-gray-50); --code-background: var(--panel-background); + --code-font-color: var(--body-font-color); --example-background: var(--color-white); --example-border-color: #638282; /* #2f5958 */ --kbd-background: var(--panel-background); -- 2.11.0