Skip to content

Commit

Permalink
Add list block style for long items (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwoodnz authored Feb 2, 2023
1 parent 2b7ee51 commit cf6ca2b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,15 @@ function setup_block_styles() {
)
);

register_block_style(
'core/list',
array(
'name' => 'list-long-items',
'label' => __( 'Long items', 'wporg' ),
'style_handle' => STYLE_HANDLE,
)
);

register_block_style(
'core/navigation',
array(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -585,3 +585,7 @@
padding: var(--wp--preset--spacing--10) !important;
}
}

.is-style-list-long-items > li {
margin-bottom: var(--wp--preset--spacing--20);
}

0 comments on commit cf6ca2b

Please sign in to comment.