define gradient paragraph style
This commit is contained in:
parent
72af3dd022
commit
86c19ac3c5
@ -46,5 +46,19 @@ function jett_block_styles() {
|
||||
}'
|
||||
)
|
||||
);
|
||||
register_block_style(
|
||||
'core/paragraph',
|
||||
array(
|
||||
'name' => 'gradient',
|
||||
'label' => __( 'Gradient', 'jett' ),
|
||||
'inline_style' => '
|
||||
p.is-style-gradient {
|
||||
background: var(--wp--preset--gradient--violet-to-green);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
line-height: 1.1;
|
||||
}'
|
||||
)
|
||||
);
|
||||
}
|
||||
add_action( 'init', 'jett_block_styles' );
|
||||
|
Loading…
Reference in New Issue
Block a user