diff --git a/doc/_static/css/custom.css b/doc/_static/css/custom.css new file mode 100644 index 000000000..10abb4572 --- /dev/null +++ b/doc/_static/css/custom.css @@ -0,0 +1,17 @@ +/* Make equation numbers float to the right */ +.eqno { + margin-left: 5px; + float: right; +} +/* Hide the link... */ +.math .headerlink { + display: none; + visibility: hidden; +} +/* ...unless the equation is hovered */ +.math:hover .headerlink { + display: inline-block; + visibility: visible; + /* Place link in margin and keep equation number aligned with boundary */ + margin-right: -0.7em; +} diff --git a/doc/conf.py b/doc/conf.py index 1209d7d3f..a77ed8709 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -185,5 +185,7 @@ 'Miscellaneous'), ] +def setup(app): + app.add_stylesheet('css/custom.css')