Skip to content

Commit 74005d5

Browse files
authored
Merge pull request #368 from BeAPI/feature/fix-columns
fix columns
2 parents ec9bb80 + 73b6b9b commit 74005d5

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

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

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
.wp-block-columns {
2+
@include block-vertical-spacing();
23
gap: get-gutter-width() !important;
34

5+
.wp-block-column {
6+
&.has-background {
7+
padding: var(--spacing--block-1);
8+
}
9+
}
10+
411
&:not(.is-not-stacked-on-mobile) {
512
.wp-block-column {
613
margin-left: 0 !important;
7-
8-
&:not(:only-child) {
9-
flex-basis: 100% !important;
10-
}
1114
}
1215

13-
@include breakpoints(sm, mdl) {
16+
@include breakpoints(md, max) {
1417
flex-wrap: wrap !important;
1518

1619
.wp-block-column {
1720
&:not(:only-child) {
18-
flex-basis: calc(50% - #{get-gutter-width() * .5}) !important;
19-
flex-grow: 0 !important;
21+
flex-basis: 100% !important;
2022
}
2123
}
2224
}

0 commit comments

Comments
 (0)