diff --git a/inc/block-styles.php b/inc/block-styles.php index 7f0e79dd..8a489b96 100644 --- a/inc/block-styles.php +++ b/inc/block-styles.php @@ -27,6 +27,9 @@ $wave = esc_url( apply_filters( 'modul_r_wave_shape_uri', get_template_directory_uri() . '/img/demo/wave.svg' ) ); + /** + * Text / TItles Styles + */ register_block_style( 'core/post-title', array( @@ -49,6 +52,9 @@ ) ); + /** + * Layout Styles + */ register_block_style( 'core/media-text', array( @@ -73,14 +79,6 @@ ) ); - register_block_style( - 'core/group', - array( - 'name' => 'card', - 'label' => __( 'Card', 'modul-r' ), - ) - ); - register_block_style( 'core/cover', array( @@ -100,22 +98,28 @@ ); register_block_style( - 'core/group', + 'core/cover', array( - 'name' => 'items-overlap', - 'label' => __( 'Shifts the group by 120px upwards', 'modul-r' ), + 'name' => 'wave-clip', + 'label' => __( 'clip with wave shape', 'modul-r' ), + 'inline_style' => '.wp-block-post-featured-image.is-style-wave-clip { mask-image: url(' . $wave . '); -webkit-mask-image: url(' . $wave . '); }', ) ); + /** + * UI + */ register_block_style( - 'core/cover', + 'core/group', array( - 'name' => 'wave-clip', - 'label' => __( 'clip with wave shape', 'modul-r' ), - 'inline_style' => '.wp-block-post-featured-image.is-style-wave-clip { mask-image: url(' . $wave . '); -webkit-mask-image: url(' . $wave . '); }', + 'name' => 'card', + 'label' => __( 'Card', 'modul-r' ), ) ); + /** + * Modules + */ register_block_style( 'core/gallery', array( @@ -123,7 +127,6 @@ 'label' => __( 'Masonry layout', 'modul-r' ), ) ); - register_block_style( 'core/gallery', array( @@ -171,12 +174,4 @@ 'label' => __( 'Sticky', 'modul-r' ), ) ); - - register_block_style( - 'core/latest-posts', - array( - 'name' => 'cute-display', - 'label' => __( 'Cute display', 'modul-r' ), - ) - ); }