Skip to content

Commit 7f2c03c

Browse files
committed
Rename CSS spacing variables to the new SCSS variables based on the new generated theme-json
1 parent 9629092 commit 7f2c03c

File tree

6 files changed

+14
-8
lines changed

6 files changed

+14
-8
lines changed

src/scss/02-tools/_m-align.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@
1717
*
1818
*/
1919

20+
@use "../01-abstract/theme-json" as *;
21+
2022
@mixin align($direction: left) {
2123
float: $direction;
2224

2325
@if ($direction == left) {
24-
margin-inline-end: var(--wp--preset--spacing--sm);
26+
margin-inline-end: $settings-spacing-sm;
2527
} @else {
26-
margin-inline-start: var(--wp--preset--spacing--sm);
28+
margin-inline-start: $settings-spacing-sm;
2729
}
2830
}

src/scss/05-components/_searchform.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
* Searchform
33
*/
44

5+
@use "../01-abstract/theme-json" as *;
6+
57
.searchform {
68
position: relative;
79

810
&__field[type="search"] {
9-
padding-inline-end: var(--wp--preset--spacing--sm);
11+
padding-inline-end: $settings-spacing-sm;
1012
}
1113

1214
&__submit {

src/scss/06-blocks/core/_columns.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
@use "../../01-abstract/theme-json" as *;
12
@use "../../02-tools/m-breakpoint" as *;
23

34
.wp-block-columns {
45
justify-content: space-between;
56

67
.wp-block-column {
78
&.has-background {
8-
padding: var(--wp--preset--spacing--sm);
9+
padding: $settings-spacing-sm;
910
}
1011
}
1112

src/scss/06-blocks/core/_group.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@use "../../01-abstract/theme-json" as *;
12
@use "../../02-tools/m-breakpoint" as *;
23
@use "../../02-tools/m-editor-only" as *;
34

@@ -9,7 +10,7 @@
910
}
1011

1112
&.has-background {
12-
padding: var(--wp--preset--spacing--sm);
13+
padding: $settings-spacing-sm;
1314
}
1415

1516
@include breakpoints(sm, max) {

src/scss/08-template-parts/_header.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
top: var(--wp-admin-bar-height);
2121
z-index: 10;
2222
width: 100%;
23-
background: var(--wp--preset--color--cyan-bluish-gray);
23+
background: $settings-color-grey-500;
2424
}
2525

2626
.container {

src/scss/08-template-parts/_hero.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
.hero {
1111
@include row-fullwidth;
1212

13-
padding: var(--wp--preset--spacing--sm) 0;
14-
margin-bottom: var(--wp--preset--spacing--sm);
13+
padding: $settings-spacing-sm 0;
14+
margin-bottom: $settings-spacing-sm;
1515

1616
.container {
1717
position: relative;

0 commit comments

Comments
 (0)