Skip to content

Commit 085b7b0

Browse files
committed
twentysixteen: Center text in image captions
It seems to me that this would be a better default choice. Ideally, we should be able to change it via the UI, but as far as I know, that's not possible at the moment. One workaround is to use a centered paragraph via the code editor, which feels like a hack. Related: https://core.trac.wordpress.org/ticket/65111
1 parent c9bdbe0 commit 085b7b0

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

src/wp-content/themes/twentysixteen/css/blocks.css

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,7 @@ Description: Used to style blocks.
2525
font-style: italic;
2626
line-height: 1.6153846154;
2727
padding-top: 0.5384615385em;
28-
text-align: left;
29-
}
30-
31-
.rtl [class^="wp-block-"] figcaption {
32-
text-align: right;
28+
text-align: center;
3329
}
3430

3531
/*--------------------------------------------------------------

src/wp-content/themes/twentysixteen/css/editor-blocks.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ figure[class*="wp-block-"] > figcaption {
271271
font-style: italic;
272272
line-height: 1.6153846154;
273273
padding-top: 0.5384615385em;
274-
text-align: start;
274+
text-align: center;
275275
}
276276

277277
/*--------------------------------------------------------------

0 commit comments

Comments
 (0)