From e7f2226bab97e9494b5f132098a3855564b8ff1b Mon Sep 17 00:00:00 2001 From: Bernhard Reiter Date: Tue, 25 Oct 2022 12:19:18 +0000 Subject: [PATCH] Editor: Correctly apply Button block styles for classic themes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In [54358], styling for Button blocks that had been removed from classic themes was reintroduced. However, it was added with a global scope, whereas editor styles are usually added with a `.editor-styles-wrapper` selector, which makes them more specific. This change modifies the way that classic theme styles are added so that they also get wrapped in an `.editor-styles-wrapper` selector to match specificity. Furthermore, adjust specificity for some Button block related styling in the editor for the Twenty Twelve and Twenty Twenty themes. Merges [https://github.com/WordPress/gutenberg/pull/44731 Gutenberg PR 44731] into trunk. Follow-up to [54358]. Props scruffian, cbravobernal, sabernhardt, audrasjb. See #56467. Built from https://develop.svn.wordpress.org/trunk@54687 git-svn-id: http://core.svn.wordpress.org/trunk@54239 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- css/editor-blocks.css | 1 + 1 file changed, 1 insertion(+) diff --git a/css/editor-blocks.css b/css/editor-blocks.css index d9efec32d..29eb1f7ed 100644 --- a/css/editor-blocks.css +++ b/css/editor-blocks.css @@ -369,6 +369,7 @@ p.has-drop-cap:not(:focus)::first-letter { background-image: -o-linear-gradient(top, #f4f4f4, #e6e6e6); background-image: linear-gradient(to bottom, #f4f4f4, #e6e6e6); background-repeat: repeat-x; + color: #7c7c7c; } /* Separator */