Make WordPress Core

Ticket #50120: 50120.2020-simple.patch

File 50120.2020-simple.patch, 1.5 KB (added by sabernhardt, 3 years ago)

adding :root .has-accent-color in custom Twenty Twenty palette (in addition to .has-accent-color)

  • src/wp-content/themes/twentytwenty/inc/custom-css.php

     
    122122                        // Colors.
    123123                        // Accent color.
    124124                        if ( $accent && $accent !== $accent_default ) {
    125                                 twentytwenty_generate_css( '.has-accent-color, .editor-styles-wrapper .editor-block-list__layout a, .editor-styles-wrapper .has-drop-cap:not(:focus)::first-letter, .editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link, .editor-styles-wrapper .wp-block-pullquote::before, .editor-styles-wrapper .wp-block-file .wp-block-file__textlink', 'color', $accent );
     125                                twentytwenty_generate_css( '.has-accent-color, :root .has-accent-color, .editor-styles-wrapper .editor-block-list__layout a, .editor-styles-wrapper .has-drop-cap:not(:focus)::first-letter, .editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link, .editor-styles-wrapper .wp-block-pullquote::before, .editor-styles-wrapper .wp-block-file .wp-block-file__textlink', 'color', $accent );
    126126                                twentytwenty_generate_css( '.editor-styles-wrapper .wp-block-quote', 'border-color', $accent, '' );
    127127                                twentytwenty_generate_css( '.has-accent-background-color, .editor-styles-wrapper .wp-block-button__link, .editor-styles-wrapper .wp-block-file__button', 'background-color', $accent );
    128128                        }