From c6534a44eff2421fc2642c330d64cb3f17684b0b Mon Sep 17 00:00:00 2001 From: Kirill Bobyrev Date: Mon, 4 Dec 2023 19:32:04 -0800 Subject: [PATCH] Reduce some styling even further --- assets/css/style.css | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index 65da415..a16a8dc 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -7,10 +7,11 @@ --tag-background: #e8f0fe; --background: #fff; --muted: #BDBDBD; - --code-background: #f5f5f6; + --muted-background: #f5f5f6; /* Typography */ --line-height: 1.2; + --font-size: 105%; } /* Base styles */ @@ -32,13 +33,20 @@ body { line-height: var(--line-height); background-color: var(--background); color: var(--text-color); - font-size: 105%; + font-size: var(--font-size); } img { max-width: 100%; } +/* Image captions (if applicable) */ +figcaption { + text-align: center; + font-style: italic; + margin-top: 0.5rem; +} + /* Typography */ a { @@ -69,17 +77,11 @@ hr { color: var(--muted); } -pre:has(code), -p>code { +pre:has(code), p>code { border: thin solid var(--muted); - background-color: var(--code-background) !important; -} - -pre:has(code) { - /* TODO: Add slightly more padding */ padding: .5rem; - overflow-x: auto; border-radius: 0.5rem; + overflow-x: auto; } p>code { @@ -184,5 +186,5 @@ td, th { } th { - background-color: var(--code-background); + background-color: var(--muted-background); }