From 61b18a1d5dee1e16edfe2d8f63e84e79c7b27009 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 24 Apr 2023 23:01:44 +0200 Subject: [PATCH] better code snippet, footnotes, hr --- static/css/blog/post.css | 37 +++++++++++++++++++++++++++++++------ 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/static/css/blog/post.css b/static/css/blog/post.css index 15576a5..265bf41 100644 --- a/static/css/blog/post.css +++ b/static/css/blog/post.css @@ -3,6 +3,8 @@ --selection: rgba(92, 54, 131, 0.7); --bg: #ffffff; --font-color: #18181b; + --code-font-color: #333333; + --code-bg-color: #eeeeee; } } @@ -11,6 +13,8 @@ --selection: rgba(124, 75, 173, 0.5); --bg: #171e26; --font-color: #a1a1aa; + --code-font-color: #eeeeee; + --code-bg-color: #333333; } } @@ -101,10 +105,31 @@ footer { visibility: collapse; } -/* code, kbd, -samp, -pre { - font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, - monospace; -} */ +code { + background-color: var(--code-bg-color); + border-radius: 3px; + color: var(--code-font-color); + box-shadow: 0 1px 1px #000000; + display: inline-block; + font-size: 0.85em; + font-weight: 700; + line-height: 1; + padding: 2px 4px; + vertical-align: 1.5px; +} + +.footnotes a { + font-family: "Segoe UI"; + text-decoration: underline dotted; +} + +.footnote-ref > a { + text-decoration: underline dotted; +} + +hr { + border: 0; + height: 1px; + background: #8080802f; +}