upgrading.html 14.79 KiB
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Upgrading · Twitter Bootstrap</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <!-- Le styles -->
    <link href="assets/css/bootstrap.css" rel="stylesheet">
    <link href="assets/css/bootstrap-responsive.css" rel="stylesheet">
    <link href="assets/css/docs.css" rel="stylesheet">
    <link href="assets/js/google-code-prettify/prettify.css" rel="stylesheet">
    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <!-- Le fav and touch icons -->
    <link rel="shortcut icon" href="assets/ico/favicon.ico">
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="assets/ico/apple-touch-icon-144-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png">
    <link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png">
  </head>
  <body data-spy="scroll" data-target=".bs-docs-sidebar" data-offset="10">
    <!-- Navbar
    ================================================== -->
    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="brand" href="./index.html">Bootstrap</a>
          <div class="nav-collapse collapse">
            <ul class="nav">
              <li class="">
                <a href="./index.html">Home</a>
              </li>
              <li class="">
                <a href="./getting-started.html">Get started</a>
              </li>
              <li class="">
                <a href="./scaffolding.html">Scaffolding</a>
              </li>
              <li class="">
                <a href="./base-css.html">Base CSS</a>
              </li>
              <li class="">
                <a href="./components.html">Components</a>
              </li>
              <li class="">
                <a href="./javascript.html">Javascript</a>
              </li>
              <li class="">
                <a href="./extend.html">Extend</a>
              </li>
            </ul>
          </div>
        </div>
      </div>
    </div>
7172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
<!-- Masthead ================================================== --> <header class="jumbotron subhead" id="overview"> <h1>Upgrading to Bootstrap 2</h1> <p class="lead">Learn about significant changes and additions since v1.4 with this handy guide.</p> </header> <!-- Project ================================================== --> <section id="docs"> <div class="page-header"> <h1>Project changes</h1> </div> <ul> <li>Docs: major updates across the board to general structure, examples, and code snippets. Also made responsive with new media queries.</li> <li>Docs: all docs pages are now powered by Mustache templates and strings are wrapped in i18n tags for translation by the Twitter Translation Center. All changes to documentation must be done here and then compiled (similar to our CSS and LESS).</li> <li>Repo directory structure: removed the compiled CSS from the root in favor of a large direct download link on the docs homepage. Compiled CSS is in <code>/docs/assets/css/</code>.</li> <li>Docs and repo: one makefile, just type <code>make</code> in the Terminal and get updated docs and CSS.</li> </ul> </section> <!-- Scaffolding ================================================== --> <section id="scaffolding"> <div class="page-header"> <h1>Scaffolding</h1> </div> <h3>Grid system</h3> <ul> <li>Updated grid system, now only 12 columns instead of 16 <li>Responsive approach means your projects virtually work out of the box on smartphones, tablets, and more</li> <li>Removed unused (by default) grid columns support for 17-24 columns</li> </ul> <h3>Responsive (media queries)</h3> <ul> <li>Media queries added for <strong>basic support</strong> across mobile and tablet devices <li>Responsive CSS is compiled separately, as bootstrap-responsive.css</li> </ul> </section> <!-- Base CSS ================================================== --> <section id="baseCSS"> <div class="page-header"> <h1>Base CSS</h1> </div> <h3>Typography</h3> <ul> <li><code>h4</code> elements were dropped from 16px to 14px with a default <code>line-height</code> of 18px</li> <li><code>h5</code> elements were dropped from 14px to 12px</li> <li><code>h6</code> elements were dropped from 13px to 11px</li> <li>Right-aligned option for blockquotes if <code>float: right;</code></li> </ul> <h3>Code</h3> <ul> <li>New graphical style for <code>&lt;code&gt;</code></li> <li>Google Code Prettify styles updated (based on GitHub's gists)</li> </ul> <h3>Tables</h3> <ul> <li>Improved support for <code>colspan</code> and <code>rowspan</code></li> <li>Styles now restricted to new base class, <code>.table</code></li> <li>Table classes standardized with <code>.table-</code> required as a prefix</li>