Make WordPress Core

Ticket #63860: 63860.1.patch

File 63860.1.patch, 3.9 KB (added by sabernhardt, 9 months ago)

adds text alignment selectors to existing rulesets to correct the margins

  • src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css

     
    856856        max-width: 100%;
    857857}
    858858
    859 .editor-styles-wrapper .wp-block[data-type="core/pullquote"][data-align="right"] .block-editor-block-list__block-edit .wp-block-pullquote::before {
     859.editor-styles-wrapper .wp-block[data-type="core/pullquote"][data-align="right"] .block-editor-block-list__block-edit .wp-block-pullquote::before,
     860.editor-styles-wrapper .wp-block-pullquote.has-text-align-right::before {
    860861        margin-left: 0;
    861862}
    862863
    863 .editor-styles-wrapper .wp-block[data-type="core/pullquote"][data-align="left"] .block-editor-block-list__block-edit .wp-block-pullquote::before {
     864.editor-styles-wrapper .wp-block[data-type="core/pullquote"][data-align="left"] .block-editor-block-list__block-edit .wp-block-pullquote::before,
     865.editor-styles-wrapper .wp-block-pullquote.has-text-align-left::before {
    864866        margin-right: 0;
    865867}
    866868
  • src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css

     
    860860        max-width: 100%;
    861861}
    862862
    863 .editor-styles-wrapper .wp-block[data-type="core/pullquote"][data-align="right"] .block-editor-block-list__block-edit .wp-block-pullquote::before {
     863.editor-styles-wrapper .wp-block[data-type="core/pullquote"][data-align="right"] .block-editor-block-list__block-edit .wp-block-pullquote::before,
     864.editor-styles-wrapper .wp-block-pullquote.has-text-align-right::before {
    864865        margin-right: 0;
    865866}
    866867
    867 .editor-styles-wrapper .wp-block[data-type="core/pullquote"][data-align="left"] .block-editor-block-list__block-edit .wp-block-pullquote::before {
     868.editor-styles-wrapper .wp-block[data-type="core/pullquote"][data-align="left"] .block-editor-block-list__block-edit .wp-block-pullquote::before,
     869.editor-styles-wrapper .wp-block-pullquote.has-text-align-left::before {
    868870        margin-left: 0;
    869871}
    870872
  • src/wp-content/themes/twentytwenty/style-rtl.css

     
    32363236        font-size: 6.2rem;
    32373237        font-weight: 500;
    32383238        line-height: 1.2;
    3239         margin: 0 auto 1.5rem auto;
     3239        margin: 0 auto 1.5rem;
    32403240        text-align: center;
    32413241        height: 4.4rem;
    32423242        width: 4.4rem;
     
    32923292        text-align: left;
    32933293}
    32943294
    3295 .wp-block-pullquote.alignleft::before {
     3295.wp-block-pullquote.alignleft::before,
     3296.wp-block-pullquote.has-text-align-left::before {
    32963297        margin-right: 0;
    32973298}
    32983299
    3299 .wp-block-pullquote.alignright::before {
     3300.wp-block-pullquote.alignright::before,
     3301.wp-block-pullquote.has-text-align-right::before {
    33003302        margin-left: 0;
    33013303}
    33023304
  • src/wp-content/themes/twentytwenty/style.css

     
    32563256        font-size: 6.2rem;
    32573257        font-weight: 500;
    32583258        line-height: 1.2;
    3259         margin: 0 auto 1.5rem auto;
     3259        margin: 0 auto 1.5rem;
    32603260        text-align: center;
    32613261        height: 4.4rem;
    32623262        width: 4.4rem;
     
    33123312        text-align: right;
    33133313}
    33143314
    3315 .wp-block-pullquote.alignleft::before {
     3315.wp-block-pullquote.alignleft::before,
     3316.wp-block-pullquote.has-text-align-left::before {
    33163317        margin-left: 0;
    33173318}
    33183319
    3319 .wp-block-pullquote.alignright::before {
     3320.wp-block-pullquote.alignright::before,
     3321.wp-block-pullquote.has-text-align-right::before {
    33203322        margin-right: 0;
    33213323}
    33223324