Skip to content

Commit 56febe8

Browse files
committed
Only adjust margins at top and bottom of figcaption
1 parent 11ff27d commit 56febe8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/pydata_sphinx_theme/assets/styles/content/_figures.scss

+4-3
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ figure {
1515
color: var(--pst-color-text-muted);
1616
margin-left: auto;
1717
margin-right: auto;
18+
margin-top: 0.3rem;
1819

19-
p {
20-
margin-top: 0.3rem;
21-
margin-bottom: 0rem;
20+
& > p:last-child {
21+
// Don't add extra margin to already existing figure bottom margin
22+
margin-bottom: 0;
2223
}
2324

2425
table.table {

0 commit comments

Comments
 (0)