Skip to content

Commit

Permalink
now if you need IE support load this file after
Browse files Browse the repository at this point in the history
  • Loading branch information
fabean authored and Josh Fabean committed Jun 12, 2020
1 parent 910fc3a commit e7e521c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
17 changes: 17 additions & 0 deletions src/scss/flexbox-grid-ie11.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@each $key, $breakpoint in $breakpoints {
$beginning: '';
@if $key != default {
$beginning: #{$key}-; // sass-lint:disable-line space-around-operator
}

@media (min-width: $breakpoint) {
.#{$beginning}flex-column,
.#{$beginning}flex-dir-column {
flex-direction: column;

> * {
flex-basis: auto !important;
}
}
}
}
5 changes: 0 additions & 5 deletions src/scss/flexbox-grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,6 @@ html {
.#{$beginning}flex-column,
.#{$beginning}flex-dir-column {
flex-direction: column;

> * {
// fix for IE11 that doesn't hurt things anywhere else
flex-basis: auto !important;
}
}

.#{$beginning}flex-dir-column-reverse {
Expand Down

0 comments on commit e7e521c

Please sign in to comment.