Debian Codegraph @

src/pydata_sphinx_theme/assets/styles/content/_footnotes.scss

raw
1 // For consistency, add bracket around footnotes/citations which are
2 // cited more than once. E.g. [Newton](1,2) instead of Newton(1,2)
3 dt.label > span.brackets:not(:only-child)::before {
4 content: "[";
5 }
6
7 dt.label > span.brackets:not(:only-child)::after {
8 content: "]";
9 }
10
11 // Make footnote as a superscript
12 a.footnote-reference {
13 vertical-align: super;
14 font-size: small;
15 }
16
17 // Docutils 0.18 uses an `aside.footnote` container with different internal structure
18 aside.footnote {
19 margin-bottom: 0.5rem;
20
21 &:last-child {
22 margin-bottom: 1rem;
23 }
24
25 span.label,
26 span.backrefs {
27 font-weight: bold;
28 }
29
30 &:target {
31 background-color: var(--pst-color-target);
32 }
33 }