add arrow link style
This commit is contained in:
parent
e1beab8694
commit
55fdf97225
@ -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(
|
register_block_style( 'core/paragraph', array(
|
||||||
'name' => 'constrained',
|
'name' => 'constrained',
|
||||||
'label' => __( 'Constrained', 'lex-scotland' ),
|
'label' => __( 'Constrained', 'lex-scotland' ),
|
||||||
|
Loading…
Reference in New Issue
Block a user