Skip to content

Commit

Permalink
Centre figures.
Browse files Browse the repository at this point in the history
This might be a cosmetic choice, but (horizontally) centered figures
seem to flow better.
  • Loading branch information
jacobbramley committed Dec 15, 2023
1 parent d26e3c5 commit ee07b82
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion theme/html/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,19 @@ body {

.sidenote_ref {
cursor: pointer;
}
}

figure {
display: block;
}

figure img {
margin: 0px auto;
display: block;
}

figure img + figcaption {
margin: 0px auto;
display: block;
text-align: center;
}

0 comments on commit ee07b82

Please sign in to comment.