Skip to content
Permalink
Browse files

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.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44197 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
laurelfulford committed Dec 14, 2018
1 parent 6d78174 commit 41a055120f22a4b4a3c33dd50afc09e2d9dc1e0d
Showing with 9 additions and 5 deletions.
  1. +9 −5 src/wp-content/themes/twentyfourteen/css/blocks.css
@@ -221,10 +221,8 @@ p.has-drop-cap:not(:focus)::first-letter {
/* Buttons */

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

.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus {
.wp-block-button__link {
background-color: #24890d;
color: #fff;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus {
background-color: #41a62a;
color: #fff;
}

.wp-block-button .wp-block-button__link:active {
.wp-block-button__link:active {
background-color: #55d737;
}

0 comments on commit 41a0551

Please sign in to comment.
You can’t perform that action at this time.