From b182e639aa6fd98b2b67d0d504c988ab18e68c20 Mon Sep 17 00:00:00 2001 From: Mike Francis Date: Thu, 2 Apr 2015 10:44:43 +0100 Subject: [PATCH] Updated tests --- tests/css/tests.css | 52 +++++++++++++++++++++---- tests/grid.php | 90 +++++++++++++++++++++++++------------------- tests/responsive.php | 28 ++++++++++++++ 3 files changed, 124 insertions(+), 46 deletions(-) create mode 100644 tests/responsive.php diff --git a/tests/css/tests.css b/tests/css/tests.css index 0070867..eb57a89 100644 --- a/tests/css/tests.css +++ b/tests/css/tests.css @@ -1,5 +1,17 @@ +/** + * Generic + */ + body { - padding: 4rem 0; + padding: 3rem 0; +} + +a { + color: purple; +} + +.header, .footer { + display: none; } .section { @@ -8,14 +20,40 @@ body { .section__title { border-bottom: solid 1px #eee; - font-weight: bold; - padding-bottom: 1.5rem; + font-size: 2em; + padding-bottom: 1rem; } -.col span { - background-color: #eee; + +/** + * Grid + */ + +.col-inner { + background-color: whitesmoke; display: block; - margin-bottom: 24px; - padding: 24px; + margin-bottom: 1.5rem; + padding: 1.5rem; text-align: center; +} + + .col-inner .col-inner { + background-color: blue; + color: white; + margin-top: 1.5rem; + } + +.row--gutterless .col:nth-child(2) .col-inner { + background-color: yellow; +} + +/** + * Responsive + */ + +[class*="hidden"], +[class*="visible"] { + background-color: whitesmoke; + margin-bottom: 0.75rem; + padding: 1rem; } \ No newline at end of file diff --git a/tests/grid.php b/tests/grid.php index e0befe0..3c3db3d 100644 --- a/tests/grid.php +++ b/tests/grid.php @@ -17,67 +17,79 @@ get_header();
-

Columns

+

Grid System

+

Taken from Simple Grid by Pedro Reis.

-
12
+
12
-
6
-
6
+
6
+
6
-
4
-
4
-
4
+
4
+
4
+
4
-
3
-
3
-
3
-
3
+
3
+
3
+
3
+
3
-
2
-
2
-
2
-
2
-
2
-
2
+
2
+
2
+
2
+
2
+
2
+
2
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
-
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
+
1
-

Nesting

+

Nesting

-
+
parent
- parent -
-
child
-
child
+
+ parent +
+
child
+
child
+
-

Gutterless

+

Gutterless

-
4
-
4
-
4
+
4
+
4
+
4
+
+
+
+

Responsive

+
+
4
+
4
+
4
+
4
diff --git a/tests/responsive.php b/tests/responsive.php new file mode 100644 index 0000000..33e2aa8 --- /dev/null +++ b/tests/responsive.php @@ -0,0 +1,28 @@ + + +
+
+

Responsive

+ + + + +
+
+ + \ No newline at end of file