]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Add max-width: none; to nested rows to ensure they're always the full width of the...
authorGeoff Kimball <geoff@zurb.com>
Mon, 28 Mar 2016 17:30:54 +0000 (10:30 -0700)
committerGeoff Kimball <geoff@zurb.com>
Mon, 28 Mar 2016 17:30:54 +0000 (10:30 -0700)
scss/grid/_row.scss
test/visual/flex-grid/nesting.html [new file with mode: 0644]
test/visual/grid/nesting.html [new file with mode: 0644]

index daa71e03c56aa67353d52a55b66ae74160079464..61fd4b1e86f841b91e038c83885d302e0ebe774e 100644 (file)
@@ -85,6 +85,7 @@
 
   @each $breakpoint, $value in $gutter {
     $margin: rem-calc($value) / 2 * -1;
+    max-width: none;
 
     @include breakpoint($breakpoint) {
       margin-left: $margin;
diff --git a/test/visual/flex-grid/nesting.html b/test/visual/flex-grid/nesting.html
new file mode 100644 (file)
index 0000000..5ba0804
--- /dev/null
@@ -0,0 +1,44 @@
+<!doctype html>
+<!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]-->
+<html class="no-js" lang="en" dir="ltr">
+  <head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <title>Foundation for Sites Testing</title>
+    <link href="../assets/css/foundation-flex.css" rel="stylesheet" />
+    <style>
+      .test-1 {
+        background: #eee;
+      }
+
+      .test-2 {
+        background: #ccc;
+      }
+    </style>
+  </head>
+  <body>
+    <div class="row">
+      <div class="column">
+        <h1>Flex Grid: Nesting</h1>
+
+        <p>These are two nested grids. They should both fill the width of the window.</p>
+      </div>
+    </div>
+
+    <div class="row expanded test-1">
+      <div class="column">
+        <div class="row test-2">
+          <div class="column">
+            <p>This is a grid.</p>
+          </div>
+        </div>
+      </div>
+    </div>
+
+    <script src="../assets/js/vendor.js"></script>
+    <script src="../assets/js/foundation.js"></script>
+    <script>
+      $(document).foundation();
+    </script>
+  </body>
+</html>
diff --git a/test/visual/grid/nesting.html b/test/visual/grid/nesting.html
new file mode 100644 (file)
index 0000000..caab9b8
--- /dev/null
@@ -0,0 +1,44 @@
+<!doctype html>
+<!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]-->
+<html class="no-js" lang="en" dir="ltr">
+  <head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <title>Foundation for Sites Testing</title>
+    <link href="../assets/css/foundation.css" rel="stylesheet" />
+    <style>
+      .test-1 {
+        background: #eee;
+      }
+
+      .test-2 {
+        background: #ccc;
+      }
+    </style>
+  </head>
+  <body>
+    <div class="row">
+      <div class="column">
+        <h1>Flex Grid: Nesting</h1>
+
+        <p>These are two nested grids. They should both fill the width of the window.</p>
+      </div>
+    </div>
+
+    <div class="row expanded test-1">
+      <div class="column">
+        <div class="row test-2">
+          <div class="column">
+            <p>This is a grid.</p>
+          </div>
+        </div>
+      </div>
+    </div>
+
+    <script src="../assets/js/vendor.js"></script>
+    <script src="../assets/js/foundation.js"></script>
+    <script>
+      $(document).foundation();
+    </script>
+  </body>
+</html>