Make WordPress Core


Ignore:
Timestamp:
09/14/2022 10:46:51 AM (20 months ago)
Author:
audrasjb
Message:

Twenty Twenty: Ensure headings styles are consistent between editor and front-end.

This changeset removes .wp-block container from headings CSS selectors to restore consistency between editor and front-end styles. It also removes .wp-block from headings selectors in the 'block-editor' array of twentytwenty_get_localized_font_family_elements().

Props kajalgohel, kmadhak, poena, multidots1896, tahmidulkarim, audrasjb.
Fixes #56194.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwenty/assets/css/editor-style-classic-rtl.css

    r52661 r54154  
    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;
     
    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;
Note: See TracChangeset for help on using the changeset viewer.