Skip to content

Commit 24646a4

Browse files
committed
Twenty Nineteen: Adds center alignment to Archives and Categories List blocks.
When selecting center alignment for Archives or Categories List blocks the alignment was not matching. It is worth noting this fixes for these blocks but another ticket could be made to fix for titles. Props pranitdugad, sabernhardt. Fixes #47044. git-svn-id: https://develop.svn.wordpress.org/trunk@58627 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 67aa1d9 commit 24646a4

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

src/wp-content/themes/twentynineteen/style-editor.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,6 +1366,11 @@ ul.wp-block-archives li ul,
13661366
margin-bottom: -0.75rem;
13671367
}
13681368

1369+
.wp-block[data-align="center"] > .wp-block-archives,
1370+
.wp-block[data-align="center"] > .wp-block-categories {
1371+
text-align: center;
1372+
}
1373+
13691374
/** === Latest Posts === */
13701375
.wp-block-latest-posts .wp-block-latest-posts__post-date {
13711376
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;

src/wp-content/themes/twentynineteen/style-editor.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,11 @@ ul.wp-block-archives,
756756

757757
}
758758

759+
.wp-block[data-align="center"] > .wp-block-archives,
760+
.wp-block[data-align="center"] > .wp-block-categories {
761+
text-align: center;
762+
}
763+
759764
/** === Latest Posts === */
760765
.wp-block-latest-posts {
761766

0 commit comments

Comments
 (0)