From 8c80ec8f50827cddc2a787b82c38503497647781 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Thu, 21 Apr 2016 19:28:00 +0800 Subject: add more flexible responsive grid --- index.html | 74 +++++++++++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 57 insertions(+), 17 deletions(-) (limited to 'index.html') diff --git a/index.html b/index.html index cec8020..b5baad9 100644 --- a/index.html +++ b/index.html @@ -299,20 +299,7 @@
-
-
-
col-6
-
-
-
col-3
-
-
-
col-2
-
-
-
col-1
-
-
+
col-12 (100%)
@@ -333,12 +320,10 @@
col-3 (25%)
+

Add the class columns to a container. And add any element you want with classname column inside the container. These columns will take up the space equally. You can specific the width of each column by adding class col-[1-12].

-
-

When the width of browser viewport is less than 840px and more than 480px, the col-[1-11] will be 50% width to the parent elements.

-
@@ -348,6 +333,61 @@
     <div class="column col-2">col-2</div>
     <div class="column col-1">col-1</div>
 </div>
+
+ +
+
+
col-md-6
+
+
+
col-md-3
+
+
+
col-md-3
+
+
+ +
+
+
col-sm-6
+
+
+
col-sm-3
+
+
+
col-sm-3
+
+
+ +
+
+
col-xs-6
+
+
+
col-xs-3
+
+
+
col-xs-3
+
+
+ +
+

Spectre also provides a neat responsive layout grid system. There are .col-xs-[1-12], .col-sm-[1-12] and .col-md-[1-12] available for flexible grid across mobile, tablet and desktop viewport usage.

+ +
+ + +
+<div class="columns">
+    <div class="column col-xs-6">col-xs-6</div>
+    <div class="column col-xs-3">col-xs-3</div>
+    <div class="column col-xs-3">col-xs-3</div>
+</div>
 
-- cgit v1.3.1-26-gb76a