Make WordPress Core


Ignore:
Timestamp:
06/08/2021 04:49:21 PM (3 years ago)
Author:
ryelle
Message:

Twenty Nineteen: Fix pullquote styling in editor when block has alignment.

Props devnel, sabernhardt.
Fixes #53112.

File:
1 edited

Legend:

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

    r48837 r51096  
    479479}
    480480
     481.wp-block-pullquote[data-type="core/pullquote"],
    481482.wp-block[data-type="core/pullquote"],
    482483.wp-block[data-type="core/pullquote"][data-align="left"],
     
    506507    em {
    507508        font-style: normal;
     509    }
     510}
     511
     512.wp-block[data-align="left"] > .wp-block-pullquote,
     513.wp-block[data-align="right"] > .wp-block-pullquote {
     514    max-width: 50%;
     515    text-align: inherit;
     516
     517    &:not(.is-style-solid-color) {
     518        padding: 0;
     519    }
     520
     521    &.is-style-solid-color {
     522        padding: 1em;
    508523    }
    509524}
Note: See TracChangeset for help on using the changeset viewer.