From 42ec4ddf4bc25e1cd18d587a8386aa1153b50ddc Mon Sep 17 00:00:00 2001
From: Conrad Zelck <git@simpel.cc>
Date: Sun, 8 Oct 2023 14:58:39 +0200
Subject: [PATCH] style: give code in preview some margin-top

Signed-off-by: Conrad Zelck <git@simpel.cc>
---
 style.css | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/style.css b/style.css
index c1572ab..6abb6d5 100644
--- a/style.css
+++ b/style.css
@@ -314,6 +314,7 @@ div.disabled, p.disabled, label.disabled,
 
 ***************************************************************************** */
 
+/* this pre wraps the whole html #output if html is selected */
 pre {
   text-wrap: pretty;
   word-break: break-word;
@@ -321,6 +322,12 @@ pre {
   font-family: inherit;
 }
 
+/* this is code in #output if preview is selected */
+pre:has(code) {
+  margin-block-start: 1em;
+}
+
+/* default is center and looks ugly */
 th {
   text-align: left;
 }
-- 
GitLab