aboutsummaryrefslogtreecommitdiff
path: root/docs/source
diff options
context:
space:
mode:
Diffstat (limited to 'docs/source')
-rw-r--r--docs/source/_static/theme_overrides.css44
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;
+}