From f4cd6e6a92eb4b7b5076fd2de4694316d1d328e2 Mon Sep 17 00:00:00 2001 From: welpo Date: Tue, 21 Feb 2023 23:14:27 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style:=20update=20footnote=20sty?= =?UTF-8?q?ling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/markdown.md | 5 ++++- sass/parts/_misc.scss | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/content/markdown.md b/content/markdown.md index 8e08bf0..1db7410 100644 --- a/content/markdown.md +++ b/content/markdown.md @@ -8,7 +8,7 @@ tags = ["markdown", "test"] ## Table -Here's an example of a table. Its colours change depending on the current theme. +Here's an example of a table[^1]. Its colours change depending on the current theme. | Symbol | Element | Atomic Number | |---------|---------|---------------| @@ -36,3 +36,6 @@ Lorem ipsum `dolor` sit amet, `consectetur adipiscing` elit. > We're all hurtling towards death. Yet here we are, for the moment, alive. Each of us knowing we're going to die. Each of us secretly believing we won't. > > — Charlie Kaufman, Synecdoche, New York + + +[^1]: And here's an example of a footnote! diff --git a/sass/parts/_misc.scss b/sass/parts/_misc.scss index 6c20ff8..5c3e623 100644 --- a/sass/parts/_misc.scss +++ b/sass/parts/_misc.scss @@ -119,3 +119,21 @@ table td { table tbody tr:nth-child(even) { background-color: var(--bg-0); } + +.footnote-reference { + font-family: var(--serif-font); + font-size: 0.7rem; +} + +.footnote-definition { + margin-top: 3.5rem; + border-top: 1px solid var(--border-color); + padding-top: 1rem; + sup { + font-size: 0.75rem; + margin-right: 0.15rem; + } + p { + display: inline; + } +}