]> git.bts.cx Git - cx.git/commitdiff
coding css blocks
authorBen Sherratt <redacted>
Sun, 19 Nov 2023 16:45:40 +0000 (16:45 +0000)
committerBen Sherratt <redacted>
Sun, 19 Nov 2023 16:45:40 +0000 (16:45 +0000)
public/design/css/style.css

index 8393d4adb716cec82172102f459686f6f03c8013..8fb9544c248086406a627cc4947fbc912a6bd9da 100644 (file)
@@ -175,6 +175,16 @@ code:not([class*="language"]) {
   padding-left: 0.15em;
 }
 
+pre code {
+  margin: 2rem 0;
+  padding: 0.5em 1rem;
+  display: block;
+  border-left: 3px solid rgba(0, 0, 0, 0.35);
+  background-color: rgba(0, 0, 0, 0.05);
+  border-radius: 0 0.25rem 0.25rem 0;
+  overflow-x: auto;
+}
+
 blockquote {
   margin: 2rem 0;
   padding: 0.5em 1rem;