fix pre/code styling
Alan Pearce alan@alanpearce.eu
Thu, 13 Jun 2024 17:31:50 +0200
1 files changed, 14 insertions(+), 1 deletions(-)
jump to
M templates/style.css → templates/style.css
@@ -91,10 +91,23 @@ } code { font-family: monospace; - padding: 2px; + padding: 2px 5px; background-color: var(--code-background-color); color: var(--code-color); border-radius: 3px; +} + +pre { + margin: unset; +} + +pre code { + color: var(--code-color); + display: block; + padding: 20px; + white-space: pre-wrap; + font-size: 0.875rem; + overflow-x: auto; } blockquote,