diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2017-12-07 17:31:25 +0100 |
|---|---|---|
| committer | Kristian Evers <kristianevers@gmail.com> | 2017-12-07 17:31:25 +0100 |
| commit | b59c43e146b9cf040e6e1f000b3ee520a9eecfd7 (patch) | |
| tree | 35fbd918bc7afc4d92c4107f265ea4ec89267436 /docs/source/_static | |
| parent | f8d8315fd87a2ff9d210c229985bac8330962a53 (diff) | |
| download | PROJ-b59c43e146b9cf040e6e1f000b3ee520a9eecfd7.tar.gz PROJ-b59c43e146b9cf040e6e1f000b3ee520a9eecfd7.zip | |
Override RTD css and make sure that equation numbers are right-aligned
Diffstat (limited to 'docs/source/_static')
| -rw-r--r-- | docs/source/_static/theme_overrides.css | 44 |
1 files changed, 44 insertions, 0 deletions
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; +} |
