unignore bower_components
[bootswatch] / bower_components / bootstrap / css.html
1 ---
2 layout: default
3 title: CSS
4 slug: css
5 lead: "Global CSS settings, fundamental HTML elements styled and enhanced with extensible classes, and an advanced grid system."
6 base_url: "../"
7 ---
8
9
10   <!-- Global Bootstrap settings
11   ================================================== -->
12   <div class="bs-docs-section">
13     <div class="page-header">
14       <h1 id="overview">Overview</h1>
15     </div>
16     <p class="lead">Get the lowdown on the key pieces of Bootstrap's infrastructure, including our approach to better, faster, stronger web development.</p>
17
18     <h3 id="overview-doctype">HTML5 doctype required</h3>
19     <p>Bootstrap makes use of certain HTML elements and CSS properties that require the use of the HTML5 doctype. Include it at the beginning of all your projects.</p>
20 {% highlight html %}
21 <!DOCTYPE html>
22 <html lang="en">
23   ...
24 </html>
25 {% endhighlight %}
26
27     <h3 id="overview-mobile">Mobile first</h3>
28     <p>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, <strong>Bootstrap is mobile first</strong>. Mobile first styles can be found throughout the entire library instead of in separate files.</p>
29     <p>To ensure proper rendering and touch zooming, <strong>add the viewport meta tag</strong> to your <code>&lt;head&gt;</code>.</p>
30 {% highlight html %}
31 <meta name="viewport" content="width=device-width, initial-scale=1.0">
32 {% endhighlight %}
33
34     <h3 id="overview-type-links">Typography and links</h3>
35     <p>Bootstrap sets basic global display, typography, and link styles. Specifically, we:</p>
36     <ul>
37       <li>Remove <code>margin</code> on the body</li>
38       <li>Set <code>background-color: white;</code> on the <code>body</code></li>
39       <li>Use the <code>@font-family-base</code>, <code>@font-size-base</code>, and <code>@line-height-base</code> attributes as our typographic base</li>
40       <li>Set the global link color via <code>@link-color</code> and apply link underlines only on <code>:hover</code></li>
41     </ul>
42     <p>These styles can be found within <strong>scaffolding.less</strong>.</p>
43
44     <h3 id="overview-normalize">Normalize reset</h3>
45     <p>For improved cross-browser rendering, we use <a href="http://necolas.github.io/normalize.css/" target="_blank">Normalize</a>, a project by <a href="http://twitter.com/necolas" target="_blank">Nicolas Gallagher</a> and <a href="http://twitter.com/jon_neal" target="_blank">Jonathan Neal</a>.</p>
46
47     <h3 id="overview-container">Centering with container</h3>
48     <p>Easily center a page's contents by wrapping its contents in a container. Containers set <code>max-width</code> at various media query breakpoints to match our grid system.</p>
49 {% highlight html %}
50 <div class="container">
51   ...
52 </div>
53 {% endhighlight %}
54   </div>
55
56
57
58   <!-- Glyphicons icon font
59   ================================================== -->
60   <div class="bs-docs-section">
61     <div class="page-header">
62       <h1 id="glyphicons">Glyphicons</h1>
63     </div>
64     <p class="lead">With the launch of Bootstrap 3, icons have been moved to a <a href="https://github.com/twbs/bootstrap-glyphicons">separate repository</a>. This keeps the primary project as lean as possible, makes it easier for folks to swap icon libraries, and makes Glyphicons icon fonts more readily available to more people outside Bootstrap.</p>
65     <p class="lead">
66       <a href="http://glyphicons.getbootstrap.com/" class="btn btn-default btn-large">Visit Glyphicons for Bootstrap</a> or <a href="https://github.com/twbs/bootstrap-glyphicons">download from GitHub</a>
67     </p>
68   </div>
69
70
71
72   <!-- Grid system
73   ================================================== -->
74   <div class="bs-docs-section">
75     <div class="page-header">
76       <h1 id="grid">Grid system</h1>
77     </div>
78     <p class="lead">Bootstrap includes a responsive, mobile-first fluid grid system that appropriately scales up to 12 columns as the device or viewport size increases. It includes <a href="#grid-example-basic">predefined classes</a> for easy layout options, as well as powerful <a href="#grid-less">mixins for generating more semantic layouts</a>.</p>
79
80     <h3 id="grid-options">Grid options</h3>
81     <p>See how aspects of the Bootstrap grid system work across multiple devices with a handy table.</p>
82     <div class="bs-table-scrollable">
83       <table class="table table-bordered table-striped bs-table">
84         <thead>
85           <tr>
86             <th></th>
87             <th>
88               Tiny grid
89               <small>Phones (&lt;480px)</small>
90             </th>
91             <th>
92               Small grid
93               <small>Tablets (&lt;768px)</small>
94             </th>
95             <th>
96               Medium-large grid
97               <small>Destkops (&gt;768px)</small>
98             </th>
99           </tr>
100         </thead>
101         <tbody>
102           <tr>
103             <th>Grid behavior</th>
104             <td>Horizontal at all times</td>
105             <td colspan="2">Collapsed to start, horizontal above breakpoints</td>
106           </tr>
107           <tr>
108             <th>Class prefix</th>
109             <td><code>.col-</code></td>
110             <td><code>.col-sm-</code></td>
111             <td><code>.col-lg-</code></td>
112           </tr>
113           <tr>
114             <th># of columns</th>
115             <td colspan="3">12</td>
116           </tr>
117           <tr>
118             <th>Nestable</th>
119             <td colspan="3">Yes</td>
120           </tr>
121           <tr>
122             <th>Offsets</th>
123             <td colspan="2" class="text-muted">N/A</td>
124             <td>Yes</td>
125           </tr>
126           <tr>
127             <th>Column ordering</th>
128             <td class="text-muted">N/A</td>
129             <td colspan="2">Yes</td>
130           </tr>
131         </tbody>
132       </table>
133     </div>
134
135     <h3 id="grid-example-basic">Example: Stacked-to-horizontal</h3>
136     <p>Using a single set of grid classes, you can create a basic grid system that starts out stacked on mobile and tablet devices before becoming horizontal on desktop devices.</p>
137     <div class="bs-docs-grid">
138       <div class="row show-grid">
139         <div class="col-lg-1">1</div>
140         <div class="col-lg-1">1</div>
141         <div class="col-lg-1">1</div>
142         <div class="col-lg-1">1</div>
143         <div class="col-lg-1">1</div>
144         <div class="col-lg-1">1</div>
145         <div class="col-lg-1">1</div>
146         <div class="col-lg-1">1</div>
147         <div class="col-lg-1">1</div>
148         <div class="col-lg-1">1</div>
149         <div class="col-lg-1">1</div>
150         <div class="col-lg-1">1</div>
151       </div>
152       <div class="row show-grid">
153         <div class="col-lg-8">8</div>
154         <div class="col-lg-4">4</div>
155       </div>
156       <div class="row show-grid">
157         <div class="col-lg-4">4</div>
158         <div class="col-lg-4">4</div>
159         <div class="col-lg-4">4</div>
160       </div>
161       <div class="row show-grid">
162         <div class="col-lg-6">6</div>
163         <div class="col-lg-6">6</div>
164       </div>
165     </div>
166 {% highlight html %}
167 <div class="row">
168   <div class="col-lg-1">1</div>
169   <div class="col-lg-1">1</div>
170   <div class="col-lg-1">1</div>
171   <div class="col-lg-1">1</div>
172   <div class="col-lg-1">1</div>
173   <div class="col-lg-1">1</div>
174   <div class="col-lg-1">1</div>
175   <div class="col-lg-1">1</div>
176   <div class="col-lg-1">1</div>
177   <div class="col-lg-1">1</div>
178   <div class="col-lg-1">1</div>
179   <div class="col-lg-1">1</div>
180 </div>
181 <div class="row show-grid">
182   <div class="col-lg-8">8</div>
183   <div class="col-lg-4">4</div>
184 </div>
185 <div class="row">
186   <div class="col-lg-4">4</div>
187   <div class="col-lg-4">4</div>
188   <div class="col-lg-4">4</div>
189 </div>
190 <div class="row">
191   <div class="col-lg-6">6</div>
192   <div class="col-lg-6">6</div>
193 </div>
194 {% endhighlight %}
195
196     <h3 id="grid-example-mixed">Example: Combining mobile with desktop</h3>
197     <p>Don't want your columns to simply stack in smaller devices? Use the small device grid system by adding <code>.col-*</code> classes to the existing <code>.col-lg-*</code> ones. See the example below for a better idea of how it all works.</p>
198     <div class="bs-docs-grid">
199       <div class="row show-grid">
200         <div class="col-12 col-lg-8">8</div>
201         <div class="col-6 col-lg-4">4</div>
202       </div>
203       <div class="row show-grid">
204         <div class="col-6 col-lg-4">4</div>
205         <div class="col-6 col-lg-4">4</div>
206         <div class="col-6 col-lg-4">4</div>
207       </div>
208       <div class="row show-grid">
209         <div class="col-6 col-lg-6">6</div>
210         <div class="col-6 col-lg-6">6</div>
211       </div>
212     </div>
213 {% highlight html %}
214 <div class="row">
215   <div class="col-12 col-lg-8">8</div>
216   <div class="col-6 col-lg-4">4</div>
217 </div>
218 <div class="row">
219   <div class="col-6 col-lg-4">4</div>
220   <div class="col-6 col-lg-4">4</div>
221   <div class="col-6 col-lg-4">4</div>
222 </div>
223 <div class="row">
224   <div class="col-6 col-lg-6">6</div>
225   <div class="col-6 col-lg-6">6</div>
226 </div>
227 {% endhighlight %}
228
229     <h3 id="grid-example-mixed-complete">Example: Mobile, tablet, and desktop</h3>
230     <p>Build on the previous example by creating even more dynamic and powerful layouts with tablet <code>.col-sm-*</code> classes.</p>
231     <div class="bs-docs-grid">
232       <div class="row show-grid">
233         <div class="col-12 col-sm-8 col-lg-8">.col-12 .col-lg-8</div>
234         <div class="col-6 col-sm-4 col-lg-4">.col-6 .col-lg-4</div>
235       </div>
236       <div class="row show-grid">
237         <div class="col-6 col-sm-4 col-lg-4">.col-6 .col-lg-4</div>
238         <div class="col-6 col-sm-4 col-lg-4">.col-6 .col-lg-4</div>
239         <div class="col-6 col-sm-4 col-lg-4">.col-6 .col-lg-4</div>
240       </div>
241       <div class="row show-grid">
242         <div class="col-6 col-sm-6 col-lg-6">.col-6 .col-lg-6</div>
243         <div class="col-6 col-sm-6 col-lg-6">.col-6 .col-lg-6</div>
244       </div>
245     </div>
246 {% highlight html %}
247 <div class="row">
248   <div class="col-12 col-sm-8 col-lg-8">.col-12 .col-lg-8</div>
249   <div class="col-6 col-sm-4 col-lg-4">.col-6 .col-lg-4</div>
250 </div>
251 <div class="row">
252   <div class="col-6 col-sm-4 col-lg-4">.col-6 .col-lg-4</div>
253   <div class="col-6 col-sm-4 col-lg-4">.col-6 .col-lg-4</div>
254   <div class="col-6 col-sm-4 col-lg-4">.col-6 .col-lg-4</div>
255 </div>
256 <div class="row">
257   <div class="col-6 col-sm-6 col-lg-6">.col-6 .col-lg-6</div>
258   <div class="col-6 col-sm-6 col-lg-6">.col-6 .col-lg-6</div>
259 </div>
260 {% endhighlight %}
261
262     <div class="bs-callout bs-callout-danger">
263       <h4>Need more examples?</h4>
264       <p>We dive into more grid layouts in a separate page, free of chrome and documentation to better show you the power of the grid.</p>
265       <p><a class="btn btn-danger" target="_blank" href="http://examples.getbootstrap.com/grid/">More grid examples</a></p>
266     </div>
267
268     <h3 id="grid-offsetting">Offsetting columns</h3>
269     <p>Move columns to the right using <code>.col-offset-*</code> classes. These classes increase the left margin of a column by <code>*</code> columns. For example, <code>.col-offset-4</code> moves <code>.col-lg-4</code> over four columns.</p>
270     <div class="bs-docs-grid">
271       <div class="row show-grid">
272         <div class="col-lg-4">4</div>
273         <div class="col-lg-4 col-offset-4">4 offset 4</div>
274       </div><!-- /row -->
275       <div class="row show-grid">
276         <div class="col-lg-3 col-offset-3">3 offset 3</div>
277         <div class="col-lg-3 col-offset-3">3 offset 3</div>
278       </div><!-- /row -->
279       <div class="row show-grid">
280         <div class="col-lg-6 col-offset-3">6 offset 3</div>
281       </div><!-- /row -->
282     </div>
283 {% highlight html %}
284 <div class="row">
285   <div class="col-lg-4">...</div>
286   <div class="col-lg-4 col-offset-4">...</div>
287 </div>
288 <div class="row">
289   <div class="col-lg-3 col-offset-3">3 offset 3</div>
290   <div class="col-lg-3 col-offset-3">3 offset 3</div>
291 </div>
292 <div class="row">
293   <div class="col-lg-6 col-offset-3">...</div>
294 </div>
295 {% endhighlight %}
296
297
298     <h3 id="grid-nesting">Nesting columns</h3>
299     <p>To nest your content with the default grid, add a new <code>.row</code> and set of <code>.col-lg-*</code> columns within an existing <code>.col-lg-*</code> column. Nested rows should include a set of columns that add up to 12.</p>
300     <div class="row show-grid">
301       <div class="col-lg-9">
302         Level 1: 9 columns
303         <div class="row show-grid">
304           <div class="col-lg-6">
305             Level 2: 6 columns
306           </div>
307           <div class="col-lg-6">
308             Level 2: 6 columns
309           </div>
310         </div>
311       </div>
312     </div>
313 {% highlight html %}
314 <div class="row">
315   <div class="col-lg-9">
316     Level 1: 9 columns
317     <div class="row">
318       <div class="col-lg-6">
319         Level 2: 6 columns
320       </div>
321       <div class="col-lg-6">
322         Level 2: 6 columns
323       </div>
324     </div>
325   </div>
326 </div>
327 {% endhighlight %}
328
329     <h3 id="grid-column-ordering">Column ordering</h3>
330     <p>Easily change the order of our built-in grid columns with <code>.col-push-*</code> and <code>.col-pull-*</code> modifier classes.</p>
331     <div class="row show-grid">
332       <div class="col-lg-9 col-push-3">9</div>
333       <div class="col-lg-3 col-pull-9">3</div>
334     </div>
335
336 {% highlight html %}
337 <div class="row show-grid">
338   <div class="col-lg-9 col-push-3">9</div>
339   <div class="col-lg-3 col-pull-9">3</div>
340 </div>
341 {% endhighlight %}
342
343     <h3 id="grid-less">LESS mixins and variables</h3>
344     <p>In addition to <a href="#grid-example-basic">prebuilt grid classes</a> for fast layouts, Bootstrap includes LESS variables and mixins for quickly generating your own simple, semantic layouts.</p>
345
346     <h4>Variables</h4>
347     <p>Variables determine the number of columns, the gutter width, and the media query point at which to begin floating columns. We use these to generate the predefined grid classes documented above, as well as for the custom mixins listed below.</p>
348 {% highlight css %}
349 @grid-columns:              12;
350 @grid-gutter-width:         30px;
351 @grid-float-breakpoint:     768px;
352 {% endhighlight %}
353
354     <h4>Mixins</h4>
355     <p>Mixins are used in conjunction with the grid variables to generate semantic CSS for individual grid columns.</p>
356 {% highlight css %}
357 // Creates a wrapper for a series of columns
358 .make-row() {
359   // Negative margin the row out to align the content of columns
360   margin-left:  (@grid-gutter-width / -2);
361   margin-right: (@grid-gutter-width / -2);
362   // Then clear the floated columns
363   .clearfix();
364 }
365
366 // Generate the columns
367 .make-column(@columns) {
368   @media (min-width: @grid-float-breakpoint) {
369     float: left;
370     // Calculate width based on number of columns available
371     width: percentage(@columns / @grid-columns);
372   }
373   // Prevent columns from collapsing when empty
374   min-height: 1px;
375   // Set inner padding as gutters instead of margin
376   padding-left:  (@grid-gutter-width / 2);
377   padding-right: (@grid-gutter-width / 2);
378 }
379
380 // Generate the column offsets
381 .make-column-offset(@columns) {
382   @media (min-width: @grid-float-breakpoint) {
383     margin-left: percentage((@columns / @grid-columns));
384   }
385 }
386 {% endhighlight %}
387
388     <h4>Example usage</h4>
389     <p>You can modify the variables to your own custom values, or just use the mixins with their default values. Here's an example of using the default settings to create a two-column layout with a gap between.</p>
390 {% highlight css %}
391 .wrapper {
392   .make-row();
393 }
394 .content-main {
395   .make-column(8);
396 }
397 .content-secondary {
398   .make-column(3);
399   .make-column-offset(1);
400 }
401 {% endhighlight %}
402 {% highlight html %}
403 <div class="wrapper">
404   <div class="content-main">...</div>
405   <div class="content-secondary">...</div>
406 </div>
407 {% endhighlight %}
408
409   </div>
410
411
412
413
414   <!-- Typography
415   ================================================== -->
416   <div class="bs-docs-section">
417     <div class="page-header">
418       <h1 id="type">Typography</h1>
419     </div>
420
421     <!-- Headings -->
422     <h2 id="type-headings">Headings</h2>
423     <p>All HTML headings, <code>&lt;h1&gt;</code> through <code>&lt;h6&gt;</code> are available.</p>
424
425     <div class="bs-example bs-example-type">
426       <table class="table">
427         <tbody>
428           <tr>
429             <th><h1>Bootstrap heading</h1></th>
430             <td>Semibold 38px</td>
431           </tr>
432           <tr>
433             <th><h2>Bootstrap heading</h2></th>
434             <td>Semibold 32px</td>
435           </tr>
436           <tr>
437             <th><h3>Bootstrap heading</h3></th>
438             <td>Semibold 24px</td>
439           </tr>
440           <tr>
441             <th><h4>Bootstrap heading</h4></th>
442             <td>Semibold 18px</td>
443           </tr>
444           <tr>
445             <th><h5>Bootstrap heading</h5></th>
446             <td>Semibold 16px</td>
447           </tr>
448           <tr>
449             <th><h6>Bootstrap heading</h6></th>
450             <td>Semibold 12px</td>
451           </tr>
452         </tbody>
453       </table>
454     </div>
455 {% highlight html %}
456 <h1>...</h1>
457 <h2>...</h2>
458 <h3>...</h3>
459 <h4>...</h4>
460 <h5>...</h5>
461 <h6>...</h6>
462 {% endhighlight %}
463
464     <!-- Body copy -->
465     <h2 id="type-body-copy">Body copy</h2>
466     <p>Bootstrap's global default <code>font-size</code> is <strong>14px</strong>, with a <code>line-height</code> of <strong>1.428</strong>. This is applied to the <code>&lt;body&gt;</code> and all paragraphs. In addition, <code>&lt;p&gt;</code> (paragraphs) receive a bottom margin of half their computed line-height (10px by default).</p>
467     <div class="bs-example">
468       <p>Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.</p>
469       <p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec ullamcorper nulla non metus auctor fringilla. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec ullamcorper nulla non metus auctor fringilla.</p>
470       <p>Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</p>
471     </div>
472 {% highlight html %}
473 <p>...</p>
474 {% endhighlight %}
475
476     <!-- Body copy .lead -->
477     <h3>Lead body copy</h3>
478     <p>Make a paragraph stand out by adding <code>.lead</code>.</p>
479     <div class="bs-example">
480       <p class="lead">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.</p>
481     </div>
482 {% highlight html %}
483 <p class="lead">...</p>
484 {% endhighlight %}
485
486     <!-- Using LESS -->
487     <h3>Built with Less</h3>
488     <p>The typographic scale is based on two LESS variables in <strong>variables.less</strong>: <code>@font-size-base</code> and <code>@line-height-base</code>. The first is the base font-size used throughout and the second is the base line-height. We use those variables and some simple math to create the margins, paddings, and line-heights of all our type and more. Customize them and Bootstrap adapts.</p>
489
490
491     <!-- Emphasis -->
492     <h2 id="type-emphasis">Emphasis</h2>
493     <p>Make use of HTML's default emphasis tags with lightweight styles.</p>
494
495     <h3>Small text</h3>
496     <p>For de-emphasizing inline or blocks of text, use the <code>&lt;small&gt;</code> tag to set text at 85% the size of the parent. Heading elements receive their own <code>font-size</code> for nested <code>&lt;small&gt;</code> elements.</p>
497     <div class="bs-example">
498       <p><small>This line of text is meant to be treated as fine print.</small></p>
499     </div>
500 {% highlight html %}
501 <small>This line of text is meant to be treated as fine print.</small>
502 {% endhighlight %}
503
504
505     <h3>Bold</h3>
506     <p>For emphasizing a snippet of text with a heavier font-weight.</p>
507     <div class="bs-example">
508       <p>The following snippet of text is <strong>rendered as bold text</strong>.</p>
509     </div>
510 {% highlight html %}
511 <strong>rendered as bold text</strong>
512 {% endhighlight %}
513
514     <h3>Italics</h3>
515     <p>For emphasizing a snippet of text with italics.</p>
516     <div class="bs-example">
517       <p>The following snippet of text is <em>rendered as italicized text</em>.</p>
518     </div>
519 {% highlight html %}
520 <em>rendered as italicized text</em>
521 {% endhighlight %}
522
523     <div class="bs-callout bs-callout-info">
524       <h4>Alternate elements</h4>
525       <p>Feel free to use <code>&lt;b&gt;</code> and <code>&lt;i&gt;</code> in HTML5. <code>&lt;b&gt;</code> is meant to highlight words or phrases without conveying additional importance while <code>&lt;i&gt;</code> is mostly for voice, technical terms, etc.</p>
526     </div>
527
528     <h3>Alignment classes</h3>
529     <p>Easily realign text to components with text alignment classes.</p>
530     <div class="bs-example">
531       <p class="text-left">Left aligned text.</p>
532       <p class="text-center">Center aligned text.</p>
533       <p class="text-right">Right aligned text.</p>
534     </div>
535 {% highlight html %}
536 <p class="text-left">Left aligned text.</p>
537 <p class="text-center">Center aligned text.</p>
538 <p class="text-right">Right aligned text.</p>
539 {% endhighlight %}
540
541     <h3>Emphasis classes</h3>
542     <p>Convey meaning through color with a handful of emphasis utility classes.</p>
543     <div class="bs-example">
544       <p class="text-muted">Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.</p>
545       <p class="text-primary">Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
546       <p class="text-warning">Etiam porta sem malesuada magna mollis euismod.</p>
547       <p class="text-danger">Donec ullamcorper nulla non metus auctor fringilla.</p>
548       <p class="text-success">Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p>
549       <p class="text-info">Maecenas sed diam eget risus varius blandit sit amet non magna.</p>
550     </div>
551 {% highlight html %}
552 <p class="text-muted">...</p>
553 <p class="text-primary">...</p>
554 <p class="text-warning">...</p>
555 <p class="text-danger">...</p>
556 <p class="text-success">...</p>
557 <p class="text-info">...</p>
558 {% endhighlight %}
559
560
561     <!-- Abbreviations -->
562     <h2 id="type-abbreviations">Abbreviations</h2>
563     <p>Stylized implementation of HTML's <code>&lt;abbr&gt;</code> element for abbreviations and acronyms to show the expanded version on hover. Abbreviations with a <code>title</code> attribute have a light dotted bottom border and a help cursor on hover, providing additional context on hover.</p>
564
565     <h3>Basic abbreviation</h3>
566     <p>For expanded text on long hover of an abbreviation, include the <code>title</code> attribute with the <code>&lt;abbr&gt;</code> element.</p>
567     <div class="bs-example">
568       <p>An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.</p>
569     </div>
570 {% highlight html %}
571 <abbr title="attribute">attr</abbr>
572 {% endhighlight %}
573
574     <h3>Initialism</h3>
575     <p>Add <code>.initialism</code> to an abbreviation for a slightly smaller font-size.</p>
576     <div class="bs-example">
577       <p><abbr title="HyperText Markup Language" class="initialism">HTML</abbr> is the best thing since sliced bread.</p>
578     </div>
579 {% highlight html %}
580 <abbr title="HyperText Markup Language" class="initialism">HTML</abbr>
581 {% endhighlight %}
582
583
584     <!-- Addresses -->
585     <h2 id="type-addresses">Addresses</h2>
586     <p>Present contact information for the nearest ancestor or the entire body of work. Preserve formatting by ending all lines with <code>&lt;br&gt;</code>.</p>
587     <div class="bs-example">
588       <address>
589         <strong>Twitter, Inc.</strong><br>
590         795 Folsom Ave, Suite 600<br>
591         San Francisco, CA 94107<br>
592         <abbr title="Phone">P:</abbr> (123) 456-7890
593       </address>
594       <address>
595         <strong>Full Name</strong><br>
596         <a href="mailto:#">first.last@example.com</a>
597       </address>
598     </div>
599 {% highlight html %}
600 <address>
601   <strong>Twitter, Inc.</strong><br>
602   795 Folsom Ave, Suite 600<br>
603   San Francisco, CA 94107<br>
604   <abbr title="Phone">P:</abbr> (123) 456-7890
605 </address>
606
607 <address>
608   <strong>Full Name</strong><br>
609   <a href="mailto:#">first.last@example.com</a>
610 </address>
611 {% endhighlight %}
612
613
614     <!-- Blockquotes -->
615     <h2 id="type-blockquotes">Blockquotes</h2>
616     <p>For quoting blocks of content from another source within your document.</p>
617
618     <h3>Default blockquote</h3>
619     <p>Wrap <code>&lt;blockquote&gt;</code> around any <abbr title="HyperText Markup Language">HTML</abbr> as the quote. For straight quotes we recommend a <code>&lt;p&gt;</code>.</p>
620     <div class="bs-example">
621       <blockquote>
622         <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
623       </blockquote>
624     </div>
625 {% highlight html %}
626 <blockquote>
627   <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
628 </blockquote>
629 {% endhighlight %}
630
631     <h3>Blockquote options</h3>
632     <p>Style and content changes for simple variations on a standard blockquote.</p>
633
634     <h4>Naming a source</h4>
635     <p>Add <code>&lt;small&gt;</code> tag for identifying the source. Wrap the name of the source work in <code>&lt;cite&gt;</code>.</p>
636     <div class="bs-example">
637       <blockquote>
638         <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
639         <small>Someone famous in <cite title="Source Title">Source Title</cite></small>
640       </blockquote>
641     </div>
642 {% highlight html %}
643 <blockquote>
644   <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
645   <small>Someone famous in <cite title="Source Title">Source Title</cite></small>
646 </blockquote>
647 {% endhighlight %}
648
649     <h4>Alternate displays</h4>
650     <p>Use <code>.pull-right</code> for a floated, right-aligned blockquote.</p>
651     <div class="bs-example" style="overflow: hidden;">
652       <blockquote class="pull-right">
653         <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
654         <small>Someone famous in <cite title="Source Title">Source Title</cite></small>
655       </blockquote>
656     </div>
657 {% highlight html %}
658 <blockquote class="pull-right">
659   ...
660 </blockquote>
661 {% endhighlight %}
662
663
664     <!-- Lists -->
665     <h2 id="type-lists">Lists</h2>
666
667     <h3>Unordered</h3>
668     <p>A list of items in which the order does <em>not</em> explicitly matter.</p>
669     <div class="bs-example">
670       <ul>
671         <li>Lorem ipsum dolor sit amet</li>
672         <li>Consectetur adipiscing elit</li>
673         <li>Integer molestie lorem at massa</li>
674         <li>Facilisis in pretium nisl aliquet</li>
675         <li>Nulla volutpat aliquam velit
676           <ul>
677             <li>Phasellus iaculis neque</li>
678             <li>Purus sodales ultricies</li>
679             <li>Vestibulum laoreet porttitor sem</li>
680             <li>Ac tristique libero volutpat at</li>
681           </ul>
682         </li>
683         <li>Faucibus porta lacus fringilla vel</li>
684         <li>Aenean sit amet erat nunc</li>
685         <li>Eget porttitor lorem</li>
686       </ul>
687     </div>
688 {% highlight html %}
689 <ul>
690   <li>...</li>
691 </ul>
692 {% endhighlight %}
693
694     <h3>Ordered</h3>
695     <p>A list of items in which the order <em>does</em> explicitly matter.</p>
696     <div class="bs-example">
697       <ol>
698         <li>Lorem ipsum dolor sit amet</li>
699         <li>Consectetur adipiscing elit</li>
700         <li>Integer molestie lorem at massa</li>
701         <li>Facilisis in pretium nisl aliquet</li>
702         <li>Nulla volutpat aliquam velit</li>
703         <li>Faucibus porta lacus fringilla vel</li>
704         <li>Aenean sit amet erat nunc</li>
705         <li>Eget porttitor lorem</li>
706       </ol>
707     </div>
708 {% highlight html %}
709 <ol>
710   <li>...</li>
711 </ol>
712 {% endhighlight %}
713
714     <h3>Unstyled</h3>
715     <p>Remove the default <code>list-style</code> and left margin on list items (immediate children only). <strong>This only applies to immediate children list items</strong>, meaning you will need to add the class for any nested lists as well.</p>
716     <div class="bs-example">
717       <ul class="list-unstyled">
718         <li>Lorem ipsum dolor sit amet</li>
719         <li>Consectetur adipiscing elit</li>
720         <li>Integer molestie lorem at massa</li>
721         <li>Facilisis in pretium nisl aliquet</li>
722         <li>Nulla volutpat aliquam velit
723           <ul>
724             <li>Phasellus iaculis neque</li>
725             <li>Purus sodales ultricies</li>
726             <li>Vestibulum laoreet porttitor sem</li>
727             <li>Ac tristique libero volutpat at</li>
728           </ul>
729         </li>
730         <li>Faucibus porta lacus fringilla vel</li>
731         <li>Aenean sit amet erat nunc</li>
732         <li>Eget porttitor lorem</li>
733       </ul>
734     </div>
735 {% highlight html %}
736 <ul class="list-unstyled">
737   <li>...</li>
738 </ul>
739 {% endhighlight %}
740
741     <h3>Inline</h3>
742     <p>Place all list items on a single line with <code>inline-block</code> and some light padding.</p>
743     <div class="bs-example">
744       <ul class="list-inline">
745         <li>Lorem ipsum</li>
746         <li>Phasellus iaculis</li>
747         <li>Nulla volutpat</li>
748       </ul>
749     </div>
750 {% highlight html %}
751 <ul class="list-inline">
752   <li>...</li>
753 </ul>
754 {% endhighlight %}
755
756     <h3>Description</h3>
757     <p>A list of terms with their associated descriptions.</p>
758     <div class="bs-example">
759       <dl>
760         <dt>Description lists</dt>
761         <dd>A description list is perfect for defining terms.</dd>
762         <dt>Euismod</dt>
763         <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
764         <dd>Donec id elit non mi porta gravida at eget metus.</dd>
765         <dt>Malesuada porta</dt>
766         <dd>Etiam porta sem malesuada magna mollis euismod.</dd>
767       </dl>
768     </div>
769 {% highlight html %}
770 <dl>
771   <dt>...</dt>
772   <dd>...</dd>
773 </dl>
774 {% endhighlight %}
775
776     <h4>Horizontal description</h4>
777     <p>Make terms and descriptions in <code>&lt;dl&gt;</code> line up side-by-side.</p>
778     <div class="bs-example">
779       <dl class="dl-horizontal">
780         <dt>Description lists</dt>
781         <dd>A description list is perfect for defining terms.</dd>
782         <dt>Euismod</dt>
783         <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
784         <dd>Donec id elit non mi porta gravida at eget metus.</dd>
785         <dt>Malesuada porta</dt>
786         <dd>Etiam porta sem malesuada magna mollis euismod.</dd>
787         <dt>Felis euismod semper eget lacinia</dt>
788         <dd>Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</dd>
789       </dl>
790     </div>
791 {% highlight html %}
792 <dl class="dl-horizontal">
793   <dt>...</dt>
794   <dd>...</dd>
795 </dl>
796 {% endhighlight %}
797
798     <div class="bs-callout bs-callout-info">
799       <h4>Auto-truncating</h4>
800       <p>Horizontal description lists will truncate terms that are too long to fit in the left column with <code>text-overflow</code>. In narrower viewports, they will change to the default stacked layout.</p>
801     </div>
802   </div>
803
804
805   <!-- Code
806   ================================================== -->
807   <div class="bs-docs-section">
808     <div class="page-header">
809       <h1 id="code">Code</h1>
810     </div>
811
812     <h2>Inline</h2>
813     <p>Wrap inline snippets of code with <code>&lt;code&gt;</code>.</p>
814 <div class="bs-example">
815   For example, <code>&lt;section&gt;</code> should be wrapped as inline.
816 </div>
817 {% highlight html %}
818 For example, <code>&lt;section&gt;</code> should be wrapped as inline.
819 {% endhighlight %}
820
821     <h2>Basic block</h2>
822     <p>Use <code>&lt;pre&gt;</code> for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.</p>
823 <div class="bs-example">
824   <pre>&lt;p&gt;Sample text here...&lt;/p&gt;</pre>
825 </div>
826 {% highlight html %}
827 <pre>&lt;p&gt;Sample text here...&lt;/p&gt;</pre>
828 {% endhighlight %}
829
830     <p>You may optionally add the <code>.pre-scrollable</code> class which will set a max-height of 350px and provide a y-axis scrollbar.</p>
831   </div>
832
833
834
835   <!-- Tables
836   ================================================== -->
837   <div class="bs-docs-section">
838     <div class="page-header">
839       <h1 id="tables">Tables</h1>
840     </div>
841
842     <h2 id="tables-example">Basic example</h2>
843     <p>For basic styling&mdash;light padding and only horizontal dividers&mdash;add the base class <code>.table</code> to any <code>&lt;table&gt;</code>. It may seem super redundant, but given the widespread use of tables for other plugins like calendars and date pickers, we've opted to isolate our custom table styles.</p>
844     <div class="bs-example">
845       <table class="table">
846         <thead>
847           <tr>
848             <th>#</th>
849             <th>First Name</th>
850             <th>Last Name</th>
851             <th>Username</th>
852           </tr>
853         </thead>
854         <tbody>
855           <tr>
856             <td>1</td>
857             <td>Mark</td>
858             <td>Otto</td>
859             <td>@mdo</td>
860           </tr>
861           <tr>
862             <td>2</td>
863             <td>Jacob</td>
864             <td>Thornton</td>
865             <td>@fat</td>
866           </tr>
867           <tr>
868             <td>3</td>
869             <td>Larry</td>
870             <td>the Bird</td>
871             <td>@twitter</td>
872           </tr>
873         </tbody>
874       </table>
875     </div><!-- /example -->
876 {% highlight html %}
877 <table class="table">
878   ...
879 </table>
880 {% endhighlight %}
881
882
883     <h2>Optional classes</h2>
884     <p>Add any of the following classes to the <code>.table</code> base class.</p>
885
886     <h3 id="tables-striped">Striped</h3>
887     <p>Use <code>.table-striped</code> to add zebra-striping to any table row within the <code>&lt;tbody&gt;</code>.</p>
888     <div class="bs-callout bs-callout-danger">
889       <h4>Cross-browser compatibility</h4>
890       <p>Striped tables are styled via the <code>:nth-child</code> CSS selector, which is not available in IE8.</p>
891     </div>
892     <div class="bs-example">
893       <table class="table table-striped">
894         <thead>
895           <tr>
896             <th>#</th>
897             <th>First Name</th>
898             <th>Last Name</th>
899             <th>Username</th>
900           </tr>
901         </thead>
902         <tbody>
903           <tr>
904             <td>1</td>
905             <td>Mark</td>
906             <td>Otto</td>
907             <td>@mdo</td>
908           </tr>
909           <tr>
910             <td>2</td>
911             <td>Jacob</td>
912             <td>Thornton</td>
913             <td>@fat</td>
914           </tr>
915           <tr>
916             <td>3</td>
917             <td>Larry</td>
918             <td>the Bird</td>
919             <td>@twitter</td>
920           </tr>
921         </tbody>
922       </table>
923     </div><!-- /example -->
924 {% highlight html %}
925 <table class="table table-striped">
926   ...
927 </table>
928 {% endhighlight %}
929
930     <h3 id="tables-bordered">Bordered</h3>
931     <p>Add <code>.table-bordered</code> for borders on all sides of the table and cells.</p>
932     <div class="bs-example">
933       <table class="table table-bordered">
934         <thead>
935           <tr>
936             <th>#</th>
937             <th>First Name</th>
938             <th>Last Name</th>
939             <th>Username</th>
940           </tr>
941         </thead>
942         <tbody>
943           <tr>
944             <td rowspan="2">1</td>
945             <td>Mark</td>
946             <td>Otto</td>
947             <td>@mdo</td>
948           </tr>
949           <tr>
950             <td>Mark</td>
951             <td>Otto</td>
952             <td>@TwBootstrap</td>
953           </tr>
954           <tr>
955             <td>2</td>
956             <td>Jacob</td>
957             <td>Thornton</td>
958             <td>@fat</td>
959           </tr>
960           <tr>
961             <td>3</td>
962             <td colspan="2">Larry the Bird</td>
963             <td>@twitter</td>
964           </tr>
965         </tbody>
966       </table>
967     </div><!-- /example -->
968 {% highlight html %}
969 <table class="table table-bordered">
970   ...
971 </table>
972 {% endhighlight %}
973
974     <h3 id="tables-hover-rows">Hover rows</h3>
975     <p>Add <code>.table-hover</code> to enable a hover state on table rows within a <code>&lt;tbody&gt;</code>.</p>
976     <div class="bs-example">
977       <table class="table table-hover">
978         <thead>
979           <tr>
980             <th>#</th>
981             <th>First Name</th>
982             <th>Last Name</th>
983             <th>Username</th>
984           </tr>
985         </thead>
986         <tbody>
987           <tr>
988             <td>1</td>
989             <td>Mark</td>
990             <td>Otto</td>
991             <td>@mdo</td>
992           </tr>
993           <tr>
994             <td>2</td>
995             <td>Jacob</td>
996             <td>Thornton</td>
997             <td>@fat</td>
998           </tr>
999           <tr>
1000             <td>3</td>
1001             <td colspan="2">Larry the Bird</td>
1002             <td>@twitter</td>
1003           </tr>
1004         </tbody>
1005       </table>
1006     </div><!-- /example -->
1007 {% highlight html %}
1008 <table class="table table-hover">
1009   ...
1010 </table>
1011 {% endhighlight %}
1012
1013
1014     <h3 id="tables-condensed">Condensed</h3>
1015     <p>Add <code>.table-condensed</code> to make tables more compact by cutting cell padding in half.</p>
1016     <div class="bs-example">
1017       <table class="table table-condensed">
1018         <thead>
1019           <tr>
1020             <th>#</th>
1021             <th>First Name</th>
1022             <th>Last Name</th>
1023             <th>Username</th>
1024           </tr>
1025         </thead>
1026         <tbody>
1027           <tr>
1028             <td>1</td>
1029             <td>Mark</td>
1030             <td>Otto</td>
1031             <td>@mdo</td>
1032           </tr>
1033           <tr>
1034             <td>2</td>
1035             <td>Jacob</td>
1036             <td>Thornton</td>
1037             <td>@fat</td>
1038           </tr>
1039           <tr>
1040             <td>3</td>
1041             <td colspan="2">Larry the Bird</td>
1042             <td>@twitter</td>
1043           </tr>
1044         </tbody>
1045       </table>
1046     </div><!-- /example -->
1047 {% highlight html %}
1048 <table class="table table-condensed">
1049   ...
1050 </table>
1051 {% endhighlight %}
1052
1053
1054
1055     <h2 id="tables-row-classes">Contextual table classes</h2>
1056     <p>Use contextual classes to color table rows or individual cells.</p>
1057     <div class="bs-table-scrollable">
1058       <table class="table table-bordered table-striped bs-table">
1059         <colgroup>
1060           <col class="col-lg-1">
1061           <col class="col-lg-7">
1062         </colgroup>
1063         <thead>
1064           <tr>
1065             <th>Class</th>
1066             <th>Description</th>
1067           </tr>
1068         </thead>
1069         <tbody>
1070           <tr>
1071             <td>
1072               <code>.success</code>
1073             </td>
1074             <td>Indicates a successful or positive action</td>
1075           </tr>
1076           <tr>
1077             <td>
1078               <code>.danger</code>
1079             </td>
1080             <td>Indicates a dangerous or potentially negative action</td>
1081           </tr>
1082           <tr>
1083             <td>
1084               <code>.warning</code>
1085             </td>
1086             <td>Indicates a warning that might need attention</td>
1087           </tr>
1088           <tr>
1089             <td>
1090               <code>.active</code>
1091             </td>
1092             <td>Applies the hover color to a particular row or cell</td>
1093           </tr>
1094         </tbody>
1095       </table>
1096     </div>
1097     <div class="bs-example">
1098       <table class="table">
1099         <thead>
1100           <tr>
1101             <th>#</th>
1102             <th>Column heading</th>
1103             <th>Column heading</th>
1104             <th>Column heading</th>
1105           </tr>
1106         </thead>
1107         <tbody>
1108           <tr class="success">
1109             <td>1</td>
1110             <td>Column content</td>
1111             <td>Column content</td>
1112             <td>Column content</td>
1113           </tr>
1114           <tr>
1115             <td>2</td>
1116             <td>Column content</td>
1117             <td>Column content</td>
1118             <td>Column content</td>
1119           </tr>
1120           <tr class="danger">
1121             <td>3</td>
1122             <td>Column content</td>
1123             <td>Column content</td>
1124             <td>Column content</td>
1125           </tr>
1126           <tr>
1127             <td>4</td>
1128             <td>Column content</td>
1129             <td>Column content</td>
1130             <td>Column content</td>
1131           </tr>
1132           <tr class="warning">
1133             <td>5</td>
1134             <td>Column content</td>
1135             <td>Column content</td>
1136             <td>Column content</td>
1137           </tr>
1138           <tr>
1139             <td>6</td>
1140             <td>Column content</td>
1141             <td>Column content</td>
1142             <td>Column content</td>
1143           </tr>
1144           <tr class="active">
1145             <td>7</td>
1146             <td>Column content</td>
1147             <td>Column content</td>
1148             <td>Column content</td>
1149           </tr>
1150         </tbody>
1151       </table>
1152     </div><!-- /example -->
1153 {% highlight html %}
1154 <tr class="success">
1155   <td>1</td>
1156   <td>Column content</td>
1157   <td>Column content</td>
1158   <td>Column content</td>
1159 </tr>
1160 {% endhighlight %}
1161
1162   </div>
1163
1164
1165
1166   <!-- Forms
1167   ================================================== -->
1168   <div class="bs-docs-section">
1169     <div class="page-header">
1170       <h1 id="forms">Forms</h1>
1171     </div>
1172
1173     <h2 id="forms-example">Basic example</h2>
1174     <p>Individual form controls automatically receive some global styling. All textual <code>&lt;input&gt;</code>, <code>&lt;textarea&gt;</code>, and <code>&lt;select&gt;</code> elements with <code>.form-control</code> are set to <code>width: 100%;</code> by default. Wrap labels and controls in <code>.form-group</code> for optimum spacing.</p>
1175     <form class="bs-example">
1176       <fieldset>
1177         <legend>Legend</legend>
1178         <div class="form-group">
1179           <label for="exampleInputEmail">Email address</label>
1180           <input type="text" class="form-control" id="exampleInputEmail" placeholder="Enter email">
1181         </div>
1182         <div class="form-group">
1183           <label for="exampleInputPassword">Password</label>
1184           <input type="password" class="form-control" id="exampleInputPassword" placeholder="Password">
1185         </div>
1186         <div class="form-group">
1187           <label for="exampleInputFile">File input</label>
1188           <input type="file" id="exampleInputFile">
1189           <p class="help-block">Example block-level help text here.</p>
1190         </div>
1191         <div class="checkbox">
1192           <label>
1193             <input type="checkbox"> Check me out
1194           </label>
1195         </div>
1196         <button type="submit" class="btn btn-default">Submit</button>
1197       </fieldset>
1198     </form><!-- /example -->
1199 {% highlight html %}
1200 <form>
1201   <fieldset>
1202     <legend>Legend</legend>
1203     <div class="form-group">
1204       <label for="exampleInputEmail">Email address</label>
1205       <input type="text" class="form-control" id="exampleInputEmail" placeholder="Enter email">
1206     </div>
1207     <div class="form-group">
1208       <label for="exampleInputPassword">Password</label>
1209       <input type="password" class="form-control" id="exampleInputPassword" placeholder="Password">
1210     </div>
1211     <div class="form-group">
1212       <label for="exampleInputFile">File input</label>
1213       <input type="file" id="exampleInputFile">
1214       <p class="help-block">Example block-level help text here.</p>
1215     </div>
1216     <div class="checkbox">
1217       <label>
1218         <input type="checkbox"> Check me out
1219       </label>
1220     </div>
1221     <button type="submit" class="btn btn-default">Submit</button>
1222   </fieldset>
1223 </form>
1224 {% endhighlight %}
1225
1226
1227     <h2>Optional layouts</h2>
1228     <p>Included with Bootstrap are optional form layouts for common use cases.</p>
1229
1230     <h3 id="forms-inline">Inline form</h3>
1231     <p>Add <code>.form-inline</code> for left-aligned and inline-block controls for a compact layout.</p>
1232     <div class="bs-callout bs-callout-danger">
1233       <h4>Requires custom widths</h4>
1234       <p>Inputs, selects, and textareas are 100% wide by default in Bootstrap. To use the inline form, you'll have to set a width on the form controls used within.</p>
1235     </div>
1236     <form class="bs-example form-inline">
1237       <input type="text" class="form-control" placeholder="Email">
1238       <input type="password" class="form-control" placeholder="Password">
1239       <div class="checkbox">
1240         <label>
1241           <input type="checkbox"> Remember me
1242         </label>
1243       </div>
1244       <button type="submit" class="btn btn-default">Sign in</button>
1245     </form><!-- /example -->
1246 {% highlight html %}
1247 <form class="form-inline">
1248   <input type="text" class="form-control" placeholder="Email">
1249   <input type="password" class="form-control" placeholder="Password">
1250   <div class="checkbox">
1251     <label>
1252       <input type="checkbox"> Remember me
1253     </label>
1254   </div>
1255   <button type="submit" class="btn btn-default">Sign in</button>
1256 </form>
1257 {% endhighlight %}
1258
1259     <h3 id="forms-horizontal">Horizontal form</h3>
1260     <p>Use Bootstrap's predefined grid classes to align labels and groups of form controls in a horizontal layout by adding <code>.form-horizontal</code> to the form. Doing so changes <code>.form-group</code>s to behave as grid rows, so no need for <code>.row</code>.</p>
1261     <form class="bs-example form-horizontal">
1262       <div class="form-group">
1263         <label for="inputEmail" class="col-lg-2 control-label">Email</label>
1264         <div class="col-lg-10">
1265           <input type="text" class="form-control" id="inputEmail" placeholder="Email">
1266         </div>
1267       </div>
1268       <div class="form-group">
1269         <label for="inputPassword" class="col-lg-2 control-label">Password</label>
1270         <div class="col-lg-10">
1271           <input type="password" class="form-control" id="inputPassword" placeholder="Password">
1272           <div class="checkbox">
1273             <label>
1274               <input type="checkbox"> Remember me
1275             </label>
1276           </div>
1277           <button type="submit" class="btn btn-default">Sign in</button>
1278         </div>
1279       </div>
1280     </form>
1281 {% highlight html %}
1282 <form class="form-horizontal">
1283   <div class="form-group">
1284     <label for="inputEmail" class="col-lg-2 control-label">Email</label>
1285     <div class="col-lg-10">
1286       <input type="text" class="form-control" id="inputEmail" placeholder="Email">
1287     </div>
1288   </div>
1289   <div class="form-group">
1290     <label for="inputPassword" class="col-lg-2 control-label">Password</label>
1291     <div class="col-lg-10">
1292       <input type="password" class="form-control" id="inputPassword" placeholder="Password">
1293       <div class="checkbox">
1294         <label>
1295           <input type="checkbox"> Remember me
1296         </label>
1297       </div>
1298       <button type="submit" class="btn btn-default">Sign in</button>
1299     </div>
1300   </div>
1301 </form>
1302 {% endhighlight %}
1303
1304
1305     <h2 id="forms-controls">Supported form controls</h2>
1306     <p>Examples of standard form controls supported in an example form layout.</p>
1307
1308     <h3>Inputs</h3>
1309     <p>Most common form control, text-based input fields. Includes support for all HTML5 types: text, password, datetime, datetime-local, date, month, time, week, number, email, url, search, tel, and color.</p>
1310     <div class="bs-callout bs-callout-danger">
1311       <h4>Type declaration required</h4>
1312       <p>Inputs will only be fully styled if their <code>type</code> is properly declared.</p>
1313     </div>
1314     <form class="bs-example">
1315       <input type="text" class="form-control" placeholder="Text input">
1316     </form>
1317 {% highlight html %}
1318 <input type="text" class="form-control" placeholder="Text input">
1319 {% endhighlight %}
1320
1321     <h3>Textarea</h3>
1322     <p>Form control which supports multiple lines of text. Change <code>rows</code> attribute as necessary.</p>
1323     <form class="bs-example">
1324       <textarea class="form-control" rows="3"></textarea>
1325     </form>
1326 {% highlight html %}
1327 <textarea class="form-control" rows="3"></textarea>
1328 {% endhighlight %}
1329
1330     <h3>Checkboxes and radios</h3>
1331     <p>Checkboxes are for selecting one or several options in a list while radios are for selecting one option from many.</p>
1332     <h4>Default (stacked)</h4>
1333     <form class="bs-example">
1334       <div class="checkbox">
1335         <label>
1336           <input type="checkbox" value="">
1337           Option one is this and that&mdash;be sure to include why it's great
1338         </label>
1339       </div>
1340       <br>
1341       <div class="radio">
1342         <label>
1343           <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
1344           Option one is this and that&mdash;be sure to include why it's great
1345         </label>
1346       </div>
1347       <div class="radio">
1348         <label>
1349           <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
1350           Option two can be something else and selecting it will deselect option one
1351         </label>
1352       </div>
1353     </form>
1354 {% highlight html %}
1355 <div class="checkbox">
1356   <label>
1357     <input type="checkbox" value="">
1358     Option one is this and that&mdash;be sure to include why it's great
1359   </label>
1360 </div>
1361
1362 <div class="radio">
1363   <label>
1364     <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
1365     Option one is this and that&mdash;be sure to include why it's great
1366   </label>
1367   <label>
1368     <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
1369     Option two can be something else and selecting it will deselect option one
1370   </label>
1371 </div>
1372 {% endhighlight %}
1373
1374     <h4>Inline checkboxes</h4>
1375     <p>Use <code>.checkbox-inline</code> or <code>.radio-inline</code> class to a series of checkboxes or radios for controls appear on the same line.</p>
1376     <form class="bs-example">
1377       <label class="checkbox-inline">
1378         <input type="checkbox" id="inlineCheckbox1" value="option1"> 1
1379       </label>
1380       <label class="checkbox-inline">
1381         <input type="checkbox" id="inlineCheckbox2" value="option2"> 2
1382       </label>
1383       <label class="checkbox-inline">
1384         <input type="checkbox" id="inlineCheckbox3" value="option3"> 3
1385       </label>
1386     </form>
1387 {% highlight html %}
1388 <label class="checkbox-inline">
1389   <input type="checkbox" id="inlineCheckbox1" value="option1"> 1
1390 </label>
1391 <label class="checkbox-inline">
1392   <input type="checkbox" id="inlineCheckbox2" value="option2"> 2
1393 </label>
1394 <label class="checkbox-inline">
1395   <input type="checkbox" id="inlineCheckbox3" value="option3"> 3
1396 </label>
1397 {% endhighlight %}
1398
1399     <h3>Selects</h3>
1400     <p>Use the default option or specify a <code>multiple="multiple"</code> to show multiple options at once.</p>
1401     <form class="bs-example">
1402       <select class="form-control">
1403         <option>1</option>
1404         <option>2</option>
1405         <option>3</option>
1406         <option>4</option>
1407         <option>5</option>
1408       </select>
1409       <br>
1410       <select multiple="multiple" class="form-control">
1411         <option>1</option>
1412         <option>2</option>
1413         <option>3</option>
1414         <option>4</option>
1415         <option>5</option>
1416       </select>
1417     </form>
1418 {% highlight html %}
1419 <select class="form-control">
1420   <option>1</option>
1421   <option>2</option>
1422   <option>3</option>
1423   <option>4</option>
1424   <option>5</option>
1425 </select>
1426
1427 <select multiple="multiple" class="form-control">
1428   <option>1</option>
1429   <option>2</option>
1430   <option>3</option>
1431   <option>4</option>
1432   <option>5</option>
1433 </select>
1434 {% endhighlight %}
1435
1436
1437
1438     <h2 id="forms-control-states">Form control states</h2>
1439     <p>Provide feedback to users or visitors with basic feedback states on form controls and labels.</p>
1440
1441     <h3 id="forms-input-focus">Input focus</h3>
1442     <p>We remove the default <code>outline</code> styles on some form controls and apply a <code>box-shadow</code> in its place for <code>:focus</code>.</p>
1443     <form class="bs-example">
1444       <input class="form-control" id="focusedInput" type="text" value="This is focused...">
1445     </form>
1446 {% highlight html %}
1447 <input class="form-control" id="focusedInput" type="text" value="This is focused...">
1448 {% endhighlight %}
1449
1450     <h3 id="forms-disabled-inputs">Disabled inputs</h3>
1451     <p>Add the <code>disabled</code> attribute on an input to prevent user input and trigger a slightly different look.</p>
1452     <form class="bs-example">
1453       <input class="form-control" id="disabledInput" type="text" placeholder="Disabled input here…" disabled>
1454     </form>
1455 {% highlight html %}
1456 <input class="form-control" id="disabledInput" type="text" placeholder="Disabled input here..." disabled>
1457 {% endhighlight %}
1458
1459     <h3 id="forms-disabled-fieldsets">Disabled fieldsets</h3>
1460     <p>Add the <code>disabled</code> attribute to a <code>&lt;fieldset&gt;</code> to disable all the controls within the <code>&lt;fieldset&gt;</code> at once.</p>
1461
1462     <div class="bs-callout bs-callout-warning">
1463       <h4>Link functionality of <code>&lt;a&gt;</code> not impacted</h4>
1464       <p>This class will only change the appearance of <code>&lt;a class="btn btn-default"&gt;</code> buttons, not their functionality. Use custom JavaScript to disable links here.</p>
1465     </div>
1466
1467     <div class="bs-callout bs-callout-danger">
1468       <h4>Cross-browser compatibility</h4>
1469       <p>While Bootstrap will apply these styles in all browsers, IE and Safari don't actually support the <code>&lt;disabled&gt;</code> attribute on a <code>&lt;fieldset&gt;</code>. Use custom JavaScript to disable the fieldset in these browsers.</p>
1470     </div>
1471
1472     <form class="bs-example form-inline">
1473       <fieldset disabled>
1474         <input type="text" class="form-control" placeholder="Disabled input">
1475         <select class="form-control">
1476           <option>Disabled select</option>
1477         </select>
1478         <div class="checkbox">
1479           <label>
1480             <input type="checkbox"> Can't check this
1481           </label>
1482         </div>
1483         <button type="submit" class="btn btn-primary">Submit</button>
1484       </fieldset>
1485     </form>
1486 {% highlight html %}
1487 <form class="form-inline">
1488   <fieldset disabled>
1489     <input type="text" class="form-control" placeholder="Disabled input">
1490     <select class="form-control">
1491       <option>Disabled select</option>
1492     </select>
1493     <div class="checkbox">
1494       <label>
1495         <input type="checkbox"> Can't check this
1496       </label>
1497     </div>
1498     <button type="submit" class="btn btn-primary">Submit</button>
1499   </fieldset>
1500 </form>
1501 {% endhighlight %}
1502
1503     <h3 id="forms-validation">Validation states</h3>
1504     <p>Bootstrap includes validation styles for error, warning, and success states on from controls. To use, add <code>.has-warning</code>, <code>.has-error</code>, or <code>.has-success</code> to the parent element. Any <code>.control-label</code>, <code>.form-control</code>, and <code>.help-block</code> within that element will receive the validation styles.</li>
1505
1506     <form class="bs-example">
1507       <div class="form-group has-warning">
1508         <label class="control-label" for="inputWarning">Input with warning</label>
1509         <input type="text" class="form-control" id="inputWarning">
1510       </div>
1511       <div class="form-group has-error">
1512         <label class="control-label" for="inputError">Input with error</label>
1513         <input type="text" class="form-control" id="inputError">
1514       </div>
1515       <div class="form-group has-success">
1516         <label class="control-label" for="inputSuccess">Input with success</label>
1517         <input type="text" class="form-control" id="inputSuccess">
1518       </div>
1519     </form>
1520 {% highlight html %}
1521 <div class="form-group has-warning">
1522   <label class="control-label" for="inputWarning">Input with warning</label>
1523   <input type="text" class="form-control" id="inputWarning">
1524 </div>
1525 <div class="form-group has-error">
1526   <label class="control-label" for="inputError">Input with error</label>
1527   <input type="text" class="form-control" id="inputError">
1528 </div>
1529 <div class="form-group has-success">
1530   <label class="control-label" for="inputSuccess">Input with success</label>
1531   <input type="text" class="form-control" id="inputSuccess">
1532 </div>
1533 {% endhighlight %}
1534
1535
1536     <h2 id="forms-input-groups">Input groups</h3>
1537     <p>Add text or buttons before, after, or on both sides of any text-based input. Use <code>.input-group</code> with an <code>.add-on</code> to prepend or append elements to an <code>&lt;input&gt;</code>.</p>
1538
1539     <div class="bs-callout bs-callout-danger">
1540       <h4>Cross-browser compatibility</h4>
1541       <p>Avoid using <code>&lt;select&gt;</code> elements here as they cannot be fully styled in WebKit browsers.</p>
1542     </div>
1543     <div class="bs-callout bs-callout-info">
1544       <h4>Tooltips &amp; popovers in input groups require special setting</h4>
1545       <p>When using tooltips or popovers on elements within an <code>.input-group</code>, you'll have to specify the option <code>container: 'body'</code> to avoid unwanted side effects (such as the element growing wider and/or losing its rounded corners when the tooltip or popover is triggered).</p>
1546     </div>
1547
1548     <form class="bs-example bs-example-form">
1549       <div class="input-group">
1550         <span class="input-group-addon">@</span>
1551         <input type="text" class="form-control" placeholder="Username">
1552       </div>
1553       <br>
1554       <div class="input-group">
1555         <input type="text" class="form-control">
1556         <span class="input-group-addon">.00</span>
1557       </div>
1558       <br>
1559       <div class="input-group">
1560         <span class="input-group-addon">$</span>
1561         <input type="text" class="form-control">
1562         <span class="input-group-addon">.00</span>
1563       </div>
1564     </form>
1565 {% highlight html %}
1566 <div class="input-group">
1567   <span class="input-group-addon">@</span>
1568   <input type="text" class="form-control" placeholder="Username">
1569 </div>
1570
1571 <div class="input-group">
1572   <input type="text" class="form-control">
1573   <span class="input-group-addon">.00</span>
1574 </div>
1575
1576 <div class="input-group">
1577   <span class="input-group-addon">$</span>
1578   <input type="text" class="form-control">
1579   <span class="input-group-addon">.00</span>
1580 </div>
1581 {% endhighlight %}
1582
1583     <h3>Optional sizes</h3>
1584     <p>Add the relative form sizing classes to the <code>.input-group-addon</code>.</p>
1585     <form class="bs-example bs-example-form">
1586       <div class="input-group">
1587         <span class="input-group-addon input-large">@</span>
1588         <input type="text" class="form-control input-large" placeholder="Username">
1589       </div>
1590       <br>
1591       <div class="input-group">
1592         <span class="input-group-addon">@</span>
1593         <input type="text" class="form-control" placeholder="Username">
1594       </div>
1595       <br>
1596       <div class="input-group">
1597         <span class="input-group-addon input-small">@</span>
1598         <input type="text" class="form-control input-small" placeholder="Username">
1599       </div>
1600     </form>
1601 {% highlight html %}
1602 <div class="input-group">
1603   <span class="input-group-addon input-large">@</span>
1604   <input type="text" class="form-control input-large" placeholder="Username">
1605 </div>
1606
1607 <div class="input-group">
1608   <span class="input-group-addon">@</span>
1609   <input type="text" class="form-control" placeholder="Username">
1610 </div>
1611
1612 <div class="input-group">
1613   <span class="input-group-addon input-small">@</span>
1614   <input type="text" class="form-control input-small" placeholder="Username">
1615 </div>
1616 {% endhighlight %}
1617
1618     <h3>Buttons instead of text</h3>
1619     <p>Buttons in input groups are a bit different and require one extra level of nesting. Instead of <code>.input-group-addon</code>, you'll need to use <code>.input-group-btn</code> to wrap the buttons. This is required due to default browser styles that cannot be overridden.</p>
1620     <form class="bs-example bs-example-form">
1621       <div class="row">
1622         <div class="col-lg-6">
1623           <div class="input-group">
1624             <span class="input-group-btn">
1625               <button class="btn btn-default" type="button">Go!</button>
1626             </span>
1627             <input type="text" class="form-control">
1628           </div><!-- /input-group -->
1629         </div><!-- /.col-lg-6 -->
1630         <div class="col-lg-6">
1631           <div class="input-group">
1632             <input type="text" class="form-control">
1633             <span class="input-group-btn">
1634               <button class="btn btn-default" type="button">Go!</button>
1635             </span>
1636           </div><!-- /input-group -->
1637         </div><!-- /.col-lg-6 -->
1638       </div><!-- /.row -->
1639     </form>
1640 {% highlight html %}
1641 <div class="row">
1642   <div class="col-lg-6">
1643     <div class="input-group">
1644       <span class="input-group-btn">
1645         <button class="btn btn-default" type="button">Go!</button>
1646       </span>
1647       <input type="text" class="form-control">
1648     </div><!-- /input-group -->
1649   </div><!-- /.col-lg-6 -->
1650   <div class="col-lg-6">
1651     <div class="input-group">
1652       <input type="text" class="form-control">
1653       <span class="input-group-btn">
1654         <button class="btn btn-default" type="button">Go!</button>
1655       </span>
1656     </div><!-- /input-group -->
1657   </div><!-- /.col-lg-6 -->
1658 </div><!-- /.row -->
1659 {% endhighlight %}
1660
1661     <h3>Button dropdowns</h3>
1662     <p></p>
1663     <form class="bs-example bs-example-form">
1664       <div class="row">
1665         <div class="col-lg-6">
1666           <div class="input-group">
1667             <div class="input-group-btn">
1668               <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button>
1669               <ul class="dropdown-menu">
1670                 <li><a href="#">Action</a></li>
1671                 <li><a href="#">Another action</a></li>
1672                 <li><a href="#">Something else here</a></li>
1673                 <li class="divider"></li>
1674                 <li><a href="#">Separated link</a></li>
1675               </ul>
1676             </div><!-- /btn-group -->
1677             <input type="text" class="form-control">
1678           </div><!-- /input-group -->
1679         </div><!-- /.col-lg-6 -->
1680         <div class="col-lg-6">
1681           <div class="input-group">
1682             <input type="text" class="form-control">
1683             <div class="input-group-btn">
1684               <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button>
1685               <ul class="dropdown-menu">
1686                 <li><a href="#">Action</a></li>
1687                 <li><a href="#">Another action</a></li>
1688                 <li><a href="#">Something else here</a></li>
1689                 <li class="divider"></li>
1690                 <li><a href="#">Separated link</a></li>
1691               </ul>
1692             </div><!-- /btn-group -->
1693           </div><!-- /input-group -->
1694         </div><!-- /.col-lg-6 -->
1695       </div><!-- /.row -->
1696     </form>
1697 {% highlight html %}
1698 <div class="row">
1699   <div class="col-lg-6">
1700     <div class="input-group">
1701       <div class="input-group-btn">
1702         <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button>
1703         <ul class="dropdown-menu">
1704           <li><a href="#">Action</a></li>
1705           <li><a href="#">Another action</a></li>
1706           <li><a href="#">Something else here</a></li>
1707           <li class="divider"></li>
1708           <li><a href="#">Separated link</a></li>
1709         </ul>
1710       </div><!-- /btn-group -->
1711       <input type="text" class="form-control">
1712     </div><!-- /input-group -->
1713   </div><!-- /.col-lg-6 -->
1714   <div class="col-lg-6">
1715     <div class="input-group">
1716       <input type="text" class="form-control">
1717       <div class="input-group-btn">
1718         <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button>
1719         <ul class="dropdown-menu">
1720           <li><a href="#">Action</a></li>
1721           <li><a href="#">Another action</a></li>
1722           <li><a href="#">Something else here</a></li>
1723           <li class="divider"></li>
1724           <li><a href="#">Separated link</a></li>
1725         </ul>
1726       </div><!-- /btn-group -->
1727     </div><!-- /input-group -->
1728   </div><!-- /.col-lg-6 -->
1729 </div><!-- /.row -->
1730 {% endhighlight %}
1731
1732     <h3>Segmented dropdown groups</h3>
1733     <form class="bs-example bs-example-form">
1734       <div class="row">
1735         <div class="col-lg-6">
1736           <div class="input-group">
1737             <div class="input-group-btn">
1738               <button type="button" class="btn btn-default" tabindex="-1">Action</button>
1739               <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" tabindex="-1">
1740                 <span class="caret"></span>
1741               </button>
1742               <ul class="dropdown-menu">
1743                 <li><a href="#">Action</a></li>
1744                 <li><a href="#">Another action</a></li>
1745                 <li><a href="#">Something else here</a></li>
1746                 <li class="divider"></li>
1747                 <li><a href="#">Separated link</a></li>
1748               </ul>
1749             </div>
1750             <input type="text" class="form-control">
1751           </div><!-- /.input-group -->
1752         </div><!-- /.col-lg-6 -->
1753         <div class="col-lg-6">
1754           <div class="input-group">
1755             <input type="text" class="form-control">
1756             <div class="input-group-btn">
1757               <button type="button" class="btn btn-default" tabindex="-1">Action</button>
1758               <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" tabindex="-1">
1759                 <span class="caret"></span>
1760               </button>
1761               <ul class="dropdown-menu pull-right">
1762                 <li><a href="#">Action</a></li>
1763                 <li><a href="#">Another action</a></li>
1764                 <li><a href="#">Something else here</a></li>
1765                 <li class="divider"></li>
1766                 <li><a href="#">Separated link</a></li>
1767               </ul>
1768             </div>
1769           </div><!-- /.input-group -->
1770         </div><!-- /.col-lg-6 -->
1771       </div><!-- /.row -->
1772     </form>
1773 {% highlight html %}
1774 <div class="input-group">
1775   <div class="input-group-btn">
1776     <!-- Button and dropdown menu -->
1777   </div>
1778   <input type="text" class="form-control">
1779 </div>
1780
1781 <div class="input-group">
1782   <input type="text" class="form-control">
1783   <div class="input-group-btn btn-group">
1784     <!-- Button and dropdown menu -->
1785   </div>
1786 </div>
1787 {% endhighlight %}
1788
1789     <h2 id="forms-control-sizes">Control sizing</h2>
1790     <p>Use relative sizing classes like <code>.input-large</code> or match your inputs to the grid column sizes using <code>.col-lg-*</code> classes.</p>
1791
1792     <h3>Relative sizing</h3>
1793     <p>Create larger or smaller form controls that match button sizes.</p>
1794     <form class="bs-example bs-example-control-sizing">
1795       <div class="controls docs-input-sizes">
1796         <input class="form-control input-large" type="text" placeholder=".input-large">
1797         <input type="text" class="form-control" placeholder="Default input">
1798         <input class="form-control input-small" type="text" placeholder=".input-small">
1799
1800         <select class="form-control input-large">
1801           <option value="">.input-large</option>
1802         </select>
1803         <select class="form-control">
1804           <option value="">Default select</option>
1805         </select>
1806         <select class="form-control input-small">
1807           <option value="">.input-small</option>
1808         </select>
1809       </div>
1810     </form>
1811 {% highlight html %}
1812 <input class="form-control input-large" type="text" placeholder=".input-large">
1813 <input class="form-control"type="text" placeholder="Default input">
1814 <input class="form-control input-small" type="text" placeholder=".input-small">
1815
1816 <select class="form-control input-large">...</select>
1817 <select class="form-control">...</select>
1818 <select class="form-control input-small">...</select>
1819 {% endhighlight %}
1820
1821     <h3>Column sizing</h3>
1822     <p>Wrap inputs in grid columns, or any custom parent element, to easily enforce desired widths.</p>
1823     <form class="bs-example" style="padding-bottom: 15px;">
1824       <div class="row">
1825         <div class="col-lg-2">
1826           <input type="text" class="form-control" placeholder=".col-lg-2">
1827         </div>
1828         <div class="col-lg-3">
1829           <input type="text" class="form-control" placeholder=".col-lg-3">
1830         </div>
1831         <div class="col-lg-4">
1832           <input type="text" class="form-control" placeholder=".col-lg-4">
1833         </div>
1834       </div>
1835     </form>
1836 {% highlight html %}
1837 <div class="row">
1838   <div class="col-lg-2">
1839     <input type="text" class="form-control" placeholder=".col-lg-2">
1840   </div>
1841   <div class="col-lg-3">
1842     <input type="text" class="form-control" placeholder=".col-lg-3">
1843   </div>
1844   <div class="col-lg-4">
1845     <input type="text" class="form-control" placeholder=".col-lg-4">
1846   </div>
1847 </div>
1848 {% endhighlight %}
1849
1850     <h2 id="forms-help-text">Help text</h2>
1851     <p>Block level help text for form controls.</p>
1852     <form class="bs-example">
1853       <input type="text" class="form-control">
1854       <span class="help-block">A longer block of help text that breaks onto a new line and may extend beyond one line.</span>
1855     </form>
1856 {% highlight html %}
1857 <span class="help-block">A longer block of help text that breaks onto a new line and may extend beyond one line.</span>
1858 {% endhighlight %}
1859
1860   </div>
1861
1862
1863
1864   <!-- Buttons
1865   ================================================== -->
1866   <div class="bs-docs-section">
1867     <div class="page-header">
1868       <h1 id="buttons">Buttons</h1>
1869     </div>
1870
1871     <h2 id="buttons-options">Button options</h2>
1872     <p>Use any of the available button classes to quickly create a styled button.</p>
1873     <div class="bs-example">
1874       <button type="button" class="btn btn-default">Default</button>
1875       <button type="button" class="btn btn-primary">Primary</button>
1876       <button type="button" class="btn btn-success">Success</button>
1877       <button type="button" class="btn btn-info">Info</button>
1878       <button type="button" class="btn btn-warning">Warning</button>
1879       <button type="button" class="btn btn-danger">Danger</button>
1880       <button type="button" class="btn btn-link">Link</button>
1881     </div>
1882 {% highlight html %}
1883 <!-- Standard gray button with gradient -->
1884 <button type="button" class="btn btn-default">Default</button>
1885
1886 <!-- Provides extra visual weight and identifies the primary action in a set of buttons -->
1887 <button type="button" class="btn btn-primary">Primary</button>
1888
1889 <!-- Indicates a successful or positive action -->
1890 <button type="button" class="btn btn-success">Success</button>
1891
1892 <!-- Contextual button for informational alert messages -->
1893 <button type="button" class="btn btn-info">Info</button>
1894
1895 <!-- Indicates caution should be taken with this action -->
1896 <button type="button" class="btn btn-warning">Warning</button>
1897
1898 <!-- Indicates a dangerous or potentially negative action -->
1899 <button type="button" class="btn btn-danger">Danger</button>
1900
1901 <!-- Deemphasize a button by making it look like a link while maintaining button behavior -->
1902 <button type="button" class="btn btn-link">Link</button>
1903 {% endhighlight %}
1904
1905     <h2 id="buttons-sizes">Button sizes</h2>
1906     <p>Fancy larger or smaller buttons? Add <code>.btn-large</code> or <code>.btn-small</code> for additional sizes.</p>
1907     <div class="bs-example">
1908       <p>
1909         <button type="button" class="btn btn-primary btn-large">Large button</button>
1910         <button type="button" class="btn btn-default btn-large">Large button</button>
1911       </p>
1912       <p>
1913         <button type="button" class="btn btn-primary">Default button</button>
1914         <button type="button" class="btn btn-default">Default button</button>
1915       </p>
1916       <p>
1917         <button type="button" class="btn btn-primary btn-small">Small button</button>
1918         <button type="button" class="btn btn-default btn-small">Small button</button>
1919       </p>
1920     </div>
1921 {% highlight html %}
1922 <p>
1923   <button type="button" class="btn btn-primary btn-large">Large button</button>
1924   <button type="button" class="btn btn-default btn-large">Large button</button>
1925 </p>
1926 <p>
1927   <button type="button" class="btn btn-primary">Default button</button>
1928   <button type="button" class="btn btn-default">Default button</button>
1929 </p>
1930 <p>
1931   <button type="button" class="btn btn-primary btn-small">Small button</button>
1932   <button type="button" class="btn btn-default btn-small">Small button</button>
1933 </p>
1934 {% endhighlight %}
1935
1936     <p>Create block level buttons&mdash;those that span the full width of a parent&mdash; by adding <code>.btn-block</code>.</p>
1937     <div class="bs-example">
1938       <div class="well" style="max-width: 400px; margin: 0 auto 10px;">
1939         <button type="button" class="btn btn-primary btn-large btn-block">Block level button</button>
1940         <button type="button" class="btn btn-default btn-large btn-block">Block level button</button>
1941       </div>
1942     </div>
1943 {% highlight html %}
1944 <button type="button" class="btn btn-primary btn-large btn-block">Block level button</button>
1945 <button type="button" class="btn btn-default btn-large btn-block">Block level button</button>
1946 {% endhighlight %}
1947
1948
1949     <h2 id="buttons-disabled">Disabled state</h2>
1950     <p>Make buttons look unclickable by fading them back 50%.</p>
1951
1952     <h3>Button element</h3>
1953     <p>Add the <code>disabled</code> attribute to <code>&lt;button&gt;</code> buttons.</p>
1954     <p class="bs-example">
1955       <button type="button" class="btn btn-primary btn-large" disabled="disabled">Primary button</button>
1956       <button type="button" class="btn btn-default btn-large" disabled="disabled">Button</button>
1957     </p>
1958 {% highlight html %}
1959 <button type="button" class="btn btn-large btn-primary" disabled="disabled">Primary button</button>
1960 <button type="button" class="btn btn-default btn-large" disabled="disabled">Button</button>
1961 {% endhighlight %}
1962
1963     <div class="bs-callout bs-callout-danger">
1964       <h4>Cross-browser compatibility</h4>
1965       <p>If you add the <code>disabled</code> attribute to a <code>&lt;button&gt;</code>, Internet Explorer 9 and below will render text gray with a nasty text-shadow that we cannot fix.</p>
1966     </div>
1967
1968     <h3>Anchor element</h3>
1969     <p>Add the <code>.disabled</code> class to <code>&lt;a&gt;</code> buttons.</p>
1970     <p class="bs-example">
1971       <a href="#" class="btn btn-primary btn-large disabled">Primary link</a>
1972       <a href="#" class="btn btn-default btn-large disabled">Link</a>
1973     </p>
1974 {% highlight html %}
1975 <a href="#" class="btn btn-primary btn-large disabled">Primary link</a>
1976 <a href="#" class="btn btn-default btn-large disabled">Link</a>
1977 {% endhighlight %}
1978     <p>
1979       We use <code>.disabled</code> as a utility class here, similar to the common <code>.active</code> class, so no prefix is required.
1980     </p>
1981     <div class="bs-callout bs-callout-warning">
1982       <h4>Link functionality not impacted</h4>
1983       <p>This class will only change the <code>&lt;a&gt;</code>'s appearance, not its functionality. Use custom JavaScript to disable links here.</p>
1984     </div>
1985
1986
1987     <h2 id="buttons-tags">Using multiple tags</h2>
1988     <p>Use the button classes on an <code>&lt;a&gt;</code>, <code>&lt;button&gt;</code>, or <code>&lt;input&gt;</code> element.</p>
1989     <form class="bs-example">
1990       <a class="btn btn-default" href="#">Link</a>
1991       <button class="btn btn-default" type="submit">Button</button>
1992       <input class="btn btn-default" type="button" value="Input">
1993       <input class="btn btn-default" type="submit" value="Submit">
1994     </form>
1995 {% highlight html %}
1996 <a class="btn btn-default" href="#">Link</a>
1997 <button class="btn btn-default" type="submit">Button</button>
1998 <input class="btn btn-default" type="button" value="Input">
1999 <input class="btn btn-default" type="submit" value="Submit">
2000 {% endhighlight %}
2001
2002     <div class="bs-callout bs-callout-warning">
2003       <h4>Cross-browser rendering</h4>
2004       <p>As a best practice, <strong>we highly recommend using the <code>&lt;button&gt;</code> element whenever possible</strong> to ensure matching cross-browser rendering.</p>
2005     </div>
2006
2007   </div>
2008
2009
2010
2011   <!-- Images
2012   ================================================== -->
2013   <div class="bs-docs-section">
2014     <div class="page-header">
2015       <h1 id="images">Images</h1>
2016     </div>
2017
2018     <p>Add classes to an <code>&lt;img&gt;</code> element to easily style images in any project.</p>
2019     <div class="bs-callout bs-callout-danger">
2020       <h4>Cross-browser compatibility</h4>
2021       <p>Keep in mind that Internet Explorer 8 lacks support for rounded corners.</p>
2022     </div>
2023     <div class="bs-example bs-example-images">
2024       <img data-src="holder.js/140x140" class="img-rounded">
2025       <img data-src="holder.js/140x140" class="img-circle">
2026       <img data-src="holder.js/140x140" class="img-thumbnail">
2027     </div>
2028 {% highlight html %}
2029 <img src="..." class="img-rounded">
2030 <img src="..." class="img-circle">
2031 <img src="..." class="img-thumbnail">
2032 {% endhighlight %}
2033
2034   </div>
2035
2036
2037   <!-- Helpers
2038   ================================================== -->
2039   <div class="bs-docs-section">
2040     <div class="page-header">
2041       <h1 id="helper-classes">Helper classes</h1>
2042     </div>
2043
2044     <h3>Close icon</h3>
2045     <p>Use the generic close icon for dismissing content like modals and alerts.</p>
2046     <div class="bs-example">
2047       <p><button type="button" class="close">&times;</button></p>
2048     </div>
2049 {% highlight html %}
2050 <button type="button" class="close">&times;</button>
2051 {% endhighlight %}
2052
2053     <h3>.pull-left</h3>
2054     <p>Float an element left</p>
2055 {% highlight html %}
2056 <div class="pull-left">...</div>
2057 {% endhighlight %}
2058 {% highlight css %}
2059 .pull-left {
2060   float: left;
2061 }
2062 {% endhighlight %}
2063
2064     <h3>.pull-right</h3>
2065     <p>Float an element right</p>
2066 {% highlight html %}
2067 <div class="pull-right">...</div>
2068 {% endhighlight %}
2069 {% highlight css %}
2070 .pull-right {
2071   float: right;
2072 }
2073 {% endhighlight %}
2074
2075     <h3>.clearfix</h3>
2076     <p>Clear the <code>float</code> on any element. Utilizes <a href="http://nicolasgallagher.com/micro-clearfix-hack/">the micro clearfix</a> as popularized by Nicolas Gallagher.</p>
2077 {% highlight html %}
2078 <div class="clearfix">...</div>
2079 {% endhighlight %}
2080 {% highlight css %}
2081 // Mixin
2082 .clearfix {
2083   &:before,
2084   &:after {
2085     content: " ";
2086     display: table;
2087   }
2088   &:after {
2089     clear: both;
2090   }
2091 }
2092
2093 // Usage
2094 .element {
2095   .clearfix();
2096 }
2097 {% endhighlight %}
2098   </div>
2099
2100   <!-- Responsive utilities
2101   ================================================== -->
2102   <div class="bs-docs-section" id="responsive-utilities">
2103     <div class="page-header">
2104       <h1>Responsive utilities</h1>
2105     </div>
2106     <p class="lead">For faster mobile-friendly development, use these utility classes for showing and hiding content by device via media query. Also included are utility classes for toggling content when printed.</p>
2107
2108     <h3>Responsive classes</h3>
2109     <div class="bs-table-scrollable">
2110       <table class="table table-bordered table-striped responsive-utilities">
2111         <thead>
2112           <tr>
2113             <th>Class</th>
2114             <th>Small devices <small>Up to 768px</small></th>
2115             <th>Medium devices <small>768px to 979px</small></th>
2116             <th>Large devices <small>980px and up</small></th>
2117           </tr>
2118         </thead>
2119         <tbody>
2120           <tr>
2121             <th><code>.visible-sm</code></th>
2122             <td class="is-visible">Visible</td>
2123             <td class="is-hidden">Hidden</td>
2124             <td class="is-hidden">Hidden</td>
2125           </tr>
2126           <tr>
2127             <th><code>.visible-md</code></th>
2128             <td class="is-hidden">Hidden</td>
2129             <td class="is-visible">Visible</td>
2130             <td class="is-hidden">Hidden</td>
2131           </tr>
2132           <tr>
2133             <th><code>.visible-lg</code></th>
2134             <td class="is-hidden">Hidden</td>
2135             <td class="is-hidden">Hidden</td>
2136             <td class="is-visible">Visible</td>
2137           </tr>
2138           <tr>
2139             <th><code>.hidden-sm</code></th>
2140             <td class="is-hidden">Hidden</td>
2141             <td class="is-visible">Visible</td>
2142             <td class="is-visible">Visible</td>
2143           </tr>
2144           <tr>
2145             <th><code>.hidden-md</code></th>
2146             <td class="is-visible">Visible</td>
2147             <td class="is-hidden">Hidden</td>
2148             <td class="is-visible">Visible</td>
2149           </tr>
2150           <tr>
2151             <th><code>.hidden-lg</code></th>
2152             <td class="is-visible">Visible</td>
2153             <td class="is-visible">Visible</td>
2154             <td class="is-hidden">Hidden</td>
2155           </tr>
2156         </tbody>
2157       </table>
2158     </div>
2159
2160     <h3>Print classes</h3>
2161     <div class="bs-table-scrollable">
2162       <table class="table table-bordered table-striped responsive-utilities">
2163         <thead>
2164           <tr>
2165             <th>Class</th>
2166             <th>Browser</th>
2167             <th>Print</th>
2168           </tr>
2169         </thead>
2170         <tbody>
2171           <tr>
2172             <th><code>.visible-print</code></th>
2173             <td class="is-hidden">Hidden</td>
2174             <td class="is-visible">Visible</td>
2175           </tr>
2176           <tr>
2177             <th><code>.hidden-print</code></th>
2178             <td class="is-visible">Visible</td>
2179             <td class="is-hidden">Hidden</td>
2180           </tr>
2181         </tbody>
2182       </table>
2183     </div>
2184
2185     <h3>When to use</h3>
2186     <p>Use on a limited basis and avoid creating entirely different versions of the same site. Instead, use them to complement each device's presentation. Responsive utilities are currently only available for block-level toggling, meaning <code>display: none;</code> or <code>display: block;</code>. Use with inline and table elements is currently not supported.</p>
2187
2188     <h3>Test case</h3>
2189     <p>Resize your browser or load on different devices to test the responsive utility classes.</p>
2190     <h4>Visible on...</h4>
2191     <p>Green checkmarks indicate the element <strong>is visible</strong> in your current viewport.</p>
2192     <ul class="responsive-utilities-test visible-on">
2193       <li>
2194         <span class="hidden-sm">Small</span>
2195         <span class="visible-sm">&#10004; Visible on small</span>
2196       </li>
2197       <li>
2198         <span class="hidden-md">Medium</span>
2199         <span class="visible-md">&#10004; Visible on medium</span>
2200       </li>
2201       <li>
2202         <span class="hidden-lg">Large</span>
2203         <span class="visible-lg">&#10004; Visible on large</span>
2204       </li>
2205     </ul>
2206     <h4>Hidden on...</h4>
2207     <p>Here, green checkmarks indicate the element <strong>is hidden</strong> in your current viewport.</p>
2208     <ul class="responsive-utilities-test hidden-on">
2209       <li>
2210         <span class="visible-sm">Small</span>
2211         <span class="hidden-sm">&#10004; Hidden on small</span>
2212       </li>
2213       <li>
2214         <span class="visible-md">Medium</span>
2215         <span class="hidden-md">&#10004; Hidden on medium</span>
2216       </li>
2217       <li>
2218         <span class="visible-lg">Large</span>
2219         <span class="hidden-lg">&#10004; Hidden on desktop</span>
2220       </li>
2221     </ul>
2222
2223   </div>