Make WordPress Core


Ignore:
Timestamp:
02/26/2024 04:25:28 PM (15 months ago)
Author:
SergeyBiryukov
Message:

Twenty Nineteen: Further adjust CSS selectors used to change the primary color.

This aims to make the file, button, quote, pullquote, and search block selectors work on multiple WordPress versions.

Follow-up to [57637].

Props poena, mukesh27.
Fixes #59922.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/style-editor.scss

    r57599 r57712  
    420420    }
    421421}
     422
     423.wp-block-search {
     424    .wp-block-search__button {
     425        @include font-family( $font__heading );
     426        font-size: $font__size-sm;
     427        font-weight: bold;
     428        border-radius: 5px;
     429   
     430        &:not(.has-text-color) {
     431            color: #fff;
     432        }
     433
     434        &:not(.has-background-color) {
     435            background: $color__background-button;
     436        }
     437    }
     438}
     439
    422440
    423441/** === Blockquote === */
Note: See TracChangeset for help on using the changeset viewer.