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; $codehilite-whitespace: transparent;
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// Rules // Rules: syntax highlighting
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// Codehilite extension // Codehilite extension
.codehilite, .codehilite {
.code {
// Operators // Operators
.o { color: $codehilite-operator; } .o { color: $codehilite-operator; }
@ -207,6 +206,10 @@ $codehilite-whitespace: transparent;
} }
} }
// ----------------------------------------------------------------------------
// Rules: layout
// ----------------------------------------------------------------------------
// Scoped in typesetted content for greater specificity // Scoped in typesetted content for greater specificity
.md-typeset { .md-typeset {

View File

@ -24,8 +24,11 @@
// Rules // Rules
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// Footnotes extension // Scoped in typesetted content for greater specificity
.footnote { .md-typeset {
// Footnotes extension
.footnote {
color: $md-color-black--light; color: $md-color-black--light;
font-size: 80%; font-size: 80%;
@ -37,14 +40,6 @@
// Single footnote // Single footnote
li { 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 // Make back references visible on hover
&:hover .footnote-backref, &:hover .footnote-backref,
&:target .footnote-backref { &:target .footnote-backref {
@ -92,4 +87,5 @@
content: "keyboard_return"; content: "keyboard_return";
} }
} }
}
} }