From 731b516ddafa3a60e9eaec5992f434d8066e35cb Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 25 Oct 2024 17:30:03 -0700 Subject: adjust CSS for how to highlight code --- static/css/custom.css | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'static/css') diff --git a/static/css/custom.css b/static/css/custom.css index 9dd92f1..20e8b23 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -5,7 +5,7 @@ body { font-size: 1rem; line-height: 1.6; color: black; - background-color: #fffff8; + background-color: #f4f4f4; } main { @@ -56,21 +56,23 @@ ul { } /* Code blocks */ -code { +p code { font-family: monospace; font-size: 90%; - border-radius: 4px; + border-radius: 0.3rem; + padding: 0.025rem 0.3rem; + border: 2px solid #52576f; } pre { - padding: 0.2rem 0.5rem; overflow-x: auto; - font-size: 90%; - background-color: #f5f5f5; } pre > code { display: block; + font-family: monospace; + font-size: 90%; + padding: 0.5rem; } p > code { -- cgit 1.4.1