diff --git a/src/pydata_sphinx_theme/assets/styles/content/_figures.scss b/src/pydata_sphinx_theme/assets/styles/content/_figures.scss index 8b950d9b0..05a3fbe00 100644 --- a/src/pydata_sphinx_theme/assets/styles/content/_figures.scss +++ b/src/pydata_sphinx_theme/assets/styles/content/_figures.scss @@ -15,6 +15,12 @@ figure { color: var(--pst-color-text-muted); margin-left: auto; margin-right: auto; + margin-top: 0.3rem; + + & > p:last-child { + // Don't add extra margin to already existing figure bottom margin + margin-bottom: 0; + } table.table { width: fit-content;