From ab1dc25ffc7ed617ed32670b93fbd663e9d6bf1e Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 8 Feb 2013 00:13:44 -0800 Subject: clean up responsive docs and global css styles --- docs/templates/pages/css.mustache | 78 +++------------------------------------ 1 file changed, 5 insertions(+), 73 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/css.mustache b/docs/templates/pages/css.mustache index 5ba70041aa..0471001dda 100644 --- a/docs/templates/pages/css.mustache +++ b/docs/templates/pages/css.mustache @@ -24,7 +24,7 @@
  • Buttons
  • Images
  • Glyphicons
  • -
  • Responsive design
  • +
  • Responsive utilities
  • @@ -50,9 +50,8 @@

    Mobile first

    With Bootstrap 2, we added optional mobile friendly styles for key aspects of the framework. With Bootstrap 3, we've rewritten the project to be mobile friendly from the start. Instead of adding on optional mobile styles, they're baked right into the core. In fact, Bootstrap is mobile first. Mobile first styles can be found throughout the entire library instead of in separate files.

    -

    To enable proper mobile styles, add the viewport meta tag to your <head>:

    +

    To ensure proper rendering and touch zooming, add the viewport meta tag to your <head>.

    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    -

    This meta tag improves rendering of sites on mobile devices and ensures proper touch-based zooming.

    Typography and links

    Bootstrap sets basic global display, typography, and link styles. Specifically, we:

    @@ -2174,79 +2173,12 @@ For example, <code>&lt;section&gt;</code> should be wrapped -
    +
    +

    For faster mobile-friendly development, use these utility classes for showing and hiding content by device via media query.

    - {{! Enabling }} -

    Enabling responsive features

    -

    Responsive CSS requires the following meta tag in the <head> of your pages.

    -
    -<meta name="viewport" content="width=device-width, initial-scale=1.0">
    -
    - - {{! Supported }} -

    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
    Large display1200px and up70px30px
    Default980px and up60px20px
    Portrait tablets768px and above42px20px
    Phones to tablets767px and belowFluid columns, no fixed widths
    Phones480px and belowFluid columns, no fixed widths
    -
    -/* Large desktop */
    -@media (min-width: 1200px) { ... }
    -
    -/* Portrait tablet to landscape and desktop */
    -@media (min-width: 768px) and (max-width: 979px) { ... }
    -
    -/* Landscape phone to portrait tablet */
    -@media (max-width: 767px) { ... }
    -
    -/* Landscape phones and down */
    -@media (max-width: 480px) { ... }
    -
    - - - {{! Responsive utility classes }} -

    Responsive utility classes

    -

    For faster mobile-friendly development, use these utility classes for showing and hiding content by device. Below is a table of the available classes and their effect on a given media query layout (labeled by device).

    -- cgit v1.2.3