From 58e8e7e600c8fb0e2c292e8a74818a5a1b587c64 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Sun, 18 Sep 2016 21:06:46 +0800 Subject: IMPORTANT Change: update responsive layout --- index.html | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'index.html') diff --git a/index.html b/index.html index ba35496..ba1c044 100644 --- a/index.html +++ b/index.html @@ -989,14 +989,14 @@

responsive grid

-
-
+
+
col-md-6
-
+
col-md-3
-
+
col-md-3
@@ -1026,12 +1026,13 @@
-

Spectre 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.

+

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

  • For window width less than 480px, all columns will show as a single row.
  • -
  • col-xs-[1-12] apply to window width greater than or equal to 481px.
  • -
  • col-sm-[1-12] apply to window width greater than or equal to 601px.
  • -
  • col-md-[1-12] apply to window width greater than or equal to 841px.
  • +
  • col-xs-[1-12] apply to window width smaller than or equal to 480px.
  • +
  • col-sm-[1-12] apply to window width smaller than or equal to 600px.
  • +
  • col-md-[1-12] apply to window width smaller than or equal to 840px.
  • +
  • col-lg-[1-12] apply to window width smaller than or equal to 960px.
@@ -1049,11 +1050,11 @@

For hiding elements on specific viewport sizes, there are classes .hide-xs, .hide-sm, .hide-md, .hide-lg and .hide-xl available.

    -
  • hide-xs hides elements when the viewport is smaller than or equal to 480px.
  • -
  • hide-sm hides elements when the viewport is smaller than or equal to 600px.
  • -
  • hide-md hides elements when the viewport is smaller than or equal to 840px.
  • -
  • hide-lg hides elements when the viewport is smaller than or equal to 960px.
  • -
  • hide-xl hides elements when the viewport is smaller than or equal to 1280px.
  • +
  • hide-xs hides elements when the window width is smaller than or equal to 480px.
  • +
  • hide-sm hides elements when the window width is smaller than or equal to 600px.
  • +
  • hide-md hides elements when the window width is smaller than or equal to 840px.
  • +
  • hide-lg hides elements when the window width is smaller than or equal to 960px.
  • +
  • hide-xl hides elements when the window width is smaller than or equal to 1280px.

Spectre also has a responsive web test tool Responsive Resizer. You can use it locally in the directory /tools/resizer or online.

Responsive Resizer

-- cgit v1.3.1-25-gf783