Skip to content

Commit 71b8a8e

Browse files
authored
Merge pull request #339 from BeAPI/feature/acf-table
ACF table not impact
2 parents 4143184 + 3552ce9 commit 71b8a8e

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

src/scss/02-tools/_m-not-acf.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Not apply style to ACF fields
2+
@mixin not-acf() {
3+
#{context-selector(":where(body)", ":where(*:not([class*="acf-"])) >")} {
4+
@content;
5+
}
6+
}

src/scss/02-tools/tools.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@
3737
@import "./m-block-vertical-spacing";
3838
@import "./m-background-static";
3939
@import "./m-invisible-scrollbar";
40+
@import "./m-not-acf";

src/scss/03-base/_forms.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $text-inputs-list: 'input[type="color"]', 'input[type="date"]',
1111
$all-text-inputs: assign-inputs($text-inputs-list);
1212

1313
// Not apply style to ACF fields
14-
#{context-selector(":where(body)", ":where(*:not([class*="acf-"])) >")} {
14+
@include not-acf {
1515
// Textarea
1616
textarea {
1717
resize: vertical;

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1-
table,
2-
.wp-block-table {
1+
%table {
32
width: 100%;
43
min-width: 240px;
54
border-collapse: collapse;
65
}
6+
7+
.wp-block-table {
8+
@extend %table;
9+
}
10+
11+
// Not apply style to ACF fields
12+
@include not-acf {
13+
table {
14+
@extend %table;
15+
}
16+
}

0 commit comments

Comments
 (0)