mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
Fix alignment of equations in Sphinx docs
Co-authored-by: Sammo Gabay <sammolito@gmail.com>
This commit is contained in:
parent
04cc5b459a
commit
bfc26cfd1d
11
doc/sphinx/_static/custom.css
Normal file
11
doc/sphinx/_static/custom.css
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
div.math {
|
||||||
|
/* Fix equations to be centered instead of right aligned */
|
||||||
|
padding-right: unset;
|
||||||
|
flex-direction: unset;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
p + div.math {
|
||||||
|
/* Remove post-paragraph space ahead of equation to center vertically */
|
||||||
|
margin-top: -1.15em;
|
||||||
|
}
|
@ -222,6 +222,10 @@ html_logo = '_static/images/cantera-logo.png'
|
|||||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||||
html_static_path = ['_static']
|
html_static_path = ['_static']
|
||||||
|
|
||||||
|
html_css_files = [
|
||||||
|
'custom.css',
|
||||||
|
]
|
||||||
|
|
||||||
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
||||||
# using the given strftime format.
|
# using the given strftime format.
|
||||||
#html_last_updated_fmt = '%b %d, %Y'
|
#html_last_updated_fmt = '%b %d, %Y'
|
||||||
|
Loading…
Reference in New Issue
Block a user