From 683e459cb404022200f77f4892609c6f84160af2 Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Wed, 24 Feb 2021 00:15:31 +1100 Subject: [PATCH] Show multiple footnote backrefs on hover --- _static/custom_html.css | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/_static/custom_html.css b/_static/custom_html.css index fcb1f3e..ee1ed5a 100644 --- a/_static/custom_html.css +++ b/_static/custom_html.css @@ -55,6 +55,26 @@ a, a.reference, a.footnote-reference { border-bottom: none; } +/* Footnotes */ + +dl.footnote dt { + position: relative; +} + +span.fn-backref { + position: absolute; + background-color: white; + z-index: 999; + border: 1px solid #999; + border-radius: 4px; + padding: 2px; + top: -3px; +} + +dl.footnote dt:hover span.fn-backref { + display: inline; +} + /* Sidebar */ div.sphinxsidebarwrapper p.caption {