]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Visual Regression: Added Sizing Utilities to testing
authorharry <harmanmanchanda182@gmail.com>
Wed, 8 Feb 2017 16:39:18 +0000 (22:09 +0530)
committerharry <harmanmanchanda182@gmail.com>
Wed, 8 Feb 2017 16:39:18 +0000 (22:09 +0530)
Inludes
- Width (25, 50, 75, 100)
- Height (25, 50, 75, 100)
- Max Width 100
- Max Height 100

test/visual/prototype/sizing-height.html [new file with mode: 0644]
test/visual/prototype/sizing-width.html [new file with mode: 0644]

diff --git a/test/visual/prototype/sizing-height.html b/test/visual/prototype/sizing-height.html
new file mode 100644 (file)
index 0000000..a477cf9
--- /dev/null
@@ -0,0 +1,62 @@
+<!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="../motion-ui/dist/motion-ui.css" rel="stylesheet" />
+    <link href="../assets/css/foundation-prototype.css" rel="stylesheet" />
+    <style type="text/css">
+      /* Just for demo purposes */
+      .demo-height-box {
+        height: 300px; 
+        background-color: #808080;
+      }
+      .demo-height-box div {
+        display: inline-block;
+        width: 200px; 
+        background-color: #e6e6e6;
+      }
+      .demo-max-height-box {
+        height: 200px; 
+        background-color: #ffe6e6;
+      }
+
+      .demo-max-height-box div {
+        display: inline-block;
+        width: 200px;
+        height: 300px; 
+        margin-left: 60px;
+        background-color: #e6d4e2;
+      }
+    </style>
+  </head>
+  <body>
+
+    <div class="row column">
+      <h2 class="m-t-20">Height</h2>
+      <div class="demo-height-box">
+        <div class="height-25 p-a-20">Height 25%</div>
+        <div class="height-50 p-a-20">Height 50%</div>
+        <div class="height-75 p-a-20">Height 75%</div>
+        <div class="height-100 p-a-20">Height 100%</div>
+      </div>
+    </div>
+
+    <div class="row column">
+      <h2 class="m-t-30">Max Height 100</h2>
+      <div class="demo-max-height-box">
+        <div class="max-height-100 p-a-20">Max Height = 100%</div>
+      </div>
+    </div>
+
+    <p class="m-t-40">&nbsp;</p>
+
+    <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/prototype/sizing-width.html b/test/visual/prototype/sizing-width.html
new file mode 100644 (file)
index 0000000..c736747
--- /dev/null
@@ -0,0 +1,41 @@
+<!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="../motion-ui/dist/motion-ui.css" rel="stylesheet" />
+    <link href="../assets/css/foundation-prototype.css" rel="stylesheet" />
+    <style type="text/css">
+      /* Just for demo purposes */
+      .demo-width-box div{
+        background: #eee;
+      }
+    </style>
+  </head>
+  <body>
+    <div class="row column">
+      <h2 class="m-t-20">Width</h2>
+      <div class="demo-width-box">
+        <div class="width-25 p-a-20">Width 25%</div>
+        <div class="width-50 p-a-20">Width 50%</div>
+        <div class="width-75 p-a-20">Width 75%</div>
+        <div class="width-100 p-a-20">Width 100%</div>
+      </div>
+    </div>
+
+    <div class="row column">
+      <h2 class="m-t-30">Max Width 100</h2>
+      <img src="http://placehold.it/1500x200?text=Max+Width+=100%" class="max-width-100">
+    </div>
+
+    <p class="m-t-40">&nbsp;</p>
+
+    <script src="../assets/js/vendor.js"></script>
+    <script src="../assets/js/foundation.js"></script>
+    <script>
+      $(document).foundation();
+    </script>
+  </body>
+</html>