WordPress.org

Make WordPress Core

Ticket #49610: 49610-2.patch

File 49610-2.patch, 1.9 KB (added by poena, 16 months ago)

Add theme support for editor-styles

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

     
    3030        font-size: inherit;
    3131}
    3232
    33 .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover):not(:focus),
    34 .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover):not(:focus) {
    35         color: inherit;
    36 }
    37 
    38 
    3933/* Fonts ------------------------------------- */
    4034
    4135/*
  • src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css

     
    3030        font-size: inherit;
    3131}
    3232
    33 .block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover):not(:focus),
    34 .block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover):not(:focus) {
    35         color: inherit;
    36 }
    37 
    38 
    3933/* Fonts ------------------------------------- */
    4034
    4135/*
  • src/wp-content/themes/twentytwenty/functions.php

     
    555555                )
    556556        );
    557557
     558        add_theme_support( 'editor-styles' );
     559
    558560        // If we have a dark background color then add support for dark editor style.
    559561        // We can determine if the background color is dark by checking if the text-color is white.
    560562        if ( '#ffffff' === strtolower( twentytwenty_get_color_for_area( 'content', 'text' ) ) ) {