From ea57bf06eac3939eaa2f7a1c52be678d0f0c5b3f Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Mon, 13 Feb 2023 15:18:19 +0000 Subject: [PATCH] Twenty Twenty: Properly reflect text color changes in Quote and Pullquote block. This changeset ensures that text color for citation are inherited when the user specifies color for the Pullquote or Quote block, or if one of those blocks is inside a block with a background. Props nithins53, kajalgohel, kmadhak, sabernhardt, devtanbir, james-roberts, sapayth, rafinkhan, robinwpdeveloper, poena. Fixes #55990. git-svn-id: https://develop.svn.wordpress.org/trunk@55317 602fd350-edb4-49c9-b593-d223f7449a82 --- .../assets/css/editor-style-block-rtl.css | 12 ++++++++++++ .../twentytwenty/assets/css/editor-style-block.css | 12 ++++++++++++ src/wp-content/themes/twentytwenty/style-rtl.css | 12 ++++++++++++ src/wp-content/themes/twentytwenty/style.css | 12 ++++++++++++ 4 files changed, 48 insertions(+) diff --git a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css index 2c3192b00f..d31394f2dd 100644 --- a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css +++ b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css @@ -683,6 +683,12 @@ hr.wp-block-separator.is-style-dots::before { font-style: normal; } +.editor-styles-wrapper .wp-block-quote.has-text-color cite, +.editor-styles-wrapper .wp-block-quote.has-background cite, +.editor-styles-wrapper .has-background .wp-block-quote cite { + color: inherit; +} + .editor-styles-wrapper .wp-block-quote p { color: inherit; font-weight: 400; @@ -883,6 +889,12 @@ hr.wp-block-separator.is-style-dots::before { text-transform: none; } +.editor-styles-wrapper .wp-block-pullquote.has-text-color cite, +.editor-styles-wrapper .wp-block-pullquote.has-background cite, +.editor-styles-wrapper .has-background .wp-block-pullquote cite { + color: inherit; +} + /* STYLE: SOLID COLOR */ .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color { diff --git a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css index 18e8328107..08fee73794 100644 --- a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css +++ b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css @@ -687,6 +687,12 @@ hr.wp-block-separator.is-style-dots::before { font-style: normal; } +.editor-styles-wrapper .wp-block-quote.has-text-color cite, +.editor-styles-wrapper .wp-block-quote.has-background cite, +.editor-styles-wrapper .has-background .wp-block-quote cite { + color: inherit; +} + .editor-styles-wrapper .wp-block-quote p { color: inherit; font-weight: 400; @@ -887,6 +893,12 @@ hr.wp-block-separator.is-style-dots::before { text-transform: none; } +.editor-styles-wrapper .wp-block-pullquote.has-text-color cite, +.editor-styles-wrapper .wp-block-pullquote.has-background cite, +.editor-styles-wrapper .has-background .wp-block-pullquote cite { + color: inherit; +} + /* STYLE: SOLID COLOR */ .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color { diff --git a/src/wp-content/themes/twentytwenty/style-rtl.css b/src/wp-content/themes/twentytwenty/style-rtl.css index f64549e516..6752900c65 100644 --- a/src/wp-content/themes/twentytwenty/style-rtl.css +++ b/src/wp-content/themes/twentytwenty/style-rtl.css @@ -3241,6 +3241,12 @@ figure.wp-block-gallery.alignfull { margin-top: 1.2rem; } +.wp-block-pullquote.has-text-color cite, +.wp-block-pullquote.has-background cite, +.has-background .wp-block-pullquote cite { + color: inherit; +} + .wp-block-pullquote.alignleft p, .wp-block-pullquote.alignright p { font-size: 2.8rem; @@ -3359,6 +3365,12 @@ figure.wp-block-table.is-style-stripes { text-align: inherit; } +.wp-block-quote.has-text-color cite, +.wp-block-quote.has-background cite, +.has-background .wp-block-quote cite { + color: inherit; +} + .wp-block-quote[style="text-align:center"] { border-width: 0; padding: 0; diff --git a/src/wp-content/themes/twentytwenty/style.css b/src/wp-content/themes/twentytwenty/style.css index c2ac1eac06..84d5a040d4 100644 --- a/src/wp-content/themes/twentytwenty/style.css +++ b/src/wp-content/themes/twentytwenty/style.css @@ -3261,6 +3261,12 @@ figure.wp-block-gallery.alignfull { margin-top: 1.2rem; } +.wp-block-pullquote.has-text-color cite, +.wp-block-pullquote.has-background cite, +.has-background .wp-block-pullquote cite { + color: inherit; +} + .wp-block-pullquote.alignleft p, .wp-block-pullquote.alignright p { font-size: 2.8rem; @@ -3379,6 +3385,12 @@ figure.wp-block-table.is-style-stripes { text-align: inherit; } +.wp-block-quote.has-text-color cite, +.wp-block-quote.has-background cite, +.has-background .wp-block-quote cite { + color: inherit; +} + .wp-block-quote[style="text-align:center"] { border-width: 0; padding: 0;