mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-05 02:15:45 +03:00
Use columns block for the parallelogram style (#16)
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. Also, remove the parallelogram styles from the editor display. The skew and positioning don't work well in the editor context.
This commit is contained in:
parent
f8558fe9c2
commit
e20a834cb0
8 changed files with 160 additions and 108 deletions
|
@ -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' ),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue