From ebba3d0c32bc61c7954813d18b9ba0b29c5268c5 Mon Sep 17 00:00:00 2001
From: Chris Lawton <chris.lawton@torchbox.com>
Date: Tue, 9 Jan 2018 17:15:03 +0000
Subject: [PATCH] adding css grid fallback that works in ie 11 + edge 15/16

---
 opentech/static_src/src/sass/components/_grid.scss | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/opentech/static_src/src/sass/components/_grid.scss b/opentech/static_src/src/sass/components/_grid.scss
index edda60dd4..53a38e05d 100644
--- a/opentech/static_src/src/sass/components/_grid.scss
+++ b/opentech/static_src/src/sass/components/_grid.scss
@@ -17,7 +17,9 @@
 
     &--two {
         > * {
-            flex-basis: calc(50% - 20px);
+            // fix for IE11 not rendering calc flex-basis correctly
+            flex-basis: auto;
+            width: calc(50% - 20px);
         }
     }
 
@@ -40,6 +42,7 @@
         > * {
             flex-basis: initial;
             margin: 0;
+            width: auto;
         }
 
         &--narrow {
-- 
GitLab