Skip to content

Commit

Permalink
Merge pull request #5706 from WordPress/fix/image-centering-in-themes…
Browse files Browse the repository at this point in the history
…-also

Add centering style also to the theme style output
  • Loading branch information
jasmussen authored Apr 4, 2018
2 parents ea9416b + af8a14c commit f00a6e2
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions blocks/library/image/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
.wp-block-image figcaption {
margin-top: 0.5em;
color: $dark-gray-300;
text-align: center;
font-size: $default-font-size;
.wp-block-image {
figcaption {
margin-top: 0.5em;
color: $dark-gray-300;
text-align: center;
font-size: $default-font-size;
}

&.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
text-align: center;
}
}

0 comments on commit f00a6e2

Please sign in to comment.