Skip to content

Commit 5256517

Browse files
committed
style footnotes block
1 parent 6c06fbf commit 5256517

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

preview-src/index.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Lorem pertinacia `expetenda` et nec, [.underline]#wisi# illud [.line-through]#so
2525
H~2~0.
2626
E = mc^2^.
2727
Eum an doctus <<liber-recusabo,maiestatis efficiantur>>.
28-
Eu mea inani iriure.
28+
Eu mea inani iriure.footnote:[Quisque porta facilisis tortor, vitae bibendum velit fringilla vitae! Lorem ipsum dolor sit amet, consectetur adipiscing elit.]
2929

3030
[,json]
3131
----

src/css/doc.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -991,3 +991,30 @@
991991
hyphens: none;
992992
word-wrap: normal;
993993
}
994+
995+
#footnotes {
996+
font-size: 0.85em;
997+
line-height: 1.5;
998+
margin: 2rem -0.5rem 0;
999+
}
1000+
1001+
#footnotes hr {
1002+
border-top-width: 1px;
1003+
margin-top: 0;
1004+
width: 20%;
1005+
}
1006+
1007+
#footnotes .footnote {
1008+
margin: 0.5em 0 0 1em;
1009+
}
1010+
1011+
#footnotes .footnote + .footnote {
1012+
margin-top: 0.25em;
1013+
}
1014+
1015+
#footnotes .footnote > a:first-of-type {
1016+
display: inline-block;
1017+
margin-left: -2em;
1018+
text-align: right;
1019+
width: 1.5em;
1020+
}

0 commit comments

Comments
 (0)