]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Get frame grid working cross browser
authorKevin Ball <kmball11@gmail.com>
Wed, 31 May 2017 20:01:49 +0000 (13:01 -0700)
committerKevin Ball <kmball11@gmail.com>
Wed, 31 May 2017 20:01:49 +0000 (13:01 -0700)
scss/zf-grid/_cell.scss

index 2340beec92649fb6ffedf187e007a4dfba7367b1..c9a29092cd5fd4b199f02388c3bc68a5706aebe8 100644 (file)
@@ -43,6 +43,8 @@
 }
 
 @mixin zf-cell-base($size: full) {
+  min-height: 0px;
+  min-width: 0px;
   @if($size == 'full') {
     // This is the base style, all others inherit from it
     flex: 0 0 auto;
 ) {
   $property: if($vertical == true, 'overflow-y', 'overflow-x');
 
-  #{$property}: auto;
+  @if $vertical == true {
+    overflow-y: auto;
+    max-height: 100%;
+  } @else {
+    overflow-x: auto;
+    max-width: 100%;
+  }
+
   -webkit-overflow-scrolling: touch;
   -ms-overflow-stype: -ms-autohiding-scrollbar;
 }
 @mixin zf-cell-block-container() {
   display: flex;
   flex-direction: column;
+  max-height: 100%;
+
+  > .grid {
+    max-height: 100%;
+  }
 }