From 98fb0be7e46f113215516384d21aa46491f3d9cf Mon Sep 17 00:00:00 2001 From: connors Date: Sat, 1 Mar 2014 19:34:31 -0800 Subject: [PATCH] fixing the examples page --- docs/assets/css/docs.css | 31 ++++----------------- docs/examples.html | 40 +++++++++++++++------------ sass/docs.scss | 59 +++++++++++++--------------------------- 3 files changed, 48 insertions(+), 82 deletions(-) diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css index 21fc5eb..3928ec3 100644 --- a/docs/assets/css/docs.css +++ b/docs/assets/css/docs.css @@ -551,21 +551,10 @@ body { } .docs-examples { - margin-top: 50px; - margin-bottom: 50px; -} - -.docs-example-group { margin-top: 30px; } -.docs-example-group .example-wrap { - display: inline-block; - margin-right: 10px; -} -.docs-example-group .example-wrap:last-child { - margin-right: 10px; -} -.docs-example-group .example-wrap .example { + +.example-wrap .example { display: block; overflow: hidden; padding: 3px; @@ -573,26 +562,18 @@ body { border: 1px solid #dddddd; border-radius: 3px; } -.docs-example-group .example-wrap h5 { +.example-wrap h5 { margin-top: 10px; } -.docs-example-group .example-wrap img { +.example-wrap img { display: block; width: 100%; height: auto; } @media screen and (min-width: 768px) { - .docs-example-group .example-wrap { - display: inline-block; - } - .docs-example-group .example-wrap .example { - width: 180px; - } -} -@media screen and (min-width: 1200px) { - .docs-example-group .example-wrap .example { - width: 220px; + .example-wrap .example { + width: 100%; } } code { diff --git a/docs/examples.html b/docs/examples.html index e6ce190..6a95e3a 100644 --- a/docs/examples.html +++ b/docs/examples.html @@ -24,25 +24,31 @@ title: Examples · Ratchet

Checkout out the examples on a desktop browser or visit on your mobile device see the apps as intended.

-
-
- - Movie finder app example - -
Movie finder
+
+
+
+ + Movie finder app example + +
Movie finder
+
-
- - iOS mail app example - -
iOS mail app
-
-
- - Android notes app example - -
Android notes app
+
+
+ + iOS mail app example + +
iOS mail app
+
+
+
+ + Android notes app example + +
Android notes app
+
+
diff --git a/sass/docs.scss b/sass/docs.scss index 743f4e0..da4aba9 100644 --- a/sass/docs.scss +++ b/sass/docs.scss @@ -577,52 +577,31 @@ body { // Example devices // -------------------------------------------------- - .docs-examples { - margin-top: 50px; - margin-bottom: 50px; -} -.docs-example-group { margin-top: 30px; - - .example-wrap { - display: inline-block; - margin-right: 10px; - - &:last-child { - margin-right: 10px; - } - .example { - display: block; - overflow: hidden; - padding: 3px; - width: 100%; - border: $border-default; - border-radius: 3px; - } - h5 { - margin-top: 10px; - } - img { - display: block; - width: 100%; - height: auto; - } +} +.example-wrap { + .example { + display: block; + overflow: hidden; + padding: 3px; + width: 100%; + border: $border-default; + border-radius: 3px; + } + h5 { + margin-top: 10px; + } + img { + display: block; + width: 100%; + height: auto; } } @media screen and (min-width: 768px) { // Examples - .docs-example-group .example-wrap { - display: inline-block; - - .example { - width: 180px; - } - } -} -@media screen and (min-width: 1200px) { - .docs-example-group .example-wrap .example { - width: 220px; + .example-wrap .example { + width: 100%; } }