Compare commits

...

2 Commits

Author SHA1 Message Date
c5878bc6b1 style default button 2024-05-11 22:30:01 +05:00
067e4002b0 Add 'thin' button style 2024-05-11 22:27:56 +05:00
2 changed files with 23 additions and 0 deletions

View File

@ -8,3 +8,21 @@ function custom_stylesheet() {
}
add_action( 'wp_enqueue_scripts', 'custom_stylesheet' );
add_action( 'init', 'lex_scotland_block_styles');
function lex_scotland_block_styles() {
register_block_style( 'core/button', array(
'name' => 'thin',
'label' => __( 'Thin', 'lex-scotland' ),
'inline_style' => '
.wp-block-button.is-style-thin .wp-element-button {
padding: 8px 16px;
background: var(--wp--preset--color--light-green);
color: var(--wp--preset--color--contrast);
border-radius: 0;
font-size: var(--wp--preset--font-size--small);
}
'
) );
}

View File

@ -296,6 +296,11 @@
},
"core/button": {
"variations": {
"fill": {
"color": {
"background": "var(--wp--preset--color--main-purple)"
}
},
"outline": {
"color": {
"background": "#E8BFE2",