Make WordPress Core

Ticket #56194: 56194.3.patch

File 56194.3.patch, 15.0 KB (added by sabernhardt, 3 years ago)
  • src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css

     
    121121
    122122.editor-post-title__block .editor-post-title__input,
    123123.editor-styles-wrapper .wp-block-post-title,
    124 .editor-styles-wrapper .wp-block h1,
    125 .editor-styles-wrapper .wp-block h2,
    126 .editor-styles-wrapper .wp-block h3,
    127 .editor-styles-wrapper .wp-block h4,
    128 .editor-styles-wrapper .wp-block h5,
    129 .editor-styles-wrapper .wp-block h6,
     124.editor-styles-wrapper h1,
     125.editor-styles-wrapper h2,
     126.editor-styles-wrapper h3,
     127.editor-styles-wrapper h4,
     128.editor-styles-wrapper h5,
     129.editor-styles-wrapper h6,
    130130.editor-styles-wrapper .has-drop-cap:not(:focus)::first-letter,
    131131.editor-styles-wrapper cite,
    132132.editor-styles-wrapper figcaption,
     
    138138
    139139        .editor-post-title__block .editor-post-title__input,
    140140        .editor-styles-wrapper .wp-block-post-title,
    141         .editor-styles-wrapper .wp-block h1,
    142         .editor-styles-wrapper .wp-block h2,
    143         .editor-styles-wrapper .wp-block h3,
    144         .editor-styles-wrapper .wp-block h4,
    145         .editor-styles-wrapper .wp-block h5,
    146         .editor-styles-wrapper .wp-block h6,
     141        .editor-styles-wrapper h1,
     142        .editor-styles-wrapper h2,
     143        .editor-styles-wrapper h3,
     144        .editor-styles-wrapper h4,
     145        .editor-styles-wrapper h5,
     146        .editor-styles-wrapper h6,
    147147        .editor-styles-wrapper .has-drop-cap:not(:focus)::first-letter,
    148148        .editor-styles-wrapper cite,
    149149        .editor-styles-wrapper figcaption,
     
    238238
    239239.editor-post-title__block .editor-post-title__input,
    240240.editor-styles-wrapper .wp-block-post-title,
    241 .editor-styles-wrapper .wp-block h1,
    242 .editor-styles-wrapper .wp-block h2,
    243 .editor-styles-wrapper .wp-block h3,
    244 .editor-styles-wrapper .wp-block h4,
    245 .editor-styles-wrapper .wp-block h5,
    246 .editor-styles-wrapper .wp-block h6 {
     241.editor-styles-wrapper h1,
     242.editor-styles-wrapper h2,
     243.editor-styles-wrapper h3,
     244.editor-styles-wrapper h4,
     245.editor-styles-wrapper h5,
     246.editor-styles-wrapper h6 {
    247247        font-feature-settings: "lnum";
    248248        font-variant-numeric: lining-nums;
    249249        font-weight: 700;
     
    255255
    256256.editor-post-title__block .editor-post-title__input,
    257257.editor-styles-wrapper .wp-block-post-title,
    258 .editor-styles-wrapper .wp-block h1 {
     258.editor-styles-wrapper h1,
     259.editor-styles-wrapper .heading-size-1 {
    259260        font-size: 36px;
    260261        font-weight: 800;
    261262        line-height: 1.138888889;
    262263}
    263264
    264 .editor-styles-wrapper .wp-block h2 {
     265.editor-styles-wrapper h2,
     266.editor-styles-wrapper .heading-size-2 {
    265267        font-size: 32px;
    266268}
    267269
    268 .editor-styles-wrapper .wp-block h3 {
     270.editor-styles-wrapper h3,
     271.editor-styles-wrapper .heading-size-3 {
    269272        font-size: 28px;
    270273}
    271274
    272 .editor-styles-wrapper .wp-block h4 {
     275.editor-styles-wrapper h4,
     276.editor-styles-wrapper .heading-size-4 {
    273277        font-size: 24px;
    274278}
    275279
    276 .editor-styles-wrapper .wp-block h5 {
     280.editor-styles-wrapper h5,
     281.editor-styles-wrapper .heading-size-5 {
    277282        font-size: 21px;
    278283}
    279284
    280 .editor-styles-wrapper .wp-block h6 {
     285.editor-styles-wrapper h6,
     286.editor-styles-wrapper .heading-size-6 {
    281287        font-size: 16px;
    282288        letter-spacing: 0.03125em;
    283289        text-transform: uppercase;
     
    12321238
    12331239        .editor-post-title__block .editor-post-title__input,
    12341240        .editor-styles-wrapper .wp-block-post-title,
    1235         .editor-styles-wrapper .wp-block h1 {
     1241        .editor-styles-wrapper h1,
     1242        .editor-styles-wrapper .heading-size-1 {
    12361243                font-size: 64px;
    12371244        }
    12381245
    1239         .editor-styles-wrapper .wp-block h2 {
     1246        .editor-styles-wrapper h2,
     1247        .editor-styles-wrapper .heading-size-2 {
    12401248                font-size: 48px;
    12411249        }
    12421250
    1243         .editor-styles-wrapper .wp-block h3 {
     1251        .editor-styles-wrapper h3,
     1252        .editor-styles-wrapper .heading-size-3 {
    12441253                font-size: 40px;
    12451254        }
    12461255
    1247         .editor-styles-wrapper .wp-block h4 {
     1256        .editor-styles-wrapper h4,
     1257        .editor-styles-wrapper .heading-size-4 {
    12481258                font-size: 32px;
    12491259        }
    12501260
    1251         .editor-styles-wrapper .wp-block h5 {
     1261        .editor-styles-wrapper h5,
     1262        .editor-styles-wrapper .heading-size-5 {
    12521263                font-size: 24px;
    12531264        }
    12541265
     
    14111422
    14121423        .editor-post-title__block .editor-post-title__input,
    14131424        .editor-styles-wrapper .wp-block-post-title,
    1414         .editor-styles-wrapper .wp-block h1 {
     1425        .editor-styles-wrapper h1,
     1426        .editor-styles-wrapper .heading-size-1 {
    14151427                font-size: 84px;
    14161428        }
    14171429
    1418         .editor-styles-wrapper .wp-block h6 {
     1430        .editor-styles-wrapper h6,
     1431        .editor-styles-wrapper .heading-size-6 {
    14191432                font-size: 18px;
    14201433        }
    14211434
  • src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css

     
    121121
    122122.editor-post-title__block .editor-post-title__input,
    123123.editor-styles-wrapper .wp-block-post-title,
    124 .editor-styles-wrapper .wp-block h1,
    125 .editor-styles-wrapper .wp-block h2,
    126 .editor-styles-wrapper .wp-block h3,
    127 .editor-styles-wrapper .wp-block h4,
    128 .editor-styles-wrapper .wp-block h5,
    129 .editor-styles-wrapper .wp-block h6,
     124.editor-styles-wrapper h1,
     125.editor-styles-wrapper h2,
     126.editor-styles-wrapper h3,
     127.editor-styles-wrapper h4,
     128.editor-styles-wrapper h5,
     129.editor-styles-wrapper h6,
    130130.editor-styles-wrapper .has-drop-cap:not(:focus)::first-letter,
    131131.editor-styles-wrapper cite,
    132132.editor-styles-wrapper figcaption,
     
    138138
    139139        .editor-post-title__block .editor-post-title__input,
    140140        .editor-styles-wrapper .wp-block-post-title,
    141         .editor-styles-wrapper .wp-block h1,
    142         .editor-styles-wrapper .wp-block h2,
    143         .editor-styles-wrapper .wp-block h3,
    144         .editor-styles-wrapper .wp-block h4,
    145         .editor-styles-wrapper .wp-block h5,
    146         .editor-styles-wrapper .wp-block h6,
     141        .editor-styles-wrapper h1,
     142        .editor-styles-wrapper h2,
     143        .editor-styles-wrapper h3,
     144        .editor-styles-wrapper h4,
     145        .editor-styles-wrapper h5,
     146        .editor-styles-wrapper h6,
    147147        .editor-styles-wrapper .has-drop-cap:not(:focus)::first-letter,
    148148        .editor-styles-wrapper cite,
    149149        .editor-styles-wrapper figcaption,
     
    238238
    239239.editor-post-title__block .editor-post-title__input,
    240240.editor-styles-wrapper .wp-block-post-title,
    241 .editor-styles-wrapper .wp-block h1,
    242 .editor-styles-wrapper .wp-block h2,
    243 .editor-styles-wrapper .wp-block h3,
    244 .editor-styles-wrapper .wp-block h4,
    245 .editor-styles-wrapper .wp-block h5,
    246 .editor-styles-wrapper .wp-block h6 {
     241.editor-styles-wrapper h1,
     242.editor-styles-wrapper h2,
     243.editor-styles-wrapper h3,
     244.editor-styles-wrapper h4,
     245.editor-styles-wrapper h5,
     246.editor-styles-wrapper h6 {
    247247        font-feature-settings: "lnum";
    248248        font-variant-numeric: lining-nums;
    249249        font-weight: 700;
     
    255255
    256256.editor-post-title__block .editor-post-title__input,
    257257.editor-styles-wrapper .wp-block-post-title,
    258 .editor-styles-wrapper .wp-block h1 {
     258.editor-styles-wrapper h1,
     259.editor-styles-wrapper .heading-size-1 {
    259260        font-size: 36px;
    260261        font-weight: 800;
    261262        line-height: 1.138888889;
    262263}
    263264
    264 .editor-styles-wrapper .wp-block h2 {
     265.editor-styles-wrapper h2,
     266.editor-styles-wrapper .heading-size-2 {
    265267        font-size: 32px;
    266268}
    267269
    268 .editor-styles-wrapper .wp-block h3 {
     270.editor-styles-wrapper h3,
     271.editor-styles-wrapper .heading-size-3 {
    269272        font-size: 28px;
    270273}
    271274
    272 .editor-styles-wrapper .wp-block h4 {
     275.editor-styles-wrapper h4,
     276.editor-styles-wrapper .heading-size-4 {
    273277        font-size: 24px;
    274278}
    275279
    276 .editor-styles-wrapper .wp-block h5 {
     280.editor-styles-wrapper h5,
     281.editor-styles-wrapper .heading-size-5 {
    277282        font-size: 21px;
    278283}
    279284
    280 .editor-styles-wrapper .wp-block h6 {
     285.editor-styles-wrapper h6,
     286.editor-styles-wrapper .heading-size-6 {
    281287        font-size: 16px;
    282288        letter-spacing: 0.03125em;
    283289        text-transform: uppercase;
     
    12321238
    12331239        .editor-post-title__block .editor-post-title__input,
    12341240        .editor-styles-wrapper .wp-block-post-title,
    1235         .editor-styles-wrapper .wp-block h1 {
     1241        .editor-styles-wrapper h1,
     1242        .editor-styles-wrapper .heading-size-1 {
    12361243                font-size: 64px;
    12371244        }
    12381245
    1239         .editor-styles-wrapper .wp-block h2 {
     1246        .editor-styles-wrapper h2,
     1247        .editor-styles-wrapper .heading-size-2 {
    12401248                font-size: 48px;
    12411249        }
    12421250
    1243         .editor-styles-wrapper .wp-block h3 {
     1251        .editor-styles-wrapper h3,
     1252        .editor-styles-wrapper .heading-size-3 {
    12441253                font-size: 40px;
    12451254        }
    12461255
    1247         .editor-styles-wrapper .wp-block h4 {
     1256        .editor-styles-wrapper h4,
     1257        .editor-styles-wrapper .heading-size-4 {
    12481258                font-size: 32px;
    12491259        }
    12501260
    1251         .editor-styles-wrapper .wp-block h5 {
     1261        .editor-styles-wrapper h5,
     1262        .editor-styles-wrapper .heading-size-5 {
    12521263                font-size: 24px;
    12531264        }
    12541265
     
    14111422
    14121423        .editor-post-title__block .editor-post-title__input,
    14131424        .editor-styles-wrapper .wp-block-post-title,
    1414         .editor-styles-wrapper .wp-block h1 {
     1425        .editor-styles-wrapper h1,
     1426        .editor-styles-wrapper .heading-size-1 {
    14151427                font-size: 84px;
    14161428        }
    14171429
    1418         .editor-styles-wrapper .wp-block h6 {
     1430        .editor-styles-wrapper h6,
     1431        .editor-styles-wrapper .heading-size-6 {
    14191432                font-size: 18px;
    14201433        }
    14211434
  • src/wp-content/themes/twentytwenty/assets/css/editor-style-classic-rtl.css

     
    215215        margin: 40px 0 25px;
    216216}
    217217
    218 body#tinymce.wp-editor.content h1 {
     218body#tinymce.wp-editor.content h1,
     219body#tinymce.wp-editor.content .heading-size-1 {
    219220        font-size: 84px;
    220221        font-weight: 800;
    221222        line-height: 1.138888889;
    222223}
    223224
    224 body#tinymce.wp-editor.content h2 {
     225body#tinymce.wp-editor.content h2,
     226body#tinymce.wp-editor.content .heading-size-2 {
    225227        font-size: 48px;
    226228}
    227229
    228 body#tinymce.wp-editor.content h3 {
     230body#tinymce.wp-editor.content h3,
     231body#tinymce.wp-editor.content .heading-size-3 {
    229232        font-size: 40px;
    230233}
    231234
    232 body#tinymce.wp-editor.content h4 {
     235body#tinymce.wp-editor.content h4,
     236body#tinymce.wp-editor.content .heading-size-4 {
    233237        font-size: 32px;
    234238}
    235239
    236 body#tinymce.wp-editor.content h5 {
     240body#tinymce.wp-editor.content h5,
     241body#tinymce.wp-editor.content .heading-size-5 {
    237242        font-size: 24px;
    238243}
    239244
    240 body#tinymce.wp-editor.content h6 {
     245body#tinymce.wp-editor.content h6,
     246body#tinymce.wp-editor.content .heading-size-6 {
    241247        font-size: 18px;
    242248        letter-spacing: 0.03125em;
    243249        text-transform: uppercase;
  • src/wp-content/themes/twentytwenty/assets/css/editor-style-classic.css

     
    215215        margin: 40px 0 25px;
    216216}
    217217
    218 body#tinymce.wp-editor.content h1 {
     218body#tinymce.wp-editor.content h1,
     219body#tinymce.wp-editor.content .heading-size-1 {
    219220        font-size: 84px;
    220221        font-weight: 800;
    221222        line-height: 1.138888889;
    222223}
    223224
    224 body#tinymce.wp-editor.content h2 {
     225body#tinymce.wp-editor.content h2,
     226body#tinymce.wp-editor.content .heading-size-2 {
    225227        font-size: 48px;
    226228}
    227229
    228 body#tinymce.wp-editor.content h3 {
     230body#tinymce.wp-editor.content h3,
     231body#tinymce.wp-editor.content .heading-size-3 {
    229232        font-size: 40px;
    230233}
    231234
    232 body#tinymce.wp-editor.content h4 {
     235body#tinymce.wp-editor.content h4,
     236body#tinymce.wp-editor.content .heading-size-4 {
    233237        font-size: 32px;
    234238}
    235239
    236 body#tinymce.wp-editor.content h5 {
     240body#tinymce.wp-editor.content h5,
     241body#tinymce.wp-editor.content .heading-size-5 {
    237242        font-size: 24px;
    238243}
    239244
    240 body#tinymce.wp-editor.content h6 {
     245body#tinymce.wp-editor.content h6,
     246body#tinymce.wp-editor.content .heading-size-6 {
    241247        font-size: 18px;
    242248        letter-spacing: 0.03125em;
    243249        text-transform: uppercase;
  • src/wp-content/themes/twentytwenty/classes/class-twentytwenty-non-latin-languages.php

     
    119119                                'twentytwenty_get_localized_font_family_elements',
    120120                                array(
    121121                                        'front-end'      => array( 'body', 'input', 'textarea', 'button', '.button', '.faux-button', '.wp-block-button__link', '.wp-block-file__button', '.has-drop-cap:not(:focus)::first-letter', '.entry-content .wp-block-archives', '.entry-content .wp-block-categories', '.entry-content .wp-block-cover-image', '.entry-content .wp-block-latest-comments', '.entry-content .wp-block-latest-posts', '.entry-content .wp-block-pullquote', '.entry-content .wp-block-quote.is-large', '.entry-content .wp-block-quote.is-style-large', '.entry-content .wp-block-archives *', '.entry-content .wp-block-categories *', '.entry-content .wp-block-latest-posts *', '.entry-content .wp-block-latest-comments *', '.entry-content p', '.entry-content ol', '.entry-content ul', '.entry-content dl', '.entry-content dt', '.entry-content cite', '.entry-content figcaption', '.entry-content .wp-caption-text', '.comment-content p', '.comment-content ol', '.comment-content ul', '.comment-content dl', '.comment-content dt', '.comment-content cite', '.comment-content figcaption', '.comment-content .wp-caption-text', '.widget_text p', '.widget_text ol', '.widget_text ul', '.widget_text dl', '.widget_text dt', '.widget-content .rssSummary', '.widget-content cite', '.widget-content figcaption', '.widget-content .wp-caption-text' ),
    122                                         'block-editor'   => array( '.editor-styles-wrapper > *', '.editor-styles-wrapper p', '.editor-styles-wrapper ol', '.editor-styles-wrapper ul', '.editor-styles-wrapper dl', '.editor-styles-wrapper dt', '.editor-post-title__block .editor-post-title__input', '.editor-styles-wrapper .wp-block-post-title', '.editor-styles-wrapper .wp-block h1', '.editor-styles-wrapper .wp-block h2', '.editor-styles-wrapper .wp-block h3', '.editor-styles-wrapper .wp-block h4', '.editor-styles-wrapper .wp-block h5', '.editor-styles-wrapper .wp-block h6', '.editor-styles-wrapper .has-drop-cap:not(:focus)::first-letter', '.editor-styles-wrapper cite', '.editor-styles-wrapper figcaption', '.editor-styles-wrapper .wp-caption-text' ),
     122                                        'block-editor'   => array( '.editor-styles-wrapper > *', '.editor-styles-wrapper p', '.editor-styles-wrapper ol', '.editor-styles-wrapper ul', '.editor-styles-wrapper dl', '.editor-styles-wrapper dt', '.editor-post-title__block .editor-post-title__input', '.editor-styles-wrapper .wp-block-post-title', '.editor-styles-wrapper h1', '.editor-styles-wrapper h2', '.editor-styles-wrapper h3', '.editor-styles-wrapper h4', '.editor-styles-wrapper h5', '.editor-styles-wrapper h6', '.editor-styles-wrapper .has-drop-cap:not(:focus)::first-letter', '.editor-styles-wrapper cite', '.editor-styles-wrapper figcaption', '.editor-styles-wrapper .wp-caption-text' ),
    123123                                        'classic-editor' => array( 'body#tinymce.wp-editor', 'body#tinymce.wp-editor p', 'body#tinymce.wp-editor ol', 'body#tinymce.wp-editor ul', 'body#tinymce.wp-editor dl', 'body#tinymce.wp-editor dt', 'body#tinymce.wp-editor figcaption', 'body#tinymce.wp-editor .wp-caption-text', 'body#tinymce.wp-editor .wp-caption-dd', 'body#tinymce.wp-editor cite', 'body#tinymce.wp-editor table' ),
    124124                                )
    125125                        );