From 15c34f5490f0bad3ca7e1469e7520a6120be3492 Mon Sep 17 00:00:00 2001 From: Tammie Lister Date: Tue, 23 Jul 2024 21:50:23 +0000 Subject: [PATCH] Twenty Twenty: Fixes Quote block border not reflecting alignment. 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 --- src/wp-content/themes/twentytwenty/style-rtl.css | 2 ++ src/wp-content/themes/twentytwenty/style.css | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/wp-content/themes/twentytwenty/style-rtl.css b/src/wp-content/themes/twentytwenty/style-rtl.css index 4f4c86e76d0db..2fc1a9bfbc7e2 100644 --- a/src/wp-content/themes/twentytwenty/style-rtl.css +++ b/src/wp-content/themes/twentytwenty/style-rtl.css @@ -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; diff --git a/src/wp-content/themes/twentytwenty/style.css b/src/wp-content/themes/twentytwenty/style.css index babe5a090ac7c..1a802509a4785 100644 --- a/src/wp-content/themes/twentytwenty/style.css +++ b/src/wp-content/themes/twentytwenty/style.css @@ -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*/