Twenty Fourteen: Fix button block custom colors on front end.

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 #45429.


Built from https://develop.svn.wordpress.org/branches/5.0@44197


git-svn-id: http://core.svn.wordpress.org/branches/5.0@44027 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
laurelfulford 2018-12-15 11:10:42 +00:00
parent 08befd9763
commit 80b631315f
2 changed files with 11 additions and 7 deletions

View File

@ -221,10 +221,8 @@ p.has-drop-cap:not(:focus)::first-letter {
/* Buttons */ /* Buttons */
.wp-block-button .wp-block-button__link { .wp-block-button .wp-block-button__link {
background-color: #24890d;
border: 0; border: 0;
border-radius: 2px; border-radius: 2px;
color: #fff;
font-size: 12px; font-size: 12px;
font-weight: 700; font-weight: 700;
line-height: 15px; line-height: 15px;
@ -233,12 +231,18 @@ p.has-drop-cap:not(:focus)::first-letter {
vertical-align: bottom; vertical-align: bottom;
} }
.wp-block-button .wp-block-button__link:hover, .wp-block-button__link {
.wp-block-button .wp-block-button__link:focus { background-color: #24890d;
background-color: #41a62a; color: #fff;
} }
.wp-block-button .wp-block-button__link:active { .wp-block-button__link:hover,
.wp-block-button__link:focus {
background-color: #41a62a;
color: #fff;
}
.wp-block-button__link:active {
background-color: #55d737; background-color: #55d737;
} }

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.0.2-alpha-44196'; $wp_version = '5.0.2-alpha-44197';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.