Skip to content

Commit 0882956

Browse files
committed
CSS: Fix math alignment for RTD theme
See readthedocs/sphinx_rtd_theme#686.
1 parent e33c023 commit 0882956

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/nbsphinx.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@
505505
text-align: left !important;
506506
}
507507
508-
/* override sphinx.ext.pngmath center alignment in output cells */
508+
/* override sphinx.ext.imgmath center alignment in output cells */
509509
div.nboutput div.math p {
510510
text-align: left;
511511
}
@@ -607,6 +607,11 @@
607607
.admonition > p:before {
608608
margin-right: 4px; /* make room for the exclamation icon */
609609
}
610+
611+
/* Fix math alignment, see https://github.com/rtfd/sphinx_rtd_theme/pull/686 */
612+
.math {
613+
text-align: unset;
614+
}
610615
"""
611616

612617
CSS_STRING_CLOUD = """

0 commit comments

Comments
 (0)