Block Stile nur im Editor laden

PHP
add_action('enqueue_block_editor_assets', function() {
    wp_add_inline_style('wp-edit-blocks', '
        /* block stil */
        .is-style-sr-only-heading {
            position: relative;
            width: auto;
            height: auto;
            overflow: visible;
            clip: auto;
            white-space: normal;
            color: orange !important;
        }
        
         /* anderer block stil */
        .is-style-mein-anderer {
            outline: 2px dashed blue;
        }

        /* noch einer */
        .wp-block-paragraph.is-style-xyz {
            background: yellow;
        }
    ');
});