Add CSS for footnotes

This commit is contained in:
Thomas Dehaeze 2020-11-26 15:59:02 +01:00
parent 2c42d3127f
commit 845cb0d521
3 changed files with 31 additions and 82 deletions

View File

@ -23,7 +23,6 @@ body{
background:#fcfcfc;
height:100%;
margin-left:300px;
/* margin:auto; */
max-width:1200px;
min-height:100%;
padding:1.618em 3.236em;
@ -32,7 +31,7 @@ body{
p {
font-size:16px;
line-height:24px;
margin:0px 0px 24px 0px;
margin:0 0 1.5em 0;
}
b,strong {
@ -67,29 +66,20 @@ blockquote{
line-height:24px;
margin:0px 0px 24px 0px;
padding: 6px 20px;
p {
margin-bottom: 1em;
}
}
// .rotate-90{
// -webkit-transform:rotate(90deg);
// -moz-transform:rotate(90deg);
// -ms-transform:rotate(90deg);
// -o-transform:rotate(90deg);
// transform:rotate(90deg);
// }
// Superscript
sup{
font-size:0.5em;
line-height:0;
position:relative;
vertical-align:baseline;
top:-0.5em;
// .rotate-270{
// -webkit-transform:rotate(270deg);
// -moz-transform:rotate(270deg);
// -ms-transform:rotate(270deg);
// -o-transform:rotate(270deg);
// transform:rotate(270deg);
// }
// *{
// -webkit-box-sizing:border-box;
// -moz-box-sizing:border-box;
// box-sizing:border-box;
// }
}
ins{
background:#ff9;
@ -288,34 +278,6 @@ span[id*='MathJax-Span']{
text-align:center;
}
.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:"]";
}
.footpara {
color: #999;
font-size: 90%;
font-family:"Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;
padding-bottom: 8px;
padding-left: 16px;
padding-right: 16px;
padding-top: 8px;
line-height: 1.25em;
/* display: inline; */
}
.todo{
background-color: #f29f97;
padding: 0px 4px;

View File

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

View File

@ -1,6 +1,7 @@
@import 'partials/_reset.scss';
@import 'partials/_base.scss';
@import 'partials/_headlines.scss';
@import 'partials/_nagivation.scss';
@import 'partials/_toc.scss';
@import 'partials/_copyright.scss';
@ -8,6 +9,8 @@
@import 'partials/_print.scss';
@import 'partials/_footnotes.scss';
@import 'partials/_aside.scss';
@import 'partials/_bibliography.scss';
@import 'partials/_htmlize.scss';
@import 'partials/_lists.scss';
@import 'partials/_boxes.scss';