summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorboxdot <d@zerovolt.org>2018-02-02 13:15:48 +0100
committerMichael Bryan <michaelfbryan@gmail.com>2018-02-02 20:15:48 +0800
commit43fcd00cd58588f2763eeaed376d30c29c21e5f9 (patch)
treef89171af63ff0a2fc8820706eaa6abc60137ee12
parent3d83b784b399dbb30a139bfd71c2ee6847e033be (diff)
Inline footnotes. (#600)
-rw-r--r--src/theme/book.css11
-rw-r--r--src/theme/stylus/general.styl12
2 files changed, 23 insertions, 0 deletions
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; }
+}