Make WordPress Core


Ignore:
Timestamp:
01/26/2021 06:58:08 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Twenty Twenty-One: Correct colors for the Menu button.

As per design, the background should be transparent and the text should be dark grey, not vice versa.

Follow-up to [49987].

Props poena.
Fixes #52374. See #51927.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/assets/sass/06-components/navigation.scss

    r49914 r50026  
    1111        padding-bottom: calc(0.25 * var(--global--spacing-vertical));
    1212
     13        @include media(mobile-only) {
     14                display: flex;
     15        }
     16
     17        // Override specificity from default button styles.
    1318        #primary-mobile-menu {
     19                display: flex;
    1420                margin-left: auto;
    1521                padding: calc(var(--button--padding-vertical) - (0.25 * var(--global--spacing-unit))) calc(0.5 * var(--button--padding-horizontal));
    16         }
    17 
    18         @include media(mobile-only) {
    19                 display: flex;
    20         }
    21 
    22         // Override specificty from default button styles.
    23         .button.button {
    24                 display: flex;
    2522                font-size: var(--primary-nav--font-size-button);
    2623                font-weight: var(--primary-nav--font-weight-button);
Note: See TracChangeset for help on using the changeset viewer.