Fix alignment of equations in Sphinx docs

Co-authored-by: Sammo Gabay <sammolito@gmail.com>
This commit is contained in:
Ray Speth 2023-08-07 20:40:32 -04:00 committed by Ray Speth
parent 04cc5b459a
commit bfc26cfd1d
2 changed files with 15 additions and 0 deletions

View 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;
}

View File

@ -222,6 +222,10 @@ html_logo = '_static/images/cantera-logo.png'
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_css_files = [
'custom.css',
]
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
#html_last_updated_fmt = '%b %d, %Y'