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