From c819764c81c8b14de9104f5488a88c949e715b25 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Tue, 4 Oct 2022 08:20:02 +0000 Subject: [PATCH] Twenty Sixteen: Improve Pullquote Block text color consistency between editor and front-end. This changeset ensures the text color selected for the text of the Pullquote Block is reflected on both front-end and on the editor. Props nithins53, nidhidhandhukiya, audrasjb, sabernhardt, poena. Fixes #56008. git-svn-id: https://develop.svn.wordpress.org/trunk@54381 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentysixteen/css/blocks.css | 7 +++++++ src/wp-content/themes/twentysixteen/css/editor-blocks.css | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/src/wp-content/themes/twentysixteen/css/blocks.css b/src/wp-content/themes/twentysixteen/css/blocks.css index 9030eb1fd4..d468054501 100644 --- a/src/wp-content/themes/twentysixteen/css/blocks.css +++ b/src/wp-content/themes/twentysixteen/css/blocks.css @@ -172,6 +172,13 @@ p.has-drop-cap:not(:focus)::first-letter { padding: 0 24px 0 0; } +.wp-block-pullquote.has-text-color blockquote, +.wp-block-pullquote.has-background blockquote, +.has-background .wp-block-pullquote blockquote, +.wp-block-pullquote.has-text-color cite { + color: inherit; +} + .wp-block-pullquote p { font-size: 19px; font-size: 1.1875rem; diff --git a/src/wp-content/themes/twentysixteen/css/editor-blocks.css b/src/wp-content/themes/twentysixteen/css/editor-blocks.css index 9e4c7760c3..85db767261 100644 --- a/src/wp-content/themes/twentysixteen/css/editor-blocks.css +++ b/src/wp-content/themes/twentysixteen/css/editor-blocks.css @@ -511,6 +511,13 @@ Description: Used to style blocks in the editor. text-transform: none; } +.wp-block-pullquote.has-text-color blockquote, +.wp-block-pullquote.has-background blockquote, +.has-background .wp-block-pullquote blockquote, +.wp-block-pullquote.has-text-color cite { + color: inherit; +} + .wp-block-pullquote .wp-block-pullquote__citation:before { content: "\2014\00a0"; }