Skip to content

Commit

Permalink
Merge pull request #1678 from hodgestar/feature/fix-eq-number-rendering
Browse files Browse the repository at this point in the history
Fix equation number rendering in documentation.
  • Loading branch information
hodgestar committed Oct 5, 2021
2 parents 412849e + 6657295 commit 5060a7d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 59 deletions.
4 changes: 4 additions & 0 deletions doc/conf.py
Expand Up @@ -227,6 +227,10 @@ def qutip_version():
# This is the file name suffix for HTML files (e.g. ".xhtml").
#html_file_suffix = None

html_css_files = [
'site.css',
]

# -- Options for HTMLHelp output ------------------------------------------

# Output file base name for HTML help builder.
Expand Down
73 changes: 14 additions & 59 deletions doc/static/site.css
@@ -1,64 +1,19 @@
@import url('https://fonts.googleapis.com/css?family=Source+Code+Pro');


.navbar-text {
color: #e8e8e8 !important;
}

a {
color: #599AD3;
text-decoration: none;
}

a:hover,
a:focus {
color: #8C0028;
text-decoration: underline;
}

a:focus {
outline: thin dotted #333;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}

code,
pre {
padding: 0 3px 2px;
font-family: "Source Code Pro", Monaco, Menlo, Consolas, "Courier New", monospace;
font-size: 12px;
color: #333333;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}

.alert {
border-width: 2px;
color: #09224F;
font-weight: bold;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}

.alert-success {
background-color: #B9E0B0;
border-color: #79C36A;
}


.alert-info {
background-color: #A6CBE9;
border-color: #599AD3;
/* Fix for: https://github.com/readthedocs/sphinx_rtd_theme/issues/301 */
/* Fix taken from: https://github.com/readthedocs/sphinx_rtd_theme/pull/383/ */
span.eqno {
margin-left: 5px;
float: right;
/* position the number above the equation so that :hover is activated */
z-index: 1;
position: relative;
}

.alert-warning {
background-color: #FBD1A7;
border-color: #F9A65A;
span.eqno .headerlink {
display: none;
visibility: hidden;
}

.alert-danger {
background-color: #F7A7AA;
border-color: #F1595F;
span.eqno:hover .headerlink {
display: inline-block;
visibility: visible;
}

0 comments on commit 5060a7d

Please sign in to comment.