Skip to content

Commit f415784

Browse files
committed
fix acf block width
1 parent a96723a commit f415784

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/scss/06-blocks/_gutenberg.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,21 @@
4343
margin-left: auto;
4444
}
4545

46+
@include editor-only {
47+
> .wp-block[class*="wp-block-acf"] {
48+
width: 100%;
49+
max-width: none;
50+
}
51+
52+
// The template block must have a ".block" class. Example : <div class="block block--my-custom-block">
53+
> :where(.wp-block[class*="wp-block-acf"]) :where(.block) {
54+
width: $container-default;
55+
max-width: var(--responsive--aligndefault-width);
56+
margin-right: auto;
57+
margin-left: auto;
58+
}
59+
}
60+
4661
#{context-selector(".alignwide", "[data-align='wide']")} {
4762
max-width: var(--responsive--alignwide-width);
4863
}

0 commit comments

Comments
 (0)