Skip to content
Permalink
Browse files

Twenty Eleven: 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 #45433.



git-svn-id: https://develop.svn.wordpress.org/branches/5.0@44191 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
laurelfulford committed Dec 14, 2018
1 parent 4950598 commit d6e02d50f378446f712ca6e04843bff0ca34d9e6
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/wp-content/themes/twentyeleven/blocks.css
@@ -232,22 +232,25 @@ 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;
padding: 5px 22px;
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;
}

0 comments on commit d6e02d5

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