add arrow list style
This commit is contained in:
parent
e4f04a3ee2
commit
7cadef94a6
@ -84,5 +84,22 @@ function jett_block_styles() {
|
||||
}'
|
||||
)
|
||||
);
|
||||
register_block_style( 'core/list', array(
|
||||
'name' => 'arrow',
|
||||
'label' => __( 'Arrow', 'lex-scotland' ),
|
||||
'inline_style' => '
|
||||
ul.is-style-arrow {
|
||||
list-style: none;
|
||||
}
|
||||
ul.is-style-arrow div {
|
||||
display: inline;
|
||||
}
|
||||
ul.is-style-arrow li::before {
|
||||
content: "→";
|
||||
margin-right: 0.5em;
|
||||
font-weight: bold;
|
||||
}
|
||||
'
|
||||
) );
|
||||
}
|
||||
add_action( 'init', 'jett_block_styles' );
|
||||
|
Loading…
Reference in New Issue
Block a user