diff options
| author | Mark Otto <[email protected]> | 2011-10-18 08:11:18 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2011-10-18 08:11:18 -0700 |
| commit | a5d2450e88693de5e96d9a9f3f4e82853723f764 (patch) | |
| tree | 1c20f509cfb50e8ebb1e3f693c1f7236ca0766df /docs | |
| parent | 369b9720c6090985c678076eebb59c080c0ed27c (diff) | |
| download | bootstrap-a5d2450e88693de5e96d9a9f3f4e82853723f764.tar.xz bootstrap-a5d2450e88693de5e96d9a9f3f4e82853723f764.zip | |
refinement to the responsive section
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/assets/css/docs.css | 16 | ||||
| -rw-r--r-- | 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 2d0b87fe2..c1c43b1d8 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 aafea7662..3908552bd 100644 --- a/docs/index.html +++ b/docs/index.html @@ -413,33 +413,55 @@ </div> <div class="span8"> <h2>Supported devices</h2> - <table class="supported-devices"> + <p>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:</p> + <table class="zebra-striped"> + <thead> + <tr> + <th>Label</th> + <th>Layout width</th> + <th>Column width</th> + <th>Gutter width</th> + </tr> + </thead> <tbody> <tr> - <td> - <strong>Under 480px</strong> - <small>Smartphones</small> - </td> - <td> - <strong>480px to 768px</strong> - <small>Portrait tablet</small> - </td> - <td> - <strong>768px to 940px</strong> - <small>Landscape tablet</small> - </td> - <td> - <strong>940px and up</strong> - <small>Default</small> - </td> - <td> - <strong>1170px and up</strong> - <small>Large screens</small> - </td> + <td>Smartphones</td> + <td>480px and below</td> + <td class="muted" colspan="2">Fluid columns, no fixed widths</td> + </tr> + <tr> + <td>Portrait tablets</td> + <td>480px to 768px</td> + <td class="muted" colspan="2">Fluid columns, no fixed widths</td> + </tr> + <tr> + <td>Landscape tablets</td> + <td>768px to 940px</td> + <td>44px</td> + <td>20px</td> + </tr> + <tr> + <td>Default</td> + <td>940px and up</td> + <td>60px</td> + <td>20px</td> + </tr> + <tr> + <td>Large display</td> + <td>1210px and up</td> + <td>70px</td> + <td>30px</td> </tr> </tbody> </table> - <p>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.</p> + + <h3>What they do</h3> + <p>Media queries allow for custom CSS based on a number of conditions—ratios, widths, display type, etc—but usually focuses around <code>min-width</code> and <code>max-width</code>.</p> + <ul> + <li>Modify the width of column in our grid</li> + <li>Stack elements instead of float wherever necessary</li> + <li>Resize headings and text to be more appropriate for devices</li> + </ul> </div> </div> @@ -448,7 +470,7 @@ <!-- Media query code --> <h2>Using the media queries</h2> <div class="row"> - <div class="span4"> + <div class="span5"> <p>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:</p> <ol> <li>Use the compiled responsive version, bootstrap.reponsive.css</li> @@ -457,7 +479,7 @@ </ol> <p><strong>Why not just include it?</strong> Truth be told, not everything needs to be responsive. Instead of encouraging developers to remove this feature, we figure it best to enable it.</p> </div> - <div class="span8"> + <div class="span7"> <pre class="prettyprint linenums"> // Landscape phones and down @media (max-width: 480px) { ... } |
