Skip to content

Commit

Permalink
Fix width to elements on small screens
Browse files Browse the repository at this point in the history
- Implement stacked on mobile feature. The same functionality from columns.
  • Loading branch information
dantovbein committed May 4, 2022
1 parent ff554b9 commit 242c967
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion assets/src/styles/blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,18 @@

.is-style-space-evenly {
& > * {
flex-basis: 0;
flex-grow: 1;
align-self: stretch;

@include medium-and-up {
flex-grow: 0;
flex-basis: calc(50% - calc(var(--wp--style--block-gap, 2em) / 2));
}

@include large-and-up {
flex-basis: 0;
flex-grow: 1;
}
}
}

Expand Down

0 comments on commit 242c967

Please sign in to comment.