Skip to content

Commit 4759205

Browse files
committed
Merge branch 'feat/global-block-layout' into feat/global-color-schemes
2 parents bafd731 + 1e1064f commit 4759205

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
@@ -39,6 +39,34 @@
3939
"parent-hover": true
4040
}
4141
},
42+
"container-padding-large": {
43+
"desktop": {
44+
"top": 64,
45+
"right": 80,
46+
"bottom": 64,
47+
"left": 80
48+
},
49+
"mobile": {
50+
"top": 32,
51+
"right": 24,
52+
"bottom": 32,
53+
"left": 24
54+
}
55+
},
56+
"container-padding-small": {
57+
"desktop": {
58+
"top": 16,
59+
"right": 32,
60+
"bottom": 16,
61+
"left": 32
62+
},
63+
"mobile": {
64+
"top": 8,
65+
"right": 24,
66+
"bottom": 8,
67+
"left": 24
68+
}
69+
},
4270
"container-border-style": {
4371
"desktop": ""
4472
},

src/styles/block-design-system.php

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

src/styles/block-design-system.scss

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

0 commit comments

Comments
 (0)