Make WordPress Core


Ignore:
Timestamp:
02/23/2021 08:15:02 PM (4 years ago)
Author:
adamsilverstein
Message:

Twenty Twenty-One: Improve transparent PNG logo visible on focus.

This ensures a transparent logo remains visible while focused. Also cleans up dark mode CSS, consolidating styles and removing overrides that are no longer needed.

Follow up to [50154].

Props poena, sabernhardt, ryelle.
Fixes #52257.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/assets/sass/04-elements/links.scss

    r50154 r50423  
    2626
    2727    // Change text color when the body background is dark.
    28     .is-dark-theme &,
    29     .is-dark-theme & .meta-nav {
    30         color: var(--wp--style--color--link, var(--global--color-background));
     28    .is-dark-theme & {
     29        background: var(--global--color-black);
     30        color: var(--global--color-white);
     31        text-decoration: none;
     32
     33        .meta-nav {
     34            color: var(--wp--style--color--link, var(--global--color-white));
     35        }
    3136    }
    3237
     
    5459
    5560    &.custom-logo-link {
    56 
    57         &:focus {
    58             background: none;
    59         }
     61        background: none;
    6062    }
    6163
Note: See TracChangeset for help on using the changeset viewer.