Skip to content

Commit

Permalink
Block Library: Columns: Force 50% column width at mid-range viewport (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth authored and jorgefilipecosta committed Mar 2, 2020
1 parent 75a77ce commit 56f8203
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/block-library/src/columns/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@
overflow-wrap: break-word; // New standard.

// Between mobile and large viewports, allow 2 columns.
@include break-small() {
flex-basis: calc(50% - #{$grid-size-large});
@media (min-width: #{ ($break-small) }) and (max-width: #{ ($break-medium - 1) }) {
// As with mobile styles, this must be important since the Column
// assigns its own width as an inline style, which should take effect
// starting at `break-medium`.
flex-basis: calc(50% - #{$grid-size-large}) !important;
flex-grow: 0;

// Add space between the multiple columns. Themes can customize this if they wish to work differently.
Expand Down

0 comments on commit 56f8203

Please sign in to comment.