]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
tests: add visual test for Float Grid uncentered columns
authorNicolas Coden <nicolas@ncoden.fr>
Sat, 31 Mar 2018 21:32:52 +0000 (23:32 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Sat, 31 Mar 2018 21:32:52 +0000 (23:32 +0200)
test/visual/grid/uncentered-columns.html [new file with mode: 0644]

diff --git a/test/visual/grid/uncentered-columns.html b/test/visual/grid/uncentered-columns.html
new file mode 100644 (file)
index 0000000..bfe6253
--- /dev/null
@@ -0,0 +1,58 @@
+<!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">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
+    <title>Foundation for Sites Testing</title>
+    <link href="../assets/css/foundation.css" rel="stylesheet" />
+  </head>
+  <body>
+
+    <div class="row column">
+      <h1>Uncentered Columns</h1>
+    </div>
+
+    <div class="row">
+      <div class="small-7 medium-centered large-uncentered columns">
+        <p style="background-color:#eee;">I must be centered on medium only</p>
+      </div>
+    </div>
+
+    <div class="row">
+      <div class="small-7 medium-centered large-uncentered columns">
+        <p style="background-color:#eee;">I must be centered on medium only</p>
+      </div>
+      <div class="small-7 medium-centered large-uncentered columns">
+        <p style="background-color:#eee;">I must be centered on medium only</p>
+      </div>
+      <div class="small-7 medium-centered large-uncentered columns">
+        <p style="background-color:#eee;">I must be centered on medium only</p>
+      </div>
+      <div class="small-7 medium-centered large-uncentered columns">
+        <p style="background-color:#eee;">I must be centered on medium only, on the right otherwise</p>
+      </div>
+    </div>
+
+    <div class="row column"><hr></div>
+
+    <div class="row">
+      <div class="small-5 columns">
+        <p style="background-color:#aee;">This blue column is not centered.</p>
+      </div>
+      <div class="small-7 medium-centered large-uncentered columns">
+        <p style="background-color:#fbb;">This pink column should be centered and clear the blue column on medium only.</p>
+      </div>
+      <div class="small-5 columns">
+        <p style="background-color:#aee;">This blue column is not centered.</p>
+      </div>
+    </div>
+
+    <script src="../assets/js/vendor.js"></script>
+    <script src="../assets/js/foundation.js"></script>
+    <script>
+      $(document).foundation();
+    </script>
+  </body>
+</html>