mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Finished footnotes integration
This commit is contained in:
parent
8cac945757
commit
f1af230918
@ -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 {
|
||||
|
||||
|
@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user