From a5d2450e88693de5e96d9a9f3f4e82853723f764 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 18 Oct 2011 08:11:18 -0700 Subject: [PATCH] refinement to the responsive section --- docs/assets/css/docs.css | 16 --------- docs/index.html | 70 ++++++++++++++++++++++++++-------------- 2 files changed, 46 insertions(+), 40 deletions(-) diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css index 2d0b87fe21..c1c43b1d88 100644 --- a/docs/assets/css/docs.css +++ b/docs/assets/css/docs.css @@ -346,19 +346,3 @@ h2 + table { min-width: 748px; } } - - - -.supported-devices { - margin-bottom: 9px; - color: #777; -} -.supported-devices strong { - display: block; - font-size: 14px; - line-height: 18px; -} -.supported-devices small { - font-size: 12px; -} - diff --git a/docs/index.html b/docs/index.html index aafea76621..3908552bd0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -413,33 +413,55 @@

Supported devices

- +

Bootstrap supports a handful of media queries to help make your projects more appropriate on different devices and screen resolutions. Here's what's included:

+
+ + + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + +
LabelLayout widthColumn widthGutter width
- Under 480px - Smartphones - - 480px to 768px - Portrait tablet - - 768px to 940px - Landscape tablet - - 940px and up - Default - - 1170px and up - Large screens - Smartphones480px and belowFluid columns, no fixed widths
Portrait tablets480px to 768pxFluid columns, no fixed widths
Landscape tablets768px to 940px44px20px
Default940px and up60px20px
Large display1210px and up70px30px
-

With these media queries, Bootstrap provides developers with the core tools necessary to develop responsively on the web for the world's most common devices and resolutions.

+ +

What they do

+

Media queries allow for custom CSS based on a number of conditions—ratios, widths, display type, etc—but usually focuses around min-width and max-width.

+
@@ -448,7 +470,7 @@

Using the media queries

-
+

Bootstrap doesn't automatically include these media queries, but understanding and adding them is very easy and requires minimal setup. You have a few options for including the responsive features of Bootstrap:

  1. Use the compiled responsive version, bootstrap.reponsive.css
  2. @@ -457,7 +479,7 @@

Why not just include it? Truth be told, not everything needs to be responsive. Instead of encouraging developers to remove this feature, we figure it best to enable it.

-
+
   // Landscape phones and down
   @media (max-width: 480px) { ... }