Skip to content

Commit 96ed41c

Browse files
authored
Don't use @wordpress/base-styles package (#135)
1 parent 65900f7 commit 96ed41c

File tree

12 files changed

+165
-295
lines changed

12 files changed

+165
-295
lines changed

package-lock.json

Lines changed: 0 additions & 235 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
},
3434
"devDependencies": {
3535
"@deboxsoft/cpx": "^1.5.0",
36-
"@wordpress/base-styles": "^5.20.0",
3736
"@wordpress/e2e-test-utils": "^11.20.0",
3837
"@wordpress/env": "^10.20.0",
3938
"@wordpress/scripts": "^30.13.0",
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1+
@use "../../../wp-base-styles.scss" as wpBaseStyles;
2+
13
.chbe-admin-header {
2-
padding: $grid-unit-20 0;
3-
background-color: $white;
4+
padding: wpBaseStyles.$grid-unit-20 0;
5+
background-color: wpBaseStyles.$white;
46

57
.chbe-admin-header__info {
68
position: absolute;
79
top: 0;
8-
right: $grid-unit-20 + $grid-unit-05;
10+
right: wpBaseStyles.$grid-unit-20 + wpBaseStyles.$grid-unit-05;
911

1012
@media screen and (max-width: 782px) {
1113
position: static;
12-
margin-top: $grid-unit-20;
14+
margin-top: wpBaseStyles.$grid-unit-20;
1315
}
1416
}
1517
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
@use "../../../wp-base-styles" as wpBaseStyles;
2+
13
.chbe-admin-welcome-guide-modal {
24
width: 312px;
35

46
img {
5-
margin-bottom: $grid-unit-20;
7+
margin-bottom: wpBaseStyles.$grid-unit-20;
68
}
79
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
@use "../../../../wp-base-styles.scss" as wpBaseStyles;
2+
13
.chbe-admin-editor-config-filter {
24

35
.components-input-control__container {
4-
background: $white;
6+
background: wpBaseStyles.$white;
57
}
68
}

src/admin/editor-config/components/item-help/style.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "../../../../wp-base-styles.scss" as wpBaseStyles;
2+
13
// Toggle button
24
.chbe-admin-editor-config-item-help-toggle {
35
margin-top: -2px;
@@ -24,7 +26,7 @@
2426
.chbe-admin-editor-config-item-help-modal__items {
2527
display: flex;
2628
flex-wrap: wrap;
27-
gap: $grid-unit-30;
29+
gap: wpBaseStyles.$grid-unit-30;
2830

2931
@media screen and (max-width: 782px) {
3032
flex-flow: column;
@@ -49,6 +51,6 @@
4951

5052
.chbe-admin-editor-config-item-help-modal__item-button {
5153
height: auto;
52-
padding: $grid-unit-05;
54+
padding: wpBaseStyles.$grid-unit-05;
5355
}
5456
}

src/admin/editor-config/style.scss

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
@import "./components/editor-preview/style";
2-
@import "./components/item-help/style";
3-
@import "./components/filter/style";
1+
@use "../../wp-base-styles.scss" as wpBaseStyles;
2+
3+
@use "./components/editor-preview/style" as editorPreview;
4+
@use "./components/item-help/style" as itemHelp;
5+
@use "./components/filter/style" as filter;
46

57
.chbe-admin-editor-config {
68

@@ -22,15 +24,15 @@
2224
}
2325

2426
.chbe-admin-editor-config__basic-settings {
25-
padding: $grid-unit-30;
26-
background: $white;
27-
border-top: $border-width solid $gray-300;
28-
border-bottom: $border-width solid $gray-300;
27+
padding: wpBaseStyles.$grid-unit-30;
28+
background: wpBaseStyles.$white;
29+
border-top: wpBaseStyles.$border-width solid wpBaseStyles.$gray-300;
30+
border-bottom: wpBaseStyles.$border-width solid wpBaseStyles.$gray-300;
2931
}
3032

3133
.chbe-admin-editor-config__preview {
3234
position: sticky;
33-
top: $grid-unit-50;
35+
top: wpBaseStyles.$grid-unit-50;
3436
width: 50%;
3537

3638
@media screen and (max-width: 782px) {

0 commit comments

Comments
 (0)