Make WordPress Core


Ignore:
Timestamp:
01/18/2019 06:37:26 PM (7 years ago)
Author:
laurelfulford
Message:

Twenty Nineteen: Use a less aggressive approach for non-latin font fallbacks.

The theme's original approach to its non-latin font fallbacks required !important, which overrode fonts that shouldn't have been changed, like the icon fonts used for editor buttons.

Props kjellr, mako09, allancole.
Fixes #45731.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/sass/blocks/_blocks.scss

    r44371 r44650  
    161161            border: none;
    162162            font-size: $font__size-sm;
    163             font-family: $font__heading;
     163            @include font-family( $font__heading );
    164164            line-height: $font__line-height-heading;
    165165            box-sizing: border-box;
     
    231231        li {
    232232            color: $color__text-light;
    233             font-family: $font__heading;
     233            @include font-family( $font__heading );
    234234            font-size: calc(#{$font__size_base} * #{$font__size-ratio});
    235235            font-weight: bold;
     
    300300    //! Verse
    301301    .wp-block-verse {
    302         font-family: $font__body;
     302        @include font-family( $font__body );
    303303        font-size: $font__size_base;
    304304        line-height: 1.8;
     
    308308    .has-drop-cap {
    309309        &:not(:focus):first-letter {
    310             font-family: $font__heading;
     310            @include font-family( $font__heading );
    311311            font-size: $font__size-xxxl;
    312312            line-height: 1;
     
    349349        cite {
    350350            display: inline-block;
    351             font-family: $font__heading;
     351            @include font-family( $font__heading );
    352352            line-height: 1.6;
    353353            text-transform: none;
     
    560560        .wp-block-cover-text,
    561561        h2 {
    562             font-family: $font__heading;
     562            @include font-family( $font__heading );
    563563            font-size: $font__size-lg;
    564564            font-weight: bold;
     
    625625    .wp-block-gallery .blocks-gallery-item figcaption {
    626626        font-size: $font__size-xs;
    627         font-family: $font__heading;
     627        @include font-family( $font__heading );
    628628        line-height: $font__line-height-pre;
    629629        margin: 0;
     
    691691    //! File
    692692    .wp-block-file {
    693         font-family: $font__heading;
     693        @include font-family( $font__heading );
    694694
    695695        .wp-block-file__button {
     
    700700            background: $color__background-button;
    701701            font-size: $font__size-base;
    702             font-family: $font__heading;
     702            @include font-family( $font__heading );
    703703            line-height: $font__line-height-heading;
    704704            text-decoration: none;
     
    782782
    783783        .wp-block-latest-comments__comment-meta {
    784             font-family: $font__heading;
     784            @include font-family( $font__heading );
    785785            font-weight: bold;
    786786
Note: See TracChangeset for help on using the changeset viewer.