Finished footnotes integration

This commit is contained in:
squidfunk 2016-10-30 11:02:18 +01:00
parent 8cac945757
commit f1af230918
2 changed files with 60 additions and 61 deletions

View File

@ -105,12 +105,11 @@ $codehilite-error: #A61717;
$codehilite-whitespace: transparent;
// ----------------------------------------------------------------------------
// Rules
// Rules: syntax highlighting
// ----------------------------------------------------------------------------
// Codehilite extension
.codehilite,
.code {
.codehilite {
// Operators
.o { color: $codehilite-operator; }
@ -207,6 +206,10 @@ $codehilite-whitespace: transparent;
}
}
// ----------------------------------------------------------------------------
// Rules: layout
// ----------------------------------------------------------------------------
// Scoped in typesetted content for greater specificity
.md-typeset {

View File

@ -24,8 +24,11 @@
// Rules
// ----------------------------------------------------------------------------
// Footnotes extension
.footnote {
// Scoped in typesetted content for greater specificity
.md-typeset {
// Footnotes extension
.footnote {
color: $md-color-black--light;
font-size: 80%;
@ -37,14 +40,6 @@
// Single footnote
li {
// TODO: this doesn't work entirely
// &::before {
// display: block;
// content: "";
// padding-top: (5.6rem + 2.4rem + 0.4rem);
// margin-top: -(5.6rem + 2.4rem + 0.4rem);
// }
// Make back references visible on hover
&:hover .footnote-backref,
&:target .footnote-backref {
@ -92,4 +87,5 @@
content: "keyboard_return";
}
}
}
}