Skip to content

Commit

Permalink
Fix image alignment in Sphinx 4
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg committed Jul 5, 2021
1 parent a3ae99c commit 364daf9
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/furo/assets/styles/content/_images.sass
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ img
height: auto

article
.figure
figure, .figure
border-radius: 0.2rem

padding: 0.5rem
margin: 0
:last-child
margin-bottom: 0

Expand All @@ -24,12 +24,9 @@ article
clear: right
margin: 0 1rem 1rem

.align-default,
.align-center
display: block
text-align: center
margin-left: auto
margin-right: auto

.figure.align-default,
.legend .align-default
display: block
@extend .align-center

0 comments on commit 364daf9

Please sign in to comment.