From f990565df7408913163cb899efa23e3684330280 Mon Sep 17 00:00:00 2001 From: Jonas Tobias Hopusch Date: Fri, 10 Sep 2021 21:07:31 +0200 Subject: [PATCH] Add CSS support for code blocks and improve format of code (& h2) --- static/css/general.css | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/static/css/general.css b/static/css/general.css index abf7c9b..b4e2d34 100644 --- a/static/css/general.css +++ b/static/css/general.css @@ -47,9 +47,21 @@ footer { padding: 0.5rem 0; } +/* Code Blocks */ +pre { + padding: 0.75rem; + margin-top: 1.5rem; + margin-bottom: 1.5rem; + margin-left: auto; + margin-right: auto; + max-width: max-content; +} + +/* Inline keywords/code */ code { display: inline-block; color: green; + line-break: strict; } p { @@ -60,6 +72,10 @@ article { padding: 0.5rem; } +h2 { + margin-bottom: 1rem; +} + #mainarticle { width: max-content; max-width: min(80rem, 100%);