From b59c43e146b9cf040e6e1f000b3ee520a9eecfd7 Mon Sep 17 00:00:00 2001 From: Kristian Evers Date: Thu, 7 Dec 2017 17:31:25 +0100 Subject: Override RTD css and make sure that equation numbers are right-aligned --- docs/source/_static/theme_overrides.css | 44 +++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) (limited to 'docs') diff --git a/docs/source/_static/theme_overrides.css b/docs/source/_static/theme_overrides.css index 63ee6cc7..b82d2881 100644 --- a/docs/source/_static/theme_overrides.css +++ b/docs/source/_static/theme_overrides.css @@ -11,3 +11,47 @@ overflow: visible !important; } } + +/* Align equation numbers to the right of the equation, not above */ +div.math { + position: relative; + padding-right: 2.5em; +} +.eqno { + height: 100%; + position: absolute; + right: 0; + padding-left: 5px; + padding-bottom: 5px; +} +.eqno:before { + /* Force vertical alignment of number */ + display: inline-block; + height: 100%; + vertical-align: middle; + content: ""; +} +.eqno .headerlink { + display: none; + visibility: hidden; + font-size: 14px; + padding-left: .3em; +} +.eqno:hover .headerlink { + display: inline-block; + visibility: hidden; + margin-right: -1.05em; +} +.eqno .headerlink:after { + visibility: visible; + content: "\f0c1"; + font-family: FontAwesome; + display: inline-block; + margin-left: -.9em; +} +/* Make responsive */ +.MathJax_Display { + max-width: 100%; + overflow-x: auto; + overflow-y: hidden; +} -- cgit v1.2.3