product-quantity--default.php
5 months ago
product-quantity-borderless.php
5 months ago
product-quantity-orbit.php
5 months ago
product-quantity-pebble.php
5 months ago
product-quantity-pebble.php
51 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Pebble style |
| 4 | */ |
| 5 | register_block_style( |
| 6 | 'surecart/product-quantity', |
| 7 | array( |
| 8 | 'name' => 'pebble', |
| 9 | 'label' => __( 'Pebble', 'surecart' ), |
| 10 | 'inline_style' => '.wp-block-surecart-product-quantity.is-style-pebble .wp-block-surecart-product-quantity-control { |
| 11 | min-width: 160px; |
| 12 | }', |
| 13 | 'style_data' => array( |
| 14 | 'layout' => array( |
| 15 | 'selfStretch' => 'fixed', |
| 16 | 'flexSize' => '150px', |
| 17 | ), |
| 18 | 'blocks' => array( |
| 19 | 'surecart/product-quantity-control' => array( |
| 20 | 'border' => array( |
| 21 | 'radius' => '999999px', |
| 22 | ), |
| 23 | 'dimensions' => array( |
| 24 | 'minHeight' => '50px', |
| 25 | ), |
| 26 | 'spacing' => array( |
| 27 | 'padding' => '0 10px', |
| 28 | 'blockGap' => '5px', |
| 29 | ), |
| 30 | ), |
| 31 | 'surecart/product-quantity-input-increase' => array( |
| 32 | 'color' => array( |
| 33 | 'background' => 'var(--sc-color-gray-100)', |
| 34 | ), |
| 35 | 'border' => array( |
| 36 | 'radius' => '999999px', |
| 37 | ), |
| 38 | ), |
| 39 | 'surecart/product-quantity-input-decrease' => array( |
| 40 | 'color' => array( |
| 41 | 'background' => 'var(--sc-color-gray-100)', |
| 42 | ), |
| 43 | 'border' => array( |
| 44 | 'radius' => '999999px', |
| 45 | ), |
| 46 | ), |
| 47 | ), |
| 48 | ), |
| 49 | ) |
| 50 | ); |
| 51 |