From e536ce5ed6ba9334d815aba5b19261888e0e7436 Mon Sep 17 00:00:00 2001 From: Aadil Ayub Date: Mon, 13 May 2024 16:39:22 +0500 Subject: [PATCH] add constrained style for list items --- functions.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/functions.php b/functions.php index aaf7a53..e09f569 100644 --- a/functions.php +++ b/functions.php @@ -39,4 +39,14 @@ function lex_scotland_block_styles() { } ' ) ); + + register_block_style( 'core/list-item', array( + 'name' => 'constrained', + 'label' => __( 'Constrained', 'lex-scotland' ), + 'inline_style' => ' + li.is-style-constrained { + max-width: 50ch; + } + ' + ) ); } \ No newline at end of file