From cf6ca2b838e7e5b5554ba59933566766652e9e80 Mon Sep 17 00:00:00 2001 From: Adam Wood Date: Fri, 3 Feb 2023 09:36:19 +1300 Subject: [PATCH] Add list block style for long items (#72) --- .../themes/wporg-parent-2021/inc/block-styles.php | 9 +++++++++ .../themes/wporg-parent-2021/sass/block-styles.scss | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/source/wp-content/themes/wporg-parent-2021/inc/block-styles.php b/source/wp-content/themes/wporg-parent-2021/inc/block-styles.php index 1c81c8e3..e78751aa 100644 --- a/source/wp-content/themes/wporg-parent-2021/inc/block-styles.php +++ b/source/wp-content/themes/wporg-parent-2021/inc/block-styles.php @@ -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( diff --git a/source/wp-content/themes/wporg-parent-2021/sass/block-styles.scss b/source/wp-content/themes/wporg-parent-2021/sass/block-styles.scss index d6ef2a80..68527234 100644 --- a/source/wp-content/themes/wporg-parent-2021/sass/block-styles.scss +++ b/source/wp-content/themes/wporg-parent-2021/sass/block-styles.scss @@ -585,3 +585,7 @@ padding: var(--wp--preset--spacing--10) !important; } } + +.is-style-list-long-items > li { + margin-bottom: var(--wp--preset--spacing--20); +}