add constrained style for list items

This commit is contained in:
Aadil Ayub 2024-05-13 16:39:22 +05:00
parent 45d9eaaddb
commit e536ce5ed6

View File

@ -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;
}
'
) );
}