prevent max-width being overridden by wordpress css for constrained style

This commit is contained in:
Aadil Ayub 2024-05-13 18:58:30 +05:00
parent d5c6c356d8
commit 4d166259b2

View File

@ -35,7 +35,7 @@ function lex_scotland_block_styles() {
'label' => __( 'Constrained', 'lex-scotland' ), 'label' => __( 'Constrained', 'lex-scotland' ),
'inline_style' => ' 'inline_style' => '
p.is-style-constrained { p.is-style-constrained {
max-width: 50ch; max-width: 50ch !important;
} }
' '
) ); ) );
@ -45,7 +45,7 @@ function lex_scotland_block_styles() {
'label' => __( 'Constrained', 'lex-scotland' ), 'label' => __( 'Constrained', 'lex-scotland' ),
'inline_style' => ' 'inline_style' => '
li.is-style-constrained { li.is-style-constrained {
max-width: 50ch; max-width: 50ch !important;
} }
' '
) ); ) );