Use columns block for the parallelogram style

This avoids the complex mutliply-nested blocks and makes the block style less reliant on a custom class. On mid-sized screens, we switch to plain horizontally-overlapping rectangles, and on small screens we stack the columns, and vertically-overlap.
This commit is contained in:
Kelly Dwan 2019-10-02 16:35:49 -04:00
parent f8558fe9c2
commit fe68610602
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D
6 changed files with 81 additions and 71 deletions

View file

@ -62,7 +62,7 @@ function setup() {
if ( function_exists( 'register_block_style' ) ) {
register_block_style(
'core/group',
'core/columns',
array(
'name' => 'wporg-parallelogram',
'label' => __( 'Parallelogram', 'wporg-5ftf' ),