Skip to content

Commit

Permalink
Twenty Twenty: Fixes Quote block border not reflecting alignment.
Browse files Browse the repository at this point in the history
This resolves the border not also aligning with the quote block. When this theme was built the editor used style attributes for text alignment. This patch updates existing rules for center and right aligned quote blocks.

Props viralsampat, poena, sabernhardt.
Fixes #61132.


git-svn-id: https://develop.svn.wordpress.org/trunk@58796 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
karmatosed committed Jul 23, 2024
1 parent d713251 commit 15c34f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wp-content/themes/twentytwenty/style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -3393,11 +3393,13 @@ figure.wp-block-table.is-style-stripes {
color: inherit;
}

.wp-block-quote.has-text-align-center,
.wp-block-quote[style="text-align:center"] {
border-width: 0;
padding: 0;
}

.wp-block-quote.has-text-align-right,
.wp-block-quote[style="text-align:right"] {
border-width: 0 0.2rem 0 0;
padding: 0 2rem 0 0;
Expand Down
2 changes: 2 additions & 0 deletions src/wp-content/themes/twentytwenty/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3413,11 +3413,13 @@ figure.wp-block-table.is-style-stripes {
color: inherit;
}

.wp-block-quote.has-text-align-center,
.wp-block-quote[style="text-align:center"] {
border-width: 0;
padding: 0;
}

.wp-block-quote.has-text-align-right,
.wp-block-quote[style="text-align:right"] {

/*rtl:begin:ignore*/
Expand Down

0 comments on commit 15c34f5

Please sign in to comment.