This commit is contained in:
parent
979106e8eb
commit
4172bba4cc
2 changed files with 7 additions and 4 deletions
|
|
@ -84,9 +84,11 @@ body {
|
||||||
opacity: var(--opacity-light);
|
opacity: var(--opacity-light);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.footnote::before {
|
||||||
|
content: " [";
|
||||||
|
}
|
||||||
.footnote::after {
|
.footnote::after {
|
||||||
content: "+";
|
content: "]";
|
||||||
margin-left: calc(var(--unit--horizontal) / 6);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ================= COLORS ================= */
|
/* ================= COLORS ================= */
|
||||||
|
|
|
||||||
|
|
@ -84,11 +84,12 @@ function fixFootNotes() {
|
||||||
|
|
||||||
footnotes.forEach((footnote) => {
|
footnotes.forEach((footnote) => {
|
||||||
const href = footnote.href;
|
const href = footnote.href;
|
||||||
|
|
||||||
footnote.classList.add("footnote");
|
footnote.classList.add("footnote");
|
||||||
|
|
||||||
if (href.includes("sym")) {
|
if (href.includes("sym")) {
|
||||||
footnote.id = footnote.hash.replace("sym", "anc").replace("#", "");
|
footnote.id = footnote.hash.replace("sym", "anc").replace("#", "");
|
||||||
}
|
} else if (href.includes("anc")) {
|
||||||
if (href.includes("anc")) {
|
|
||||||
footnote.id = footnote.hash.replace("anc", "sym").replace("#", "");
|
footnote.id = footnote.hash.replace("anc", "sym").replace("#", "");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue