From 920a7e0a85893d9f785221a6fcf65431933f8c1f Mon Sep 17 00:00:00 2001 From: kha84 Date: Sat, 25 Feb 2023 18:06:16 +0300 Subject: [PATCH] A small cosmetical change to CSS, so the inline code markup () will be having the same background color as a standalone code block. Basically to make it look more like stackoverflow --- themes/default/theme.css | 1 + 1 file changed, 1 insertion(+) diff --git a/themes/default/theme.css b/themes/default/theme.css index 5ef9cdd..e66c733 100644 --- a/themes/default/theme.css +++ b/themes/default/theme.css @@ -174,6 +174,7 @@ blockquote { padding-left: 1em; border-left: 0.2em solid var(--accent-a3); borde pre { white-space: pre-wrap; padding: 0.3em 0.5em; background: var(--bg-page-inset); border-radius: 0.25em; box-shadow: inset 0 0 0.5em var(--shadow); } code { font-size: 1.1em; } +code:not(:has(> pre)) { background: var(--bg-page-inset); } a { cursor: pointer; } a:focus { outline-width: 0.1em; }