From d2b62a76ea07092fdfd71e6f68771a1fa116607f Mon Sep 17 00:00:00 2001 From: laurelfulford Date: Sat, 15 Dec 2018 11:06:08 +0000 Subject: [PATCH] Twenty Eleven: Fix button block custom colors on front end. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Simplify some of the button block’s CSS selectors in the theme, to make sure the default colors don’t override the custom colors on the front end. Fixes #45433. Built from https://develop.svn.wordpress.org/branches/5.0@44191 git-svn-id: http://core.svn.wordpress.org/branches/5.0@44021 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyeleven/blocks.css | 9 ++++++--- wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/wp-content/themes/twentyeleven/blocks.css b/wp-content/themes/twentyeleven/blocks.css index c3b2089d9c..a0071b0709 100644 --- a/wp-content/themes/twentyeleven/blocks.css +++ b/wp-content/themes/twentyeleven/blocks.css @@ -232,14 +232,12 @@ p.has-drop-cap:not(:focus)::first-letter { /* Buttons */ .wp-block-button .wp-block-button__link { - background: #222; border: none; -moz-border-radius: 3px; border-radius: 3px; -webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.3); -moz-box-shadow: 0px 1px 2px rgba(0,0,0,0.3); box-shadow: 0px 1px 2px rgba(0,0,0,0.3); - color: #eee; cursor: pointer; font-size: 15px; margin: 20px 0; @@ -247,7 +245,12 @@ p.has-drop-cap:not(:focus)::first-letter { text-shadow: 0 -1px 0 rgba(0,0,0,0.3); } -.wp-block-button .wp-block-button__link:active { +.wp-block-button__link { + background: #222; + color: #eee; +} + +.wp-block-button__link:active { background: #1982d1; color: #bfddf3; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 9330d41f83..82b06442bd 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0.2-alpha-44190'; +$wp_version = '5.0.2-alpha-44191'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.