summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-06-07 14:59:44 +0800
committereltrac <hi@eltr.ac>2026-06-07 14:59:44 +0800
commit4f6b1c96e20e15c6813984eecd2d000de85aeb09 (patch)
treeb644a44a51ce4d0e3239bac4d045541cbc4c42a8
parent4808e6ead0d430c7377830dffcf3b0c6dcf6f282 (diff)
feat(css/fn): new footnote style
- slightly bigger font - push fn number outside to make them more obvious and distinct from body of text - full opacity on smaller screen, where mouse hover is not an option
-rw-r--r--layouts/_partials/utils/inject-footnotes.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_partials/utils/inject-footnotes.html b/layouts/_partials/utils/inject-footnotes.html
index 31fdae8..549ac75 100644
--- a/layouts/_partials/utils/inject-footnotes.html
+++ b/layouts/_partials/utils/inject-footnotes.html
@@ -32,7 +32,7 @@
{{ $noteContent := index $footnoteMap $refId }}
{{ if $noteContent }}
- {{ $inlineFootnote := printf `<div class="inline-footnote text-xs text-secondary flex gap-2 ml-2 my-1 opacity-50 hover:opacity-100 transition-opacity" id="fn:%s"><span>%s.</span><div>%s</div></div>` $refId $refId $noteContent }}
+ {{ $inlineFootnote := printf `<div class="inline-footnote text-sm text-secondary flex gap-2 md:-ml-7 md:opacity-50 hover:opacity-100 transition-opacity" id="fn:%s"><span>[%s]</span><div>%s</div></div>` $refId $refId $noteContent }}
{{ $blockTags := slice "p" "li" "td" "th" "blockquote" "h1" "h2" "h3" "h4" "h5" "h6" "figcaption" "dt" "dd" }}