Skip to content

Commit

Permalink
Fix layout grid in IE 11
Browse files Browse the repository at this point in the history
  • Loading branch information
philwareham committed Feb 22, 2019
1 parent 1c769d1 commit 2a89384
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions src/assets/sass/modules/_responsive.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
grid-gap: 0 2em;

> * {
flex: 1; // Flexbox fallback.
min-width: 0; // Fix Firefox `pre` overflow issues.
padding: 0 1em; // Flexbox fallback.
box-sizing: border-box; // Flexbox fallback.
Expand Down Expand Up @@ -79,7 +78,14 @@
margin: 0;
}

.layout-container > * {
.layout-1col,
.layout-2col,
.layout-3col,
.layout-3col-2span,
.layout-4col,
.layout-4col-2span,
.layout-4col-3span,
.layout-4col:not(.sidebar) {
width: auto;
padding: 0;
}
Expand Down Expand Up @@ -235,7 +241,9 @@

// Override Flexbox fallback for browsers with CSS Grid support.
@supports (display: grid) {
.layout-container > * {
.layout-2col,
.layout-3col,
.layout-3col-2span {
width: auto;
}
}
Expand Down Expand Up @@ -453,13 +461,16 @@
}

.layout-4col-3span {
width: 75%; // Flexbox fallback.
width: 73%; // Flexbox fallback.
grid-column: span 9;
}

// Override Flexbox fallback for browsers with CSS Grid support.
@supports (display: grid) {
.layout-container > * {
.layout-4col,
.layout-4col-2span,
.layout-4col-3span,
.layout-4col:not(.sidebar) {
width: auto;
}
}
Expand Down

0 comments on commit 2a89384

Please sign in to comment.