PluginProbe ʕ •ᴥ•ʔ
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More / 3.5.0
Superb Addons: Blocks, Patterns, Pre-built Pages, Sliders, Popups, Free Forms, Animations & More v3.5.0
4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 4.0.2 4.0.1 4.0.0 trunk 1.0.0 2.0.0 2.0.1 2.0.2 2.0.3 3.0 3.0.1 3.0.2 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.2 3.1.3 3.2.0 3.2.1 3.2.2 3.2.4 3.2.5 3.2.7 3.2.8 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.4.5 3.4.6 3.5.0 3.5.1 3.5.2 3.5.3 3.5.4 3.5.6 3.5.7 3.5.8 3.5.9 3.6.0 3.6.1 3.6.2 3.7.0 3.7.1
superb-blocks / src / gutenberg / class-gutenberg-block-styles.php
superb-blocks / src / gutenberg Last commit date
block-api 1 year ago templates 1 year ago class-gutenberg-block-styles.php 1 year ago class-gutenberg-controller.php 1 year ago class-gutenberg-enhancements-controller.php 1 year ago
class-gutenberg-block-styles.php
30 lines
1 <?php
2
3 namespace SuperbAddons\Gutenberg\Controllers;
4
5 defined('ABSPATH') || exit();
6
7 class GutenbergBlockStyles
8 {
9 public static function Initialize()
10 {
11 add_action('init', [__CLASS__, 'RegisterBlockStyles']);
12 }
13
14 public static function RegisterBlockStyles()
15 {
16 if (!function_exists('register_block_style')) {
17 return;
18 }
19
20 register_block_style(
21 'core/group',
22 [
23 'name' => 'superbaddons-card',
24 'label' => __('Card', 'superb-blocks'),
25 'inline_style' => '.wp-block-group.is-style-superbaddons-card{background-color:var(--wp--preset--color--contrast-light);border-color:var(--wp--preset--color--mono-3);border-radius:10px;border-style:solid;border-width:1px;box-shadow:0 1px 2px 0 rgba(0,0,0,.05);color:var(--wp--preset--color--contrast-dark);padding:var(--wp--preset--spacing--superbspacing-small)}'
26 ]
27 );
28 }
29 }
30