Skip to content
This repository was archived by the owner on Apr 18, 2018. It is now read-only.

Commit 4f0e8d3

Browse files
Merge pull request #12 from jahn/equation-numbers-right
TEMPORARY FIX: Move equation numbers to the right
2 parents f6bb025 + ad8e6e9 commit 4f0e8d3

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

doc/_static/css/custom.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/* Make equation numbers float to the right */
2+
.eqno {
3+
margin-left: 5px;
4+
float: right;
5+
}
6+
/* Hide the link... */
7+
.math .headerlink {
8+
display: none;
9+
visibility: hidden;
10+
}
11+
/* ...unless the equation is hovered */
12+
.math:hover .headerlink {
13+
display: inline-block;
14+
visibility: visible;
15+
/* Place link in margin and keep equation number aligned with boundary */
16+
margin-right: -0.7em;
17+
}

doc/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,5 +185,7 @@
185185
'Miscellaneous'),
186186
]
187187

188+
def setup(app):
189+
app.add_stylesheet('css/custom.css')
188190

189191

0 commit comments

Comments
 (0)