Better footnotes

This commit is contained in:
Thomas Dehaeze 2020-11-26 13:40:49 +01:00
parent 14c0147afe
commit a57a277e81
3 changed files with 67 additions and 17 deletions

View File

@ -152,21 +152,16 @@ small{
font-size:85%; font-size:85%;
} }
sub,sup{ // Links to Footnotes
font-size:75%; sub{
font-size:0.5em;
line-height:0; line-height:0;
position:relative; position:relative;
vertical-align:baseline; vertical-align:baseline;
}
sup{
top:-0.5em;
}
sub{
bottom:-0.25em; bottom:-0.25em;
} }
img{ img{
-ms-interpolation-mode:bicubic; -ms-interpolation-mode:bicubic;
vertical-align:middle; vertical-align:middle;
@ -337,14 +332,6 @@ span[id*='MathJax-Span']{
text-align:center; text-align:center;
} }
#footnotes{
border-top:1px solid #e1e4e5;
padding-top: 36px;
}
h2.footnotes{
display:none;
}
.footnum, .footref{ .footnum, .footref{
color: #2980b9; color: #2980b9;

View File

@ -0,0 +1,62 @@
// Links to Footnotes
sup{
font-size:0.5em;
line-height:0;
position:relative;
vertical-align:baseline;
top:-0.5em;
}
.footnum, .footref{
color: #2980b9;
font-size: 170%;
font-family:"Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;
}
.footnum:before, .footref:before{
content:"[";
}
.footnum:after, .footref:after{
content:"]";
}
// Footer
#footnotes{
border-top:1px solid #e1e4e5;
padding-top: 36px;
// Individual Foot Div
div.footdef {
display: flex;
// Foot Number
sup {
line-height: 1;
padding: 8px;
top: 0;
}
// Foot Text Div
div.footpara {
margin: 0;
padding: 0;
// Foot Text
p {
color: #999;
font-size: 90%;
font-family:"Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;
padding: 8px;
line-height: 1.25em;
margin: 0;
}
}
}
}
// Do not display the footnote Heading
h2.footnotes{
display:none;
}

View File

@ -7,6 +7,7 @@
@import 'partials/_postamble.scss'; @import 'partials/_postamble.scss';
@import 'partials/_print.scss'; @import 'partials/_print.scss';
@import 'partials/_footnotes.scss';
@import 'partials/_lists.scss'; @import 'partials/_lists.scss';
@import 'partials/_boxes.scss'; @import 'partials/_boxes.scss';
@import 'partials/_codes.scss'; @import 'partials/_codes.scss';