add arrow link style

This commit is contained in:
Aadil Ayub 2024-06-05 18:05:47 +05:00
parent e1beab8694
commit 55fdf97225

View File

@ -30,6 +30,19 @@ function lex_scotland_block_styles() {
'
) );
register_block_style( 'core/paragraph', array(
'name' => 'arrow-link',
'label' => __( 'Arrow link', 'lex-scotland' ),
'inline_style' => '
p.is-style-arrow-link a:after {
display: inline-block;
content: "🡭";
padding-inline-start: 0.25rem;
vertical-align: middle;
}
'
) );
register_block_style( 'core/paragraph', array(
'name' => 'constrained',
'label' => __( 'Constrained', 'lex-scotland' ),