Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

Commit

Permalink
Put figure captions closer to figures
Browse files Browse the repository at this point in the history
  • Loading branch information
seanh committed Jan 7, 2022
1 parent dcac814 commit 22bd3df
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions _sass/_figures.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,11 @@ figure figcaption,
figure figcaption p {
color: var(--muted-color);
}

/* If a figure has a caption then make the vertical space below the caption
be larger than the vertical space above the caption. This is to put the
caption visibly closer to the figure that it belongs to than to whatever
follows the figure. */
figcaption {
padding-bottom: var(--body-line-height);
}

0 comments on commit 22bd3df

Please sign in to comment.