WordPress.org

Make WordPress Core

Changeset 44197


Ignore:
Timestamp:
12/14/2018 09:30:27 PM (9 months ago)
Author:
laurelfulford
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/src/wp-content/themes/twentyfourteen/css/blocks.css

    r43873 r44197  
    222222
    223223.wp-block-button .wp-block-button__link {
    224     background-color: #24890d;
    225224    border: 0;
    226225    border-radius: 2px;
    227     color: #fff;
    228226    font-size: 12px;
    229227    font-weight: 700;
     
    234232}
    235233
    236 .wp-block-button .wp-block-button__link:hover,
    237 .wp-block-button .wp-block-button__link:focus {
     234.wp-block-button__link {
     235    background-color: #24890d;
     236    color: #fff;
     237}
     238
     239.wp-block-button__link:hover,
     240.wp-block-button__link:focus {
    238241    background-color: #41a62a;
    239 }
    240 
    241 .wp-block-button .wp-block-button__link:active {
     242    color: #fff;
     243}
     244
     245.wp-block-button__link:active {
    242246    background-color: #55d737;
    243247}
Note: See TracChangeset for help on using the changeset viewer.