From 0f8391660da33250c66d5937d7ff74ad5f7bbcf1 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 16 May 2024 18:05:00 +0200 Subject: [PATCH] better footnote --- static/css/blog/post.css | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/static/css/blog/post.css b/static/css/blog/post.css index cdc294b..774343c 100644 --- a/static/css/blog/post.css +++ b/static/css/blog/post.css @@ -198,8 +198,24 @@ table.hljs-ln { font-size: calc(var(--font-size) * 0.8); } -/* Footnotes */ -.footnotes a { +/* Footnote */ +section.footnotes * { + font-size: calc(var(--font-size) * 0.8); +} + +/* When multiple ref */ +a.footnote-backref sup { + font-size: calc(var(--font-size) * 0.6); +} +a.footnote-backref sup::before { + content: "("; +} +a.footnote-backref sup::after { + content: ")"; +} + +/* Footnotes links */ +a.footnote-backref { font-family: "Segoe UI", "Segoe UI Symbol", system-ui; text-decoration: underline dotted; }