Skip to content

Commit

Permalink
cleanup block styles
Browse files Browse the repository at this point in the history
  • Loading branch information
erikyo committed Nov 4, 2023
1 parent 6aabe76 commit 2df8940
Showing 1 changed file with 19 additions and 24 deletions.
43 changes: 19 additions & 24 deletions inc/block-styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -49,6 +52,9 @@
)
);

/**
* Layout Styles
*/
register_block_style(
'core/media-text',
array(
Expand All @@ -73,14 +79,6 @@
)
);

register_block_style(
'core/group',
array(
'name' => 'card',
'label' => __( 'Card', 'modul-r' ),
)
);

register_block_style(
'core/cover',
array(
Expand All @@ -100,30 +98,35 @@
);

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(
'name' => 'masonry-gallery',
'label' => __( 'Masonry layout', 'modul-r' ),
)
);

register_block_style(
'core/gallery',
array(
Expand Down Expand Up @@ -171,12 +174,4 @@
'label' => __( 'Sticky', 'modul-r' ),
)
);

register_block_style(
'core/latest-posts',
array(
'name' => 'cute-display',
'label' => __( 'Cute display', 'modul-r' ),
)
);
}

0 comments on commit 2df8940

Please sign in to comment.