Make WordPress Core

Changeset 44198


Ignore:
Timestamp:
12/14/2018 09:39:47 PM (8 years ago)
Author:
laurelfulford
Message:

Twenty Fifteen: 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 #45428.

File:
1 edited

Legend:

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

    r43874 r44198  
    385385
    386386.wp-block-button .wp-block-button__link {
    387         background-color: #333;
    388387        border: 0;
    389388        border-radius: 0;
    390         color: #fff;
    391389        cursor: pointer;
    392390        font-family: "Noto Sans", sans-serif;
    … …  
    400398}
    401399
    402 .wp-block-button .wp-block-button__link:hover,
    403 .wp-block-button .wp-block-button__link:focus {
     400.wp-block-button__link {
     401        background-color: #333;
     402        color: #fff;
     403}
     404
     405.wp-block-button__link:hover,
     406.wp-block-button__link:focus {
    404407        background-color: #707070;
    405408        background-color: rgba(51, 51, 51, 0.7);
    406         outline: 0;
     409        color: #fff;
    407410}
    408411
Note: See TracChangeset for help on using the changeset viewer.