Skip to content

Commit

Permalink
Add custom CSS to get RTD permalink symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed Dec 19, 2017
1 parent 1bada2b commit 09176aa
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions _static/css/math.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* Hack to get the same permalink symbol as the RTD theme */
.eqno .headerlink {
display: none;
visibility: hidden;
font-size: 14px;
}
.eqno .headerlink:after {
visibility: visible;
content: "\f0c1";
font-family: FontAwesome;
display: inline-block;
margin-left: -.9em;
}
.eqno:hover .headerlink {
display: inline-block;
visibility: hidden !important;
}
1 change: 1 addition & 0 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
def setup(app):
"""Include custom theme files to sphinx HTML header"""
app.add_stylesheet('css/abbr.css')
app.add_stylesheet('css/math.css')

html_theme = "sphinx_rtd_theme"
html_static_path = ['_static']
Expand Down

0 comments on commit 09176aa

Please sign in to comment.