PageRenderTime 31ms CodeModel.GetById 18ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 0ms

Mustache | 183 lines | 171 code | 12 blank | 0 comment | 10 complexity | 7f602b664e085a300b149f72ed4a2e16 MD5 | raw file
Possible License(s): Apache-2.0, LGPL-2.1
  1<!-- Masthead
  2================================================== -->
  3<header class="jumbotron subhead" id="overview">
  4  <h1>{{_i}}Upgrading to Bootstrap 2{{/i}}</h1>
  5  <p class="lead">{{_i}}Learn about significant changes and additions since v1.4 with this handy guide.{{/i}}</p>
 10<!-- Project
 11================================================== -->
 12<section id="docs">
 13  <div class="page-header">
 14    <h1>{{_i}}Project changes{{/i}}</h1>
 15  </div>
 16  <ul>
 17    <li>{{_i}}Docs: major updates across the board to general structure, examples, and code snippets. Also made responsive with new media queries.{{/i}}</li>
 18    <li>{{_i}}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).{{/i}}</li>
 19    <li>{{_i}}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>.{{/i}}</li>
 20    <li>{{_i}}Docs and repo: one makefile, just type <code>make</code> in the Terminal and get updated docs and CSS.{{/i}}</li>
 21  </ul>
 26<!-- Scaffolding
 27================================================== -->
 28<section id="scaffolding">
 29  <div class="page-header">
 30    <h1>{{_i}}Scaffolding{{/i}}</h1>
 31  </div>
 32  <h3>{{_i}}Grid system{{/i}}</h3>
 33  <ul>
 34    <li>{{_i}}Updated grid system, now only 12 columns instead of 16{{/i}}
 35    <li>{{_i}}Responsive approach means your projects virtually work out of the box on smartphones, tablets, and more{{/i}}</li>
 36    <li>{{_i}}Removed unused (by default) grid columns support for 17-24 columns{{/i}}</li>
 37  </ul>
 38  <h3>{{_i}}Responsive (media queries){{/i}}</h3>
 39  <ul>
 40    <li>{{_i}}Media queries added for <strong>basic support</strong> across mobile and tablet devices{{/i}}
 41    <li>{{_i}}Responsive CSS is compiled separately, as bootstrap-responsive.css{{/i}}</li>
 42  </ul>  
 47<!-- Base CSS
 48================================================== -->
 49<section id="baseCSS">
 50  <div class="page-header">
 51    <h1>{{_i}}Base CSS{{/i}}</h1>
 52  </div>
 53  <h3>{{_i}}Typography{{/i}}</h3>
 54  <ul>
 55    <li>{{_i}}<code>h4</code> elements were dropped from 16px to 14px with a default <code>line-height</code> of 18px{{/i}}</li>
 56    <li>{{_i}}<code>h5</code> elements were dropped from 14px to 12px{{/i}}</li>
 57    <li>{{_i}}<code>h6</code> elements were dropped from 13px to 11px{{/i}}</li>
 58    <li>{{_i}}Right-aligned option for blockquotes if <code>float: right;</code>{{/i}}</li>
 59  </ul>
 60  <h3>{{_i}}Code{{/i}}</h3>
 61  <ul>
 62    <li>{{_i}}New graphical style for <code>&lt;code&gt;</code>{{/i}}</li>
 63    <li>{{_i}}Google Code Prettify styles updated (based on GitHub's gists){{/i}}</li>
 64  </ul>
 65  <h3>{{_i}}Tables{{/i}}</h3>
 66  <ul>
 67    <li>{{_i}}Improved support for <code>colspan</code> and <code>rowspan</code>{{/i}}</li>
 68    <li>{{_i}}Styles now restricted to new base class, <code>.table</code>{{/i}}</li>
 69    <li>{{_i}}Table classes standardized with <code>.table-</code> required as a prefix{{/i}}</li>
 70    <li>{{_i}}Removed unused table color options (too much code for such little impact){{/i}}</li>
 71    <li>{{_i}}Dropped support for TableSorter{{/i}}</li>
 72  </ul>
 73  <h3>{{_i}}Buttons{{/i}}</h3>
 74  <ul>
 75    <li>{{_i}}New classes for colors and sizes, all prefixed with <code>.btn-</code>{{/i}}</li>
 76    <li>{{_i}}IE9: removed gradients and added rounded corners{{/i}}</li>
 77    <li>{{_i}}Updated active state to make styling clearer in button groups (new) and look better with custom transition{{/i}}</li>
 78    <li>{{_i}}New mixin, <code>.buttonBackground</code>, to set button gradients{{/i}}</li>
 79  </ul>
 80  <h3>{{_i}}Forms{{/i}}</h3>
 81  <ul>
 82    <li>{{_i}}Default form style is now vertical (stacked) to use less CSS and add greater flexibility{{/i}}</li>
 83    <li>{{_i}}Form classes standardized with <code>.form-</code> required as a prefix{{/i}}</li>
 84    <li>{{_i}}New built-in form defaults for search, inline, and horizontal forms{{/i}}</li>
 85    <li>{{_i}}More flexible horizontal form markup with classes for all styling, including new optional class for the <code>label</code>{{/i}}</li>
 86    <li>{{_i}}Form states: colors updated and customizable via new LESS variables{{/i}}</li>
 87  </ul>
 88  <h3>{{_i}}Icons, by Glyphicons{{/i}}</h3>
 89  <ul>
 90    <li>{{_i}}New Glyphicons Halflings icon set added in sprite form, in black and white{{/i}}</li>
 91    <li>{{_i}}Simple markup required for an icon in tons of contexts: <code>&lt;i class="icon-cog"&gt;&lt;/&gt;</code>{{/i}}</li>
 92    <li>{{_i}}Add another class, <code>.icon-white</code>, for white variation of the same icon{{/i}}</li>
 93  </ul>
 98<!-- Components
 99================================================== -->
100<section id="components">
101  <div class="page-header">
102    <h1>{{_i}}Components{{/i}}</h1>
103  </div>
104  <h3>{{_i}}Button groups and dropdowns{{/i}}</h3>
105  <ul>
106    <li>{{_i}}Two brand new components in 2.0: button groups and button dropdowns{{/i}}</li>
107    <li>{{_i}}Dependency: button dropdowns are built on button groups, and therefore require all their styles{{/i}}</li>
108    <li>{{_i}}Button groups, <code>.btn-group</code>, can be grouped one level higher with a button toolbar, <code>.btn-toolbar</code>{{/i}}</li>
109  </ul>
110  <h3>{{_i}}Navigation{{/i}}</h3>
111  <ul>
112    <li>{{_i}}Tabs and pills now require the use of a new base class, <code>.nav</code>, on their <code>&lt;ul&gt;</code>{{/i}}</li>
113    <li>{{_i}}New nav list variation added that uses the same base class, <code>.nav</code>{{/i}}</li>
114    <li>{{_i}}Vertical tabs and pills have been added&mdash;just add <code>.nav-stacked</code> to the <code>&lt;ul&gt;</code>{{/i}}</li>
115    <li>{{_i}}Pills were restyled to be less rounded by default{{/i}}</li>
116    <li>{{_i}}Pills now have dropdown menu support (they share the same markup and styles as tabs){{/i}}</li>
117  </ul>
118  <h3>{{_i}}Navbar (formerly topbar){{/i}}</h3>
119  <ul>
120    <li>{{_i}}Base class changed from <code>.topbar</code> to <code>.navbar</code>{{/i}}</li>
121    <li>{{_i}}Now supports static position (default behavior, not fixed) and fixed to the top of viewport via <code>.navbar-fixed-top</code> (previously only supported fixed){{/i}}</li>
122    <li>{{_i}}Added vertical dividers to top-level nav{{/i}}</li>
123    <li>{{_i}}Improved support for inline forms in the navbar, which now require <code>.navbar-form</code> to properly scope styles to only the intended forms.{{/i}}</li>
124    <li>{{_i}}Navbar search form now requires use of the <code>.navbar-search</code> class and its input the use of <code>.search-query</code>. To position the search form, you <strong>must</strong> use <code>.pull-left</code> or <code>.pull-right</code>.{{/i}}</li>
125    <li>{{_i}}Added optional responsive markup for collapsing navbar contents for smaller resolutions and devices. <a href="./components.html#navbar">See navbar docs</a> for how to utilize.{{/i}}</li>
126  </ul>
127  <h3>{{_i}}Dropdown menus{{/i}}</h3>
128  <ul>
129    <li>{{_i}}Updated the <code>.dropdown-menu</code> to tighten up spacing{{/i}}</li>
130    <li>{{_i}}Now requires you to add a <code>&lt;span class="caret"&gt;&lt;/span&gt;</code> to show the dropdown arrow{{/i}}</li>
131    <li>{{_i}}The navbar (fixed topbar) has brand new dropdowns. Gone are the dark versions and in their place are the standard white ones with an additional caret at their tops for clarity of position.{{/i}}</li>
132  </ul>
133  <h3>{{_i}}Labels{{/i}}</h3>
134  <ul>
135    <li>{{_i}}Label colors updated to match form state colors{{/i}}</li>
136    <li>{{_i}}Not only do they match graphically, but they are powered by the same new variables{{/i}}</li>
137  </ul>
138  <h3>{{_i}}Thumbnails{{/i}}</h3>
139  <ul>
140    <li>{{_i}}Formerly <code>.media-grid</code>, now just <code>.thumbnails</code>, we've thoroughly extended this component for more uses while maintaining overall simplicity out of the box.{{/i}}</li>
141    <li>{{_i}}Individual thumbnails now require <code>.thumbnail</code> class{{/i}}</li>
142  </ul>
143  <h3>{{_i}}Alerts{{/i}}</h3>
144  <ul>
145    <li>{{_i}}New base class: <code>.alert</code> instead of <code>.alert-message</code>{{/i}}</li>
146    <li>{{_i}}Class names standardized for other options, now all starting with <code>.alert-</code>{{/i}}</li>
147    <li>{{_i}}Redesigned base alert styles to combine the deafult alerts and block-level alerts into one{{/i}}</li>
148    <li>{{_i}}Block level alert class changed: <code>.alert-block</code> instead of <code>.block-message</code>{{/i}}</li>
149  </ul>
150  <h3>{{_i}}Progress bars{{/i}}</h3>
151  <ul>
152    <li>{{_i}}New in 2.0{{/i}}</li>
153    <li>{{_i}}Features multiple styles via classes, including striped and animated variations via CSS3{{/i}}</li>
154  </ul>
155  <h3>{{_i}}Miscellaneous components{{/i}}</h3>
156  <ul>
157    <li>{{_i}}Added documentation for the well component and the close icon (used in modals and alerts){{/i}}</li>
158  </ul>
163<!-- Javascript
164================================================== -->
165<section id="javascript">
166  <div class="page-header">
167    <h1>{{_i}}Javascript plugins{{/i}}</h1>
168  </div>
169  <div class="alert alert-info">
170    <strong>{{_i}}Heads up!{{/i}}</strong> {{_i}}We're rewritten just about everything for our plugins, so head on over to <a href="./javascript.html">the Javascript page</a> to learn more.{{/i}}
171  </div>
172  <h3>{{_i}}Popovers{{/i}}</h3>
173  <ul>
174    <li>{{_i}}Child elements now properly namespaced: <code>.title</code> to <code>.popover-title</code>, <code>.inner</code> to <code>.popover-inner</code>, and <code>.content</code> to <code>.popover-content</code>.{{/i}}</li>
175  </ul>
176  <h3>{{_i}}New plugins{{/i}}</h3>
177  <ul>
178    <li>{{_i}}<a href="./javascript.html#collapse">Collapse</a>{{/i}}</li>
179    <li>{{_i}}<a href="./javascript.html#carousel">Carousel</a>{{/i}}</li>
180    <li>{{_i}}<a href="./javascript.html#typeahead">Typeahead</a>{{/i}}</li>
181  </ul>