all repos — website @ ed7ed7f245cbf2676ba0bb6d0510e118064bbd5c

My website

fix pre/code styling
Alan Pearce alan@alanpearce.eu
Thu, 13 Jun 2024 17:31:50 +0200
commit

ed7ed7f245cbf2676ba0bb6d0510e118064bbd5c

parent

a00efb33a128ea0b422de01a56c585c93f8d3d13

1 files changed, 14 insertions(+), 1 deletions(-)

jump to
M templates/style.csstemplates/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,