Update footnotes for new Sphinx
This commit is contained in:
parent
6098e2fcc7
commit
23c6749de2
@ -12,13 +12,10 @@ sup {
|
|||||||
|
|
||||||
/* Format multiple footnote backlinks */
|
/* Format multiple footnote backlinks */
|
||||||
|
|
||||||
span.fn-backref {
|
.footnote-list .footnote .backrefs {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
dl.footnote span.brackets:not(:last-child)::before {
|
.fn-bracket {
|
||||||
content: '[';
|
display: none;
|
||||||
}
|
|
||||||
dl.footnote span.brackets:not(:last-child)::after {
|
|
||||||
content: ']';
|
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@ function initFootnotes() {
|
|||||||
var elPreview = document.getElementById('footnote-preview');
|
var elPreview = document.getElementById('footnote-preview');
|
||||||
|
|
||||||
function mouseoverFootnote(evt) {
|
function mouseoverFootnote(evt) {
|
||||||
var fnText = document.querySelector(evt.target.getAttribute('href')).nextElementSibling.children[0].innerHTML;
|
var fnText = document.querySelector(evt.target.getAttribute('href') + ' p').innerHTML;
|
||||||
elPreview.innerHTML = fnText;
|
elPreview.innerHTML = fnText;
|
||||||
elPreview.style.display = 'block';
|
elPreview.style.display = 'block';
|
||||||
elPreview.style.top = (evt.target.getBoundingClientRect().top + 16) + 'px';
|
elPreview.style.top = (evt.target.getBoundingClientRect().top + 16) + 'px';
|
||||||
|
@ -57,11 +57,11 @@ a, a.reference, a.footnote-reference {
|
|||||||
|
|
||||||
/* Footnotes */
|
/* Footnotes */
|
||||||
|
|
||||||
dl.footnote dt {
|
.footnote-list .footnote {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
span.fn-backref {
|
.footnote-list .footnote .backrefs {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
@ -71,7 +71,7 @@ span.fn-backref {
|
|||||||
top: -3px;
|
top: -3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
dl.footnote dt:hover span.fn-backref {
|
.footnote-list .footnote:hover .backrefs {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user