From 382720ebf59a390eeb354a92ed4a7472a33fa2b2 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 7 Oct 2020 19:19:13 -0500 Subject: [PATCH] Footnote styling --- index.scss | 8 ++++++++ index.slim | 9 ++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/index.scss b/index.scss index be8db63..df0ce2e 100644 --- a/index.scss +++ b/index.scss @@ -251,6 +251,14 @@ body > small { } p:after { content: "”"; } &:last-of-type p:after { content: ""; } + + cite { + display: block; + font-style: normal; + color: $fg-alt; + font-size: 0.9em; + margin-top: 1.5em; + } } &.js figure { diff --git a/index.slim b/index.slim index f9afb1b..0ca7ec5 100644 --- a/index.slim +++ b/index.slim @@ -49,9 +49,12 @@ html h1= transcripts[n-1].shift p - transcripts[n-1].each_with_index do |t, i| - - if i > 0 - br - = t + - if t[0] == "*" + cite= t + - else + - if i > 0 + br + = t audio controls="controls" source src="assets/audio/#{n}.opus" type="audio/ogg; codecs=opus" source src="assets/audio/#{n}.mp3" type="audio/mpeg" -- 2.45.2