Make WordPress Core


Ignore:
Timestamp:
06/13/2024 08:53:39 PM (17 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/_style.scss

    r49726 r58410  
    11.wp-block-quote {
    22    border-left: none;
     3    font-family: var(--quote--font-family);
     4    font-size: var(--quote--font-size);
     5    font-style: var(--quote--font-style);
     6    font-weight: var(--quote--font-weight);
     7    line-height: var(--quote--line-height);
     8
     9    p {
     10        font-family: inherit;
     11        font-size: inherit;
     12        font-style: inherit;
     13        font-weight: inherit;
     14        line-height: inherit;
     15        letter-spacing: inherit;
     16    }
    317
    418    &:before {
    519        content: "\201C";
    6         font-size: var(--quote--font-size);
    7         line-height: var(--quote--line-height);
    820        left: 8px;
    921    }
     
    1224    cite,
    1325    footer {
     26        font-family: inherit;
     27        font-style: inherit;
     28        font-weight: inherit;
     29        line-height: inherit;
     30        letter-spacing: inherit;
    1431
    1532        .has-background &,
     
    1936            color: currentColor;
    2037        }
     38    }
     39
     40    &:where(:not([style*="font-style"])) .wp-block-quote__citation,
     41    &:where(:not([style*="font-style"])) cite,
     42    &:where(:not([style*="font-style"])) footer {
     43        font-style: var(--quote--font-style-cite);
     44    }
     45
     46    // The cite has a lighter font-weight than the rest of the quote.
     47    &:where(:not([style*="font-weight"])) .wp-block-quote__citation,
     48    &:where(:not([style*="font-weight"])) cite,
     49    &:where(:not([style*="font-weight"])) footer {
     50        font-weight: normal;
    2151    }
    2252
     
    3767        p:before {
    3868            content: "\201D";
    39             font-size: var(--quote--font-size);
    40             font-weight: normal;
    41             line-height: var(--quote--line-height);
    4269            margin-right: 5px;
    4370        }
     
    5279    }
    5380
     81    // The large style was removed in WordPress 6.0, the CSS is kept for backwards compatibility.
    5482    &.is-large,
    5583    &.is-style-large {
Note: See TracChangeset for help on using the changeset viewer.