Skip to content

Commit

Permalink
Merge pull request #368 from BeAPI/feature/fix-columns
Browse files Browse the repository at this point in the history
fix columns
  • Loading branch information
francoistibo authored Sep 11, 2023
2 parents ec9bb80 + 73b6b9b commit 74005d5
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/scss/06-blocks/core/_columns.scss
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
.wp-block-columns {
@include block-vertical-spacing();
gap: get-gutter-width() !important;

.wp-block-column {
&.has-background {
padding: var(--spacing--block-1);
}
}

&:not(.is-not-stacked-on-mobile) {
.wp-block-column {
margin-left: 0 !important;

&:not(:only-child) {
flex-basis: 100% !important;
}
}

@include breakpoints(sm, mdl) {
@include breakpoints(md, max) {
flex-wrap: wrap !important;

.wp-block-column {
&:not(:only-child) {
flex-basis: calc(50% - #{get-gutter-width() * .5}) !important;
flex-grow: 0 !important;
flex-basis: 100% !important;
}
}
}
Expand Down

0 comments on commit 74005d5

Please sign in to comment.