about summary refs log tree commit diff stats
path: root/templates/style.css
diff options
context:
space:
mode:
authorAlan Pearce2024-06-13 17:31:50 +0200
committerAlan Pearce2024-06-13 17:31:50 +0200
commited7ed7f245cbf2676ba0bb6d0510e118064bbd5c (patch)
tree4138edbb76cff19bc4b3afaab64743d3807b99cd /templates/style.css
parenta00efb33a128ea0b422de01a56c585c93f8d3d13 (diff)
downloadwebsite-ed7ed7f245cbf2676ba0bb6d0510e118064bbd5c.tar.lz
website-ed7ed7f245cbf2676ba0bb6d0510e118064bbd5c.tar.zst
website-ed7ed7f245cbf2676ba0bb6d0510e118064bbd5c.zip
fix pre/code styling
Diffstat (limited to 'templates/style.css')
-rw-r--r--templates/style.css15
1 files changed, 14 insertions, 1 deletions
diff --git a/templates/style.css b/templates/style.css
index 6888891..b386843 100644
--- a/templates/style.css
+++ b/templates/style.css
@@ -91,12 +91,25 @@ img {
 
 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,
 .aside {
   border-left: 1px solid #999;