From 04538fa31c1636634d036e1d824816a6f070f151 Mon Sep 17 00:00:00 2001 From: rawleyIfowler Date: Sat, 12 Mar 2022 12:22:14 -0600 Subject: [PATCH] added line spaces to code blocks with css --- static/index.css | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/static/index.css b/static/index.css index 0a90be7..9602405 100644 --- a/static/index.css +++ b/static/index.css @@ -161,17 +161,22 @@ a:hover:after { code { background-color: #44475a; color: #50fa7b; + display: block; padding: 3px; font-family: monospace; + font-size: 0.9em; } -code::before { +code:before { content: "\A"; + background-color: none; white-space: pre; } -code::after { +code:after { content: "\A"; + background-color: none; + white-space: pre-line; } @media (prefers-color-scheme: dark) {