Skip to content

Commit

Permalink
Flexbox grid updates (twbs#20829)
Browse files Browse the repository at this point in the history
* Fixes twbs#20775 without adding extra width and an important flag

* Since we're now getting the extend, we don't need the extra position relative

* rerrange

* getting min-height from the extend already
  • Loading branch information
mdo authored Oct 3, 2016
1 parent 2919c34 commit 88c601a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scss/mixins/_grid-framework.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
@each $breakpoint in map-keys($breakpoints) {
$breakpoint-counter: ($breakpoint-counter + 1);

// Allow columns to stretch full width below their breakpoints
.col-#{$breakpoint} {
@extend %grid-column;
}

@for $i from 1 through $columns {
.col-#{$breakpoint}-#{$i} {
@extend %grid-column;
Expand All @@ -31,11 +36,9 @@
// Provide basic `.col-{bp}` classes for equal-width flexbox columns
@if $enable-flex {
.col-#{$breakpoint} {
position: relative;
flex-basis: 0;
flex-grow: 1;
max-width: 100%;
min-height: 1px;
}
}

Expand Down

0 comments on commit 88c601a

Please sign in to comment.