Skip to content

Commit 1e1064f

Browse files
committed
fix missing cssvar
1 parent cab34c7 commit 1e1064f

File tree

4 files changed

+66
-0
lines changed

4 files changed

+66
-0
lines changed

src/styles/block-design-system-blocks.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@
118118

119119
.stk--container-small .stk-container:not(.stk--no-padding) {
120120
#{ '--stk-container-padding' }: cssvar(container-padding-small);
121+
#{ '--stk-container-padding-hover' }: cssvar(container-padding-small);
122+
#{ '--stk-container-padding-parent-hover' }: cssvar(container-padding-small);
121123
}
122124
.stk-container:not(.stk--no-background) {
123125
background-color: cssvar(container-background-color);

src/styles/block-design-system.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,34 @@
3636
"parent-hover": true
3737
}
3838
},
39+
"container-padding-large": {
40+
"desktop": {
41+
"top": 64,
42+
"right": 80,
43+
"bottom": 64,
44+
"left": 80
45+
},
46+
"mobile": {
47+
"top": 32,
48+
"right": 24,
49+
"bottom": 32,
50+
"left": 24
51+
}
52+
},
53+
"container-padding-small": {
54+
"desktop": {
55+
"top": 16,
56+
"right": 32,
57+
"bottom": 16,
58+
"left": 32
59+
},
60+
"mobile": {
61+
"top": 8,
62+
"right": 24,
63+
"bottom": 8,
64+
"left": 24
65+
}
66+
},
3967
"container-border-style": {
4068
"desktop": ""
4169
},

src/styles/block-design-system.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,34 @@ public static function get_block_design_system() {
4343
"left" => 24
4444
),
4545
),
46+
"container-padding-large" => array(
47+
"desktop" => array(
48+
"top" => 64,
49+
"right" => 80,
50+
"bottom" => 64,
51+
"left" => 80
52+
),
53+
"mobile" => array(
54+
"top" => 32,
55+
"right" => 24,
56+
"bottom" => 32,
57+
"left" => 24
58+
)
59+
),
60+
"container-padding-small" => array(
61+
"desktop" => array(
62+
"top" => 16,
63+
"right" => 32,
64+
"bottom" => 16,
65+
"left" => 32
66+
),
67+
"mobile" => array(
68+
"top" => 8,
69+
"right" => 24,
70+
"bottom" => 8,
71+
"left" => 24
72+
)
73+
),
4674
"container-border-style" => array(
4775
"desktop" => ""
4876
),

src/styles/block-design-system.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ $block-design-system: (
3333
),
3434
container-padding-hover: cssvar(container-padding),
3535
container-padding-parent-hover: cssvar(container-padding),
36+
container-padding-large: (
37+
desktop: 64px 80px,
38+
mobile: 32px 24px,
39+
),
40+
container-padding-small: (
41+
desktop: 16px 32px,
42+
mobile: 8px 24px,
43+
),
3644
container-border-style: none,
3745
container-border-width: 1px,
3846
container-border-width-hover: cssvar(container-border-width),

0 commit comments

Comments
 (0)