Make WordPress Core


Ignore:
Timestamp:
06/13/2024 08:53:39 PM (11 months ago)
Author:
SergeyBiryukov
Message:

Twenty Twenty-One: Fix typography settings for the Quote block.

Follow-up to [49216], [49478], [49574], [49633], [49800].

Props poena, jyolsna, deepakvijayan, audrasjb, whaze, ironprogrammer, suascat_wp, sannevndrmeulen, zunaid321, oglekler, sabernhardt, mukesh27, ugyensupport, devmuhib, priyanshii5, nicolefurlan, hellofromTonya, huzaifaalmesbah, shailu25, vivekawsm, imranhasanraaz, karmatosed.
Fixes #55991.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/assets/sass/05-blocks/quote/_editor.scss

    r56567 r58410  
    44    margin: var(--global--spacing-vertical) auto var(--global--spacing-vertical) var(--global--spacing-horizontal);
    55    padding-left: 1em;
     6    font-family: var(--quote--font-family);
     7    font-size: var(--quote--font-size);
     8    font-style: var(--quote--font-style);
     9    font-weight: var(--quote--font-weight);
     10    line-height: var(--quote--line-height);
    611
    712    p {
    8         font-family: var(--quote--font-family);
    9         font-size: var(--quote--font-size);
    10         font-style: var(--quote--font-style);
    11         font-weight: var(--quote--font-weight);
    12         line-height: var(--quote--line-height);
     13        font-family: inherit;
     14        font-size: inherit;
     15        font-style: inherit;
     16        font-weight: inherit;
     17        line-height: inherit;
     18        letter-spacing: inherit;
    1319    }
    1420
     
    1925    &:before {
    2026        content: "\201C";
    21         font-size: var(--quote--font-size);
    22         line-height: var(--quote--line-height);
    2327        left: 8px;
    2428    }
     
    2630    .wp-block-quote__citation {
    2731        color: currentColor;
    28         font-size: var(--global--font-size-xs);
    29         font-style: var(--quote--font-style-cite);
     32        font-family: inherit;
     33        font-style: inherit;
     34        font-weight: inherit;
     35        line-height: inherit;
     36        letter-spacing: inherit;
    3037
    3138        .has-background &,
     
    3542            color: currentColor;
    3643        }
     44    }
     45
     46    &:where(:not([style*="font-style"])) .wp-block-quote__citation {
     47        font-style: var(--quote--font-style-cite);
     48    }
     49
     50    // The cite has a lighter font-weight than the rest of the quote.
     51    &:where(:not([style*="font-weight"])) .wp-block-quote__citation {
     52        font-weight: normal;
    3753    }
    3854
     
    5066        p:before {
    5167            content: "\201D";
    52             font-size: var(--quote--font-size);
    53             font-weight: normal;
    54             line-height: var(--quote--line-height);
    5568            margin-right: 5px;
    5669        }
     
    6578    }
    6679
     80    // The large style was removed in WordPress 6.0, the CSS is kept for backwards compatibility.
    6781    &.is-large,
    6882    &.is-style-large {
Note: See TracChangeset for help on using the changeset viewer.