From a0d940231a0a638b78de4cf55eac3b1687c75a27 Mon Sep 17 00:00:00 2001 From: Tilo Mitra Date: Thu, 22 Aug 2013 16:59:37 -0400 Subject: [PATCH] revamp grids manual test --- src/grids/tests/manual/responsive.html | 630 +++++++++++++++++++------ 1 file changed, 479 insertions(+), 151 deletions(-) diff --git a/src/grids/tests/manual/responsive.html b/src/grids/tests/manual/responsive.html index 361907e..274005e 100644 --- a/src/grids/tests/manual/responsive.html +++ b/src/grids/tests/manual/responsive.html @@ -3,171 +3,499 @@ Responsive Grids Test + + - - -
- -

Pure Responsive Grids

-

An example of making your Pure Grids behave responsively.

+ +

Base Grid

+
+
+
+
+
+
+
-
-

How does it work?

-
-
-

Pure Responsive Grids builds on top of the existing Pure Grids implementation. It adds a single new class name called .pure-g-r. You can use this instead of using .pure-g as you normally do. All elements with a class name of .pure-u-*-* will automatically become responsive if they are direct descendents of a .pure-g-r.

- -

The HTML

-

The first gist shows how regular Pure grids are written. These grids are unresponsive. They'll always be one-thirds irrespective of the width of the screen. The second gist replaces the pure-g with pure-g-r, thereby making the one-third columns collapse to full width on lower screen widths.

-
+
+
+
- - -

Features.

-
-
-
    -
  • Adds configurable media queries for different screen widths (Desktops, Landscape Tablets, Portrait Tablets, Phones)
  • -
  • Collapses elements to 100% if smaller than a certain width (767px by default)
  • -
  • Adjusts images to fit on smaller screens
  • -
  • Works with as many columns as you want (or as few)
  • -
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +

Responsive Grid

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-

Example.

-
-
-

Fast

-

YUI's lightweight core and modular architecture make it scalable, fast, and robust. Built by frontend engineers at Yahoo!, YUI powers the most popular websites in the world.

-
-
- -
-
-

Complete

-

YUI's intuitive and well-documented API takes you from basic DOM handling to building performant and maintainable applications on desktop browsers, mobile devices, and servers.

-
-
-
-
-

Industrial Strength

-

A thriving community, a carefully architected infrastructure, and a comprehensive suite of tools help you code like a pro, from simple web pages to complex web applications.

-
-
-
-
-

Free and Open

-

YUI is free for all uses and is developed in the open on GitHub. Core team members can always be found in the forums and the #yui IRC channel on Freenode. Pull requests welcome!

-
-
- -
- test image +
+
+
+
+
+
+
+
+
+
+
+
-
-
-

Two-Fifth Column

-

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur fermentum dui turpis. Duis nulla dolor, suscipit in venenatis vitae, auctor eu nibh. Proin lobortis arcu nec tellus vehicula vitae pellentesque nisi molestie. Aenean felis ligula, hendrerit id dictum sed, ornare nec leo. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Donec non lectus et quam porttitor dignissim vitae ac odio. Aenean mattis dui porta lacus egestas ultricies. Mauris vel dolor libero, sit amet rhoncus nibh.

+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +

Nested Grid

+
+
+
+
+
+
+
+
+
+
+
- -
-
-

Three-Fifth Column

-

Quisque ac magna eget est porta varius ut eget quam. Curabitur tincidunt gravida nisl, vitae luctus velit vulputate vel. Aliquam sed sodales orci. Proin varius placerat magna tristique tincidunt. Morbi non dignissim felis. Proin bibendum libero nec felis eleifend porttitor. Morbi auctor venenatis justo, molestie luctus mi pulvinar nec. Pellentesque vitae ornare lacus. Nulla hendrerit tempor auctor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis luctus facilisis cursus. Integer in lacinia dui. Phasellus ullamcorper, sem at congue pretium, velit sapien ornare mi, eu eleifend risus sapien ac eros.

- -

Fusce accumsan, sem vitae tempus tempor, nulla lectus interdum felis, eget molestie urna mauris vel elit. Curabitur vel ipsum nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nam viverra, augue et sollicitudin dignissim, lectus tellus imperdiet lectus, a tempor ipsum mauris vitae augue. Nullam vel nulla a purus cursus consequat. Nulla orci elit, malesuada nec egestas non, ornare quis nibh. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.

-
-
-
-
-

Grids on mobile

-
-
-

Thirds

-

This cell will be a grid even on mobile devices.

-
-
-
-
-

Thirds

-

This cell will be a grid even on mobile devices.

-
-
-
-
-

Thirds

-

This cell will be a grid even on mobile devices.

-
-
-
-
-
-
-

Thirds

-

This cell will be a grid even on mobile devices.

-
-
-
-
-

Thirds

-

This cell will be a grid even on mobile devices.

-
-
-
-
-

Thirds

-

This cell will be a grid even on mobile devices.

-
-
-
-
-
-
-

Thirds

-

This cell will be a grid even on mobile devices.

-
-
-
-
-

Thirds

-

This cell will be a grid even on mobile devices.

-
-
-
-
-

Thirds

-

This cell will be a grid even on mobile devices.

-
-
-
- - -
-

Helper Classes

-
-
-

No Phones Allowed

-

Should be hidden on phones

-
-
-
-
-

No Tablets Allowed

-

Should be hidden on tablets

-
-
-
-
-

No big screens allowed.

-

Should be hidden on desktops/laptops

-
+
+