From 43fcd00cd58588f2763eeaed376d30c29c21e5f9 Mon Sep 17 00:00:00 2001 From: boxdot Date: Fri, 2 Feb 2018 13:15:48 +0100 Subject: [PATCH] Inline footnotes. (#600) --- src/theme/book.css | 11 +++++++++++ src/theme/stylus/general.styl | 12 ++++++++++++ 2 files changed, 23 insertions(+) diff --git a/src/theme/book.css b/src/theme/book.css index 7a464cdd..80160288 100644 --- a/src/theme/book.css +++ b/src/theme/book.css @@ -47,6 +47,17 @@ table td { table thead td { font-weight: 700; } +:not(.footnote-definition) + .footnote-definition, +.footnote-definition + :not(.footnote-definition) { + margin-top: 2em; +} +.footnote-definition { + font-size: 0.9em; + margin: 0.5em 0; +} +.footnote-definition p { + display: inline; +} .sidebar { position: fixed; left: 0; diff --git a/src/theme/stylus/general.styl b/src/theme/stylus/general.styl index dbbedabb..c4a4b023 100644 --- a/src/theme/stylus/general.styl +++ b/src/theme/stylus/general.styl @@ -48,3 +48,15 @@ table { td { font-weight: 700; } } } + +:not(.footnote-definition) + .footnote-definition, +.footnote-definition + :not(.footnote-definition) { + margin-top: 2em; +} + +.footnote-definition { + font-size: 0.9em; + margin: 0.5em 0; + + p { display: inline; } +}