diff options
author | Alan Pearce | 2024-06-13 17:31:50 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-13 17:31:50 +0200 |
commit | ed7ed7f245cbf2676ba0bb6d0510e118064bbd5c (patch) | |
tree | 4138edbb76cff19bc4b3afaab64743d3807b99cd /templates/style.css | |
parent | a00efb33a128ea0b422de01a56c585c93f8d3d13 (diff) | |
download | website-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.css | 15 |
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; |