aboutsummaryrefslogtreecommitdiff
path: root/docs/templates
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-08-20 16:13:46 -0700
committerJacob Thornton <[email protected]>2012-08-20 16:13:46 -0700
commit5d63e8e2a84468351b4c1ee6cc21f48e95ea27bf (patch)
tree2d760c794e61c15850d14d5eee1c565ab4f9a871 /docs/templates
parent5df1e2c00a295c45db7fa75dba333dc9464b128c (diff)
parentaa2cec6f2f706f8c1754f8bf79a8c9f094445bd8 (diff)
downloadbootstrap-5d63e8e2a84468351b4c1ee6cc21f48e95ea27bf.tar.xz
bootstrap-5d63e8e2a84468351b4c1ee6cc21f48e95ea27bf.zip
fMerge branch '2.1.0-wip'
Conflicts: docs/index.html
Diffstat (limited to 'docs/templates')
-rw-r--r--docs/templates/layout.mustache49
-rw-r--r--docs/templates/pages/base-css.mustache3111
-rw-r--r--docs/templates/pages/components.mustache3260
-rw-r--r--docs/templates/pages/customize.mustache363
-rw-r--r--docs/templates/pages/download.mustache338
-rw-r--r--docs/templates/pages/examples.mustache31
-rw-r--r--docs/templates/pages/extend.mustache169
-rw-r--r--docs/templates/pages/getting-started.mustache213
-rw-r--r--docs/templates/pages/index.mustache193
-rw-r--r--docs/templates/pages/javascript.mustache2128
-rw-r--r--docs/templates/pages/less.mustache944
-rw-r--r--docs/templates/pages/scaffolding.mustache834
-rw-r--r--docs/templates/pages/upgrading.mustache194
13 files changed, 5872 insertions, 5955 deletions
diff --git a/docs/templates/layout.mustache b/docs/templates/layout.mustache
index ae2ce4aad..d463f441e 100644
--- a/docs/templates/layout.mustache
+++ b/docs/templates/layout.mustache
@@ -39,15 +39,14 @@
{{/production}}
</head>
- <body data-spy="scroll" data-target=".subnav" data-offset="50">
+ <body data-spy="scroll" data-target=".bs-docs-sidebar">
-
- <!-- Navbar
+ <!-- Navbar
================================================== -->
- <div class="navbar navbar-fixed-top">
+ <div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
- <button type="button"class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
+ <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
@@ -56,7 +55,10 @@
<div class="nav-collapse collapse">
<ul class="nav">
<li class="{{index}}">
- <a href="./index.html">{{_i}}Overview{{/i}}</a>
+ <a href="./index.html">{{_i}}Home{{/i}}</a>
+ </li>
+ <li class="{{getting-started}}">
+ <a href="./getting-started.html">{{_i}}Get started{{/i}}</a>
</li>
<li class="{{scaffolding}}">
<a href="./scaffolding.html">{{_i}}Scaffolding{{/i}}</a>
@@ -68,17 +70,10 @@
<a href="./components.html">{{_i}}Components{{/i}}</a>
</li>
<li class="{{javascript}}">
- <a href="./javascript.html">{{_i}}Javascript plugins{{/i}}</a>
- </li>
- <li class="{{less}}">
- <a href="./less.html">{{_i}}Using LESS{{/i}}</a>
+ <a href="./javascript.html">{{_i}}Javascript{{/i}}</a>
</li>
- <li class="divider-vertical"></li>
- <li class="{{download}}">
- <a href="./download.html">{{_i}}Customize{{/i}}</a>
- </li>
- <li class="{{examples}}">
- <a href="./examples.html">{{_i}}Examples{{/i}}</a>
+ <li class="{{customize}}">
+ <a href="./customize.html">{{_i}}Customize{{/i}}</a>
</li>
</ul>
</div>
@@ -86,21 +81,25 @@
</div>
</div>
- <div class="container">
-
{{>body}}
- <!-- Footer
- ================================================== -->
- <footer class="footer">
+
+ <!-- Footer
+ ================================================== -->
+ <footer class="footer">
+ <div class="container">
<p class="pull-right"><a href="#">{{_i}}Back to top{{/i}}</a></p>
<p>{{_i}}Designed and built with all the love in the world <a href="http://twitter.com/twitter" target="_blank">@twitter</a> by <a href="http://twitter.com/mdo" target="_blank">@mdo</a> and <a href="http://twitter.com/fat" target="_blank">@fat</a>.{{/i}}</p>
<p>{{_i}}Code licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License v2.0</a>. Documentation licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.{{/i}}</p>
<p>{{_i}}Icons from <a href="http://glyphicons.com">Glyphicons Free</a>, licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.{{/i}}</p>
- </footer>
-
- </div><!-- /container -->
+ <ul class="footer-links">
+ <li><a href="http://blog.getbootstrap.com">{{_i}}Read the blog{{/i}}</a></li>
+ <li><a href="https://github.com/twitter/bootstrap/issues?state=open">{{_i}}Submit issues{{/i}}</a></li>
+ <li><a href="https://github.com/twitter/bootstrap/wiki">{{_i}}Roadmap and changelog{{/i}}</a></li>
+ </ul>
+ </div>
+ </footer>
@@ -122,8 +121,10 @@
<script src="assets/js/bootstrap-collapse.js"></script>
<script src="assets/js/bootstrap-carousel.js"></script>
<script src="assets/js/bootstrap-typeahead.js"></script>
+ <script src="assets/js/bootstrap-affix.js"></script>
<script src="assets/js/application.js"></script>
+
{{#production}}
<!-- Analytics
================================================== -->
diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache
index 1404a31f0..46b155234 100644
--- a/docs/templates/pages/base-css.mustache
+++ b/docs/templates/pages/base-css.mustache
@@ -1,828 +1,802 @@
-<!-- Masthead
+<!-- Subhead
================================================== -->
<header class="jumbotron subhead" id="overview">
- <h1>{{_i}}Base CSS{{/i}}</h1>
- <p class="lead">{{_i}}On top of the scaffolding, basic HTML elements are styled and enhanced with extensible classes to provide a fresh, consistent look and feel.{{/i}}</p>
- <div class="subnav">
- <ul class="nav nav-pills">
- <li><a href="#typography">{{_i}}Typography{{/i}}</a></li>
- <li><a href="#code">{{_i}}Code{{/i}}</a></li>
- <li><a href="#tables">{{_i}}Tables{{/i}}</a></li>
- <li><a href="#forms">{{_i}}Forms{{/i}}</a></li>
- <li><a href="#buttons">{{_i}}Buttons{{/i}}</a></li>
- <li><a href="#icons">{{_i}}Icons by Glyphicons{{/i}}</a></li>
- </ul>
+ <div class="container">
+ <h1>{{_i}}Base CSS{{/i}}</h1>
+ <p class="lead">{{_i}}Fundamental HTML elements styled and enhanced with extensible classes.{{/i}}</p>
</div>
</header>
-<!-- Typography
-================================================== -->
-<section id="typography">
- <div class="page-header">
- <h1>{{_i}}Typography <small>Headings, paragraphs, lists, and other inline type elements</small>{{/i}}</h1>
- </div>
+ <div class="container">
- <h2>{{_i}}Headings &amp; body copy{{/i}}</h2>
-
- <!-- Headings & Paragraph Copy -->
- <div class="row">
- <div class="span4">
- <h3>{{_i}}Typographic scale{{/i}}</h3>
- <p>{{_i}}The entire typographic grid is based on two Less variables in our variables.less file: <code>@baseFontSize</code> and <code>@baseLineHeight</code>. The first is the base font-size used throughout and the second is the base line-height.{{/i}}</p>
- <p>{{_i}}We use those variables, and some math, to create the margins, paddings, and line-heights of all our type and more.{{/i}}</p>
- </div>
- <div class="span4">
- <h3>{{_i}}Example body text{{/i}}</h3>
- <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>
- <h3>{{_i}}Lead body copy{{/i}}</h3>
- <p>{{_i}}Make a paragraph stand out by adding <code>.lead</code>.{{/i}}</p>
- <p class="lead">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.</p>
- </div>
- <div class="span4">
- <div class="well">
- <h1>h1. {{_i}}Heading 1{{/i}}</h1>
- <h2>h2. {{_i}}Heading 2{{/i}}</h2>
- <h3>h3. {{_i}}Heading 3{{/i}}</h3>
- <h4>h4. {{_i}}Heading 4{{/i}}</h4>
- <h5>h5. {{_i}}Heading 5{{/i}}</h5>
- <h6>h6. {{_i}}Heading 6{{/i}}</h6>
+ <!-- Docs nav
+ ================================================== -->
+ <div class="row">
+ <div class="span3 bs-docs-sidebar">
+ <ul class="nav nav-list bs-docs-sidenav">
+ <li><a href="#typography"><i class="icon-chevron-right"></i> {{_i}}Typography{{/i}}</a></li>
+ <li><a href="#code"><i class="icon-chevron-right"></i> {{_i}}Code{{/i}}</a></li>
+ <li><a href="#tables"><i class="icon-chevron-right"></i> {{_i}}Tables{{/i}}</a></li>
+ <li><a href="#forms"><i class="icon-chevron-right"></i> {{_i}}Forms{{/i}}</a></li>
+ <li><a href="#buttons"><i class="icon-chevron-right"></i> {{_i}}Buttons{{/i}}</a></li>
+ <li><a href="#images"><i class="icon-chevron-right"></i> {{_i}}Images{{/i}}</a></li>
+ <li><a href="#icons"><i class="icon-chevron-right"></i> {{_i}}Icons by Glyphicons{{/i}}</a></li>
+ </ul>
</div>
- </div>
- </div>
+ <div class="span9">
- <!-- Misc Elements -->
- <h2>{{_i}}Emphasis, address, and abbreviation{{/i}}</h2>
- <table class="table table-bordered table-striped">
- <thead>
- <tr>
- <th>{{_i}}Element{{/i}}</th>
- <th>{{_i}}Usage{{/i}}</th>
- <th>{{_i}}Optional{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>
- <code>&lt;strong&gt;</code>
- </td>
- <td>
- {{_i}}For emphasizing a snippet of text with <strong>important</strong>{{/i}}
- </td>
- <td>
- <span class="muted">{{_i}}None{{/i}}</span>
- </td>
- </tr>
- <tr>
- <td>
- <code>&lt;em&gt;</code>
- </td>
- <td>
- {{_i}}For emphasizing a snippet of text with <em>stress</em>{{/i}}
- </td>
- <td>
- <span class="muted">{{_i}}None{{/i}}</span>
- </td>
- </tr>
- <tr>
- <td>
- <code>&lt;abbr&gt;</code>
- </td>
- <td>
- {{_i}}Wraps abbreviations and acronyms to show the expanded version on hover{{/i}}
- </td>
- <td>
- <p>{{_i}}Include optional <code>title</code> attribute for expanded text{{/i}}</p>
- {{_i}}Use <code>.initialism</code> class for uppercase abbreviations.{{/i}}
- </td>
- </tr>
- <tr>
- <td>
- <code>&lt;address&gt;</code>
- </td>
- <td>
- {{_i}}For contact information for its nearest ancestor or the entire body of work{{/i}}
- </td>
- <td>
- {{_i}}Preserve formatting by ending all lines with <code>&lt;br&gt;</code>{{/i}}
- </td>
- </tr>
- </tbody>
- </table>
-
- <div class="row">
- <div class="span4">
- <h3>{{_i}}Using emphasis{{/i}}</h3>
- <p><a href="#">Fusce dapibus</a>, <strong>tellus ac cursus commodo</strong>, <em>tortor mauris condimentum nibh</em>, ut fermentum massa justo sit amet risus. Maecenas faucibus mollis interdum. Nulla vitae elit libero, a pharetra augue.</p>
- <p>{{_i}}<strong>Note:</strong> Feel free to use <code>&lt;b&gt;</code> and <code>&lt;i&gt;</code> in HTML5, but their usage has changed a bit. <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.{{/i}}</p>
- </div>
- <div class="span4">
- <h3>{{_i}}Example addresses{{/i}}</h3>
- <p>{{_i}}Here are two examples of how the <code>&lt;address&gt;</code> tag can be used:{{/i}}</p>
- <address>
- <strong>Twitter, Inc.</strong><br>
- 795 Folsom Ave, Suite 600<br>
- San Francisco, CA 94107<br>
- <abbr title="Phone">P:</abbr> (123) 456-7890
- </address>
- <address>
- <strong>{{_i}}Full Name{{/i}}</strong><br>
- <a href="mailto:#">{{_i}}[email protected]{{/i}}</a>
- </address>
- </div>
- <div class="span4">
- <h3>{{_i}}Example abbreviations{{/i}}</h3>
- <p>{{_i}}Abbreviations with a <code>title</code> attribute have a light dotted bottom border and a help cursor on hover. This gives users extra indication something will be shown on hover.{{/i}}</p>
- <p>{{_i}}Add the <code>initialism</code> class to an abbreviation to increase typographic harmony by giving it a slightly smaller text size.{{/i}}</p>
- <p>{{_i}}<abbr title="HyperText Markup Language" class="initialism">HTML</abbr> is the best thing since sliced bread.{{/i}}</p>
- <p>{{_i}}An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.{{/i}}</p>
- </div>
- </div>
- <!-- Blockquotes -->
- <h2>{{_i}}Blockquotes{{/i}}</h2>
- <table class="table table-bordered table-striped">
- <thead>
- <tr>
- <th>{{_i}}Element{{/i}}</th>
- <th>{{_i}}Usage{{/i}}</th>
- <th>{{_i}}Optional{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>
- <code>&lt;blockquote&gt;</code>
- </td>
- <td>
- {{_i}}Block-level element for quoting content from another source{{/i}}
- </td>
- <td>
- <p>{{_i}}Add <code>cite</code> attribute for source URL{{/i}}</p>
- {{_i}}Use <code>.pull-left</code> and <code>.pull-right</code> classes for floated options{{/i}}
- </td>
- </tr>
- <tr>
- <td>
- <code>&lt;small&gt;</code>
- </td>
- <td>
- {{_i}}Optional element for adding a user-facing citation, typically an author with title of work{{/i}}
- </td>
- <td>
- {{_i}}Place the <code>&lt;cite&gt;</code> around the title or name of source{{/i}}
- </td>
- </tr>
- </tbody>
- </table>
- <div class="row">
- <div class="span4">
- <p>{{_i}}To include a blockquote, 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>.{{/i}}</p>
- <p>{{_i}}Include an optional <code>&lt;small&gt;</code> element to cite your source and you'll get an em dash <code>&amp;mdash;</code> before it for styling purposes.{{/i}}</p>
- </div>
- <div class="span8">
+ <!-- Typography
+ ================================================== -->
+ <section id="typography">
+ <div class="page-header">
+ <h1>{{_i}}Typography{{/i}}</h1>
+ </div>
+
+ {{! Headings }}
+ <h2 id="headings">{{_i}}Headings{{/i}}</h2>
+ <p>{{_i}}All HTML headings, <code>&lt;h1&gt;</code> through <code>&lt;h6&gt;</code> are available.{{/i}}</p>
+ <div class="bs-docs-example">
+ <h1>h1. {{_i}}Heading 1{{/i}}</h1>
+ <h2>h2. {{_i}}Heading 2{{/i}}</h2>
+ <h3>h3. {{_i}}Heading 3{{/i}}</h3>
+ <h4>h4. {{_i}}Heading 4{{/i}}</h4>
+ <h5>h5. {{_i}}Heading 5{{/i}}</h5>
+ <h6>h6. {{_i}}Heading 6{{/i}}</h6>
+ </div>
+
+ {{! Body copy }}
+ <h2 id="body-copy">{{_i}}Body copy{{/i}}</h2>
+ <p>{{_i}}Bootstrap's global default <code>font-size</code> is <strong>14px</strong>, with a <code>line-height</code> of <strong>20px</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 line-height (9px by default).{{/i}}</p>
+ <div class="bs-docs-example">
+ <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>
+ <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>
+ <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>
+ </div>
+ <pre class="prettyprint">&lt;p&gt;...&lt;/p&gt;</pre>
+
+ {{! Body copy .lead }}
+ <h3>{{_i}}Lead body copy{{/i}}</h3>
+ <p>{{_i}}Make a paragraph stand out by adding <code>.lead</code>.{{/i}}</p>
+ <div class="bs-docs-example">
+ <p class="lead">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.</p>
+ </div>
+ <pre class="prettyprint">&lt;p class="lead"&gt;...&lt;/p&gt;</pre>
+
+ {{! Using LESS }}
+ <h3>{{_i}}Built with Less{{/i}}</h3>
+ <p>{{_i}}The typographic scale is based on two LESS variables in <strong>variables.less</strong>: <code>@baseFontSize</code> and <code>@baseLineHeight</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.{{/i}}</p>
+
+
+ <hr class="bs-docs-separator">
+
+
+ {{! Emphasis }}
+ <h2 id="emphasis">{{_i}}Emphasis{{/i}}</h2>
+ <p>{{_i}}Make use of HTML's default emphasis tags with lightweight styles.{{/i}}</p>
+
+ <h3><code>&lt;small&gt;</code></h3>
+ <p>{{_i}}For de-emphasizing inline or blocks of text, <small>use the small tag.</small>{{/i}}</p>
+ <div class="bs-docs-example">
+ <p><small>This line of text is meant to be treated as fine print.</small></p>
+ </div>
+<pre class="prettyprint">
+&lt;p&gt;
+ &lt;small&gt;This line of text is meant to be treated as fine print.&lt;/small&gt;
+&lt;/p&gt;
+</pre>
+
+ <h3><code>&lt;strong&gt;</code></h3>
+ <p>{{_i}}For emphasizing a snippet of text with <strong>important</strong>{{/i}}</p>
+ <div class="bs-docs-example">
+ <p>The following snippet of text is <strong>rendered as bold text</strong>.</p>
+ </div>
+ <pre class="prettyprint">&lt;strong&gt;rendered as bold text&lt;/strong&gt;</pre>
+
+ <h3><code>&lt;em&gt;</code></h3>
+ <p>{{_i}}For emphasizing a snippet of text with <em>stress</em>{{/i}}</p>
+ <div class="bs-docs-example">
+ <p>The following snippet of text is <em>rendered as italicized text</em>.</p>
+ </div>
+ <pre class="prettyprint">&lt;em&gt;rendered as italicized text&lt;/em&gt;</pre>
+
+ <p><span class="label label-info">{{_i}}Heads up!{{/i}}</span> {{_i}}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.{{/i}}</p>
+
+
+ <hr class="bs-docs-separator">
+
+
+ {{! Abbreviations }}
+ <h2 id="abbreviations">{{_i}}Abbreviations{{/i}}</h2>
+ <p>{{_i}}Stylized implemenation 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.{{/i}}</p>
+
+ <h3><code>&lt;abbr&gt;</code></h3>
+ <p>{{_i}}For expanded text on long hover of an abbreviation, include the <code>title</code> attribute.{{/i}}</p>
+ <div class="bs-docs-example">
+ <p>{{_i}}An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.{{/i}}</p>
+ </div>
+ <pre class="prettyprint">&lt;abbr title="attribute"&gt;attr&lt;/abbr&gt;</pre>
+
+ <h3><code>&lt;abbr class="initialism"&gt;</code></h3>
+ <p>{{_i}}Add <code>.initialism</code> to an abbreviation for a slightly smaller font-size.{{/i}}</p>
+ <div class="bs-docs-example">
+ <p>{{_i}}<abbr title="HyperText Markup Language" class="initialism">HTML</abbr> is the best thing since sliced bread.{{/i}}</p>
+ </div>
+ <pre class="prettyprint">&lt;abbr title="attribute" class="initialism"&gt;attr&lt;/abbr&gt;</pre>
+
+
+ <hr class="bs-docs-separator">
+
+
+ {{! Addresses }}
+ <h2 id="addresses">{{_i}}Addresses{{/i}}</h2>
+ <p>{{_i}}Present contact information for the nearest ancestor or the entire body of work.{{/i}}</p>
+
+ <h3><code>&lt;address&gt;</code></h3>
+ <p>{{_i}}Preserve formatting by ending all lines with <code>&lt;br&gt;</code>.{{/i}}</p>
+ <div class="bs-docs-example">
+ <address>
+ <strong>Twitter, Inc.</strong><br>
+ 795 Folsom Ave, Suite 600<br>
+ San Francisco, CA 94107<br>
+ <abbr title="Phone">P:</abbr> (123) 456-7890
+ </address>
+ <address>
+ <strong>{{_i}}Full Name{{/i}}</strong><br>
+ <a href="mailto:#">{{_i}}[email protected]{{/i}}</a>
+ </address>
+ </div>
+<pre class="prettyprint linenums">
+&lt;address&gt;
+ &lt;strong&gt;Twitter, Inc.&lt;/strong&gt;&lt;br&gt;
+ 795 Folsom Ave, Suite 600&lt;br&gt;
+ San Francisco, CA 94107&lt;br&gt;
+ &lt;abbr title="Phone"&gt;P:&lt;/abbr&gt; (123) 456-7890
+&lt;/address&gt;
+
+&lt;address&gt;
+ &lt;strong&gt;{{_i}}Full Name{{/i}}&lt;/strong&gt;&lt;br&gt;
+ &lt;a href="mailto:#"&gt;{{_i}}[email protected]{{/i}}&lt;/a&gt;
+&lt;/address&gt;
+</pre>
+
+
+ <hr class="bs-docs-separator">
+
+
+ {{! Blockquotes }}
+ <h2 id="blockquotes">{{_i}}Blockquotes{{/i}}</h2>
+ <p>{{_i}}For quoting blocks of content from another source within your document.{{/i}}</p>
+
+ <h3>{{_i}}Default blockqoute{{/i}}</h3>
+ <p>{{_i}}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>.{{/i}}</p>
+ <div class="bs-docs-example">
+ <blockquote>
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
+ </blockquote>
+ </div>
<pre class="prettyprint linenums">
&lt;blockquote&gt;
- &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.&lt;/p&gt;
- &lt;small&gt;{{_i}}Someone famous{{/i}}&lt;/small&gt;
+ &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.&lt;/p&gt;
&lt;/blockquote&gt;
</pre>
- </div>
- </div><!--/row-->
-
- <h3>{{_i}}Example blockquotes{{/i}}</h3>
- <div class="row">
- <div class="span6">
- <p>{{_i}}Default blockquotes are styled as such:{{/i}}</p>
- <blockquote>
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.</p>
- <small>{{_i}}Someone famous in <cite title="">Body of work</cite>{{/i}}</small>
- </blockquote>
- </div>
- <div class="span6">
- <p>{{_i}}To float your blockquote to the right, add <code>class="pull-right"</code>:{{/i}}</p>
- <blockquote class="pull-right">
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.</p>
- <small>{{_i}}Someone famous in <cite title="">Body of work</cite>{{/i}}</small>
- </blockquote>
- </div>
- </div>
+ <h3>{{_i}}Blockquote options{{/i}}</h3>
+ <p>{{_i}}Style and content changes for simple variations on a standard blockquote.{{/i}}</p>
- <!-- Lists -->
- <h2>{{_i}}Lists{{/i}}</h2>
- <div class="row">
- <div class="span4">
- <h3>{{_i}}Unordered{{/i}}</h3>
- <p><code>&lt;ul&gt;</code></p>
- <ul>
- <li>Lorem ipsum dolor sit amet</li>
- <li>Consectetur adipiscing elit</li>
- <li>Integer molestie lorem at massa</li>
- <li>Facilisis in pretium nisl aliquet</li>
- <li>Nulla volutpat aliquam velit
- <ul>
- <li>Phasellus iaculis neque</li>
- <li>Purus sodales ultricies</li>
- <li>Vestibulum laoreet porttitor sem</li>
- <li>Ac tristique libero volutpat at</li>
- </ul>
- </li>
- <li>Faucibus porta lacus fringilla vel</li>
- <li>Aenean sit amet erat nunc</li>
- <li>Eget porttitor lorem</li>
- </ul>
- </div>
- <div class="span4">
- <h3>{{_i}}Unstyled{{/i}}</h3>
- <p><code>&lt;ul class="unstyled"&gt;</code></p>
- <ul class="unstyled">
- <li>Lorem ipsum dolor sit amet</li>
- <li>Consectetur adipiscing elit</li>
- <li>Integer molestie lorem at massa</li>
- <li>Facilisis in pretium nisl aliquet</li>
- <li>Nulla volutpat aliquam velit
- <ul>
- <li>Phasellus iaculis neque</li>
- <li>Purus sodales ultricies</li>
- <li>Vestibulum laoreet porttitor sem</li>
- <li>Ac tristique libero volutpat at</li>
+ <h4>{{_i}}Naming a source{{/i}}</h4>
+ <p>{{_i}}Add <code>&lt;small&gt;</code> tag for identifying the source. Wrap the name of the source work in <code>&lt;cite&gt;</code>.{{/i}}</p>
+ <div class="bs-docs-example">
+ <blockquote>
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
+ <small>{{_i}}Someone famous in <cite title="Source Title">Source Title</cite>{{/i}}</small>
+ </blockquote>
+ </div>
+<pre class="prettyprint linenums">
+&lt;blockquote&gt;
+ &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.&lt;/p&gt;
+ &lt;small&gt;{{_i}}Someone famous &lt;cite title="Source Title"&gt;Source Title&lt;/cite&gt;{{/i}}&lt;/small&gt;
+&lt;/blockquote&gt;
+</pre>
+
+ <h4>{{_i}}Alternate displays{{/i}}</h4>
+ <p>{{_i}}Use <code>.pull-right</code> for a floated, right-aligned blockquote.{{/i}}</p>
+ <div class="bs-docs-example" style="overflow: hidden;">
+ <blockquote class="pull-right">
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
+ <small>{{_i}}Someone famous in <cite title="Source Title">Source Title</cite>{{/i}}</small>
+ </blockquote>
+ </div>
+<pre class="prettyprint linenums">
+&lt;blockquote class="pull-right"&gt;
+ ...
+&lt;/blockquote&gt;
+</pre>
+
+
+ <hr class="bs-docs-separator">
+
+
+ <!-- Lists -->
+ <h2 id="lists">{{_i}}Lists{{/i}}</h2>
+
+ <h3>{{_i}}Unordered{{/i}}</h3>
+ <p>{{_i}}A list of items in which the order does <em>not</em> explicitly matter.{{/i}}</p>
+ <div class="bs-docs-example">
+ <ul>
+ <li>Lorem ipsum dolor sit amet</li>
+ <li>Consectetur adipiscing elit</li>
+ <li>Integer molestie lorem at massa</li>
+ <li>Facilisis in pretium nisl aliquet</li>
+ <li>Nulla volutpat aliquam velit
+ <ul>
+ <li>Phasellus iaculis neque</li>
+ <li>Purus sodales ultricies</li>
+ <li>Vestibulum laoreet porttitor sem</li>
+ <li>Ac tristique libero volutpat at</li>
+ </ul>
+ </li>
+ <li>Faucibus porta lacus fringilla vel</li>
+ <li>Aenean sit amet erat nunc</li>
+ <li>Eget porttitor lorem</li>
+ </ul>
+ </div>
+<pre class="prettyprint linenums">
+&lt;ul&gt;
+ &lt;li&gt;...&lt;/li&gt;
+&lt;/ul&gt;
+</pre>
+
+ <h3>{{_i}}Ordered{{/i}}</h3>
+ <p>{{_i}}A list of items in which the order <em>does</em> explicitly matter.{{/i}}</p>
+ <div class="bs-docs-example">
+ <ol>
+ <li>Lorem ipsum dolor sit amet</li>
+ <li>Consectetur adipiscing elit</li>
+ <li>Integer molestie lorem at massa</li>
+ <li>Facilisis in pretium nisl aliquet</li>
+ <li>Nulla volutpat aliquam velit</li>
+ <li>Faucibus porta lacus fringilla vel</li>
+ <li>Aenean sit amet erat nunc</li>
+ <li>Eget porttitor lorem</li>
+ </ol>
+ </div>
+<pre class="prettyprint linenums">
+&lt;ol&gt;
+ &lt;li&gt;...&lt;/li&gt;
+&lt;/ol&gt;
+</pre>
+
+ <h3>{{_i}}Unstyled{{/i}}</h3>
+ <p>{{_i}}A list of items with no <code>list-style</code> or additional left padding.{{/i}}</p>
+ <div class="bs-docs-example">
+ <ul class="unstyled">
+ <li>Lorem ipsum dolor sit amet</li>
+ <li>Consectetur adipiscing elit</li>
+ <li>Integer molestie lorem at massa</li>
+ <li>Facilisis in pretium nisl aliquet</li>
+ <li>Nulla volutpat aliquam velit
+ <ul>
+ <li>Phasellus iaculis neque</li>
+ <li>Purus sodales ultricies</li>
+ <li>Vestibulum laoreet porttitor sem</li>
+ <li>Ac tristique libero volutpat at</li>
+ </ul>
+ </li>
+ <li>Faucibus porta lacus fringilla vel</li>
+ <li>Aenean sit amet erat nunc</li>
+ <li>Eget porttitor lorem</li>
</ul>
- </li>
- <li>Faucibus porta lacus fringilla vel</li>
- <li>Aenean sit amet erat nunc</li>
- <li>Eget porttitor lorem</li>
- </ul>
- </div>
- <div class="span4">
- <h3>{{_i}}Ordered{{/i}}</h3>
- <p><code>&lt;ol&gt;</code></p>
- <ol>
- <li>Lorem ipsum dolor sit amet</li>
- <li>Consectetur adipiscing elit</li>
- <li>Integer molestie lorem at massa</li>
- <li>Facilisis in pretium nisl aliquet</li>
- <li>Nulla volutpat aliquam velit</li>
- <li>Faucibus porta lacus fringilla vel</li>
- <li>Aenean sit amet erat nunc</li>
- <li>Eget porttitor lorem</li>
- </ol>
- </div>
- </div><!-- /row -->
- <br>
- <div class="row">
- <div class="span4">
- <h3>{{_i}}Description{{/i}}</h3>
- <p><code>&lt;dl&gt;</code></p>
- <dl>
- <dt>{{_i}}Description lists{{/i}}</dt>
- <dd>{{_i}}A description list is perfect for defining terms.{{/i}}</dd>
- <dt>Euismod</dt>
- <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
- <dd>Donec id elit non mi porta gravida at eget metus.</dd>
- <dt>Malesuada porta</dt>
- <dd>Etiam porta sem malesuada magna mollis euismod.</dd>
- </dl>
- </div>
- <div class="span8">
- <h3>{{_i}}Horizontal description{{/i}}</h3>
- <p><code>&lt;dl class="dl-horizontal"&gt;</code></p>
- <dl class="dl-horizontal">
- <dt>{{_i}}Description lists{{/i}}</dt>
- <dd>{{_i}}A description list is perfect for defining terms.{{/i}}</dd>
- <dt>Euismod</dt>
- <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
- <dd>Donec id elit non mi porta gravida at eget metus.</dd>
- <dt>Malesuada porta</dt>
- <dd>Etiam porta sem malesuada magna mollis euismod.</dd>
- <dt>Felis euismod semper eget lacinia</dt>
- <dd>Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</dd>
- </dl>
- <hr>
- <p>
- <span class="label label-info">{{_i}}Heads up!{{/i}}</span>
- {{_i}}Horizontal description lists will truncate terms that are too long to fit in the left column fix <code>text-overflow</code>. In narrower viewports, they will change to the default stacked layout.{{/i}}
- </p>
- </div>
- </div><!-- /row -->
-</section>
-
-
-
-<!-- Code
-================================================== -->
-<section id="code">
- <div class="page-header">
- <h1>{{_i}}Code{{/i}} <small>{{_i}}Inline and block code snippets{{/i}}</small></h1>
- </div>
- <div class="row">
- <div class="span4">
- <h2>Inline</h2>
- <p>Wrap inline snippets of code with <code>&lt;code&gt;</code>.</p>
+ </div>
<pre class="prettyprint linenums">
-{{_i}}For example, &lt;code&gt;section&lt;/code&gt; should be wrapped as inline.{{/i}}
+&lt;ul class="unstyled"&gt;
+ &lt;li&gt;...&lt;/li&gt;
+&lt;/ul&gt;
</pre>
- </div><!--/span-->
- <div class="span4">
- <h2>Basic block</h2>
- <p>{{_i}}Use <code>&lt;pre&gt;</code> for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.{{/i}}</p>
-<pre>
-&lt;p&gt;{{_i}}Sample text here...{{/i}}&lt;/p&gt;
+
+ <h3>{{_i}}Description{{/i}}</h3>
+ <p>{{_i}}A list of terms with their associated descriptions.{{/i}}</p>
+ <div class="bs-docs-example">
+ <dl>
+ <dt>{{_i}}Description lists{{/i}}</dt>
+ <dd>{{_i}}A description list is perfect for defining terms.{{/i}}</dd>
+ <dt>Euismod</dt>
+ <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
+ <dd>Donec id elit non mi porta gravida at eget metus.</dd>
+ <dt>Malesuada porta</dt>
+ <dd>Etiam porta sem malesuada magna mollis euismod.</dd>
+ </dl>
+ </div>
+<pre class="prettyprint linenums">
+&lt;dl&gt;
+ &lt;dt&gt;...&lt;/dt&gt;
+ &lt;dd&gt;...&lt;/dd&gt;
+&lt;/dl&gt;
</pre>
-<pre class="prettyprint linenums" style="margin-bottom: 9px;">
-&lt;pre&gt;
- &amp;lt;p&amp;gt;{{_i}}Sample text here...{{/i}}&amp;lt;/p&amp;gt;
-&lt;/pre&gt;
+
+ <h4>{{_i}}Horizontal description{{/i}}</h4>
+ <p>{{_i}}Make terms and descriptions in <code>&lt;dl&gt;</code> line up side-by-side.{{/i}}</p>
+ <div class="bs-docs-example">
+ <dl class="dl-horizontal">
+ <dt>{{_i}}Description lists{{/i}}</dt>
+ <dd>{{_i}}A description list is perfect for defining terms.{{/i}}</dd>
+ <dt>Euismod</dt>
+ <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
+ <dd>Donec id elit non mi porta gravida at eget metus.</dd>
+ <dt>Malesuada porta</dt>
+ <dd>Etiam porta sem malesuada magna mollis euismod.</dd>
+ <dt>Felis euismod semper eget lacinia</dt>
+ <dd>Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</dd>
+ </dl>
+ </div>
+<pre class="prettyprint linenums">
+&lt;dl class="dl-horizontal"&gt;
+ &lt;dt&gt;...&lt;/dt&gt;
+ &lt;dd&gt;...&lt;/dd&gt;
+&lt;/dl&gt;
</pre>
- <p>{{_i}}<strong>Note:</strong> Be sure to keep code within <code>&lt;pre&gt;</code> tags as close to the left as possible; it will render all tabs.{{/i}}</p>
- <p>{{_i}}You may optionally add the <code>.pre-scrollable</code> class which will set a max-height of 350px and provide a y-axis scrollbar.{{/i}}</p>
- </div><!--/span-->
- <div class="span4">
- <h2>Google Prettify</h2>
- <p>Take the same <code>&lt;pre&gt;</code> element and add two optional classes for enhanced rendering.</p>
-<pre class="prettyprint linenums" style="margin-bottom: 9px;">
-&lt;p&gt;{{_i}}Sample text here...{{/i}}&lt;/p&gt;
+ <p>
+ <span class="label label-info">{{_i}}Heads up!{{/i}}</span>
+ {{_i}}Horizontal description lists will truncate terms that are too long to fit in the left column fix <code>text-overflow</code>. In narrower viewports, they will change to the default stacked layout.{{/i}}
+ </p>
+ </section>
+
+
+
+ <!-- Code
+ ================================================== -->
+ <section id="code">
+ <div class="page-header">
+ <h1>{{_i}}Code{{/i}}</h1>
+ </div>
+
+ <h2>Inline</h2>
+ <p>Wrap inline snippets of code with <code>&lt;code&gt;</code>.</p>
+<div class="bs-docs-example">
+ For example, <code>&lt;section&gt;</code> should be wrapped as inline.
+</div>
+<pre class="prettyprint linenums">
+{{_i}}For example, &lt;code&gt;&lt;section&gt;&lt;/code&gt; should be wrapped as inline.{{/i}}
</pre>
+
+ <h2>Basic block</h2>
+ <p>{{_i}}Use <code>&lt;pre&gt;</code> for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.{{/i}}</p>
+<div class="bs-docs-example">
+ <pre>&lt;p&gt;{{_i}}Sample text here...{{/i}}&lt;/p&gt;</pre>
+</div>
<pre class="prettyprint linenums" style="margin-bottom: 9px;">
-&lt;pre class="prettyprint
- linenums"&gt;
+&lt;pre&gt;
&amp;lt;p&amp;gt;{{_i}}Sample text here...{{/i}}&amp;lt;/p&amp;gt;
&lt;/pre&gt;
</pre>
- <p>{{_i}}<a href="http://code.google.com/p/google-code-prettify/">Download google-code-prettify</a> and view the readme for <a href="http://google-code-prettify.googlecode.com/svn/trunk/README.html">how to use</a>.{{/i}}</p>
- </div><!--/span-->
- </div><!--/row-->
-</section>
+ <p><span class="label label-info">{{_i}}Heads up!{{/i}}</span> {{_i}}Be sure to keep code within <code>&lt;pre&gt;</code> tags as close to the left as possible; it will render all tabs.{{/i}}</p>
+ <p>{{_i}}You may optionally add the <code>.pre-scrollable</code> class which will set a max-height of 350px and provide a y-axis scrollbar.{{/i}}</p>
+ </section>
-<!-- Tables
-================================================== -->
-<section id="tables">
- <div class="page-header">
- <h1>{{_i}}Tables <small>For, you guessed it, tabular data</small>{{/i}}</h1>
- </div>
+ <!-- Tables
+ ================================================== -->
+ <section id="tables">
+ <div class="page-header">
+ <h1>{{_i}}Tables{{/i}}</h1>
+ </div>
- <h2>{{_i}}Table markup{{/i}}</h2>
- <div class="row">
- <div class="span8">
- <table class="table table-bordered table-striped">
- <colgroup>
- <col class="span1">
- <col class="span7">
- </colgroup>
- <thead>
- <tr>
- <th>{{_i}}Tag{{/i}}</th>
- <th>{{_i}}Description{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>
- <code>&lt;table&gt;</code>
- </td>
- <td>
- {{_i}}Wrapping element for displaying data in a tabular format{{/i}}
- </td>
- </tr>
- <tr>
- <td>
- <code>&lt;thead&gt;</code>
- </td>
- <td>
- {{_i}}Container element for table header rows (<code>&lt;tr&gt;</code>) to label table columns{{/i}}
- </td>
- </tr>
- <tr>
- <td>
- <code>&lt;tbody&gt;</code>
- </td>
- <td>
- {{_i}}Container element for table rows (<code>&lt;tr&gt;</code>) in the body of the table{{/i}}
- </td>
- </tr>
- <tr>
- <td>
- <code>&lt;tr&gt;</code>
- </td>
- <td>
- {{_i}}Container element for a set of table cells (<code>&lt;td&gt;</code> or <code>&lt;th&gt;</code>) that appears on a single row{{/i}}
- </td>
- </tr>
- <tr>
- <td>
- <code>&lt;td&gt;</code>
- </td>
- <td>
- {{_i}}Default table cell{{/i}}
- </td>
- </tr>
- <tr>
- <td>
- <code>&lt;th&gt;</code>
- </td>
- <td>
- {{_i}}Special table cell for column (or row, depending on scope and placement) labels{{/i}}<br>
- {{_i}}Must be used within a <code>&lt;thead&gt;</code>{{/i}}
- </td>
- </tr>
- <tr>
- <td>
- <code>&lt;caption&gt;</code>
- </td>
- <td>
- {{_i}}Description or summary of what the table holds, especially useful for screen readers{{/i}}
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <div class="span4">
+ <h2>{{_i}}Default styles{{/i}}</h2>
+ <p>{{_i}}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>.{{/i}}</p>
+ <div class="bs-docs-example">
+ <table class="table">
+ <thead>
+ <tr>
+ <th>#</th>
+ <th>{{_i}}First Name{{/i}}</th>
+ <th>{{_i}}Last Name{{/i}}</th>
+ <th>{{_i}}Username{{/i}}</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>1</td>
+ <td>Mark</td>
+ <td>Otto</td>
+ <td>@mdo</td>
+ </tr>
+ <tr>
+ <td>2</td>
+ <td>Jacob</td>
+ <td>Thornton</td>
+ <td>@fat</td>
+ </tr>
+ <tr>
+ <td>3</td>
+ <td>Larry</td>
+ <td>the Bird</td>
+ <td>@twitter</td>
+ </tr>
+ </tbody>
+ </table>
+ </div>{{! /example }}
<pre class="prettyprint linenums">
-&lt;table&gt;
- &lt;thead&gt;
- &lt;tr&gt;
- &lt;th&gt;…&lt;/th&gt;
- &lt;th&gt;…&lt;/th&gt;
- &lt;/tr&gt;
- &lt;/thead&gt;
- &lt;tbody&gt;
- &lt;tr&gt;
- &lt;td&gt;…&lt;/td&gt;
- &lt;td&gt;…&lt;/td&gt;
- &lt;/tr&gt;
- &lt;/tbody&gt;
+&lt;table class="table"&gt;
+ …
&lt;/table&gt;
</pre>
- </div>
- </div>
- <h2>{{_i}}Table options{{/i}}</h2>
- <table class="table table-bordered table-striped">
- <thead>
- <tr>
- <th>{{_i}}Name{{/i}}</th>
- <th>{{_i}}Class{{/i}}</th>
- <th>{{_i}}Description{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{_i}}Default{{/i}}</td>
- <td class="muted">{{_i}}None{{/i}}</td>
- <td>{{_i}}No styles, just columns and rows{{/i}}</td>
- </tr>
- <tr>
- <td>{{_i}}Basic{{/i}}</td>
- <td>
- <code>.table</code>
- </td>
- <td>{{_i}}Only horizontal lines between rows{{/i}}</td>
- </tr>
- <tr>
- <td>{{_i}}Bordered{{/i}}</td>
- <td>
- <code>.table-bordered</code>
- </td>
- <td>{{_i}}Rounds corners and adds outer border{{/i}}</td>
- </tr>
- <tr>
- <td>{{_i}}Zebra-stripe{{/i}}</td>
- <td>
- <code>.table-striped</code>
- </td>
- <td>{{_i}}Adds light gray background color to odd rows (1, 3, 5, etc){{/i}}</td>
- </tr>
- <tr>
- <td>{{_i}}Condensed{{/i}}</td>
- <td>
- <code>.table-condensed</code>
- </td>
- <td>{{_i}}Cuts vertical padding in half, from 8px to 4px, within all <code>td</code> and <code>th</code> elements{{/i}}</td>
- </tr>
- </tbody>
- </table>
-
-
- <h2>{{_i}}Example tables{{/i}}</h2>
-
- <h3>1. {{_i}}Default table styles{{/i}}</h3>
- <div class="row">
- <div class="span4">
- <p>{{_i}}Tables are automatically styled with only a few borders to ensure readability and maintain structure. With 2.0, the <code>.table</code> class is required.{{/i}}</p>
-<pre class="prettyprint linenums">
-&lt;table class="table"&gt;
- …
-&lt;/table&gt;</pre>
- </div>
- <div class="span8">
- <table class="table">
- <thead>
- <tr>
- <th>#</th>
- <th>{{_i}}First Name{{/i}}</th>
- <th>{{_i}}Last Name{{/i}}</th>
- <th>{{_i}}Username{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>1</td>
- <td>Mark</td>
- <td>Otto</td>
- <td>@mdo</td>
- </tr>
- <tr>
- <td>2</td>
- <td>Jacob</td>
- <td>Thornton</td>
- <td>@fat</td>
- </tr>
- <tr>
- <td>3</td>
- <td>Larry</td>
- <td>the Bird</td>
- <td>@twitter</td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
+
+ <hr class="bs-docs-separator">
- <h3>2. {{_i}}Striped table{{/i}}</h3>
- <div class="row">
- <div class="span4">
- <p>{{_i}}Get a little fancy with your tables by adding zebra-striping&mdash;just add the <code>.table-striped</code> class.{{/i}}</p>
- <p class="muted">{{_i}}<strong>Note:</strong> Striped tables use the <code>:nth-child</code> CSS selector and is not available in IE7-IE8.{{/i}}</p>
+ <h2>{{_i}}Optional classes{{/i}}</h2>
+ <p>{{_i}}Add any of the follow classes to the <code>.table</code> base class.{{/i}}</p>
+
+ <h3><code>{{_i}}.table-striped{{/i}}</code></h3>
+ <p>{{_i}}Adds zebra-striping to any table row within the <code>&lt;tbody&gt;</code> via the <code>:nth-child</code> CSS selector (not available in IE7-IE8).{{/i}}</p>
+ <div class="bs-docs-example">
+ <table class="table table-striped">
+ <thead>
+ <tr>
+ <th>#</th>
+ <th>{{_i}}First Name{{/i}}</th>
+ <th>{{_i}}Last Name{{/i}}</th>
+ <th>{{_i}}Username{{/i}}</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>1</td>
+ <td>Mark</td>
+ <td>Otto</td>
+ <td>@mdo</td>
+ </tr>
+ <tr>
+ <td>2</td>
+ <td>Jacob</td>
+ <td>Thornton</td>
+ <td>@fat</td>
+ </tr>
+ <tr>
+ <td>3</td>
+ <td>Larry</td>
+ <td>the Bird</td>
+ <td>@twitter</td>
+ </tr>
+ </tbody>
+ </table>
+ </div>{{! /example }}
<pre class="prettyprint linenums" style="margin-bottom: 18px;">
&lt;table class="table table-striped"&gt;
…
-&lt;/table&gt;</pre>
- </div>
- <div class="span8">
- <table class="table table-striped">
- <thead>
- <tr>
- <th>#</th>
- <th>{{_i}}First Name{{/i}}</th>
- <th>{{_i}}Last Name{{/i}}</th>
- <th>{{_i}}Username{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>1</td>
- <td>Mark</td>
- <td>Otto</td>
- <td>@mdo</td>
- </tr>
- <tr>
- <td>2</td>
- <td>Jacob</td>
- <td>Thornton</td>
- <td>@fat</td>
- </tr>
- <tr>
- <td>3</td>
- <td>Larry</td>
- <td>the Bird</td>
- <td>@twitter</td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
-
+&lt;/table&gt;
+</pre>
- <h3>3. {{_i}}Bordered table{{/i}}</h3>
- <div class="row">
- <div class="span4">
- <p>{{_i}}Add borders around the entire table and rounded corners for aesthetic purposes.{{/i}}</p>
+ <h3><code>{{_i}}.table-bordered{{/i}}</code></h3>
+ <p>{{_i}}Add borders and rounded corners to the table.{{/i}}</p>
+ <div class="bs-docs-example">
+ <table class="table table-bordered">
+ <thead>
+ <tr>
+ <th>#</th>
+ <th>{{_i}}First Name{{/i}}</th>
+ <th>{{_i}}Last Name{{/i}}</th>
+ <th>{{_i}}Username{{/i}}</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td rowspan="2">1</td>
+ <td>Mark</td>
+ <td>Otto</td>
+ <td>@mdo</td>
+ </tr>
+ <tr>
+ <td>Mark</td>
+ <td>Otto</td>
+ <td>@TwBootstrap</td>
+ </tr>
+ <tr>
+ <td>2</td>
+ <td>Jacob</td>
+ <td>Thornton</td>
+ <td>@fat</td>
+ </tr>
+ <tr>
+ <td>3</td>
+ <td colspan="2">Larry the Bird</td>
+ <td>@twitter</td>
+ </tr>
+ </tbody>
+ </table>
+ </div>{{! /example }}
<pre class="prettyprint linenums">
&lt;table class="table table-bordered"&gt;
…
-&lt;/table&gt;</pre>
- </div>
- <div class="span8">
- <table class="table table-bordered">
- <thead>
- <tr>
- <th>#</th>
- <th>{{_i}}First Name{{/i}}</th>
- <th>{{_i}}Last Name{{/i}}</th>
- <th>{{_i}}Username{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td rowspan="2">1</td>
- <td>Mark</td>
- <td>Otto</td>
- <td>@mdo</td>
- </tr>
- <tr>
- <td>Mark</td>
- <td>Otto</td>
- <td>@TwBootstrap</td>
- </tr>
- <tr>
- <td>2</td>
- <td>Jacob</td>
- <td>Thornton</td>
- <td>@fat</td>
- </tr>
- <tr>
- <td>3</td>
- <td colspan="2">Larry the Bird</td>
- <td>@twitter</td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
+&lt;/table&gt;
+</pre>
+ <h3><code>{{_i}}.table-hover{{/i}}</code></h3>
+ <p>{{_i}}Enable a hover state on table rows within a <code>&lt;tbody&gt;</code>.{{/i}}</p>
+ <div class="bs-docs-example">
+ <table class="table table-hover">
+ <thead>
+ <tr>
+ <th>#</th>
+ <th>{{_i}}First Name{{/i}}</th>
+ <th>{{_i}}Last Name{{/i}}</th>
+ <th>{{_i}}Username{{/i}}</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>1</td>
+ <td>Mark</td>
+ <td>Otto</td>
+ <td>@mdo</td>
+ </tr>
+ <tr>
+ <td>2</td>
+ <td>Jacob</td>
+ <td>Thornton</td>
+ <td>@fat</td>
+ </tr>
+ <tr>
+ <td>3</td>
+ <td colspan="2">Larry the Bird</td>
+ <td>@twitter</td>
+ </tr>
+ </tbody>
+ </table>
+ </div>{{! /example }}
+<pre class="prettyprint linenums" style="margin-bottom: 18px;">
+&lt;table class="table table-hover"&gt;
+ …
+&lt;/table&gt;
+</pre>
- <h3>4. {{_i}}Condensed table{{/i}}</h3>
- <div class="row">
- <div class="span4">
- <p>{{_i}}Make your tables more compact by adding the <code>.table-condensed</code> class to cut table cell padding in half (from 8px to 4px).{{/i}}</p>
+ <h3><code>{{_i}}.table-condensed{{/i}}</code></h3>
+ <p>{{_i}}Makes tables more compact by cutting cell padding in half.{{/i}}</p>
+ <div class="bs-docs-example">
+ <table class="table table-condensed">
+ <thead>
+ <tr>
+ <th>#</th>
+ <th>{{_i}}First Name{{/i}}</th>
+ <th>{{_i}}Last Name{{/i}}</th>
+ <th>{{_i}}Username{{/i}}</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>1</td>
+ <td>Mark</td>
+ <td>Otto</td>
+ <td>@mdo</td>
+ </tr>
+ <tr>
+ <td>2</td>
+ <td>Jacob</td>
+ <td>Thornton</td>
+ <td>@fat</td>
+ </tr>
+ <tr>
+ <td>3</td>
+ <td colspan="2">Larry the Bird</td>
+ <td>@twitter</td>
+ </tr>
+ </tbody>
+ </table>
+ </div>{{! /example }}
<pre class="prettyprint linenums" style="margin-bottom: 18px;">
&lt;table class="table table-condensed"&gt;
…
-&lt;/table&gt;</pre>
- </div>
- <div class="span8">
- <table class="table table-condensed">
- <thead>
- <tr>
- <th>#</th>
- <th>{{_i}}First Name{{/i}}</th>
- <th>{{_i}}Last Name{{/i}}</th>
- <th>{{_i}}Username{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>1</td>
- <td>Mark</td>
- <td>Otto</td>
- <td>@mdo</td>
- </tr>
- <tr>
- <td>2</td>
- <td>Jacob</td>
- <td>Thornton</td>
- <td>@fat</td>
- </tr>
- <tr>
- <td>3</td>
- <td colspan="2">Larry the Bird</td>
- <td>@twitter</td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
+&lt;/table&gt;
+</pre>
+ <hr class="bs-docs-separator">
- <h3>5. {{_i}}Combine them all!{{/i}}</h3>
- <div class="row">
- <div class="span4">
- <p>{{_i}}Feel free to combine any of the table classes to achieve different looks by utilizing any of the available classes.{{/i}}</p>
-<pre class="prettyprint linenums" style="margin-bottom: 18px;">
-&lt;table class="table table-striped table-bordered table-condensed"&gt;
- ...
-&lt;/table&gt;</pre>
- </div>
- <div class="span8">
- <table class="table table-striped table-bordered table-condensed">
- <thead>
- <tr>
- <th></th>
- <th colspan="2">{{_i}}Full name{{/i}}</th>
- <th></th>
- </tr>
- <tr>
- <th>#</th>
- <th>{{_i}}First Name{{/i}}</th>
- <th>{{_i}}Last Name{{/i}}</th>
- <th>{{_i}}Username{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <tr>
- <td>1</td>
- <td>Mark</td>
- <td>Otto</td>
- <td>@mdo</td>
- </tr>
- <tr>
- <td>2</td>
- <td>Jacob</td>
- <td>Thornton</td>
- <td>@fat</td>
- </tr>
- <tr>
- <td>3</td>
- <td colspan="2">Larry the Bird</td>
- <td>@twitter</td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
-</section>
+ <h2>{{_i}}Optional row classes{{/i}}</h2>
+ <p>{{_i}}Use contextual classes to color table rows.{{/i}}</p>
+ <table class="table table-bordered table-striped">
+ <colgroup>
+ <col class="span1">
+ <col class="span7">
+ </colgroup>
+ <thead>
+ <tr>
+ <th>{{_i}}Class{{/i}}</th>
+ <th>{{_i}}Description{{/i}}</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>
+ <code>.success</code>
+ </td>
+ <td>{{_i}}Indicates a successful or positive action.{{/i}}</td>
+ </tr>
+ <tr>
+ <td>
+ <code>.error</code>
+ </td>
+ <td>{{_i}}Indicates a dangerous or potentially negative action.{{/i}}</td>
+ </tr>
+ <tr>
+ <td>
+ <code>.info</code>
+ </td>
+ <td>{{_i}}Used as an alternative to the default styles.{{/i}}</td>
+ </tr>
+ </tbody>
+ </table>
+ <div class="bs-docs-example">
+ <table class="table">
+ <thead>
+ <tr>
+ <th>#</th>
+ <th>{{_i}}Product{{/i}}</th>
+ <th>{{_i}}Payment Taken{{/i}}</th>
+ <th>{{_i}}Status{{/i}}</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr class="success">
+ <td>1</td>
+ <td>TB - Monthly</td>
+ <td>01/04/2012</td>
+ <td>Approved</td>
+ </tr>
+ <tr class="error">
+ <td>2</td>
+ <td>TB - Monthly</td>
+ <td>02/04/2012</td>
+ <td>Declined</td>
+ </tr>
+ <tr class="info">
+ <td>3</td>
+ <td>TB - Monthly</td>
+ <td>03/04/2012</td>
+ <td>Pending</td>
+ </tr>
+ </tbody>
+ </table>
+ </div>{{! /example }}
+<pre class="prettyprint linenums">
+...
+ &lt;tr class="success"&gt;
+ &lt;td&gt;1&lt;/td&gt;
+ &lt;td&gt;TB - Monthly&lt;/td&gt;
+ &lt;td&gt;01/04/2012&lt;/td&gt;
+ &lt;td&gt;Approved&lt;/td&gt;
+ &lt;/tr&gt;
+...
+</pre>
-<!-- Forms
-================================================== -->
-<section id="forms">
- <div class="page-header">
- <h1>{{_i}}Forms{{/i}}</h1>
- </div>
- <div class="row">
- <div class="span4">
- <h2>{{_i}}Flexible HTML and CSS{{/i}}</h2>
- <p>{{_i}}The best part about forms in Bootstrap is that all your inputs and controls look great no matter how you build them in your markup. No superfluous HTML is required, but we provide the patterns for those who require it.{{/i}}</p>
- <p>{{_i}}More complicated layouts come with succinct and scalable classes for easy styling and event binding, so you're covered at every step.{{/i}}</p>
- </div>
- <div class="span4">
- <h2>{{_i}}Four layouts included{{/i}}</h2>
- <p>{{_i}}Bootstrap comes with support for four types of form layouts:{{/i}}</p>
- <ul>
- <li>{{_i}}Vertical (default){{/i}}</li>
- <li>{{_i}}Search{{/i}}</li>
- <li>{{_i}}Inline{{/i}}</li>
- <li>{{_i}}Horizontal{{/i}}</li>
- </ul>
- <p>{{_i}}Different types of form layouts require some changes to markup, but the controls themselves remain and behave the same.{{/i}}</p>
- </div>
- <div class="span4">
- <h2>{{_i}}Control states and more{{/i}}</h2>
- <p>{{_i}}Bootstrap's forms include styles for all the base form controls like input, textarea, and select you'd expect. But it also comes with a number of custom components like appended and prepended inputs and support for lists of checkboxes.{{/i}}</p>
- <p>{{_i}}States like error, warning, and success are included for each type of form control. Also included are styles for disabled controls.{{/i}}</p>
- </div>
- </div>
+ <hr class="bs-docs-separator">
- <h2>{{_i}}Four types of forms{{/i}}</h2>
- <p>{{_i}}Bootstrap provides simple markup and styles for four styles of common web forms.{{/i}}</p>
- <table class="table table-bordered table-striped">
- <thead>
- <tr>
- <th>{{_i}}Name{{/i}}</th>
- <th>{{_i}}Class{{/i}}</th>
- <th>{{_i}}Description{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <th>{{_i}}Vertical (default){{/i}}</th>
- <td><code>.form-vertical</code> <span class="muted">({{_i}}not required{{/i}})</span></td>
- <td>{{_i}}Stacked, left-aligned labels over controls{{/i}}</td>
- </tr>
- <tr>
- <th>{{_i}}Inline{{/i}}</th>
- <td><code>.form-inline</code></td>
- <td>{{_i}}Left-aligned label and inline-block controls for compact style{{/i}}</td>
- </tr>
- <tr>
- <th>{{_i}}Search{{/i}}</th>
- <td><code>.form-search</code></td>
- <td>{{_i}}Extra-rounded text input for a typical search aesthetic{{/i}}</td>
- </tr>
- <tr>
- <th>{{_i}}Horizontal{{/i}}</th>
- <td><code>.form-horizontal</code></td>
- <td>{{_i}}Float left, right-aligned labels on same line as controls{{/i}}</td>
- </tr>
- </tbody>
- </table>
-
-
- <h2>{{_i}}Example forms <small>using just form controls, no extra markup</small>{{/i}}</h2>
- <div class="row">
- <div class="span6">
- <h3>{{_i}}Basic form{{/i}}</h3>
- <p>{{_i}}Smart and lightweight defaults without extra markup.{{/i}}</p>
- <form class="well">
- <label>{{_i}}Label name{{/i}}</label>
- <input type="text" class="span3" placeholder="{{_i}}Type something…{{/i}}">
- <p class="help-block">{{_i}}Example block-level help text here.{{/i}}</p>
- <label class="checkbox">
- <input type="checkbox"> {{_i}}Check me out{{/i}}
- </label>
- <button type="submit" class="btn">{{_i}}Submit{{/i}}</button>
- </form>
+
+ <h2>{{_i}}Supported table markup{{/i}}</h2>
+ <p>{{_i}}List of supported table HTML elements and how they should be used.{{/i}}</p>
+ <table class="table table-bordered table-striped">
+ <colgroup>
+ <col class="span1">
+ <col class="span7">
+ </colgroup>
+ <thead>
+ <tr>
+ <th>{{_i}}Tag{{/i}}</th>
+ <th>{{_i}}Description{{/i}}</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>
+ <code>&lt;table&gt;</code>
+ </td>
+ <td>
+ {{_i}}Wrapping element for displaying data in a tabular format{{/i}}
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>&lt;thead&gt;</code>
+ </td>
+ <td>
+ {{_i}}Container element for table header rows (<code>&lt;tr&gt;</code>) to label table columns{{/i}}
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>&lt;tbody&gt;</code>
+ </td>
+ <td>
+ {{_i}}Container element for table rows (<code>&lt;tr&gt;</code>) in the body of the table{{/i}}
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>&lt;tr&gt;</code>
+ </td>
+ <td>
+ {{_i}}Container element for a set of table cells (<code>&lt;td&gt;</code> or <code>&lt;th&gt;</code>) that appears on a single row{{/i}}
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>&lt;td&gt;</code>
+ </td>
+ <td>
+ {{_i}}Default table cell{{/i}}
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>&lt;th&gt;</code>
+ </td>
+ <td>
+ {{_i}}Special table cell for column (or row, depending on scope and placement) labels{{/i}}<br>
+ {{_i}}Must be used within a <code>&lt;thead&gt;</code>{{/i}}
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <code>&lt;caption&gt;</code>
+ </td>
+ <td>
+ {{_i}}Description or summary of what the table holds, especially useful for screen readers{{/i}}
+ </td>
+ </tr>
+ </tbody>
+ </table>
<pre class="prettyprint linenums">
-&lt;form class="well"&gt;
+&lt;table&gt;
+ &lt;caption&gt;...&lt;/caption&gt;
+ &lt;thead&gt;
+ &lt;tr&gt;
+ &lt;th&gt;...&lt;/th&gt;
+ &lt;th&gt;...&lt;/th&gt;
+ &lt;/tr&gt;
+ &lt;/thead&gt;
+ &lt;tbody&gt;
+ &lt;tr&gt;
+ &lt;td&gt;...&lt;/td&gt;
+ &lt;td&gt;...&lt;/td&gt;
+ &lt;/tr&gt;
+ &lt;/tbody&gt;
+&lt;/table&gt;
+</pre>
+
+ </section>
+
+
+
+ <!-- Forms
+ ================================================== -->
+ <section id="forms">
+ <div class="page-header">
+ <h1>{{_i}}Forms{{/i}}</h1>
+ </div>
+
+ <h2>{{_i}}Default styles{{/i}}</h2>
+ <p>{{_i}}Individual form controls receive styling, but without any required base class on the <code>&lt;form&gt;</code> or large changes in markup. Results in stacked, left-aligned labels on top of form controls.{{/i}}</p>
+ <form class="bs-docs-example">
+ <legend>Legend</legend>
+ <label>{{_i}}Label name{{/i}}</label>
+ <input type="text" placeholder="{{_i}}Type something…{{/i}}">
+ <span class="help-block">{{_i}}Example block-level help text here.{{/i}}</span>
+ <label class="checkbox">
+ <input type="checkbox"> {{_i}}Check me out{{/i}}
+ </label>
+ <button type="submit" class="btn">{{_i}}Submit{{/i}}</button>
+ </form>{{! /example }}
+<pre class="prettyprint linenums">
+&lt;form&gt;
+ &lt;legend&gt;{{_i}}Legend{{/i}}&lt;/legend&gt;
&lt;label&gt;{{_i}}Label name{{/i}}&lt;/label&gt;
- &lt;input type="text" class="span3" placeholder="{{_i}}Type something…{{/i}}"&gt;
+ &lt;input type="text" placeholder="{{_i}}Type something…{{/i}}"&gt;
&lt;span class="help-block"&gt;Example block-level help text here.&lt;/span&gt;
&lt;label class="checkbox"&gt;
&lt;input type="checkbox"&gt; {{_i}}Check me out{{/i}}
@@ -830,33 +804,39 @@
&lt;button type="submit" class="btn"&gt;{{_i}}Submit{{/i}}&lt;/button&gt;
&lt;/form&gt;
</pre>
- </div>
- <div class="span6">
- <h3>{{_i}}Search form{{/i}}</h3>
- <p>{{_i}}Add <code>.form-search</code> to the form and <code>.search-query</code> to the <code>input</code>.{{/i}}</p>
- <form class="well form-search">
- <input type="text" class="input-medium search-query">
- <button type="submit" class="btn">{{_i}}Search{{/i}}</button>
- </form>
+
+
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Optional layouts{{/i}}</h2>
+ <p>{{_i}}Included with Bootstrap are three optional form layouts for common use cases.{{/i}}</p>
+
+ <h3>{{_i}}Search form{{/i}}</h3>
+ <p>{{_i}}Add <code>.form-search</code> to the form and <code>.search-query</code> to the <code>&lt;input&gt;</code> for an extra-rounded text input.{{/i}}</p>
+ <form class="bs-docs-example form-search">
+ <input type="text" class="input-medium search-query">
+ <button type="submit" class="btn">{{_i}}Search{{/i}}</button>
+ </form>{{! /example }}
<pre class="prettyprint linenums">
-&lt;form class="well form-search"&gt;
+&lt;form class="form-search"&gt;
&lt;input type="text" class="input-medium search-query"&gt;
&lt;button type="submit" class="btn"&gt;{{_i}}Search{{/i}}&lt;/button&gt;
&lt;/form&gt;
</pre>
- <h3>{{_i}}Inline form{{/i}}</h3>
- <p>{{_i}}Add <code>.form-inline</code> to finesse the vertical alignment and spacing of form controls.{{/i}}</p>
- <form class="well form-inline">
- <input type="text" class="input-small" placeholder="{{_i}}Email{{/i}}">
- <input type="password" class="input-small" placeholder="{{_i}}Password{{/i}}">
- <label class="checkbox">
- <input type="checkbox"> {{_i}}Remember me{{/i}}
- </label>
- <button type="submit" class="btn">{{_i}}Sign in{{/i}}</button>
- </form>
+ <h3>{{_i}}Inline form{{/i}}</h3>
+ <p>{{_i}}Add <code>.form-inline</code> for left-aligned labels and inline-block controls for a compact layout.{{/i}}</p>
+ <form class="bs-docs-example form-inline">
+ <input type="text" class="input-small" placeholder="{{_i}}Email{{/i}}">
+ <input type="password" class="input-small" placeholder="{{_i}}Password{{/i}}">
+ <label class="checkbox">
+ <input type="checkbox"> {{_i}}Remember me{{/i}}
+ </label>
+ <button type="submit" class="btn">{{_i}}Sign in{{/i}}</button>
+ </form>{{! /example }}
<pre class="prettyprint linenums">
-&lt;form class="well form-inline"&gt;
+&lt;form class="form-inline"&gt;
&lt;input type="text" class="input-small" placeholder="{{_i}}Email{{/i}}"&gt;
&lt;input type="password" class="input-small" placeholder="{{_i}}Password{{/i}}"&gt;
&lt;label class="checkbox"&gt;
@@ -865,218 +845,309 @@
&lt;button type="submit" class="btn"&gt;{{_i}}Sign in{{/i}}&lt;/button&gt;
&lt;/form&gt;
</pre>
- </div><!-- /.span -->
- </div><!-- /row -->
-
- <br>
-
- <h2>{{_i}}Horizontal forms{{/i}}</h2>
- <div class="row">
- <div class="span4">
- <p>{{_i}}{{/i}}</p>
- <p>{{_i}}Shown on the right are all the default form controls we support. Here's the bulleted list:{{/i}}</p>
- <ul>
- <li>{{_i}}text inputs (text, password, email, etc){{/i}}</li>
- <li>{{_i}}checkbox{{/i}}</li>
- <li>{{_i}}radio{{/i}}</li>
- <li>{{_i}}select{{/i}}</li>
- <li>{{_i}}multiple select{{/i}}</li>
- <li>{{_i}}file input{{/i}}</li>
- <li>{{_i}}textarea{{/i}}</li>
- </ul>
- </div><!-- /.span -->
- <div class="span8">
- <form class="form-horizontal">
- <fieldset>
- <div class="control-group">
- <label class="control-label" for="input01">{{_i}}Text input{{/i}}</label>
- <div class="controls">
- <input type="text" class="input-xlarge" id="input01">
- <p class="help-block">{{_i}}In addition to freeform text, any HTML5 text-based input appears like so.{{/i}}</p>
- </div>
- </div>
- <div class="control-group">
- <label class="control-label" for="optionsCheckbox">{{_i}}Checkbox{{/i}}</label>
- <div class="controls">
- <label class="checkbox">
- <input type="checkbox" id="optionsCheckbox" value="option1">
- {{_i}}Option one is this and that&mdash;be sure to include why it's great{{/i}}
- </label>
- </div>
- </div>
- <div class="control-group">
- <label class="control-label" for="select01">{{_i}}Select list{{/i}}</label>
- <div class="controls">
- <select id="select01">
- <option>something</option>
- <option>2</option>
- <option>3</option>
- <option>4</option>
- <option>5</option>
- </select>
- </div>
- </div>
- <div class="control-group">
- <label class="control-label" for="multiSelect">{{_i}}Multicon-select{{/i}}</label>
- <div class="controls">
- <select multiple="multiple" id="multiSelect">
- <option>1</option>
- <option>2</option>
- <option>3</option>
- <option>4</option>
- <option>5</option>
- </select>
+
+ <h3>{{_i}}Horizontal form{{/i}}</h3>
+ <p>{{_i}}Right align labels and float them to the left to make them appear on the same line as controls. Requires the most markup changes from a default form:{{/i}}</p>
+ <ul>
+ <li>{{_i}}Add <code>.form-horizontal</code> to the form{{/i}}</li>
+ <li>{{_i}}Wrap labels and controls in <code>.control-group</code>{{/i}}</li>
+ <li>{{_i}}Add <code>.control-label</code> to the label{{/i}}</li>
+ <li>{{_i}}Wrap any associated controls in <code>.controls</code> for proper alignment{{/i}}</li>
+ </ul>
+ <form class="bs-docs-example form-horizontal">
+ <legend>Legend</legend>
+ <div class="control-group">
+ <label class="control-label" for="inputEmail">{{_i}}Email{{/i}}</label>
+ <div class="controls">
+ <input type="text" id="inputEmail" placeholder="{{_i}}Email{{/i}}">
+ </div>
</div>
- </div>
- <div class="control-group">
- <label class="control-label" for="fileInput">{{_i}}File input{{/i}}</label>
- <div class="controls">
- <input class="input-file" id="fileInput" type="file">
+ <div class="control-group">
+ <label class="control-label" for="inputPassword">{{_i}}Password{{/i}}</label>
+ <div class="controls">
+ <input type="password" id="inputPassword" placeholder="{{_i}}Password{{/i}}">
+ </div>
</div>
- </div>
- <div class="control-group">
- <label class="control-label" for="textarea">{{_i}}Textarea{{/i}}</label>
- <div class="controls">
- <textarea class="input-xlarge" id="textarea" rows="3"></textarea>
+ <div class="control-group">
+ <div class="controls">
+ <label class="checkbox">
+ <input type="checkbox"> {{_i}}Remember me{{/i}}
+ </label>
+ <button type="submit" class="btn">{{_i}}Sign in{{/i}}</button>
+ </div>
</div>
- </div>
- <div class="form-actions">
- <button type="submit" class="btn btn-primary">{{_i}}Save changes{{/i}}</button>
- <button class="btn">{{_i}}Cancel{{/i}}</button>
- </div>
- </fieldset>
- </form>
- <h3>{{_i}}Example markup{{/i}}</h3>
- <p>{{_i}}Given the above example form layout, here's the markup associated with the first input and control group. The <code>.control-group</code>, <code>.control-label</code>, and <code>.controls</code> classes are all required for styling.{{/i}}</p>
+ </form>
<pre class="prettyprint linenums">
&lt;form class="form-horizontal"&gt;
- &lt;fieldset&gt;
- &lt;legend&gt;{{_i}}Legend text{{/i}}&lt;/legend&gt;
- &lt;div class="control-group"&gt;
- &lt;label class="control-label" for="input01"&gt;{{_i}}Text input{{/i}}&lt;/label&gt;
- &lt;div class="controls"&gt;
- &lt;input type="text" class="input-xlarge" id="input01"&gt;
- &lt;p class="help-block"&gt;{{_i}}Supporting help text{{/i}}&lt;/p&gt;
- &lt;/div&gt;
+ &lt;div class="control-group"&gt;
+ &lt;label class="control-label" for="inputEmail"&gt;{{_i}}Email{{/i}}&lt;/label&gt;
+ &lt;div class="controls"&gt;
+ &lt;input type="text" id="inputEmail" placeholder="{{_i}}Email{{/i}}"&gt;
+ &lt;/div&gt;
+ &lt;/div&gt;
+ &lt;div class="control-group"&gt;
+ &lt;label class="control-label" for="inputPassword"&gt;{{_i}}Password{{/i}}&lt;/label&gt;
+ &lt;div class="controls"&gt;
+ &lt;input type="password" id="inputPassword" placeholder="{{_i}}Password{{/i}}"&gt;
+ &lt;/div&gt;
+ &lt;/div&gt;
+ &lt;div class="control-group"&gt;
+ &lt;div class="controls"&gt;
+ &lt;label class="checkbox"&gt;
+ &lt;input type="checkbox"&gt; {{_i}}Remember me{{/i}}
+ &lt;/label&gt;
+ &lt;button type="submit" class="btn"&gt;{{_i}}Sign in{{/i}}&lt;/button&gt;
&lt;/div&gt;
- &lt;/fieldset&gt;
+ &lt;/div&gt;
&lt;/form&gt;
</pre>
- </div>
- </div>
- <br>
- <h2>{{_i}}Form control states{{/i}}</h2>
- <div class="row">
- <div class="span4">
- <p>{{_i}}Bootstrap features styles for browser-supported focused and <code>disabled</code> states. We remove the default Webkit <code>outline</code> and apply a <code>box-shadow</code> in its place for <code>:focus</code>.{{/i}}</p>
- <hr>
- <h3>{{_i}}Form validation{{/i}}</h3>
- <p>{{_i}}It also includes validation styles for errors, warnings, and success. To use, add the error class to the surrounding <code>.control-group</code>.{{/i}}</p>
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Supported form controls{{/i}}</h2>
+ <p>{{_i}}Examples of standard form controls supported in an example form layout.{{/i}}</p>
+
+ <h3>{{_i}}Inputs{{/i}}</h3>
+ <p>{{_i}}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.{{/i}}</p>
+ <p>{{_i}}Requires the use of a specified <code>type</code> at all times.{{/i}}</p>
+ <form class="bs-docs-example form-inline">
+ <input type="text" placeholder="Text input">
+ </form>
<pre class="prettyprint linenums">
-&lt;fieldset
- class="control-group error"&gt;
- …
-&lt;/fieldset&gt;
+&lt;input type="text" placeholder="Text input"&gt;
</pre>
- </div>
- <div class="span8">
- <form class="form-horizontal">
- <fieldset>
- <div class="control-group">
- <label class="control-label" for="focusedInput">{{_i}}Focused input{{/i}}</label>
- <div class="controls">
- <input class="input-xlarge focused" id="focusedInput" type="text" value="{{_i}}This is focused…{{/i}}">
+
+ <h3>{{_i}}Textarea{{/i}}</h3>
+ <p>{{_i}}Form control which supports multiple lines of text. Change <code>row</code> attribute as necessary.{{/i}}</p>
+ <form class="bs-docs-example form-inline">
+ <textarea rows="3"></textarea>
+ </form>
+<pre class="prettyprint linenums">
+&lt;textarea rows="3"&gt;&lt;/textarea&gt;
+</pre>
+
+ <h3>{{_i}}Checkboxes and radios{{/i}}</h3>
+ <p>{{_i}}Checkboxes are for selecting one or several options in a list while radios are for selecting one option from many.{{/i}}</p>
+ <h4>{{_i}}Default (stacked){{/i}}</h4>
+ <form class="bs-docs-example">
+ <label class="checkbox">
+ <input type="checkbox" value="">
+ {{_i}}Option one is this and that&mdash;be sure to include why it's great{{/i}}
+ </label>
+ <br>
+ <label class="radio">
+ <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
+ {{_i}}Option one is this and that&mdash;be sure to include why it's great{{/i}}
+ </label>
+ <label class="radio">
+ <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
+ {{_i}}Option two can be something else and selecting it will deselect option one{{/i}}
+ </label>
+ </form>
+<pre class="prettyprint linenums">
+&lt;label class="checkbox"&gt;
+ &lt;input type="checkbox" value=""&gt;
+ {{_i}}Option one is this and that&mdash;be sure to include why it's great{{/i}}
+&lt;/label&gt;
+
+&lt;label class="radio"&gt;
+ &lt;input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked&gt;
+ {{_i}}Option one is this and that&mdash;be sure to include why it's great{{/i}}
+&lt;/label&gt;
+&lt;label class="radio"&gt;
+ &lt;input type="radio" name="optionsRadios" id="optionsRadios2" value="option2"&gt;
+ {{_i}}Option two can be something else and selecting it will deselect option one{{/i}}
+&lt;/label&gt;
+</pre>
+
+ <h4>{{_i}}Inline checkboxes{{/i}}</h4>
+ <p>{{_i}}Add the <code>.inline</code> class to a series of checkboxes or radios for controls appear on the same line.{{/i}}</p>
+ <form class="bs-docs-example">
+ <label class="checkbox inline">
+ <input type="checkbox" id="inlineCheckbox1" value="option1"> 1
+ </label>
+ <label class="checkbox inline">
+ <input type="checkbox" id="inlineCheckbox2" value="option2"> 2
+ </label>
+ <label class="checkbox inline">
+ <input type="checkbox" id="inlineCheckbox3" value="option3"> 3
+ </label>
+ </form>
+<pre class="prettyprint linenums">
+&lt;label class="checkbox inline"&gt;
+ &lt;input type="checkbox" id="inlineCheckbox1" value="option1"&gt; 1
+&lt;/label&gt;
+&lt;label class="checkbox inline"&gt;
+ &lt;input type="checkbox" id="inlineCheckbox2" value="option2"&gt; 2
+&lt;/label&gt;
+&lt;label class="checkbox inline"&gt;
+ &lt;input type="checkbox" id="inlineCheckbox3" value="option3"&gt; 3
+&lt;/label&gt;
+</pre>
+
+ <h3>{{_i}}Selects{{/i}}</h3>
+ <p>{{_i}}Use the default option or specify a <code>multiple="multiple"</code> to show multiple options at once.{{/i}}</p>
+ <form class="bs-docs-example">
+ <select>
+ <option>1</option>
+ <option>2</option>
+ <option>3</option>
+ <option>4</option>
+ <option>5</option>
+ </select>
+ <br>
+ <select multiple="multiple">
+ <option>1</option>
+ <option>2</option>
+ <option>3</option>
+ <option>4</option>
+ <option>5</option>
+ </select>
+ </form>
+<pre class="prettyprint linenums">
+&lt;select&gt;
+ &lt;option&gt;1&lt;/option&gt;
+ &lt;option&gt;2&lt;/option&gt;
+ &lt;option&gt;3&lt;/option&gt;
+ &lt;option&gt;4&lt;/option&gt;
+ &lt;option&gt;5&lt;/option&gt;
+&lt;/select&gt;
+
+&lt;select multiple="multiple"&gt;
+ &lt;option&gt;1&lt;/option&gt;
+ &lt;option&gt;2&lt;/option&gt;
+ &lt;option&gt;3&lt;/option&gt;
+ &lt;option&gt;4&lt;/option&gt;
+ &lt;option&gt;5&lt;/option&gt;
+&lt;/select&gt;
+</pre>
+
+
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Extending form controls{{/i}}</h2>
+ <p>{{_i}}Adding on top of existing browser controls, Bootstrap includes other useful form components.{{/i}}</p>
+
+ <h3>{{_i}}Prepended and appended inputs{{/i}}</h3>
+ <p>{{_i}}Add text or buttons before or after any text-based input. Do note that <code>select</code> elements are not supported here.{{/i}}</p>
+
+ <h4>{{_i}}Default options{{/i}}</h4>
+ <p>{{_i}}Wrap an <code>.add-on</code> and an <code>input</code> with one of two classes to prepend or append text to an input.{{/i}}</p>
+ <form class="bs-docs-example">
+ <div class="input-prepend">
+ <span class="add-on">@</span>
+ <input class="span2" id="prependedInput" size="16" type="text" placeholder="{{_i}}Username{{/i}}">
</div>
- </div>
- <div class="control-group">
- <label class="control-label">Uneditable input</label>
- <div class="controls">
- <span class="input-xlarge uneditable-input">Some value here</span>
+ <br>
+ <div class="input-append">
+ <input class="span2" id="appendedInput" size="16" type="text">
+ <span class="add-on">.00</span>
</div>
- </div>
- <div class="control-group">
- <label class="control-label" for="disabledInput">{{_i}}Disabled input{{/i}}</label>
- <div class="controls">
- <input class="input-xlarge disabled" id="disabledInput" type="text" placeholder="{{_i}}Disabled input here…{{/i}}" disabled>
+ </form>
+<pre class="prettyprint linenums">
+&lt;div class="input-prepend"&gt;
+ &lt;span class="add-on"&gt;@&lt;/span&gt;&lt;input class="span2" id="prependedInput" size="16" type="text" placeholder="{{_i}}Username{{/i}}"&gt;
+&lt;/div&gt;
+&lt;div class="input-append"&gt;
+ &lt;input class="span2" id="appendedInput" size="16" type="text"&gt;&lt;span class="add-on"&gt;.00&lt;/span&gt;
+&lt;/div&gt;
+</pre>
+
+ <h4>{{_i}}Combined{{/i}}</h4>
+ <p>{{_i}}Use both classes and two instances of <code>.add-on</code> to prepend and append an input.{{/i}}</p>
+ <form class="bs-docs-example form-inline">
+ <div class="input-prepend input-append">
+ <span class="add-on">$</span>
+ <input class="span2" id="appendedPrependedInput" size="16" type="text">
+ <span class="add-on">.00</span>
</div>
- </div>
- <div class="control-group">
- <label class="control-label" for="optionsCheckbox2">{{_i}}Disabled checkbox{{/i}}</label>
- <div class="controls">
- <label class="checkbox">
- <input type="checkbox" id="optionsCheckbox2" value="option1" disabled>
- {{_i}}This is a disabled checkbox{{/i}}
- </label>
+ </form>
+<pre class="prettyprint linenums">
+&lt;div class="input-prepend input-append"&gt;
+ &lt;span class="add-on"&gt;$&lt;/span&gt;&lt;input class="span2" id="appendedPrependedInput" size="16" type="text"&gt;&lt;span class="add-on"&gt;.00&lt;/span&gt;
+&lt;/div&gt;
+</pre>
+
+ <h4>{{_i}}Buttons instead of text{{/i}}</h4>
+ <p>{{_i}}Instead of a <code>&lt;span&gt;</code> with text, use a <code>.btn</code> to attach a button (or two) to an input.{{/i}}</p>
+ <form class="bs-docs-example">
+ <div class="input-append">
+ <input class="span2" id="appendedInputButton" size="16" type="text">
+ <button class="btn" type="button">Go!</button>
</div>
- </div>
- <div class="control-group warning">
- <label class="control-label" for="inputWarning">{{_i}}Input with warning{{/i}}</label>
- <div class="controls">
- <input type="text" id="inputWarning">
- <span class="help-inline">{{_i}}Something may have gone wrong{{/i}}</span>
+ <br>
+ <div class="input-append">
+ <input class="span2" id="appendedInputButtons" size="16" type="text">
+ <button class="btn" type="button">Search</button>
+ <button class="btn" type="button">Options</button>
</div>
- </div>
- <div class="control-group error">
- <label class="control-label" for="inputError">{{_i}}Input with error{{/i}}</label>
- <div class="controls">
- <input type="text" id="inputError">
- <span class="help-inline">{{_i}}Please correct the error{{/i}}</span>
+ </form>
+<pre class="prettyprint linenums">
+&lt;div class="input-append"&gt;
+ &lt;input class="span2" id="appendedInputButton" size="16" type="text"&gt;&lt;button class="btn" type="button"&gt;Go!&lt;/button&gt;
+&lt;/div&gt;
+
+&lt;div class="input-append"&gt;
+ &lt;input class="span2" id="appendedInputButtons" size="16" type="text"&gt;&lt;button class="btn" type="button"&gt;Search&lt;/button&gt;&lt;button class="btn" type="button"&gt;Options&lt;/button&gt;
+&lt;/div&gt;
+</pre>
+
+ <h4>{{_i}}Search form{{/i}}</h4>
+ <form class="bs-docs-example form-search">
+ <div class="input-append">
+ <input type="text" class="span2 search-query">
+ <button type="submit" class="btn">{{_i}}Search{{/i}}</button>
</div>
- </div>
- <div class="control-group success">
- <label class="control-label" for="inputSuccess">{{_i}}Input with success{{/i}}</label>
- <div class="controls">
- <input type="text" id="inputSuccess">
- <span class="help-inline">{{_i}}Woohoo!{{/i}}</span>
+ <div class="input-prepend">
+ <button type="submit" class="btn">{{_i}}Search{{/i}}</button>
+ <input type="text" class="span2 search-query">
</div>
- </div>
- <div class="control-group success">
- <label class="control-label" for="selectError">{{_i}}Select with success{{/i}}</label>
- <div class="controls">
- <select id="selectError">
- <option>1</option>
- <option>2</option>
- <option>3</option>
- <option>4</option>
- <option>5</option>
- </select>
- <span class="help-inline">{{_i}}Woohoo!{{/i}}</span>
+ </form>{{! /example }}
+<pre class="prettyprint linenums">
+&lt;form class="form-search"&gt;
+ &lt;div class="input-append"&gt;
+ &lt;input type="text" class="span2 search-query"&gt;
+ &lt;button type="submit" class="btn"&gt;{{_i}}Search{{/i}}&lt;/button&gt;
+ &lt;/div&gt;
+ &lt;div class="input-prepend"&gt;
+ &lt;button type="submit" class="btn"&gt;{{_i}}Search{{/i}}&lt;/button&gt;
+ &lt;input type="text" class="span2 search-query"&gt;
+ &lt;/div&gt;
+&lt;/form&gt;
+</pre>
+
+ <h3>{{_i}}Control sizing{{/i}}</h3>
+ <p>{{_i}}Use relative sizing classes like <code>.input-large</code> or match your inputs to the grid column sizes using <code>.span*</code> classes.{{/i}}</p>
+
+ <h4>{{_i}}Relative sizing{{/i}}</h4>
+ <form class="bs-docs-example" style="padding-bottom: 15px;">
+ <div class="controls docs-input-sizes">
+ <input class="input-mini" type="text" placeholder=".input-mini">
+ <input class="input-small" type="text" placeholder=".input-small">
+ <input class="input-medium" type="text" placeholder=".input-medium">
+ <input class="input-large" type="text" placeholder=".input-large">
+ <input class="input-xlarge" type="text" placeholder=".input-xlarge">
+ <input class="input-xxlarge" type="text" placeholder=".input-xxlarge">
</div>
- </div>
- <div class="form-actions">
- <button type="submit" class="btn btn-primary">{{_i}}Save changes{{/i}}</button>
- <button class="btn">{{_i}}Cancel{{/i}}</button>
- </div>
- </fieldset>
- </form>
- </div>
- </div>
+ </form>
+<pre class="prettyprint linenums">
+&lt;input class="input-mini" type="text" placeholder=".input-mini"&gt;
+&lt;input class="input-small" type="text" placeholder=".input-small"&gt;
+&lt;input class="input-medium" type="text" placeholder=".input-medium"&gt;
+&lt;input class="input-large" type="text" placeholder=".input-large"&gt;
+&lt;input class="input-xlarge" type="text" placeholder=".input-xlarge"&gt;
+&lt;input class="input-xxlarge" type="text" placeholder=".input-xxlarge"&gt;
+</pre>
+ <p>
+ <span class="label label-info">{{_i}}Heads up!{{/i}}</span> In future versions, we'll be altering the use of these relative input classes to match our button sizes. For example, <code>.input-large</code> will increase the padding and font-size of an input.
+ </p>
- <br>
-
- <h2>{{_i}}Extending form controls{{/i}}</h2>
- <div class="row">
- <div class="span4">
- <h3>{{_i}}Prepend &amp; append inputs{{/i}}</h3>
- <p>{{_i}}Input groups&mdash;with appended or prepended text&mdash;provide an easy way to give more context for your inputs. Great examples include the @ sign for Twitter usernames or $ for finances.{{/i}}</p>
- <hr>
- <h3>{{_i}}Checkboxes and radios{{/i}}</h3>
- <p>{{_i}}Up to v1.4, Bootstrap required extra markup around checkboxes and radios to stack them. Now, it's a simple matter of repeating the <code>&lt;label class="checkbox"&gt;</code> that wraps the <code>&lt;input type="checkbox"&gt;</code>.{{/i}}</p>
- <p>{{_i}}Inline checkboxes and radios are also supported. Just add <code>.inline</code> to any <code>.checkbox</code> or <code>.radio</code> and you're done.{{/i}}</p>
- <hr>
- <h4>{{_i}}Inline forms and append/prepend{{/i}}</h4>
- <p>{{_i}}To use prepend or append inputs in an inline form, be sure to place the <code>.add-on</code> and <code>input</code> on the same line, without spaces.{{/i}}</p>
- <hr>
- <h4>{{_i}}Form help text{{/i}}</h4>
- <p>{{_i}}To add help text for your form inputs, include inline help text with <code>&lt;span class="help-inline"&gt;</code> or a help text block with <code>&lt;p class="help-block"&gt;</code> after the input element.{{/i}}</p>
- </div>
- <div class="span8">
- <form class="form-horizontal">
- <fieldset>
- <div class="control-group">
- <label class="control-label">{{_i}}Form grid sizes{{/i}}</label>
+ <h4>{{_i}}Grid sizing{{/i}}</h4>
+ <p>{{_i}}Use <code>.span1</code> to <code>.span12</code> for inputs that match the same sizes of the grid columns.{{/i}}</p>
+ <form class="bs-docs-example" style="padding-bottom: 15px;">
<div class="controls docs-input-sizes">
<input class="span1" type="text" placeholder=".span1">
<input class="span2" type="text" placeholder=".span2">
@@ -1102,493 +1173,661 @@
<option>4</option>
<option>5</option>
</select>
- <p class="help-block">{{_i}}Use the same <code>.span*</code> classes from the grid system for input sizes.{{/i}}</p>
- </div>
- </div>
- <div class="control-group">
- <label class="control-label">{{_i}}Alternate sizes{{/i}}</label>
- <div class="controls docs-input-sizes">
- <input class="input-mini" type="text" placeholder=".input-mini">
- <input class="input-small" type="text" placeholder=".input-small">
- <input class="input-medium" type="text" placeholder=".input-medium">
- <p class="help-block">{{_i}}You may also use static classes that don't map to the grid, adapt to the responsive CSS styles, or account for varying types of controls (e.g., <code>input</code> vs. <code>select</code>).{{/i}}</p>
</div>
- </div>
- <div class="control-group">
- <label class="control-label" for="prependedInput">{{_i}}Prepended text{{/i}}</label>
+ </form>
+<pre class="prettyprint linenums">
+&lt;input class="span1" type="text" placeholder=".span1"&gt;
+&lt;input class="span2" type="text" placeholder=".span2"&gt;
+&lt;input class="span3" type="text" placeholder=".span3"&gt;
+&lt;select class="span1"&gt;
+ ...
+&lt;/select&gt;
+&lt;select class="span2"&gt;
+ ...
+&lt;/select&gt;
+&lt;select class="span3"&gt;
+ ...
+&lt;/select&gt;
+</pre>
+
+ <p>{{_i}}For multiple grid inputs per line, <strong>use the <code>.controls-row</code> modifier class for proper spacing</strong>. It floats the inputs to collapse white-space, sets the proper margins, and the clears the float.{{/i}}</p>
+ <form class="bs-docs-example" style="padding-bottom: 15px;">
<div class="controls">
- <div class="input-prepend">
- <span class="add-on">@</span><input class="span2" id="prependedInput" size="16" type="text">
- </div>
- <p class="help-block">{{_i}}Here's some help text{{/i}}</p>
+ <input class="span5" type="text" placeholder=".span5">
</div>
- </div>
- <div class="control-group">
- <label class="control-label" for="appendedInput">{{_i}}Appended text{{/i}}</label>
- <div class="controls">
- <div class="input-append">
- <input class="span2" id="appendedInput" size="16" type="text"><span class="add-on">.00</span>
- </div>
- <span class="help-inline">{{_i}}Here's more help text{{/i}}</span>
+ <div class="controls controls-row">
+ <input class="span4" type="text" placeholder=".span4">
+ <input class="span1" type="text" placeholder=".span1">
</div>
- </div>
- <div class="control-group">
- <label class="control-label" for="appendedPrependedInput">{{_i}}Append and prepend{{/i}}</label>
- <div class="controls">
- <div class="input-prepend input-append">
- <span class="add-on">$</span><input class="span2" id="appendedPrependedInput" size="16" type="text"><span class="add-on">.00</span>
- </div>
+ <div class="controls controls-row">
+ <input class="span3" type="text" placeholder=".span3">
+ <input class="span2" type="text" placeholder=".span2">
</div>
- </div>
- <div class="control-group">
- <label class="control-label" for="appendedInputButton">{{_i}}Append with button{{/i}}</label>
- <div class="controls">
- <div class="input-append">
- <input class="span2" id="appendedInputButton" size="16" type="text"><button class="btn" type="button">Go!</button>
+ <div class="controls controls-row">
+ <input class="span2" type="text" placeholder=".span2">
+ <input class="span3" type="text" placeholder=".span3">
+ </div>
+ <div class="controls controls-row">
+ <input class="span1" type="text" placeholder=".span1">
+ <input class="span4" type="text" placeholder=".span4">
+ </div>
+ </form>
+<pre class="prettyprint linenums">
+&lt;div class="controls"&gt;
+ &lt;input class="span5" type="text" placeholder=".span5"&gt;
+&lt;/div&gt;
+&lt;div class="controls controls-row"&gt;
+ &lt;input class="span4" type="text" placeholder=".span4"&gt;
+ &lt;input class="span1" type="text" placeholder=".span1"&gt;
+&lt;/div&gt;
+...
+</pre>
+
+ <h3>{{_i}}Uneditable inputs{{/i}}</h3>
+ <p>{{_i}}Present data in a form that's not editable without using actual form markup.{{/i}}</p>
+ <form class="bs-docs-example">
+ <span class="input-xlarge uneditable-input">Some value here</span>
+ </form>
+<pre class="prettyprint linenums">
+&lt;span class="input-xlarge uneditable-input"&gt;Some value here&lt;/span&gt;
+</pre>
+
+ <h3>{{_i}}Form actions{{/i}}</h3>
+ <p>{{_i}}End a form with a group of actions (buttons). When placed within a <code>.form-horizontal</code>, the buttons will automatically indent to line up with the form controls.{{/i}}</p>
+ <form class="bs-docs-example">
+ <div class="form-actions">
+ <button type="submit" class="btn btn-primary">{{_i}}Save changes{{/i}}</button>
+ <button type="button" class="btn">{{_i}}Cancel{{/i}}</button>
+ </div>
+ </form>
+<pre class="prettyprint linenums">
+&lt;div class="form-actions"&gt;
+ &lt;button type="submit" class="btn btn-primary"&gt;{{_i}}Save changes{{/i}}&lt;/button&gt;
+ &lt;button type="button" class="btn"&gt;{{_i}}Cancel{{/i}}&lt;/button&gt;
+&lt;/div&gt;
+</pre>
+
+ <h3>{{_i}}Help text{{/i}}</h3>
+ <p>{{_i}}Inline and block level support for help text that appears around form controls.{{/i}}</p>
+ <h4>{{_i}}Inline help{{/i}}</h4>
+ <form class="bs-docs-example form-inline">
+ <input type="text"> <span class="help-inline">Inline help text</span>
+ </form>
+<pre class="prettyprint linenums">
+&lt;input type="text"&gt;&lt;span class="help-inline"&gt;Inline help text&lt;/span&gt;
+</pre>
+
+ <h4>{{_i}}Block help{{/i}}</h4>
+ <form class="bs-docs-example form-inline">
+ <input type="text">
+ <span class="help-block">A longer block of help text that breaks onto a new line and may extend beyond one line.</span>
+ </form>
+<pre class="prettyprint linenums">
+&lt;input type="text"&gt;&lt;span class="help-block"&gt;A longer block of help text that breaks onto a new line and may extend beyond one line.&lt;/span&gt;
+</pre>
+
+
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Form control states{{/i}}</h2>
+ <p>{{_i}}Provide feedback to users or visitors with basic feedback states on form controls and labels.{{/i}}</p>
+
+ <h3>{{_i}}Input focus{{/i}}</h3>
+ <p>{{_i}}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>.{{/i}}</p>
+ <form class="bs-docs-example form-inline">
+ <input class="input-xlarge focused" id="focusedInput" type="text" value="{{_i}}This is focused...{{/i}}">
+ </form>
+<pre class="prettyprint linenums">
+&lt;input class="input-xlarge" id="focusedInput" type="text" value="{{_i}}This is focused...{{/i}}"&gt;
+</pre>
+
+ <h3>{{_i}}Disabled inputs{{/i}}</h3>
+ <p>{{_i}}Add the <code>disabled</code> attribute on an input to prevent user input and trigger a slightly different look.{{/i}}</p>
+ <form class="bs-docs-example form-inline">
+ <input class="input-xlarge" id="disabledInput" type="text" placeholder="{{_i}}Disabled input here…{{/i}}" disabled>
+ </form>
+<pre class="prettyprint linenums">
+&lt;input class="input-xlarge" id="disabledInput" type="text" placeholder="{{_i}}Disabled input here...{{/i}}" disabled&gt;
+</pre>
+
+ <h3>{{_i}}Validation states{{/i}}</h3>
+ <p>{{_i}}Bootstrap includes validation styles for error, warning, and success messages. To use, add the appropriate class to the surrounding <code>.control-group</code>.{{/i}}</p>
+
+ <form class="bs-docs-example form-horizontal">
+ <div class="control-group warning">
+ <label class="control-label" for="inputWarning">{{_i}}Input with warning{{/i}}</label>
+ <div class="controls">
+ <input type="text" id="inputWarning">
+ <span class="help-inline">{{_i}}Something may have gone wrong{{/i}}</span>
</div>
</div>
- </div>
- <div class="control-group">
- <label class="control-label" for="appendedInputButtons">{{_i}}Two-button append{{/i}}</label>
- <div class="controls">
- <div class="input-append">
- <input class="span2" id="appendedInputButtons" size="16" type="text"><button class="btn" type="button">Search</button><button class="btn" type="button">Options</button>
+ <div class="control-group error">
+ <label class="control-label" for="inputError">{{_i}}Input with error{{/i}}</label>
+ <div class="controls">
+ <input type="text" id="inputError">
+ <span class="help-inline">{{_i}}Please correct the error{{/i}}</span>
</div>
</div>
- </div>
- <div class="control-group">
- <label class="control-label" for="inlineCheckboxes">{{_i}}Inline checkboxes{{/i}}</label>
- <div class="controls">
- <label class="checkbox inline">
- <input type="checkbox" id="inlineCheckbox1" value="option1"> 1
- </label>
- <label class="checkbox inline">
- <input type="checkbox" id="inlineCheckbox2" value="option2"> 2
- </label>
- <label class="checkbox inline">
- <input type="checkbox" id="inlineCheckbox3" value="option3"> 3
- </label>
+ <div class="control-group success">
+ <label class="control-label" for="inputSuccess">{{_i}}Input with success{{/i}}</label>
+ <div class="controls">
+ <input type="text" id="inputSuccess">
+ <span class="help-inline">{{_i}}Woohoo!{{/i}}</span>
+ </div>
</div>
+ </form>
+<pre class="prettyprint linenums">
+&lt;div class="control-group warning"&gt;
+ &lt;label class="control-label" for="inputWarning"&gt;{{_i}}Input with warning{{/i}}&lt;/label&gt;
+ &lt;div class="controls"&gt;
+ &lt;input type="text" id="inputWarning"&gt;
+ &lt;span class="help-inline"&gt;{{_i}}Something may have gone wrong{{/i}}&lt;/span&gt;
+ &lt;/div&gt;
+&lt;/div&gt;
+&lt;div class="control-group error"&gt;
+ &lt;label class="control-label" for="inputError"&gt;{{_i}}Input with error{{/i}}&lt;/label&gt;
+ &lt;div class="controls"&gt;
+ &lt;input type="text" id="inputError"&gt;
+ &lt;span class="help-inline"&gt;{{_i}}Please correct the error{{/i}}&lt;/span&gt;
+ &lt;/div&gt;
+&lt;/div&gt;
+&lt;div class="control-group success"&gt;
+ &lt;label class="control-label" for="inputSuccess"&gt;{{_i}}Input with success{{/i}}&lt;/label&gt;
+ &lt;div class="controls"&gt;
+ &lt;input type="text" id="inputSuccess"&gt;
+ &lt;span class="help-inline"&gt;{{_i}}Woohoo!{{/i}}&lt;/span&gt;
+ &lt;/div&gt;
+&lt;/div&gt;
+</pre>
+
+ </section>
+
+
+
+ <!-- Buttons
+ ================================================== -->
+ <section id="buttons">
+ <div class="page-header">
+ <h1>{{_i}}Buttons{{/i}}</h1>
</div>
- <div class="control-group">
- <label class="control-label" for="optionsCheckboxList">{{_i}}Checkboxes{{/i}}</label>
- <div class="controls">
- <label class="checkbox">
- <input type="checkbox" name="optionsCheckboxList1" value="option1">
- {{_i}}Option one is this and that&mdash;be sure to include why it's great{{/i}}
- </label>
- <label class="checkbox">
- <input type="checkbox" name="optionsCheckboxList2" value="option2">
- {{_i}}Option two can also be checked and included in form results{{/i}}
- </label>
- <label class="checkbox">
- <input type="checkbox" name="optionsCheckboxList3" value="option3">
- {{_i}}Option three can&mdash;yes, you guessed it&mdash;also be checked and included in form results{{/i}}
- </label>
- <p class="help-block">{{_i}}<strong>Note:</strong> Labels surround all the options for much larger click areas and a more usable form.{{/i}}</p>
- </div>
+
+ <h2>Default buttons</h2>
+ <p>{{_i}}Button styles can be applied to anything with the <code>.btn</code> class applied. However, typically you'll want to apply these to only <code>&lt;a&gt;</code> and <code>&lt;button&gt;</code> elements for the best rendering.{{/i}}</p>
+ <table class="table table-bordered table-striped">
+ <thead>
+ <tr>
+ <th>{{_i}}Button{{/i}}</th>
+ <th>{{_i}}class=""{{/i}}</th>
+ <th>{{_i}}Description{{/i}}</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><button type="button" class="btn">{{_i}}Default{{/i}}</button></td>
+ <td><code>btn</code></td>
+ <td>{{_i}}Standard gray button with gradient{{/i}}</td>
+ </tr>
+ <tr>
+ <td><button type="button" class="btn btn-primary">{{_i}}Primary{{/i}}</button></td>
+ <td><code>btn btn-primary</code></td>
+ <td>{{_i}}Provides extra visual weight and identifies the primary action in a set of buttons{{/i}}</td>
+ </tr>
+ <tr>
+ <td><button type="button" class="btn btn-info">{{_i}}Info{{/i}}</button></td>
+ <td><code>btn btn-info</code></td>
+ <td>{{_i}}Used as an alternative to the default styles{{/i}}</td>
+ </tr>
+ <tr>
+ <td><button type="button" class="btn btn-success">{{_i}}Success{{/i}}</button></td>
+ <td><code>btn btn-success</code></td>
+ <td>{{_i}}Indicates a successful or positive action{{/i}}</td>
+ </tr>
+ <tr>
+ <td><button type="button" class="btn btn-warning">{{_i}}Warning{{/i}}</button></td>
+ <td><code>btn btn-warning</code></td>
+ <td>{{_i}}Indicates caution should be taken with this action{{/i}}</td>
+ </tr>
+ <tr>
+ <td><button type="button" class="btn btn-danger">{{_i}}Danger{{/i}}</button></td>
+ <td><code>btn btn-danger</code></td>
+ <td>{{_i}}Indicates a dangerous or potentially negative action{{/i}}</td>
+ </tr>
+ <tr>
+ <td><button type="button" class="btn btn-inverse">{{_i}}Inverse{{/i}}</button></td>
+ <td><code>btn btn-inverse</code></td>
+ <td>{{_i}}Alternate dark gray button, not tied to a semantic action or use{{/i}}</td>
+ </tr>
+ <tr>
+ <td><button type="button" class="btn btn-link">{{_i}}Link{{/i}}</button></td>
+ <td><code>btn btn-link</code></td>
+ <td>{{_i}}Deemphasize a button by making it look like a link while maintaining button behavior{{/i}}</td>
+ </tr>
+ </tbody>
+ </table>
+
+ <h4>{{_i}}Cross browser compatibility{{/i}}</h4>
+ <p>{{_i}}IE9 doesn't crop background gradients on rounded corners, so we remove it. Related, IE9 jankifies disabled <code>button</code> elements, rendering text gray with a nasty text-shadow that we cannot fix.{{/i}}</p>
+
+
+ <h2>{{_i}}Button sizes{{/i}}</h2>
+ <p>{{_i}}Fancy larger or smaller buttons? Add <code>.btn-large</code>, <code>.btn-small</code>, or <code>.btn-mini</code> for additional sizes.{{/i}}</p>
+ <div class="bs-docs-example">
+ <p>
+ <button type="button" class="btn btn-large btn-primary">{{_i}}Large button{{/i}}</button>
+ <button type="button" class="btn btn-large">{{_i}}Large button{{/i}}</button>
+ </p>
+ <p>
+ <button type="button" class="btn btn-primary">{{_i}}Default button{{/i}}</button>
+ <button type="button" class="btn">{{_i}}Default button{{/i}}</button>
+ </p>
+ <p>
+ <button type="button" class="btn btn-small btn-primary">{{_i}}Small button{{/i}}</button>
+ <button type="button" class="btn btn-small">{{_i}}Small button{{/i}}</button>
+ </p>
+ <p>
+ <button type="button" class="btn btn-mini btn-primary">{{_i}}Mini button{{/i}}</button>
+ <button type="button" class="btn btn-mini">{{_i}}Mini button{{/i}}</button>
+ </p>
</div>
- <div class="control-group">
- <label class="control-label">{{_i}}Radio buttons{{/i}}</label>
- <div class="controls">
- <label class="radio">
- <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
- {{_i}}Option one is this and that&mdash;be sure to include why it's great{{/i}}
- </label>
- <label class="radio">
- <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
- {{_i}}Option two can be something else and selecting it will deselect option one{{/i}}
- </label>
+<pre class="prettyprint linenums">
+&lt;p&gt;
+ &lt;button class="btn btn-large btn-primary" type="button"&gt;{{_i}}Large button{{/i}}&lt;/button&gt;
+ &lt;button class="btn btn-large" type="button"&gt;{{_i}}Large button{{/i}}&lt;/button&gt;
+&lt;/p&gt;
+&lt;p&gt;
+ &lt;button class="btn btn-primary" type="button"&gt;{{_i}}Default button{{/i}}&lt;/button&gt;
+ &lt;button class="btn" type="button"&gt;{{_i}}Default button{{/i}}&lt;/button&gt;
+&lt;/p&gt;
+&lt;p&gt;
+ &lt;button class="btn btn-small btn-primary" type="button"&gt;{{_i}}Small button{{/i}}&lt;/button&gt;
+ &lt;button class="btn btn-small" type="button"&gt;{{_i}}Small button{{/i}}&lt;/button&gt;
+&lt;/p&gt;
+&lt;p&gt;
+ &lt;button class="btn btn-mini btn-primary" type="button"&gt;{{_i}}Mini button{{/i}}&lt;/button&gt;
+ &lt;button class="btn btn-mini" type="button"&gt;{{_i}}Mini button{{/i}}&lt;/button&gt;
+&lt;/p&gt;
+</pre>
+ <p>{{_i}}Create block level buttons&mdash;those that span the full width of a parent&mdash; by adding <code>.btn-block</code>.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="well" style="max-width: 400px; margin: 0 auto 10px;">
+ <button type="button" class="btn btn-large btn-block btn-primary">{{_i}}Block level button{{/i}}</button>
+ <button type="button" class="btn btn-large btn-block">{{_i}}Block level button{{/i}}</button>
</div>
</div>
- <div class="form-actions">
- <button type="submit" class="btn btn-primary">{{_i}}Save changes{{/i}}</button>
- <button class="btn">{{_i}}Cancel{{/i}}</button>
- </div>
- </fieldset>
- </form>
- </div>
- </div><!-- /row -->
-</section>
+<pre class="prettyprint linenums">
+&lt;button class="btn btn-large btn-block btn-primary" type="button"&gt;{{_i}}Block level button{{/i}}&lt;/button&gt;
+&lt;button class="btn btn-large btn-block" type="button"&gt;{{_i}}Block level button{{/i}}&lt;/button&gt;
+</pre>
+ <h2>{{_i}}Disabled state{{/i}}</h2>
+ <p>{{_i}}Make buttons look unclickable by fading them back 50%.{{/i}}</p>
-<!-- Buttons
-================================================== -->
-<section id="buttons">
- <div class="page-header">
- <h1>{{_i}}Buttons{{/i}}</h1>
- </div>
- <table class="table table-bordered table-striped">
- <thead>
- <tr>
- <th>{{_i}}Button{{/i}}</th>
- <th>{{_i}}class=""{{/i}}</th>
- <th>{{_i}}Description{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><button class="btn" href="#">{{_i}}Default{{/i}}</button></td>
- <td><code>btn</code></td>
- <td>{{_i}}Standard gray button with gradient{{/i}}</td>
- </tr>
- <tr>
- <td><button class="btn btn-primary" href="#">{{_i}}Primary{{/i}}</button></td>
- <td><code>btn btn-primary</code></td>
- <td>{{_i}}Provides extra visual weight and identifies the primary action in a set of buttons{{/i}}</td>
- </tr>
- <tr>
- <td><button class="btn btn-info" href="#">{{_i}}Info{{/i}}</button></td>
- <td><code>btn btn-info</code></td>
- <td>{{_i}}Used as an alternative to the default styles{{/i}}</td>
- </tr>
- <tr>
- <td><button class="btn btn-success" href="#">{{_i}}Success{{/i}}</button></td>
- <td><code>btn btn-success</code></td>
- <td>{{_i}}Indicates a successful or positive action{{/i}}</td>
- </tr>
- <tr>
- <td><button class="btn btn-warning" href="#">{{_i}}Warning{{/i}}</button></td>
- <td><code>btn btn-warning</code></td>
- <td>{{_i}}Indicates caution should be taken with this action{{/i}}</td>
- </tr>
- <tr>
- <td><button class="btn btn-danger" href="#">{{_i}}Danger{{/i}}</button></td>
- <td><code>btn btn-danger</code></td>
- <td>{{_i}}Indicates a dangerous or potentially negative action{{/i}}</td>
- </tr>
- <tr>
- <td><button class="btn btn-inverse" href="#">{{_i}}Inverse{{/i}}</button></td>
- <td><code>btn btn-inverse</code></td>
- <td>{{_i}}Alternate dark gray button, not tied to a semantic action or use{{/i}}</td>
- </tr>
- </tbody>
- </table>
-
- <div class="row">
- <div class="span4">
- <h3>{{_i}}Buttons for actions{{/i}}</h3>
- <p>{{_i}}As a convention, buttons should only be used for actions while hyperlinks are to be used for objects. For instance, "Download" should be a button while "recent activity" should be a link.{{/i}}</p>
- <p>{{_i}}Button styles can be applied to anything with the <code>.btn</code> class applied. However, typically you'll want to apply these to only <code>&lt;a&gt;</code> and <code>&lt;button&gt;</code> elements.{{/i}}</p>
- <h3>{{_i}}Cross browser compatibility{{/i}}</h3>
- <p>{{_i}}IE9 doesn't crop background gradients on rounded corners, so we remove it. Related, IE9 jankifies disabled <code>button</code> elements, rendering text gray with a nasty text-shadow that we cannot fix.{{/i}}</p>
- </div>
- <div class="span4">
- <h3>{{_i}}Multiple sizes{{/i}}</h3>
- <p>{{_i}}Fancy larger or smaller buttons? Add <code>.btn-large</code>, <code>.btn-small</code>, or <code>.btn-mini</code> for two additional sizes.{{/i}}</p>
- <p>
- <button class="btn btn-large btn-primary">{{_i}}Primary action{{/i}}</button>
- <button class="btn btn-large">{{_i}}Action{{/i}}</button>
- </p>
- <p>
- <button class="btn btn-small btn-primary">{{_i}}Primary action{{/i}}</button>
- <button class="btn btn-small">{{_i}}Action{{/i}}</button>
- </p>
- <p>
- <button class="btn btn-mini btn-primary">{{_i}}Primary action{{/i}}</button>
- <button class="btn btn-mini">{{_i}}Action{{/i}}</button>
- </p>
- <br>
- <h3>{{_i}}Disabled state{{/i}}</h3>
- <p>{{_i}}For disabled buttons, add the <code>.disabled</code> class to links and the <code>disabled</code> attribute for <code>&lt;button&gt;</code> elements.{{/i}}</p>
- <p>
- <a href="#" class="btn btn-large btn-primary disabled">{{_i}}Primary link{{/i}}</a>
- <a href="#" class="btn btn-large disabled">{{_i}}Link{{/i}}</a>
- </p>
- <p style="margin-bottom: 18px;">
- <button class="btn btn-large btn-primary disabled" disabled="disabled">{{_i}}Primary button{{/i}}</button>
- <button class="btn btn-large" disabled>{{_i}}Button{{/i}}</button>
- </p>
- <p>
- <span class="label label-info">{{_i}}Heads up!{{/i}}</span>
- {{_i}}We use <code>.disabled</code> as a utility class here, similar to the common <code>.active</code> class, so no prefix is required.{{/i}}
- </p>
- </div>
- <div class="span4">
- <h3>{{_i}}One class, multiple tags{{/i}}</h3>
- <p>{{_i}}Use the <code>.btn</code> class on an <code>&lt;a&gt;</code>, <code>&lt;button&gt;</code>, or <code>&lt;input&gt;</code> element.{{/i}}</p>
-<form>
-<a class="btn" href="">{{_i}}Link{{/i}}</a>
-<button class="btn" type="submit">{{_i}}Button{{/i}}</button>
-<input class="btn" type="button" value="{{_i}}Input{{/i}}">
-<input class="btn" type="submit" value="{{_i}}Submit{{/i}}">
-</form>
+ <h3>Anchor element</h3>
+ <p>{{_i}}Add the <code>.disabled</code> class to <code>&lt;a&gt;</code> buttons.{{/i}}</p>
+ <p class="bs-docs-example">
+ <a href="#" class="btn btn-large btn-primary disabled">{{_i}}Primary link{{/i}}</a>
+ <a href="#" class="btn btn-large disabled">{{_i}}Link{{/i}}</a>
+ </p>
+<pre class="prettyprint linenums">
+&lt;a href="#" class="btn btn-large btn-primary disabled"&gt;{{_i}}Primary link{{/i}}&lt;/a&gt;
+&lt;a href="#" class="btn btn-large disabled"&gt;{{_i}}Link{{/i}}&lt;/a&gt;
+</pre>
+ <p>
+ <span class="label label-info">{{_i}}Heads up!{{/i}}</span>
+ {{_i}}We use <code>.disabled</code> as a utility class here, similar to the common <code>.active</code> class, so no prefix is required.{{/i}}
+ </p>
+
+ <h3>Button element</h3>
+ <p>{{_i}}Add the <code>disabled</code> attribute to <code>&lt;button&gt;</code> buttons.{{/i}}</p>
+ <p class="bs-docs-example">
+ <button type="button" class="btn btn-large btn-primary disabled" disabled="disabled">{{_i}}Primary button{{/i}}</button>
+ <button type="button" class="btn btn-large" disabled>{{_i}}Button{{/i}}</button>
+ </p>
+<pre class="prettyprint linenums">
+&lt;button type="button" class="btn btn-large btn-primary disabled" disabled="disabled"&gt;{{_i}}Primary button{{/i}}&lt;/button&gt;
+&lt;button type="button" class="btn btn-large" disabled&gt;{{_i}}Button{{/i}}&lt;/button&gt;
+</pre>
+
+
+ <h2>{{_i}}One class, multiple tags{{/i}}</h2>
+ <p>{{_i}}Use the <code>.btn</code> class on an <code>&lt;a&gt;</code>, <code>&lt;button&gt;</code>, or <code>&lt;input&gt;</code> element.{{/i}}</p>
+ <form class="bs-docs-example">
+ <a class="btn" href="">{{_i}}Link{{/i}}</a>
+ <button class="btn" type="submit">{{_i}}Button{{/i}}</button>
+ <input class="btn" type="button" value="{{_i}}Input{{/i}}">
+ <input class="btn" type="submit" value="{{_i}}Submit{{/i}}">
+ </form>
<pre class="prettyprint linenums">
&lt;a class="btn" href=""&gt;{{_i}}Link{{/i}}&lt;/a&gt;
-&lt;button class="btn" type="submit"&gt;
- {{_i}}Button{{/i}}
-&lt;/button&gt;
-&lt;input class="btn" type="button"
- value="{{_i}}Input{{/i}}"&gt;
-&lt;input class="btn" type="submit"
- value="{{_i}}Submit{{/i}}"&gt;
+&lt;button class="btn" type="submit"&gt;{{_i}}Button{{/i}}&lt;/button&gt;
+&lt;input class="btn" type="button" value="{{_i}}Input{{/i}}"&gt;
+&lt;input class="btn" type="submit" value="{{_i}}Submit{{/i}}"&gt;
</pre>
- <p>{{_i}}As a best practice, try to match the element for you context to ensure matching cross-browser rendering. If you have an <code>input</code>, use an <code>&lt;input type="submit"&gt;</code> for your button.{{/i}}</p>
- </div>
- </div>
-</section>
+ <p>{{_i}}As a best practice, try to match the element for your context to ensure matching cross-browser rendering. If you have an <code>input</code>, use an <code>&lt;input type="submit"&gt;</code> for your button.{{/i}}</p>
+ </section>
-<!-- Icons
-================================================== -->
-<section id="icons">
- <div class="page-header">
- <h1>{{_i}}Icons <small>Graciously provided by <a href="http://glyphicons.com" target="_blank">Glyphicons</a></small>{{/i}}</h1>
- </div>
- <div class="row">
- <div class="span3">
- <ul class="the-icons">
- <li><i class="icon-glass"></i> icon-glass</li>
- <li><i class="icon-music"></i> icon-music</li>
- <li><i class="icon-search"></i> icon-search</li>
- <li><i class="icon-envelope"></i> icon-envelope</li>
- <li><i class="icon-heart"></i> icon-heart</li>
- <li><i class="icon-star"></i> icon-star</li>
- <li><i class="icon-star-empty"></i> icon-star-empty</li>
- <li><i class="icon-user"></i> icon-user</li>
- <li><i class="icon-film"></i> icon-film</li>
- <li><i class="icon-th-large"></i> icon-th-large</li>
- <li><i class="icon-th"></i> icon-th</li>
- <li><i class="icon-th-list"></i> icon-th-list</li>
- <li><i class="icon-ok"></i> icon-ok</li>
- <li><i class="icon-remove"></i> icon-remove</li>
- <li><i class="icon-zoom-in"></i> icon-zoom-in</li>
- <li><i class="icon-zoom-out"></i> icon-zoom-out</li>
- <li><i class="icon-off"></i> icon-off</li>
- <li><i class="icon-signal"></i> icon-signal</li>
- <li><i class="icon-cog"></i> icon-cog</li>
- <li><i class="icon-trash"></i> icon-trash</li>
- <li><i class="icon-home"></i> icon-home</li>
- <li><i class="icon-file"></i> icon-file</li>
- <li><i class="icon-time"></i> icon-time</li>
- <li><i class="icon-road"></i> icon-road</li>
- <li><i class="icon-download-alt"></i> icon-download-alt</li>
- <li><i class="icon-download"></i> icon-download</li>
- <li><i class="icon-upload"></i> icon-upload</li>
- <li><i class="icon-inbox"></i> icon-inbox</li>
- <li><i class="icon-play-circle"></i> icon-play-circle</li>
- <li><i class="icon-repeat"></i> icon-repeat</li>
- <li><i class="icon-refresh"></i> icon-refresh</li>
- <li><i class="icon-list-alt"></i> icon-list-alt</li>
- <li><i class="icon-lock"></i> icon-lock</li>
- <li><i class="icon-flag"></i> icon-flag</li>
- <li><i class="icon-headphones"></i> icon-headphones</li>
- </ul>
- </div>
- <div class="span3">
- <ul class="the-icons">
- <li><i class="icon-volume-off"></i> icon-volume-off</li>
- <li><i class="icon-volume-down"></i> icon-volume-down</li>
- <li><i class="icon-volume-up"></i> icon-volume-up</li>
- <li><i class="icon-qrcode"></i> icon-qrcode</li>
- <li><i class="icon-barcode"></i> icon-barcode</li>
- <li><i class="icon-tag"></i> icon-tag</li>
- <li><i class="icon-tags"></i> icon-tags</li>
- <li><i class="icon-book"></i> icon-book</li>
- <li><i class="icon-bookmark"></i> icon-bookmark</li>
- <li><i class="icon-print"></i> icon-print</li>
- <li><i class="icon-camera"></i> icon-camera</li>
- <li><i class="icon-font"></i> icon-font</li>
- <li><i class="icon-bold"></i> icon-bold</li>
- <li><i class="icon-italic"></i> icon-italic</li>
- <li><i class="icon-text-height"></i> icon-text-height</li>
- <li><i class="icon-text-width"></i> icon-text-width</li>
- <li><i class="icon-align-left"></i> icon-align-left</li>
- <li><i class="icon-align-center"></i> icon-align-center</li>
- <li><i class="icon-align-right"></i> icon-align-right</li>
- <li><i class="icon-align-justify"></i> icon-align-justify</li>
- <li><i class="icon-list"></i> icon-list</li>
- <li><i class="icon-indent-left"></i> icon-indent-left</li>
- <li><i class="icon-indent-right"></i> icon-indent-right</li>
- <li><i class="icon-facetime-video"></i> icon-facetime-video</li>
- <li><i class="icon-picture"></i> icon-picture</li>
- <li><i class="icon-pencil"></i> icon-pencil</li>
- <li><i class="icon-map-marker"></i> icon-map-marker</li>
- <li><i class="icon-adjust"></i> icon-adjust</li>
- <li><i class="icon-tint"></i> icon-tint</li>
- <li><i class="icon-edit"></i> icon-edit</li>
- <li><i class="icon-share"></i> icon-share</li>
- <li><i class="icon-check"></i> icon-check</li>
- <li><i class="icon-move"></i> icon-move</li>
- <li><i class="icon-step-backward"></i> icon-step-backward</li>
- <li><i class="icon-fast-backward"></i> icon-fast-backward</li>
- </ul>
- </div>
- <div class="span3">
- <ul class="the-icons">
- <li><i class="icon-backward"></i> icon-backward</li>
- <li><i class="icon-play"></i> icon-play</li>
- <li><i class="icon-pause"></i> icon-pause</li>
- <li><i class="icon-stop"></i> icon-stop</li>
- <li><i class="icon-forward"></i> icon-forward</li>
- <li><i class="icon-fast-forward"></i> icon-fast-forward</li>
- <li><i class="icon-step-forward"></i> icon-step-forward</li>
- <li><i class="icon-eject"></i> icon-eject</li>
- <li><i class="icon-chevron-left"></i> icon-chevron-left</li>
- <li><i class="icon-chevron-right"></i> icon-chevron-right</li>
- <li><i class="icon-plus-sign"></i> icon-plus-sign</li>
- <li><i class="icon-minus-sign"></i> icon-minus-sign</li>
- <li><i class="icon-remove-sign"></i> icon-remove-sign</li>
- <li><i class="icon-ok-sign"></i> icon-ok-sign</li>
- <li><i class="icon-question-sign"></i> icon-question-sign</li>
- <li><i class="icon-info-sign"></i> icon-info-sign</li>
- <li><i class="icon-screenshot"></i> icon-screenshot</li>
- <li><i class="icon-remove-circle"></i> icon-remove-circle</li>
- <li><i class="icon-ok-circle"></i> icon-ok-circle</li>
- <li><i class="icon-ban-circle"></i> icon-ban-circle</li>
- <li><i class="icon-arrow-left"></i> icon-arrow-left</li>
- <li><i class="icon-arrow-right"></i> icon-arrow-right</li>
- <li><i class="icon-arrow-up"></i> icon-arrow-up</li>
- <li><i class="icon-arrow-down"></i> icon-arrow-down</li>
- <li><i class="icon-share-alt"></i> icon-share-alt</li>
- <li><i class="icon-resize-full"></i> icon-resize-full</li>
- <li><i class="icon-resize-small"></i> icon-resize-small</li>
- <li><i class="icon-plus"></i> icon-plus</li>
- <li><i class="icon-minus"></i> icon-minus</li>
- <li><i class="icon-asterisk"></i> icon-asterisk</li>
- <li><i class="icon-exclamation-sign"></i> icon-exclamation-sign</li>
- <li><i class="icon-gift"></i> icon-gift</li>
- <li><i class="icon-leaf"></i> icon-leaf</li>
- <li><i class="icon-fire"></i> icon-fire</li>
- <li><i class="icon-eye-open"></i> icon-eye-open</li>
- </ul>
- </div>
- <div class="span3">
- <ul class="the-icons">
- <li><i class="icon-eye-close"></i> icon-eye-close</li>
- <li><i class="icon-warning-sign"></i> icon-warning-sign</li>
- <li><i class="icon-plane"></i> icon-plane</li>
- <li><i class="icon-calendar"></i> icon-calendar</li>
- <li><i class="icon-random"></i> icon-random</li>
- <li><i class="icon-comment"></i> icon-comment</li>
- <li><i class="icon-magnet"></i> icon-magnet</li>
- <li><i class="icon-chevron-up"></i> icon-chevron-up</li>
- <li><i class="icon-chevron-down"></i> icon-chevron-down</li>
- <li><i class="icon-retweet"></i> icon-retweet</li>
- <li><i class="icon-shopping-cart"></i> icon-shopping-cart</li>
- <li><i class="icon-folder-close"></i> icon-folder-close</li>
- <li><i class="icon-folder-open"></i> icon-folder-open</li>
- <li><i class="icon-resize-vertical"></i> icon-resize-vertical</li>
- <li><i class="icon-resize-horizontal"></i> icon-resize-horizontal</li>
- <li><i class="icon-hdd"></i> icon-hdd</li>
- <li><i class="icon-bullhorn"></i> icon-bullhorn</li>
- <li><i class="icon-bell"></i> icon-bell</li>
- <li><i class="icon-certificate"></i> icon-certificate</li>
- <li><i class="icon-thumbs-up"></i> icon-thumbs-up</li>
- <li><i class="icon-thumbs-down"></i> icon-thumbs-down</li>
- <li><i class="icon-hand-right"></i> icon-hand-right</li>
- <li><i class="icon-hand-left"></i> icon-hand-left</li>
- <li><i class="icon-hand-up"></i> icon-hand-up</li>
- <li><i class="icon-hand-down"></i> icon-hand-down</li>
- <li><i class="icon-circle-arrow-right"></i> icon-circle-arrow-right</li>
- <li><i class="icon-circle-arrow-left"></i> icon-circle-arrow-left</li>
- <li><i class="icon-circle-arrow-up"></i> icon-circle-arrow-up</li>
- <li><i class="icon-circle-arrow-down"></i> icon-circle-arrow-down</li>
- <li><i class="icon-globe"></i> icon-globe</li>
- <li><i class="icon-wrench"></i> icon-wrench</li>
- <li><i class="icon-tasks"></i> icon-tasks</li>
- <li><i class="icon-filter"></i> icon-filter</li>
- <li><i class="icon-briefcase"></i> icon-briefcase</li>
- <li><i class="icon-fullscreen"></i> icon-fullscreen</li>
- </ul>
- </div>
- </div>
- <br>
-
- <div class="row">
- <div class="span4">
- <h3>{{_i}}Built as a sprite{{/i}}</h3>
- <p>{{_i}}Instead of making every icon an extra request, we've compiled them into a sprite&mdash;a bunch of images in one file that uses CSS to position the images with <code>background-position</code>. This is the same method we use on Twitter.com and it has worked well for us.{{/i}}</p>
- <p>{{_i}}All icons classes are prefixed with <code>.icon-</code> for proper namespacing and scoping, much like our other components. This will help avoid conflicts with other tools.{{/i}}</p>
- <p>{{_i}}<a href="http://glyphicons.com" target="_blank">Glyphicons</a> has granted us use of the Halflings set in our open-source toolkit so long as we provide a link and credit here in the docs. Please consider doing the same in your projects.{{/i}}</p>
- </div>
- <div class="span4">
- <h3>{{_i}}How to use{{/i}}</h3>
- <p>{{_i}}Bootstrap uses an <code>&lt;i&gt;</code> tag for all icons, but they have no case class&mdash;only a shared prefix. To use, place the following code just about anywhere:{{/i}}</p>
+ <!-- Images
+ ================================================== -->
+ <section id="images">
+ <div class="page-header">
+ <h1>{{_i}}Images{{/i}}</h1>
+ </div>
+
+ <p>{{_i}}Add classes to an <code>&lt;img&gt;</code> element to easily style images in any project.{{/i}}</p>
+ <div class="bs-docs-example bs-docs-example-images">
+ <img src="http://placehold.it/140x140" class="img-rounded">
+ <img src="http://placehold.it/140x140" class="img-circle">
+ <img src="http://placehold.it/140x140" class="img-polaroid">
+ </div>
+<pre class="prettyprint linenums">
+&lt;img src="..." class="img-rounded"&gt;
+&lt;img src="..." class="img-circle"&gt;
+&lt;img src="..." class="img-polaroid"&gt;
+</pre>
+ <p><span class="label label-info">{{_i}}Heads up!{{/i}}</span> {{_i}}<code>.img-rounded</code> and <code>.img-circle</code> do not work in IE7-8 due to lack of <code>border-radius</code> support.{{/i}}</p>
+
+
+ </section>
+
+
+
+ <!-- Icons
+ ================================================== -->
+ <section id="icons">
+ <div class="page-header">
+ <h1>{{_i}}Icons <small>by <a href="http://glyphicons.com" target="_blank">Glyphicons</a></small>{{/i}}</h1>
+ </div>
+
+ <h2>{{_i}}Icon glyphs{{/i}}</h2>
+ <p>{{_i}}140 icons in sprite form, available in dark gray (default) and white, provided by <a href="http://glyphicons.com" target="_blank">Glyphicons</a>.{{/i}}</p>
+ <ul class="the-icons clearfix">
+ <li><i class="icon-glass"></i> icon-glass</li>
+ <li><i class="icon-music"></i> icon-music</li>
+ <li><i class="icon-search"></i> icon-search</li>
+ <li><i class="icon-envelope"></i> icon-envelope</li>
+ <li><i class="icon-heart"></i> icon-heart</li>
+ <li><i class="icon-star"></i> icon-star</li>
+ <li><i class="icon-star-empty"></i> icon-star-empty</li>
+ <li><i class="icon-user"></i> icon-user</li>
+ <li><i class="icon-film"></i> icon-film</li>
+ <li><i class="icon-th-large"></i> icon-th-large</li>
+ <li><i class="icon-th"></i> icon-th</li>
+ <li><i class="icon-th-list"></i> icon-th-list</li>
+ <li><i class="icon-ok"></i> icon-ok</li>
+ <li><i class="icon-remove"></i> icon-remove</li>
+ <li><i class="icon-zoom-in"></i> icon-zoom-in</li>
+ <li><i class="icon-zoom-out"></i> icon-zoom-out</li>
+ <li><i class="icon-off"></i> icon-off</li>
+ <li><i class="icon-signal"></i> icon-signal</li>
+ <li><i class="icon-cog"></i> icon-cog</li>
+ <li><i class="icon-trash"></i> icon-trash</li>
+ <li><i class="icon-home"></i> icon-home</li>
+ <li><i class="icon-file"></i> icon-file</li>
+ <li><i class="icon-time"></i> icon-time</li>
+ <li><i class="icon-road"></i> icon-road</li>
+ <li><i class="icon-download-alt"></i> icon-download-alt</li>
+ <li><i class="icon-download"></i> icon-download</li>
+ <li><i class="icon-upload"></i> icon-upload</li>
+ <li><i class="icon-inbox"></i> icon-inbox</li>
+
+ <li><i class="icon-play-circle"></i> icon-play-circle</li>
+ <li><i class="icon-repeat"></i> icon-repeat</li>
+ <li><i class="icon-refresh"></i> icon-refresh</li>
+ <li><i class="icon-list-alt"></i> icon-list-alt</li>
+ <li><i class="icon-lock"></i> icon-lock</li>
+ <li><i class="icon-flag"></i> icon-flag</li>
+ <li><i class="icon-headphones"></i> icon-headphones</li>
+ <li><i class="icon-volume-off"></i> icon-volume-off</li>
+ <li><i class="icon-volume-down"></i> icon-volume-down</li>
+ <li><i class="icon-volume-up"></i> icon-volume-up</li>
+ <li><i class="icon-qrcode"></i> icon-qrcode</li>
+ <li><i class="icon-barcode"></i> icon-barcode</li>
+ <li><i class="icon-tag"></i> icon-tag</li>
+ <li><i class="icon-tags"></i> icon-tags</li>
+ <li><i class="icon-book"></i> icon-book</li>
+ <li><i class="icon-bookmark"></i> icon-bookmark</li>
+ <li><i class="icon-print"></i> icon-print</li>
+ <li><i class="icon-camera"></i> icon-camera</li>
+ <li><i class="icon-font"></i> icon-font</li>
+ <li><i class="icon-bold"></i> icon-bold</li>
+ <li><i class="icon-italic"></i> icon-italic</li>
+ <li><i class="icon-text-height"></i> icon-text-height</li>
+ <li><i class="icon-text-width"></i> icon-text-width</li>
+ <li><i class="icon-align-left"></i> icon-align-left</li>
+ <li><i class="icon-align-center"></i> icon-align-center</li>
+ <li><i class="icon-align-right"></i> icon-align-right</li>
+ <li><i class="icon-align-justify"></i> icon-align-justify</li>
+ <li><i class="icon-list"></i> icon-list</li>
+
+ <li><i class="icon-indent-left"></i> icon-indent-left</li>
+ <li><i class="icon-indent-right"></i> icon-indent-right</li>
+ <li><i class="icon-facetime-video"></i> icon-facetime-video</li>
+ <li><i class="icon-picture"></i> icon-picture</li>
+ <li><i class="icon-pencil"></i> icon-pencil</li>
+ <li><i class="icon-map-marker"></i> icon-map-marker</li>
+ <li><i class="icon-adjust"></i> icon-adjust</li>
+ <li><i class="icon-tint"></i> icon-tint</li>
+ <li><i class="icon-edit"></i> icon-edit</li>
+ <li><i class="icon-share"></i> icon-share</li>
+ <li><i class="icon-check"></i> icon-check</li>
+ <li><i class="icon-move"></i> icon-move</li>
+ <li><i class="icon-step-backward"></i> icon-step-backward</li>
+ <li><i class="icon-fast-backward"></i> icon-fast-backward</li>
+ <li><i class="icon-backward"></i> icon-backward</li>
+ <li><i class="icon-play"></i> icon-play</li>
+ <li><i class="icon-pause"></i> icon-pause</li>
+ <li><i class="icon-stop"></i> icon-stop</li>
+ <li><i class="icon-forward"></i> icon-forward</li>
+ <li><i class="icon-fast-forward"></i> icon-fast-forward</li>
+ <li><i class="icon-step-forward"></i> icon-step-forward</li>
+ <li><i class="icon-eject"></i> icon-eject</li>
+ <li><i class="icon-chevron-left"></i> icon-chevron-left</li>
+ <li><i class="icon-chevron-right"></i> icon-chevron-right</li>
+ <li><i class="icon-plus-sign"></i> icon-plus-sign</li>
+ <li><i class="icon-minus-sign"></i> icon-minus-sign</li>
+ <li><i class="icon-remove-sign"></i> icon-remove-sign</li>
+ <li><i class="icon-ok-sign"></i> icon-ok-sign</li>
+
+ <li><i class="icon-question-sign"></i> icon-question-sign</li>
+ <li><i class="icon-info-sign"></i> icon-info-sign</li>
+ <li><i class="icon-screenshot"></i> icon-screenshot</li>
+ <li><i class="icon-remove-circle"></i> icon-remove-circle</li>
+ <li><i class="icon-ok-circle"></i> icon-ok-circle</li>
+ <li><i class="icon-ban-circle"></i> icon-ban-circle</li>
+ <li><i class="icon-arrow-left"></i> icon-arrow-left</li>
+ <li><i class="icon-arrow-right"></i> icon-arrow-right</li>
+ <li><i class="icon-arrow-up"></i> icon-arrow-up</li>
+ <li><i class="icon-arrow-down"></i> icon-arrow-down</li>
+ <li><i class="icon-share-alt"></i> icon-share-alt</li>
+ <li><i class="icon-resize-full"></i> icon-resize-full</li>
+ <li><i class="icon-resize-small"></i> icon-resize-small</li>
+ <li><i class="icon-plus"></i> icon-plus</li>
+ <li><i class="icon-minus"></i> icon-minus</li>
+ <li><i class="icon-asterisk"></i> icon-asterisk</li>
+ <li><i class="icon-exclamation-sign"></i> icon-exclamation-sign</li>
+ <li><i class="icon-gift"></i> icon-gift</li>
+ <li><i class="icon-leaf"></i> icon-leaf</li>
+ <li><i class="icon-fire"></i> icon-fire</li>
+ <li><i class="icon-eye-open"></i> icon-eye-open</li>
+ <li><i class="icon-eye-close"></i> icon-eye-close</li>
+ <li><i class="icon-warning-sign"></i> icon-warning-sign</li>
+ <li><i class="icon-plane"></i> icon-plane</li>
+ <li><i class="icon-calendar"></i> icon-calendar</li>
+ <li><i class="icon-random"></i> icon-random</li>
+ <li><i class="icon-comment"></i> icon-comment</li>
+ <li><i class="icon-magnet"></i> icon-magnet</li>
+
+ <li><i class="icon-chevron-up"></i> icon-chevron-up</li>
+ <li><i class="icon-chevron-down"></i> icon-chevron-down</li>
+ <li><i class="icon-retweet"></i> icon-retweet</li>
+ <li><i class="icon-shopping-cart"></i> icon-shopping-cart</li>
+ <li><i class="icon-folder-close"></i> icon-folder-close</li>
+ <li><i class="icon-folder-open"></i> icon-folder-open</li>
+ <li><i class="icon-resize-vertical"></i> icon-resize-vertical</li>
+ <li><i class="icon-resize-horizontal"></i> icon-resize-horizontal</li>
+ <li><i class="icon-hdd"></i> icon-hdd</li>
+ <li><i class="icon-bullhorn"></i> icon-bullhorn</li>
+ <li><i class="icon-bell"></i> icon-bell</li>
+ <li><i class="icon-certificate"></i> icon-certificate</li>
+ <li><i class="icon-thumbs-up"></i> icon-thumbs-up</li>
+ <li><i class="icon-thumbs-down"></i> icon-thumbs-down</li>
+ <li><i class="icon-hand-right"></i> icon-hand-right</li>
+ <li><i class="icon-hand-left"></i> icon-hand-left</li>
+ <li><i class="icon-hand-up"></i> icon-hand-up</li>
+ <li><i class="icon-hand-down"></i> icon-hand-down</li>
+ <li><i class="icon-circle-arrow-right"></i> icon-circle-arrow-right</li>
+ <li><i class="icon-circle-arrow-left"></i> icon-circle-arrow-left</li>
+ <li><i class="icon-circle-arrow-up"></i> icon-circle-arrow-up</li>
+ <li><i class="icon-circle-arrow-down"></i> icon-circle-arrow-down</li>
+ <li><i class="icon-globe"></i> icon-globe</li>
+ <li><i class="icon-wrench"></i> icon-wrench</li>
+ <li><i class="icon-tasks"></i> icon-tasks</li>
+ <li><i class="icon-filter"></i> icon-filter</li>
+ <li><i class="icon-briefcase"></i> icon-briefcase</li>
+ <li><i class="icon-fullscreen"></i> icon-fullscreen</li>
+ </ul>
+
+ <h3>Glyphicons attribution</h3>
+ <p>{{_i}}<a href="http://glyphicons.com/">Glyphicons</a> Halflings are normally not available for free, but an arrangement between Bootstrap and the Glyphicons creators have made this possible at not cost to you as developers. As a thank you, we ask you to include an optional link back to <a href="http://glyphicons.com/">Glyphicons</a> whenever practical.{{/i}}</p>
+
+
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}How to use{{/i}}</h2>
+ <p>{{_i}}All icons require an <code>&lt;i&gt;</code> tag with a unique class, prefixed with <code>icon-</code>. To use, place the following code just about anywhere:{{/i}}</p>
<pre class="prettyprint linenums">
&lt;i class="icon-search"&gt;&lt;/i&gt;
</pre>
- <p>{{_i}}There are also styles available for inverted (white) icons, made ready with one extra class:{{/i}}</p>
+ <p>{{_i}}There are also styles available for inverted (white) icons, made ready with one extra class. We will specifically enforce this class on hover and active states for nav and dropdown links.{{/i}}</p>
<pre class="prettyprint linenums">
&lt;i class="icon-search icon-white"&gt;&lt;/i&gt;
</pre>
- <p>{{_i}}There are 140 classes to choose from for your icons. Just add an <code>&lt;i&gt;</code> tag with the right classes and you're set. You can find the full list in <strong>sprites.less</strong> or right here in this document.{{/i}}</p>
- <p>
- <span class="label label-info">{{_i}}Heads up!{{/i}}</span>
- {{_i}}When using beside strings of text, as in buttons or nav links, be sure to leave a space after the <code>&lt;i&gt;</code> tag for proper spacing.{{/i}}
- </p>
- </div>
- <div class="span4">
- <h3>{{_i}}Use cases{{/i}}</h3>
- <p>{{_i}}Icons are great, but where would one use them? Here are a few ideas:{{/i}}</p>
- <ul>
- <li>{{_i}}As visuals for your sidebar navigation{{/i}}</li>
- <li>{{_i}}For a purely icon-driven navigation{{/i}}</li>
- <li>{{_i}}For buttons to help convey the meaning of an action{{/i}}</li>
- <li>{{_i}}With links to share context on a user's destination{{/i}}</li>
- </ul>
- <p>{{_i}}Essentially, anywhere you can put an <code>&lt;i&gt;</code> tag, you can put an icon.{{/i}}</p>
- </div>
- </div>
+ <p>
+ <span class="label label-info">{{_i}}Heads up!{{/i}}</span>
+ {{_i}}When using beside strings of text, as in buttons or nav links, be sure to leave a space after the <code>&lt;i&gt;</code> tag for proper spacing.{{/i}}
+ </p>
- <h3>{{_i}}Examples{{/i}}</h3>
- <p>{{_i}}Use them in buttons, button groups for a toolbar, navigation, or prepended form inputs.{{/i}}</p>
- <div class="row">
- <div class="span4">
- <div class="btn-toolbar" style="margin-bottom: 9px">
- <div class="btn-group">
- <a class="btn" href="#"><i class="icon-align-left"></i></a>
- <a class="btn" href="#"><i class="icon-align-center"></i></a>
- <a class="btn" href="#"><i class="icon-align-right"></i></a>
- <a class="btn" href="#"><i class="icon-align-justify"></i></a>
- </div>
- <div class="btn-group">
- <a class="btn btn-primary" href="#"><i class="icon-user icon-white"></i> {{_i}}User{{/i}}</a>
- <a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
- <ul class="dropdown-menu">
- <li><a href="#"><i class="icon-pencil"></i> {{_i}}Edit{{/i}}</a></li>
- <li><a href="#"><i class="icon-trash"></i> {{_i}}Delete{{/i}}</a></li>
- <li><a href="#"><i class="icon-ban-circle"></i> {{_i}}Ban{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#"><i class="i"></i> {{_i}}Make admin{{/i}}</a></li>
- </ul>
- </div>
- </div>
- <p>
- <a class="btn" href="#"><i class="icon-refresh"></i> {{_i}}Refresh{{/i}}</a>
- <a class="btn btn-success" href="#"><i class="icon-shopping-cart icon-white"></i> {{_i}}Checkout{{/i}}</a>
- <a class="btn btn-danger" href="#"><i class="icon-trash icon-white"></i> {{_i}}Delete{{/i}}</a>
- </p>
- <p>
- <a class="btn btn-large" href="#"><i class="icon-comment"></i> {{_i}}Comment{{/i}}</a>
- <a class="btn btn-small" href="#"><i class="icon-cog"></i> {{_i}}Settings{{/i}}</a>
- <a class="btn btn-small btn-info" href="#"><i class="icon-info-sign icon-white"></i> {{_i}}More Info{{/i}}</a>
- </p>
- </div>
- <div class="span4">
- <div class="well" style="padding: 8px 0;">
- <ul class="nav nav-list">
- <li class="active"><a href="#"><i class="icon-home icon-white"></i> {{_i}}Home{{/i}}</a></li>
- <li><a href="#"><i class="icon-book"></i> {{_i}}Library{{/i}}</a></li>
- <li><a href="#"><i class="icon-pencil"></i> {{_i}}Applications{{/i}}</a></li>
- <li><a href="#"><i class="i"></i> {{_i}}Misc{{/i}}</a></li>
- </ul>
- </div> <!-- /well -->
- </div>
- <div class="span4">
- <form>
- <div class="control-group">
- <label class="control-label" for="inputIcon">{{_i}}Email address{{/i}}</label>
- <div class="controls">
- <div class="input-prepend">
- <span class="add-on"><i class="icon-envelope"></i></span><input class="span2" id="inputIcon" type="text">
+
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Icon examples{{/i}}</h2>
+ <p>{{_i}}Use them in buttons, button groups for a toolbar, navigation, or prepended form inputs.{{/i}}</p>
+
+ <h4>{{_i}}Buttons{{/i}}</h4>
+
+ <h5>{{_i}}Button group in a button toolbar{{/i}}</h5>
+ <div class="bs-docs-example">
+ <div class="btn-toolbar">
+ <div class="btn-group">
+ <a class="btn" href="#"><i class="icon-align-left"></i></a>
+ <a class="btn" href="#"><i class="icon-align-center"></i></a>
+ <a class="btn" href="#"><i class="icon-align-right"></i></a>
+ <a class="btn" href="#"><i class="icon-align-justify"></i></a>
+ </div>
</div>
- </div>
- </div>
- </form>
- </div>
- </div>
-</section>
+ </div>{{! /bs-docs-example }}
+<pre class="prettyprint linenums">
+&lt;div class="btn-toolbar"&gt;
+ &lt;div class="btn-group"&gt;
+
+ &lt;a class="btn" href="#"&gt;&lt;i class="icon-align-left"&gt;&lt;/i&gt;&lt;/a&gt;
+ &lt;a class="btn" href="#"&gt;&lt;i class="icon-align-center"&gt;&lt;/i&gt;&lt;/a&gt;
+ &lt;a class="btn" href="#"&gt;&lt;i class="icon-align-right"&gt;&lt;/i&gt;&lt;/a&gt;
+ &lt;a class="btn" href="#"&gt;&lt;i class="icon-align-justify"&gt;&lt;/i&gt;&lt;/a&gt;
+ &lt;/div&gt;
+&lt;/div&gt;
+</pre>
+
+ <h5>{{_i}}Dropdown in a button group{{/i}}</h5>
+ <div class="bs-docs-example">
+ <div class="btn-group">
+ <a class="btn btn-primary" href="#"><i class="icon-user icon-white"></i> {{_i}}User{{/i}}</a>
+ <a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
+ <ul class="dropdown-menu">
+ <li><a href="#"><i class="icon-pencil"></i> {{_i}}Edit{{/i}}</a></li>
+ <li><a href="#"><i class="icon-trash"></i> {{_i}}Delete{{/i}}</a></li>
+ <li><a href="#"><i class="icon-ban-circle"></i> {{_i}}Ban{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#"><i class="i"></i> {{_i}}Make admin{{/i}}</a></li>
+ </ul>
+ </div>
+ </div>{{! /bs-docs-example }}
+<pre class="prettyprint linenums">
+&lt;div class="btn-group"&gt;
+ &lt;a class="btn btn-primary" href="#"&gt;&lt;i class="icon-user icon-white"&gt;&lt;/i&gt; {{_i}}User{{/i}}&lt;/a&gt;
+ &lt;a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#"&gt;&lt;span class="caret"&gt;&lt;/span&gt;&lt;/a&gt;
+ &lt;ul class="dropdown-menu"&gt;
+ &lt;li&gt;&lt;a href="#"&gt;&lt;i class="icon-pencil"&gt;&lt;/i&gt; {{_i}}Edit{{/i}}&lt;/a&gt;&lt;/li&gt;
+ &lt;li&gt;&lt;a href="#"&gt;&lt;i class="icon-trash"&gt;&lt;/i&gt; {{_i}}Delete{{/i}}&lt;/a&gt;&lt;/li&gt;
+ &lt;li&gt;&lt;a href="#"&gt;&lt;i class="icon-ban-circle"&gt;&lt;/i&gt; {{_i}}Ban{{/i}}&lt;/a&gt;&lt;/li&gt;
+ &lt;li class="divider"&gt;&lt;/li&gt;
+ &lt;li&gt;&lt;a href="#"&gt;&lt;i class="i"&gt;&lt;/i&gt; {{_i}}Make admin{{/i}}&lt;/a&gt;&lt;/li&gt;
+ &lt;/ul&gt;
+&lt;/div&gt;
+</pre>
+
+ <h5>{{_i}}Small button{{/i}}</h5>
+ <div class="bs-docs-example">
+ <a class="btn btn-small" href="#"><i class="icon-star"></i></a>
+ </div>{{! /bs-docs-example }}
+<pre class="prettyprint linenums">
+&lt;a class="btn btn-small" href="#"&gt;&lt;i class="icon-star"&gt;&lt;/i&gt;&lt;/a&gt;
+</pre>
+
+
+ <h4>{{_i}}Navigation{{/i}}</h4>
+ <div class="bs-docs-example">
+ <div class="well" style="padding: 8px 0; margin-bottom: 0;">
+ <ul class="nav nav-list">
+ <li class="active"><a href="#"><i class="icon-home icon-white"></i> {{_i}}Home{{/i}}</a></li>
+ <li><a href="#"><i class="icon-book"></i> {{_i}}Library{{/i}}</a></li>
+ <li><a href="#"><i class="icon-pencil"></i> {{_i}}Applications{{/i}}</a></li>
+ <li><a href="#"><i class="i"></i> {{_i}}Misc{{/i}}</a></li>
+ </ul>
+ </div>{{! /well }}
+ </div>{{! /bs-docs-example }}
+<pre class="prettyprint linenums">
+&lt;ul class="nav nav-list"&gt;
+ &lt;li class="active"&gt;&lt;a href="#"&gt;&lt;i class="icon-home icon-white"&gt;&lt;/i&gt; {{_i}}Home{{/i}}&lt;/a&gt;&lt;/li&gt;
+ &lt;li&gt;&lt;a href="#"&gt;&lt;i class="icon-book"&gt;&lt;/i&gt; {{_i}}Library{{/i}}&lt;/a&gt;&lt;/li&gt;
+ &lt;li&gt;&lt;a href="#"&gt;&lt;i class="icon-pencil"&gt;&lt;/i&gt; {{_i}}Applications{{/i}}&lt;/a&gt;&lt;/li&gt;
+ &lt;li&gt;&lt;a href="#"&gt;&lt;i class="i"&gt;&lt;/i&gt; {{_i}}Misc{{/i}}&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;
+</pre>
+
+ <h4>{{_i}}Form fields{{/i}}</h4>
+ <form class="bs-docs-example form-horizontal">
+ <div class="control-group">
+ <label class="control-label" for="inputIcon">{{_i}}Email address{{/i}}</label>
+ <div class="controls">
+ <div class="input-prepend">
+ <span class="add-on"><i class="icon-envelope"></i></span><input class="span2" id="inputIcon" type="text">
+ </div>
+ </div>
+ </div>
+ </form>
+<pre class="prettyprint linenums">
+&lt;div class="control-group"&gt;
+ &lt;label class="control-label" for="inputIcon"&gt;{{_i}}Email address{{/i}}&lt;/label&gt;
+ &lt;div class="controls"&gt;
+ &lt;div class="input-prepend"&gt;
+ &lt;span class="add-on"&gt;&lt;i class="icon-envelope"&gt;&lt;i&gt;&lt;span&gt;&lt;input class="span2" id="inputIcon" type="text"&gt;
+ &lt;/div&gt;
+&lt;/div&gt;
+</pre>
+
+ </section>
+
+
+
+ </div>{{! /span9 }}
+ </div>{{! row}}
+
+ </div>{{! /.container }}
diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache
index b1f858998..8187ce084 100644
--- a/docs/templates/pages/components.mustache
+++ b/docs/templates/pages/components.mustache
@@ -1,68 +1,154 @@
-<!-- Masthead
+<!-- Subhead
================================================== -->
<header class="jumbotron subhead" id="overview">
- <h1>{{_i}}Components{{/i}}</h1>
- <p class="lead">{{_i}}Dozens of reusable components are built into Bootstrap to provide navigation, alerts, popovers, and much more.{{/i}}</p>
- <div class="subnav">
- <ul class="nav nav-pills">
- <li class="dropdown">
- <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Buttons{{/i}} <b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="#buttonGroups">{{_i}}Button groups{{/i}}</a></li>
- <li><a href="#buttonDropdowns">{{_i}}Button dropdowns{{/i}}</a></li>
- </ul>
- </li>
- <li class="dropdown">
- <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Navigation{{/i}} <b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="#navs">{{_i}}Nav, tabs, pills{{/i}}</a></li>
- <li><a href="#navbar">{{_i}}Navbar{{/i}}</a></li>
- <li><a href="#breadcrumbs">{{_i}}Breadcrumbs{{/i}}</a></li>
- <li><a href="#pagination">{{_i}}Pagination{{/i}}</a></li>
- </ul>
- </li>
- <li><a href="#labels">{{_i}}Labels{{/i}}</a></li>
- <li><a href="#badges">{{_i}}Badges{{/i}}</a></li>
- <li><a href="#typography">{{_i}}Typography{{/i}}</a></li>
- <li><a href="#thumbnails">{{_i}}Thumbnails{{/i}}</a></li>
- <li><a href="#alerts">{{_i}}Alerts{{/i}}</a></li>
- <li><a href="#progress">{{_i}}Progress bars{{/i}}</a></li>
- <li><a href="#misc">{{_i}}Miscellaneous{{/i}}</a></li>
- </ul>
+ <div class="container">
+ <h1>{{_i}}Components{{/i}}</h1>
+ <p class="lead">{{_i}}Dozens of reusable components built to provide navigation, alerts, popovers, and more.{{/i}}</p>
</div>
</header>
-
-<!-- Button Groups
-================================================== -->
-<section id="buttonGroups">
- <div class="page-header">
- <h1>{{_i}}Button groups{{/i}} <small>{{_i}}Join buttons for more toolbar-like functionality{{/i}}</small></h1>
- </div>
- <div class="row">
- <div class="span4">
- <h3>{{_i}}Button groups{{/i}}</h3>
- <p>{{_i}}Use button groups to join multiple buttons together as one composite component. Build them with a series of <code>&lt;a&gt;</code> or <code>&lt;button&gt;</code> elements.{{/i}}</p>
- <h3>{{_i}}Best practices{{/i}}</h3>
- <p>{{_i}}We recommend the following guidelines for using button groups and toolbars:{{/i}}</p>
- <ul>
- <li>{{_i}}Always use the same element in a single button group, <code>&lt;a&gt;</code> or <code>&lt;button&gt;</code>.{{/i}}</li>
- <li>{{_i}}Don't mix buttons of different colors in the same button group.{{/i}}</li>
- <li>{{_i}}Use icons in addition to or instead of text, but be sure include alt and title text where appropriate.{{/i}}</li>
- </ul>
- <p>{{_i}}<span class="label label-info">Related</span> Button groups with dropdowns (see below) should be called out separately and always include a dropdown caret to indicate intended behavior.{{/i}}</p>
- </div>
- <div class="span4">
- <h3>{{_i}}Default example{{/i}}</h3>
- <p>{{_i}}Here's how the HTML looks for a standard button group built with anchor tag buttons:{{/i}}</p>
- <div class="">
- <div class="btn-group" style="margin: 9px 0;">
- <button class="btn">{{_i}}Left{{/i}}</button>
- <button class="btn">{{_i}}Middle{{/i}}</button>
- <button class="btn">{{_i}}Right{{/i}}</button>
- </div>
+ <div class="container">
+
+ <!-- Docs nav
+ ================================================== -->
+ <div class="row">
+ <div class="span3 bs-docs-sidebar">
+ <ul class="nav nav-list bs-docs-sidenav">
+ <li><a href="#dropdowns"><i class="icon-chevron-right"></i> {{_i}}Dropdowns{{/i}}</a></li>
+ <li><a href="#buttonGroups"><i class="icon-chevron-right"></i> {{_i}}Button groups{{/i}}</a></li>
+ <li><a href="#buttonDropdowns"><i class="icon-chevron-right"></i> {{_i}}Button dropdowns{{/i}}</a></li>
+ <li><a href="#navs"><i class="icon-chevron-right"></i> {{_i}}Navs{{/i}}</a></li>
+ <li><a href="#navbar"><i class="icon-chevron-right"></i> {{_i}}Navbar{{/i}}</a></li>
+ <li><a href="#breadcrumbs"><i class="icon-chevron-right"></i> {{_i}}Breadcrumbs{{/i}}</a></li>
+ <li><a href="#pagination"><i class="icon-chevron-right"></i> {{_i}}Pagination{{/i}}</a></li>
+ <li><a href="#labels-badges"><i class="icon-chevron-right"></i> {{_i}}Labels and badges{{/i}}</a></li>
+ <li><a href="#typography"><i class="icon-chevron-right"></i> {{_i}}Typography{{/i}}</a></li>
+ <li><a href="#thumbnails"><i class="icon-chevron-right"></i> {{_i}}Thumbnails{{/i}}</a></li>
+ <li><a href="#alerts"><i class="icon-chevron-right"></i> {{_i}}Alerts{{/i}}</a></li>
+ <li><a href="#progress"><i class="icon-chevron-right"></i> {{_i}}Progress bars{{/i}}</a></li>
+ <li><a href="#misc"><i class="icon-chevron-right"></i> {{_i}}Misc{{/i}}</a></li>
+ </ul>
</div>
+ <div class="span9">
+
+
+
+ <!-- Dropdowns
+ ================================================== -->
+ <section id="dropdowns">
+ <div class="page-header">
+ <h1>{{_i}}Dropdown menus{{/i}}</h1>
+ </div>
+
+ <h2>{{_i}}Example{{/i}}</h2>
+ <p>{{_i}}Toggleable, contextual menu for displaying lists of links. Made interactive with the <a href="./javascript.html#dropdowns">dropdown javascript plugin</a>.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="dropdown clearfix">
+ <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu" style="display: block; position: static; margin-bottom: 5px; *width: 180px;">
+ <li><a tabindex="-1" href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a tabindex="-1" href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a tabindex="-1" href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a tabindex="-1" href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </div>
+ </div>{{! /example }}
+<pre class="prettyprint linenums">
+&lt;ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu"&gt;
+ &lt;li&gt;&lt;a tabindex="-1" href="#"&gt;{{_i}}Action{{/i}}&lt;/a&gt;&lt;/li&gt;
+ &lt;li&gt;&lt;a tabindex="-1" href="#"&gt;{{_i}}Another action{{/i}}&lt;/a&gt;&lt;/li&gt;
+ &lt;li&gt;&lt;a tabindex="-1" href="#"&gt;{{_i}}Something else here{{/i}}&lt;/a&gt;&lt;/li&gt;
+ &lt;li class="divider"&gt;&lt;/li&gt;
+ &lt;li&gt;&lt;a tabindex="-1" href="#"&gt;{{_i}}Separated link{{/i}}&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;
+</pre>
+
+ <h2>{{_i}}Markup{{/i}}</h2>
+ <p>{{_i}}Looking at just the dropdown menu, here's the required HTML. You need to wrap the dropdown's trigger and the dropdown menu within <code>.dropdown</code>, or another element that declares <code>position: relative;</code>. Then just create the menu.{{/i}}</p>
+
+<pre class="prettyprint linenums">
+&lt;div class="dropdown"&gt;
+ &lt;!-- Link or button to toggle dropdown --&gt;
+ &lt;ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"&gt;
+ &lt;li&gt;&lt;a tabindex="-1" href="#"&gt;{{_i}}Action{{/i}}&lt;/a&gt;&lt;/li&gt;
+ &lt;li&gt;&lt;a tabindex="-1" href="#"&gt;{{_i}}Another action{{/i}}&lt;/a&gt;&lt;/li&gt;
+ &lt;li&gt;&lt;a tabindex="-1" href="#"&gt;{{_i}}Something else here{{/i}}&lt;/a&gt;&lt;/li&gt;
+ &lt;li class="divider"&gt;&lt;/li&gt;
+ &lt;li&gt;&lt;a tabindex="-1" href="#"&gt;{{_i}}Separated link{{/i}}&lt;/a&gt;&lt;/li&gt;
+ &lt;/ul&gt;
+&lt;/div&gt;
+</pre>
+
+ <h2>{{_i}}Options{{/i}}</h2>
+ <p>{{_i}}Align menus to the right and add include additional levels of dropdowns.{{/i}}</p>
+
+ <h3>{{_i}}Aligning the menus{{/i}}</h3>
+ <p>{{_i}}Add <code>.pull-right</code> to a <code>.dropdown-menu</code> to right align the dropdown menu.{{/i}}</p>
+<pre class="prettyprint linenums">
+&lt;ul class="dropdown-menu pull-right" role="menu" aria-labelledby="dLabel"&gt;
+ ...
+&lt;/ul&gt;
+</pre>
+
+ <h3>{{_i}}Sub menus on dropdowns{{/i}}</h3>
+ <p>{{_i}}Add an extra level of dropdown menus, appearing on hover like those of OS X, with some simple markup additions. Add <code>.dropdown-submenu</code> to any <code>li</code> in an existing dropdown menu for automatic styling.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="dropdown clearfix">
+ <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu" style="display: block; position: static; margin-bottom: 5px; *width: 180px;">
+ <li><a tabindex="-1" href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a tabindex="-1" href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a tabindex="-1" href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li class="dropdown-submenu">
+ <a tabindex="-1" href="#">{{_i}}More options{{/i}}</a>
+ <ul class="dropdown-menu">
+ <li><a tabindex="-1" href="#">{{_i}}Second level link{{/i}}</a></li>
+ <li><a tabindex="-1" href="#">{{_i}}Second level link{{/i}}</a></li>
+ <li><a tabindex="-1" href="#">{{_i}}Second level link{{/i}}</a></li>
+ <li><a tabindex="-1" href="#">{{_i}}Second level link{{/i}}</a></li>
+ <li><a tabindex="-1" href="#">{{_i}}Second level link{{/i}}</a></li>
+ </ul>
+ </li>
+ </ul>
+ </div>
+ </div>{{! /example }}
+<pre class="prettyprint linenums">
+&lt;ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"&gt;
+ ...
+ &lt;li class="dropdown-submenu"&gt;
+ &lt;a tabindex="-1" href="#"&gt;{{_i}}More options{{/i}}&lt;/a&gt;
+ &lt;ul class="dropdown-menu"&gt;
+ ...
+ &lt;/ul&gt;
+ &lt;/li&gt;
+&lt;/ul&gt;
+</pre>
+
+ </section>
+
+
+
+
+ <!-- Button Groups
+ ================================================== -->
+ <section id="buttonGroups">
+ <div class="page-header">
+ <h1>{{_i}}Button groups{{/i}}</h1>
+ </div>
+
+ <h2>{{_i}}Examples{{/i}}</h2>
+ <p>{{_i}}Two basic options, along with two more specific variations.{{/i}}</p>
+
+ <h3>{{_i}}Single button group{{/i}}</h3>
+ <p>{{_i}}Wrap a series of buttons with <code>.btn</code> in <code>.btn-group</code>.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="btn-group" style="margin: 9px 0 5px;">
+ <button class="btn">{{_i}}Left{{/i}}</button>
+ <button class="btn">{{_i}}Middle{{/i}}</button>
+ <button class="btn">{{_i}}Right{{/i}}</button>
+ </div>
+ </div>
<pre class="prettyprint linenums">
&lt;div class="btn-group"&gt;
&lt;button class="btn"&gt;1&lt;/button&gt;
@@ -70,24 +156,27 @@
&lt;button class="btn"&gt;3&lt;/button&gt;
&lt;/div&gt;
</pre>
- <h3>{{_i}}Toolbar example{{/i}}</h3>
- <p>{{_i}}Combine sets of <code>&lt;div class="btn-group"&gt;</code> into a <code>&lt;div class="btn-toolbar"&gt;</code> for more complex components.{{/i}}</p>
- <div class="btn-toolbar">
- <div class="btn-group">
- <button class="btn">1</button>
- <button class="btn">2</button>
- <button class="btn">3</button>
- <button class="btn">4</button>
- </div>
- <div class="btn-group">
- <button class="btn">5</button>
- <button class="btn">6</button>
- <button class="btn">7</button>
- </div>
- <div class="btn-group">
- <button class="btn">8</button>
- </div>
- </div>
+
+ <h3>{{_i}}Multiple button groups{{/i}}</h3>
+ <p>{{_i}}Combine sets of <code>&lt;div class="btn-group"&gt;</code> into a <code>&lt;div class="btn-toolbar"&gt;</code> for more complex components.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="btn-toolbar" style="margin: 0;">
+ <div class="btn-group">
+ <button class="btn">1</button>
+ <button class="btn">2</button>
+ <button class="btn">3</button>
+ <button class="btn">4</button>
+ </div>
+ <div class="btn-group">
+ <button class="btn">5</button>
+ <button class="btn">6</button>
+ <button class="btn">7</button>
+ </div>
+ <div class="btn-group">
+ <button class="btn">8</button>
+ </div>
+ </div>
+ </div>
<pre class="prettyprint linenums">
&lt;div class="btn-toolbar"&gt;
&lt;div class="btn-group"&gt;
@@ -95,109 +184,120 @@
&lt;/div&gt;
&lt;/div&gt;
</pre>
- </div>
- <div class="span4">
- <h3>{{_i}}Checkbox and radio flavors{{/i}}</h3>
- <p>{{_i}}Button groups can also function as radios, where only one button may be active, or checkboxes, where any number of buttons may be active. View <a href="./javascript.html#buttons">the Javascript docs</a> for that.{{/i}}</p>
- <p><a class="btn js-btn" href="./javascript.html#buttons">{{_i}}Get the javascript &raquo;{{/i}}</a></p>
- <h3>{{_i}}Dropdowns in button groups{{/i}}</h3>
- <p><span class="label label-info">{{_i}}Heads up!{{/i}}</span> {{_i}}Buttons with dropdowns must be individually wrapped in their own <code>.btn-group</code> within a <code>.btn-toolbar</code> for proper rendering.{{/i}}</p>
- </div>
- </div>
-</section>
+ <h3>{{_i}}Vertical button groups{{/i}}</h3>
+ <p>{{_i}}Make a set of buttons appear vertically stacked rather than horizontally.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="btn-group btn-group-vertical">
+ <button type="button" class="btn"><i class="icon-align-left"></i></button>
+ <button type="button" class="btn"><i class="icon-align-center"></i></button>
+ <button type="button" class="btn"><i class="icon-align-right"></i></button>
+ <button type="button" class="btn"><i class="icon-align-justify"></i></button>
+ </div>
+ </div>
+<pre class="prettyprint linenums">
+&lt;div class="btn-group btn-group-vertical"&gt;
+ ...
+&lt;/div&gt;
+</pre>
-<!-- Split button dropdowns
-================================================== -->
-<section id="buttonDropdowns">
- <div class="page-header">
- <h1>{{_i}}Button dropdown menus{{/i}} <small>{{_i}}Built on button groups to provide contextual menus{{/i}}</small></h1>
- </div>
+ <hr class="bs-docs-separator">
- <h2>{{_i}}Button dropdowns{{/i}}</h2>
- <div class="row">
- <div class="span4">
- <h3>{{_i}}Overview and examples{{/i}}</h3>
- <p>{{_i}}Use any button to trigger a dropdown menu by placing it within a <code>.btn-group</code> and providing the proper menu markup.{{/i}}</p>
- <div class="btn-toolbar" style="margin-top: 18px;">
- <div class="btn-group">
- <button class="btn dropdown-toggle" data-toggle="dropdown">{{_i}}Action{{/i}} <span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </div><!-- /btn-group -->
- <div class="btn-group">
- <button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">{{_i}}Action{{/i}} <span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </div><!-- /btn-group -->
- <div class="btn-group">
- <button class="btn btn-danger dropdown-toggle" data-toggle="dropdown">{{_i}}Danger{{/i}} <span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </div><!-- /btn-group -->
- </div>
- <div class="btn-toolbar">
- <div class="btn-group">
- <button class="btn btn-warning dropdown-toggle" data-toggle="dropdown">{{_i}}Warning{{/i}} <span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </div><!-- /btn-group -->
- <div class="btn-group">
- <button class="btn btn-success dropdown-toggle" data-toggle="dropdown">{{_i}}Success{{/i}} <span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </div><!-- /btn-group -->
- <div class="btn-group">
- <button class="btn btn-info dropdown-toggle" data-toggle="dropdown">{{_i}}Info{{/i}} <span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </div><!-- /btn-group -->
- <div class="btn-group">
- <button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown">{{_i}}Inverse{{/i}} <span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </div><!-- /btn-group -->
- </div><!-- /btn-toolbar -->
- </div>
- <div class="span8">
- <h3>{{_i}}Example markup{{/i}}</h3>
- <p>{{_i}}Similar to a button group, our markup uses regular button markup, but with a handful of additions to refine the style and support Bootstrap's dropdown jQuery plugin.{{/i}}</p>
+
+ <h4>{{_i}}Checkbox and radio flavors{{/i}}</h4>
+ <p>{{_i}}Button groups can also function as radios, where only one button may be active, or checkboxes, where any number of buttons may be active. View <a href="./javascript.html#buttons">the Javascript docs</a> for that.{{/i}}</p>
+
+ <h4>{{_i}}Dropdowns in button groups{{/i}}</h4>
+ <p><span class="label label-info">{{_i}}Heads up!{{/i}}</span> {{_i}}Buttons with dropdowns must be individually wrapped in their own <code>.btn-group</code> within a <code>.btn-toolbar</code> for proper rendering.{{/i}}</p>
+ </section>
+
+
+
+ <!-- Split button dropdowns
+ ================================================== -->
+ <section id="buttonDropdowns">
+ <div class="page-header">
+ <h1>{{_i}}Button dropdown menus{{/i}}</h1>
+ </div>
+
+
+ <h2>{{_i}}Overview and examples{{/i}}</h2>
+ <p>{{_i}}Use any button to trigger a dropdown menu by placing it within a <code>.btn-group</code> and providing the proper menu markup.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="btn-toolbar" style="margin: 0;">
+ <div class="btn-group">
+ <button class="btn dropdown-toggle" data-toggle="dropdown">{{_i}}Action{{/i}} <span class="caret"></span></button>
+ <ul class="dropdown-menu">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </div><!-- /btn-group -->
+ <div class="btn-group">
+ <button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">{{_i}}Action{{/i}} <span class="caret"></span></button>
+ <ul class="dropdown-menu">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </div><!-- /btn-group -->
+ <div class="btn-group">
+ <button class="btn btn-danger dropdown-toggle" data-toggle="dropdown">{{_i}}Danger{{/i}} <span class="caret"></span></button>
+ <ul class="dropdown-menu">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </div><!-- /btn-group -->
+ <div class="btn-group">
+ <button class="btn btn-warning dropdown-toggle" data-toggle="dropdown">{{_i}}Warning{{/i}} <span class="caret"></span></button>
+ <ul class="dropdown-menu">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </div><!-- /btn-group -->
+ <div class="btn-group">
+ <button class="btn btn-success dropdown-toggle" data-toggle="dropdown">{{_i}}Success{{/i}} <span class="caret"></span></button>
+ <ul class="dropdown-menu">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </div><!-- /btn-group -->
+ <div class="btn-group">
+ <button class="btn btn-info dropdown-toggle" data-toggle="dropdown">{{_i}}Info{{/i}} <span class="caret"></span></button>
+ <ul class="dropdown-menu">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </div><!-- /btn-group -->
+ <div class="btn-group">
+ <button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown">{{_i}}Inverse{{/i}} <span class="caret"></span></button>
+ <ul class="dropdown-menu">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </div><!-- /btn-group -->
+ </div><!-- /btn-toolbar -->
+ </div>{{! /example }}
<pre class="prettyprint linenums">
&lt;div class="btn-group"&gt;
&lt;a class="btn dropdown-toggle" data-toggle="dropdown" href="#"&gt;
@@ -209,198 +309,194 @@
&lt;/ul&gt;
&lt;/div&gt;
</pre>
- </div>
- </div>
- <div class="row">
- <div class="span4">
- <h3>{{_i}}Works with all button sizes{{/i}}</h3>
- <p>{{_i}}Button dropdowns work at any size. your button sizes to <code>.btn-large</code>, <code>.btn-small</code>, or <code>.btn-mini</code>.{{/i}}</p>
- <div class="btn-toolbar" style="margin-top: 18px;">
- <div class="btn-group">
- <button class="btn btn-large dropdown-toggle" data-toggle="dropdown">{{_i}}Large button{{/i}} <span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </div><!-- /btn-group -->
- <div class="btn-group">
- <button class="btn btn-small dropdown-toggle" data-toggle="dropdown">{{_i}}Small button{{/i}} <span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </div><!-- /btn-group -->
- <div class="btn-group">
- <button class="btn btn-mini dropdown-toggle" data-toggle="dropdown">{{_i}}Mini button{{/i}} <span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </div><!-- /btn-group -->
- </div><!-- /btn-toolbar -->
- </div><!--/span-->
- <div class="span4">
- <h3>{{_i}}Requires javascript{{/i}}</h3>
- <p>{{_i}}Button dropdowns require the <a href="./javascript.html#dropdowns">Bootstrap dropdown plugin</a> to function.{{/i}}</p>
- <p>{{_i}}In some cases&mdash;like mobile&mdash;dropdown menus will extend outside the viewport. You need to resolve the alignment manually or with custom javascript.{{/i}}</p>
- </div><!--/span-->
- </div><!--/row-->
- <br>
-
- <h2>{{_i}}Split button dropdowns{{/i}}</h2>
- <div class="row">
- <div class="span4">
- <h3>{{_i}}Overview and examples{{/i}}</h3>
- <p>{{_i}}Building on the button group styles and markup, we can easily create a split button. Split buttons feature a standard action on the left and a dropdown toggle on the right with contextual links.{{/i}}</p>
- <div class="btn-toolbar" style="margin-top: 18px;">
- <div class="btn-group">
- <button class="btn">{{_i}}Action{{/i}}</button>
- <button class="btn dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </div><!-- /btn-group -->
- <div class="btn-group">
- <button class="btn btn-primary">{{_i}}Action{{/i}}</button>
- <button class="btn btn-primary dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </div><!-- /btn-group -->
- <div class="btn-group">
- <button class="btn btn-danger">{{_i}}Danger{{/i}}</button>
- <button class="btn btn-danger dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </div><!-- /btn-group -->
- </div>
- <div class="btn-toolbar">
- <div class="btn-group">
- <button class="btn btn-warning">{{_i}}Warning{{/i}}</button>
- <button class="btn btn-warning dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </div><!-- /btn-group -->
- <div class="btn-group">
- <button class="btn btn-success">{{_i}}Success{{/i}}</button>
- <button class="btn btn-success dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </div><!-- /btn-group -->
- <div class="btn-group">
- <button class="btn btn-info">{{_i}}Info{{/i}}</button>
- <button class="btn btn-info dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </div><!-- /btn-group -->
- </div>
- <div class="btn-toolbar">
- <div class="btn-group">
- <button class="btn btn-inverse">{{_i}}Inverse{{/i}}</button>
- <button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </div><!-- /btn-group -->
- </div><!-- /btn-toolbar -->
- <h3>{{_i}}Sizes{{/i}}</h3>
- <p>{{_i}}Utilize the extra button classes <code>.btn-mini</code>, <code>.btn-small</code>, or <code>.btn-large</code> for sizing.{{/i}}</p>
- <div class="btn-toolbar">
- <div class="btn-group">
- <button class="btn btn-large">{{_i}}Large action{{/i}}</button>
- <button class="btn btn-large dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </div><!-- /btn-group -->
- </div><!-- /btn-toolbar -->
- <div class="btn-toolbar">
- <div class="btn-group">
- <button class="btn btn-small">{{_i}}Small action{{/i}}</button>
- <button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </div><!-- /btn-group -->
- </div><!-- /btn-toolbar -->
- <div class="btn-toolbar">
- <div class="btn-group">
- <button class="btn btn-mini">{{_i}}Mini action{{/i}}</button>
- <button class="btn btn-mini dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </div><!-- /btn-group -->
- </div><!-- /btn-toolbar -->
+
+ <h3>{{_i}}Works with all button sizes{{/i}}</h3>
+ <p>{{_i}}Button dropdowns work at any size: <code>.btn-large</code>, <code>.btn-small</code>, or <code>.btn-mini</code>.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="btn-toolbar" style="margin: 0;">
+ <div class="btn-group">
+ <button class="btn btn-large dropdown-toggle" data-toggle="dropdown">{{_i}}Large button{{/i}} <span class="caret"></span></button>
+ <ul class="dropdown-menu">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </div><!-- /btn-group -->
+ <div class="btn-group">
+ <button class="btn btn-small dropdown-toggle" data-toggle="dropdown">{{_i}}Small button{{/i}} <span class="caret"></span></button>
+ <ul class="dropdown-menu">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </div><!-- /btn-group -->
+ <div class="btn-group">
+ <button class="btn btn-mini dropdown-toggle" data-toggle="dropdown">{{_i}}Mini button{{/i}} <span class="caret"></span></button>
+ <ul class="dropdown-menu">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </div><!-- /btn-group -->
+ </div><!-- /btn-toolbar -->
+ </div>{{! /example }}
+
+ <h3>{{_i}}Requires javascript{{/i}}</h3>
+ <p>{{_i}}Button dropdowns require the <a href="./javascript.html#dropdowns">Bootstrap dropdown plugin</a> to function.{{/i}}</p>
+ <p>{{_i}}In some cases&mdash;like mobile&mdash;dropdown menus will extend outside the viewport. You need to resolve the alignment manually or with custom javascript.{{/i}}</p>
+
+
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Split button dropdowns{{/i}}</h2>
+ <p>{{_i}}Building on the button group styles and markup, we can easily create a split button. Split buttons feature a standard action on the left and a dropdown toggle on the right with contextual links.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="btn-toolbar" style="margin: 0;">
+ <div class="btn-group">
+ <button class="btn">{{_i}}Action{{/i}}</button>
+ <button class="btn dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
+ <ul class="dropdown-menu">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </div><!-- /btn-group -->
+ <div class="btn-group">
+ <button class="btn btn-primary">{{_i}}Action{{/i}}</button>
+ <button class="btn btn-primary dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
+ <ul class="dropdown-menu">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </div><!-- /btn-group -->
+ <div class="btn-group">
+ <button class="btn btn-danger">{{_i}}Danger{{/i}}</button>
+ <button class="btn btn-danger dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
+ <ul class="dropdown-menu">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </div><!-- /btn-group -->
+ <div class="btn-group">
+ <button class="btn btn-warning">{{_i}}Warning{{/i}}</button>
+ <button class="btn btn-warning dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
+ <ul class="dropdown-menu">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </div><!-- /btn-group -->
+ <div class="btn-group">
+ <button class="btn btn-success">{{_i}}Success{{/i}}</button>
+ <button class="btn btn-success dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
+ <ul class="dropdown-menu">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </div><!-- /btn-group -->
+ <div class="btn-group">
+ <button class="btn btn-info">{{_i}}Info{{/i}}</button>
+ <button class="btn btn-info dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
+ <ul class="dropdown-menu">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </div><!-- /btn-group -->
+ <div class="btn-group">
+ <button class="btn btn-inverse">{{_i}}Inverse{{/i}}</button>
+ <button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
+ <ul class="dropdown-menu">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </div><!-- /btn-group -->
+ </div><!-- /btn-toolbar -->
+ </div>{{! /example }}
<pre class="prettyprint linenums">
&lt;div class="btn-group"&gt;
- ...
- &lt;ul class="dropdown-menu pull-right"&gt;
+ &lt;button class="btn"&gt;{{_i}}Action{{/i}}&lt;/button&gt;
+ &lt;button class="btn dropdown-toggle" data-toggle="dropdown"&gt;
+ &lt;span class="caret"&gt;&lt;/span&gt;
+ &lt;/button&gt;
+ &lt;ul class="dropdown-menu"&gt;
&lt;!-- {{_i}}dropdown menu links{{/i}} --&gt;
&lt;/ul&gt;
&lt;/div&gt;
</pre>
- </div>
- <div class="span8">
- <h3>{{_i}}Example markup{{/i}}</h3>
- <p>{{_i}}We expand on the normal button dropdowns to provide a second button action that operates as a separate dropdown trigger.{{/i}}</p>
+
+ <h3>{{_i}}Sizes{{/i}}</h3>
+ <p>{{_i}}Utilize the extra button classes <code>.btn-mini</code>, <code>.btn-small</code>, or <code>.btn-large</code> for sizing.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="btn-toolbar">
+ <div class="btn-group">
+ <button class="btn btn-large">{{_i}}Large action{{/i}}</button>
+ <button class="btn btn-large dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
+ <ul class="dropdown-menu">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </div><!-- /btn-group -->
+ </div><!-- /btn-toolbar -->
+ <div class="btn-toolbar">
+ <div class="btn-group">
+ <button class="btn btn-small">{{_i}}Small action{{/i}}</button>
+ <button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
+ <ul class="dropdown-menu">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </div><!-- /btn-group -->
+ </div><!-- /btn-toolbar -->
+ <div class="btn-toolbar">
+ <div class="btn-group">
+ <button class="btn btn-mini">{{_i}}Mini action{{/i}}</button>
+ <button class="btn btn-mini dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
+ <ul class="dropdown-menu">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </div><!-- /btn-group -->
+ </div><!-- /btn-toolbar -->
+ </div>{{! /example }}
<pre class="prettyprint linenums">
&lt;div class="btn-group"&gt;
- &lt;button class="btn"&gt;{{_i}}Action{{/i}}&lt;/button&gt;
- &lt;button class="btn dropdown-toggle" data-toggle="dropdown"&gt;
+ &lt;button class="btn btn-mini"&gt;{{_i}}Action{{/i}}&lt;/button&gt;
+ &lt;button class="btn btn-mini dropdown-toggle" data-toggle="dropdown"&gt;
&lt;span class="caret"&gt;&lt;/span&gt;
&lt;/button&gt;
&lt;ul class="dropdown-menu"&gt;
@@ -408,32 +504,35 @@
&lt;/ul&gt;
&lt;/div&gt;
</pre>
- <h3>{{_i}}Dropup menus{{/i}}</h3>
- <p>{{_i}}Dropdown menus can also be toggled from the bottom up by adding a single class to the immediate parent of <code>.dropdown-menu</code>. It will flip the direction of the <code>.caret</code> and reposition the menu itself to move from the bottom up instead of top down.{{/i}}</p>
- <div class="btn-toolbar" style="margin-top: 9px;">
- <div class="btn-group dropup">
- <button class="btn">{{_i}}Dropup{{/i}}</button>
- <button class="btn dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </div><!-- /btn-group -->
- <div class="btn-group dropup">
- <button class="btn primary">{{_i}}Right dropup{{/i}}</button>
- <button class="btn primary dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
- <ul class="dropdown-menu pull-right">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </div><!-- /btn-group -->
- </div>
+
+ <h3>{{_i}}Dropup menus{{/i}}</h3>
+ <p>{{_i}}Dropdown menus can also be toggled from the bottom up by adding a single class to the immediate parent of <code>.dropdown-menu</code>. It will flip the direction of the <code>.caret</code> and reposition the menu itself to move from the bottom up instead of top down.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="btn-toolbar" style="margin: 0;">
+ <div class="btn-group dropup">
+ <button class="btn">{{_i}}Dropup{{/i}}</button>
+ <button class="btn dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
+ <ul class="dropdown-menu">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </div><!-- /btn-group -->
+ <div class="btn-group dropup">
+ <button class="btn primary">{{_i}}Right dropup{{/i}}</button>
+ <button class="btn primary dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
+ <ul class="dropdown-menu pull-right">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </div><!-- /btn-group -->
+ </div>
+ </div>{{! /example }}
<pre class="prettyprint linenums">
&lt;div class="btn-group dropup"&gt;
&lt;button class="btn"&gt;{{_i}}Dropup{{/i}}&lt;/button&gt;
@@ -446,37 +545,29 @@
&lt;/div&gt;
</pre>
- </div>
- </div>
-</section>
+ </section>
-<!-- Nav, Tabs, & Pills
-================================================== -->
-<section id="navs">
- <div class="page-header">
- <h1>{{_i}}Nav, tabs, and pills{{/i}} <small>{{_i}}Highly customizable list-style navigation{{/i}}</small></h1>
- </div>
+ <!-- Nav, Tabs, & Pills
+ ================================================== -->
+ <section id="navs">
+ <div class="page-header">
+ <h1>{{_i}}Nav: tabs, pills, and lists{{/i}}</small></h1>
+ </div>
- <h2>{{_i}}Lightweight defaults{{/i}} <small>{{_i}}Same markup, different classes{{/i}}</small></h2>
- <div class="row">
- <div class="span4">
- <h3>{{_i}}Powerful base class{{/i}}</h3>
- <p>{{_i}}All nav components here&mdash;tabs, pills, and lists&mdash;<strong>share the same base markup and styles</strong> through the <code>.nav</code> class.{{/i}}</p>
- <h3>{{_i}}When to use{{/i}}</h3>
- <p>{{_i}}Tabs and pills are great for sections of content or navigating between pages of related content.{{/i}}</p>
- <h3>{{_i}}Component alignment{{/i}}</h3>
- <p>{{_i}}To align nav links, use the <code>.pull-left</code> or <code>.pull-right</code> utility classes. Both classes will add a CSS float in the specified direction.{{/i}}</p>
- </div>
- <div class="span4">
- <h3>{{_i}}Basic tabs{{/i}}</h3>
- <p>{{_i}}Take a regular <code>&lt;ul&gt;</code> of links and add <code>.nav-tabs</code>:{{/i}}</p>
- <ul class="nav nav-tabs">
- <li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
- <li><a href="#">{{_i}}Profile{{/i}}</a></li>
- <li><a href="#">{{_i}}Messages{{/i}}</a></li>
- </ul>
+ <h2>{{_i}}Lightweight defaults{{/i}} <small>{{_i}}Same markup, different classes{{/i}}</small></h2>
+ <p>{{_i}}All nav components here&mdash;tabs, pills, and lists&mdash;<strong>share the same base markup and styles</strong> through the <code>.nav</code> class.{{/i}}</p>
+
+ <h3>{{_i}}Basic tabs{{/i}}</h3>
+ <p>{{_i}}Take a regular <code>&lt;ul&gt;</code> of links and add <code>.nav-tabs</code>:{{/i}}</p>
+ <div class="bs-docs-example">
+ <ul class="nav nav-tabs">
+ <li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
+ <li><a href="#">{{_i}}Profile{{/i}}</a></li>
+ <li><a href="#">{{_i}}Messages{{/i}}</a></li>
+ </ul>
+ </div>
<pre class="prettyprint linenums">
&lt;ul class="nav nav-tabs"&gt;
&lt;li class="active"&gt;
@@ -486,15 +577,16 @@
&lt;li&gt;&lt;a href="#"&gt;...&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</pre>
- </div>
- <div class="span4">
- <h3>{{_i}}Basic pills{{/i}}</h3>
- <p>{{_i}}Take that same HTML, but use <code>.nav-pills</code> instead:{{/i}}</p>
- <ul class="nav nav-pills">
- <li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
- <li><a href="#">{{_i}}Profile{{/i}}</a></li>
- <li><a href="#">{{_i}}Messages{{/i}}</a></li>
- </ul>
+
+ <h3>{{_i}}Basic pills{{/i}}</h3>
+ <p>{{_i}}Take that same HTML, but use <code>.nav-pills</code> instead:{{/i}}</p>
+ <div class="bs-docs-example">
+ <ul class="nav nav-pills">
+ <li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
+ <li><a href="#">{{_i}}Profile{{/i}}</a></li>
+ <li><a href="#">{{_i}}Messages{{/i}}</a></li>
+ </ul>
+ </div>
<pre class="prettyprint linenums">
&lt;ul class="nav nav-pills"&gt;
&lt;li class="active"&gt;
@@ -504,66 +596,86 @@
&lt;li&gt;&lt;a href="#"&gt;...&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</pre>
- </div>
- </div>
- <h2>{{_i}}Stackable{{/i}} <small>{{_i}}Make tabs or pills vertical{{/i}}</small></h2>
- <div class="row">
- <div class="span4">
- <h3>{{_i}}How to stack 'em{{/i}}</h3>
- <p>{{_i}}As tabs and pills are horizontal by default, just add a second class, <code>.nav-stacked</code>, to make them appear vertically stacked.{{/i}}</p>
- </div>
- <div class="span4">
- <h3>{{_i}}Stacked tabs{{/i}}</h3>
- <ul class="nav nav-tabs nav-stacked">
- <li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
- <li><a href="#">{{_i}}Profile{{/i}}</a></li>
- <li><a href="#">{{_i}}Messages{{/i}}</a></li>
- </ul>
+ <h3>{{_i}}Disabled state{{/i}}</h3>
+ <p>{{_i}}For any nav component (tabs, pills, or list), add <code>.disabled</code> for <strong>gray links and no hover effects</strong>. Links will remain clickable, however, unless custom javascript is implemented to prevent those clicks.{{/i}}</p>
+ <div class="bs-docs-example">
+ <ul class="nav nav-pills">
+ <li><a href="#">{{_i}}Clickable link{{/i}}</a></li>
+ <li><a href="#">{{_i}}Clickable link{{/i}}</a></li>
+ <li class="disabled"><a href="#">{{_i}}Disabled link{{/i}}</a></li>
+ </ul>
+ </div>
+<pre class="prettyprint linenums">
+&lt;ul class="nav nav-pills"&gt;
+ ...
+ &lt;li class="disabled"&gt;&lt;a href="#"&gt;{{_i}}Home{{/i}}&lt;/a&gt;&lt;/li&gt;
+ ...
+&lt;/ul&gt;
+</pre>
+
+ <h3>{{_i}}Component alignment{{/i}}</h3>
+ <p>{{_i}}To align nav links, use the <code>.pull-left</code> or <code>.pull-right</code> utility classes. Both classes will add a CSS float in the specified direction.{{/i}}</p>
+
+
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Stackable{{/i}}</h2>
+ <p>{{_i}}As tabs and pills are horizontal by default, just add a second class, <code>.nav-stacked</code>, to make them appear vertically stacked.{{/i}}</p>
+
+ <h3>{{_i}}Stacked tabs{{/i}}</h3>
+ <div class="bs-docs-example">
+ <ul class="nav nav-tabs nav-stacked">
+ <li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
+ <li><a href="#">{{_i}}Profile{{/i}}</a></li>
+ <li><a href="#">{{_i}}Messages{{/i}}</a></li>
+ </ul>
+ </div>
<pre class="prettyprint linenums">
&lt;ul class="nav nav-tabs nav-stacked"&gt;
...
&lt;/ul&gt;
</pre>
- </div>
- <div class="span4">
- <h3>{{_i}}Stacked pills{{/i}}</h3>
- <ul class="nav nav-pills nav-stacked">
- <li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
- <li><a href="#">{{_i}}Profile{{/i}}</a></li>
- <li><a href="#">{{_i}}Messages{{/i}}</a></li>
- </ul>
+
+ <h3>{{_i}}Stacked pills{{/i}}</h3>
+ <div class="bs-docs-example">
+ <ul class="nav nav-pills nav-stacked">
+ <li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
+ <li><a href="#">{{_i}}Profile{{/i}}</a></li>
+ <li><a href="#">{{_i}}Messages{{/i}}</a></li>
+ </ul>
+ </div>
<pre class="prettyprint linenums">
&lt;ul class="nav nav-pills nav-stacked"&gt;
...
&lt;/ul&gt;
</pre>
- </div>
- </div>
- <h2>{{_i}}Dropdowns{{/i}} <small>{{_i}}For advanced nav components{{/i}}</small></h2>
- <div class="row">
- <div class="span4">
- <h3>{{_i}}Rich menus made easy{{/i}}</h3>
- <p>{{_i}}Dropdown menus in Bootstrap tabs and pills are super easy and require only a little extra HTML and a lightweight jQuery plugin.{{/i}}</p>
- <p>{{_i}}Head over to the Javascript page to read the docs on <a href="./javascript.html#tabs">initializing dropdowns</a> in Bootstrap.{{/i}}</p>
- </div>
- <div class="span4">
- <h3>{{_i}}Tabs with dropdowns{{/i}}</h3>
- <ul class="nav nav-tabs">
- <li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
- <li><a href="#">{{_i}}Help{{/i}}</a></li>
- <li class="dropdown">
- <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </li>
- </ul>
+
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Dropdowns{{/i}}</h2>
+ <p>{{_i}}Add dropdown menus with a little extra HTML and the <a href="./javascript.html#dropdowns">dropdowns javascript plugin</a>.{{/i}}</p>
+
+ <h3>{{_i}}Tabs with dropdowns{{/i}}</h3>
+ <div class="bs-docs-example">
+ <ul class="nav nav-tabs">
+ <li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
+ <li><a href="#">{{_i}}Help{{/i}}</a></li>
+ <li class="dropdown">
+ <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </li>
+ </ul>
+ </div>
<pre class="prettyprint linenums">
&lt;ul class="nav nav-tabs"&gt;
&lt;li class="dropdown"&gt;
@@ -579,23 +691,24 @@
&lt;/li&gt;
&lt;/ul&gt;
</pre>
- </div>
- <div class="span4">
- <h3>{{_i}}Pills with dropdowns{{/i}}</h3>
- <ul class="nav nav-pills">
- <li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
- <li><a href="#">{{_i}}Help{{/i}}</a></li>
- <li class="dropdown">
- <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </li>
- </ul>
+
+ <h3>{{_i}}Pills with dropdowns{{/i}}</h3>
+ <div class="bs-docs-example">
+ <ul class="nav nav-pills">
+ <li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
+ <li><a href="#">{{_i}}Help{{/i}}</a></li>
+ <li class="dropdown">
+ <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </li>
+ </ul>
+ </div>{{! /example }}
<pre class="prettyprint linenums">
&lt;ul class="nav nav-pills"&gt;
&lt;li class="dropdown"&gt;
@@ -611,130 +724,83 @@
&lt;/li&gt;
&lt;/ul&gt;
</pre>
- </div>
- </div>
- <h2>{{_i}}Nav lists{{/i}} <small>{{_i}}Build simple stacked navs, great for sidebars{{/i}}</small></h2>
- <div class="row">
- <div class="span4">
- <h3>{{_i}}Application-style navigation{{/i}}</h3>
- <p>{{_i}}Nav lists provide a simple and easy way to build groups of nav links with optional headers. They're best used in sidebars like the Finder in OS X.{{/i}}</p>
- <p>{{_i}}Structurally, they're built on the same core nav styles as tabs and pills, so usage and customization are straightforward.{{/i}}</p>
- <hr>
- <h4>{{_i}}With icons{{/i}}</h4>
- <p>{{_i}}Nav lists are also easy to equip with icons. Add the proper <code>&lt;i&gt;</code> tag with class and you're set.{{/i}}</p>
- <h4>{{_i}}Horizontal dividers{{/i}}</h4>
- <p>{{_i}}Add a horizontal divider by creating an empty list item with the class <code>.divider</code>, like so:{{/i}}</p>
+
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Nav lists{{/i}}</h2>
+ <p>{{_i}}A simple and easy way to build groups of nav links with optional headers. They're best used in sidebars like the Finder in OS X.{{/i}}</p>
+
+ <h3>{{_i}}Example nav list{{/i}}</h3>
+ <p>{{_i}}Take a list of links and add <code>class="nav nav-list"</code>:{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="well" style="max-width: 340px; padding: 8px 0;">
+ <ul class="nav nav-list">
+ <li class="nav-header">{{_i}}List header{{/i}}</li>
+ <li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
+ <li><a href="#">{{_i}}Library{{/i}}</a></li>
+ <li><a href="#">{{_i}}Applications{{/i}}</a></li>
+ <li class="nav-header">{{_i}}Another list header{{/i}}</li>
+ <li><a href="#">{{_i}}Profile{{/i}}</a></li>
+ <li><a href="#">{{_i}}Settings{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#">{{_i}}Help{{/i}}</a></li>
+ </ul>
+ </div> <!-- /well -->
+ </div>{{! /example }}
<pre class="prettyprint linenums">
&lt;ul class="nav nav-list"&gt;
- ...
- &lt;li class="divider"&gt;&lt;/li&gt;
+ &lt;li class="nav-header"&gt;{{_i}}List header{{/i}}&lt;/li&gt;
+ &lt;li class="active"&gt;&lt;a href="#"&gt;{{_i}}Home{{/i}}&lt;/a&gt;&lt;/li&gt;
+ &lt;li&gt;&lt;a href="#"&gt;{{_i}}Library{{/i}}&lt;/a&gt;&lt;/li&gt;
...
&lt;/ul&gt;
</pre>
- </div>
- <div class="span4">
- <h3>{{_i}}Example nav list{{/i}}</h3>
- <p>{{_i}}Take a list of links and add <code>class="nav nav-list"</code>:{{/i}}</p>
- <div class="well" style="padding: 8px 0;">
- <ul class="nav nav-list">
- <li class="nav-header">{{_i}}List header{{/i}}</li>
- <li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
- <li><a href="#">{{_i}}Library{{/i}}</a></li>
- <li><a href="#">{{_i}}Applications{{/i}}</a></li>
- <li class="nav-header">{{_i}}Another list header{{/i}}</li>
- <li><a href="#">{{_i}}Profile{{/i}}</a></li>
- <li><a href="#">{{_i}}Settings{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Help{{/i}}</a></li>
- </ul>
- </div> <!-- /well -->
-<pre class="prettyprint linenums">
-&lt;ul class="nav nav-list"&gt;
- &lt;li class="nav-header"&gt;
- {{_i}}List header{{/i}}
- &lt;/li&gt;
- &lt;li class="active"&gt;
- &lt;a href="#"&gt;{{_i}}Home{{/i}}&lt;/a&gt;
- &lt;/li&gt;
- &lt;li&gt;
- &lt;a href="#"&gt;{{_i}}Library{{/i}}&lt;/a&gt;
- &lt;/li&gt;
- ...
-&lt;/ul&gt;
-</pre>
- </div>
- <div class="span4">
- <h3>{{_i}}Example with icons{{/i}}</h3>
- <p>{{_i}}Same example, but with <code>&lt;i&gt;</code> tags for icons.{{/i}}</p>
- <div class="well" style="padding: 8px 0;">
- <ul class="nav nav-list">
- <li class="nav-header">{{_i}}List header{{/i}}</li>
- <li class="active"><a href="#"><i class="icon-white icon-home"></i> {{_i}}Home{{/i}}</a></li>
- <li><a href="#"><i class="icon-book"></i> {{_i}}Library{{/i}}</a></li>
- <li><a href="#"><i class="icon-pencil"></i> {{_i}}Applications{{/i}}</a></li>
- <li class="nav-header">{{_i}}Another list header{{/i}}</li>
- <li><a href="#"><i class="icon-user"></i> {{_i}}Profile{{/i}}</a></li>
- <li><a href="#"><i class="icon-cog"></i> {{_i}}Settings{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#"><i class="icon-flag"></i> {{_i}}Help{{/i}}</a></li>
- </ul>
- </div> <!-- /well -->
+ <p>
+ <span class="label label-info">{{_i}}Note{{/i}}</span>
+ {{_i}}For nesting within a nav list, include <code>class="nav nav-list"</code> on any nested <code>&lt;ul&gt;</code>.{{/i}}
+ </p>
+
+ <h3>{{_i}}Horizontal dividers{{/i}}</h3>
+ <p>{{_i}}Add a horizontal divider by creating an empty list item with the class <code>.divider</code>, like so:{{/i}}</p>
<pre class="prettyprint linenums">
&lt;ul class="nav nav-list"&gt;
...
- &lt;li&gt;
- &lt;a href="#"&gt;
- &lt;i class="icon-book"&gt;&lt;/i&gt;
- {{_i}}Library{{/i}}
- &lt;/a&gt;
- &lt;/li&gt;
+ &lt;li class="divider"&gt;&lt;/li&gt;
...
&lt;/ul&gt;
</pre>
- </div>
- </div>
- <h2>{{_i}}Tabbable nav{{/i}} <small>{{_i}}Bring tabs to life via javascript{{/i}}</small></h2>
- <div class="row">
- <div class="span4">
- <h3>{{_i}}What's included{{/i}}</h3>
- <p>{{_i}}Bring your tabs to life with a simple plugin to toggle between content via tabs. Bootstrap integrates tabbable tabs in four styles: top (default), right, bottom, and left.{{/i}}</p>
- <p>{{_i}}Changing between them is easy and only requires changing very little markup.{{/i}}</p>
- <hr>
- <h4>{{_i}}Fade in tabs{{/i}}</h4>
- <p>{{_i}}To make tabs fade in, add <code>.fade</code> to each <code>.tab-pane</code>.{{/i}}</p>
- <hr>
- <h4>{{_i}}Requires jQuery plugin{{/i}}</h4>
- <p>{{_i}}All tabbable tabs are powered by our lightweight jQuery plugin. Read more about how to bring tabbable tabs to life <a href="./javascript.html#tabs">on the javascript docs page</a>.{{/i}}</p>
- <p><a class="btn" href="./javascript.html#tabs">{{_i}}Get the javascript &rarr;{{/i}}</a></p>
- </div>
- <div class="span8">
- <h3>{{_i}}Tabbable example{{/i}}</h3>
- <p>{{_i}}To make tabs tabbable, create a <code>.tab-pane</code> with unique ID for every tab and wrap them in <code>.tab-content</code>.{{/i}}</p>
- <div class="tabbable" style="margin-bottom: 18px;">
- <ul class="nav nav-tabs">
- <li class="active"><a href="#tab1" data-toggle="tab">{{_i}}Section 1{{/i}}</a></li>
- <li><a href="#tab2" data-toggle="tab">{{_i}}Section 2{{/i}}</a></li>
- <li><a href="#tab3" data-toggle="tab">{{_i}}Section 3{{/i}}</a></li>
- </ul>
- <div class="tab-content" style="padding-bottom: 9px; border-bottom: 1px solid #ddd;">
- <div class="tab-pane active" id="tab1">
- <p>{{_i}}I'm in Section 1.{{/i}}</p>
- </div>
- <div class="tab-pane" id="tab2">
- <p>{{_i}}Howdy, I'm in Section 2.{{/i}}</p>
- </div>
- <div class="tab-pane" id="tab3">
- <p>{{_i}}What up girl, this is Section 3.{{/i}}</p>
- </div>
- </div>
- </div> <!-- /tabbable -->
- <p>{{_i}}For right or left aligned tabs, wrap the <code>.nav-tabs</code> and <code>.tab-content</code> in <code>.tabbable</code>.{{/i}}</p>
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Tabbable nav{{/i}}</h2>
+ <p>{{_i}}Bring your tabs to life with a simple plugin to toggle between content via tabs. Bootstrap integrates tabbable tabs in four styles: top (default), right, bottom, and left.{{/i}}</p>
- <h3>{{_i}}Straightforward markup{{/i}}</h3>
- <p>{{_i}}Using tabbable tabs requires a wrapping div, a set of tabs, and a set of tabbable panes of content.{{/i}}</p>
+ <h3>{{_i}}Tabbable example{{/i}}</h3>
+ <p>{{_i}}To make tabs tabbable, create a <code>.tab-pane</code> with unique ID for every tab and wrap them in <code>.tab-content</code>.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="tabbable" style="margin-bottom: 18px;">
+ <ul class="nav nav-tabs">
+ <li class="active"><a href="#tab1" data-toggle="tab">{{_i}}Section 1{{/i}}</a></li>
+ <li><a href="#tab2" data-toggle="tab">{{_i}}Section 2{{/i}}</a></li>
+ <li><a href="#tab3" data-toggle="tab">{{_i}}Section 3{{/i}}</a></li>
+ </ul>
+ <div class="tab-content" style="padding-bottom: 9px; border-bottom: 1px solid #ddd;">
+ <div class="tab-pane active" id="tab1">
+ <p>{{_i}}I'm in Section 1.{{/i}}</p>
+ </div>
+ <div class="tab-pane" id="tab2">
+ <p>{{_i}}Howdy, I'm in Section 2.{{/i}}</p>
+ </div>
+ <div class="tab-pane" id="tab3">
+ <p>{{_i}}What up girl, this is Section 3.{{/i}}</p>
+ </div>
+ </div>
+ </div> <!-- /tabbable -->
+ </div>{{! /example }}
<pre class="prettyprint linenums">
&lt;div class="tabbable"&gt; &lt;!-- Only required for left/right tabs --&gt;
&lt;ul class="nav nav-tabs"&gt;
@@ -751,34 +817,38 @@
&lt;/div&gt;
&lt;/div&gt;
</pre>
- </div>
- </div>
-
- <h3>{{_i}}Tabbable in any direction{{/i}}</h3>
- <div class="row">
- <div class="span4">
- <h4>{{_i}}Tabs on the bottom{{/i}}</h4>
- <p>{{_i}}Flip the order of the HTML and add a class to put tabs on the bottom.{{/i}}</p>
- <div class="tabbable tabs-below">
- <div class="tab-content">
- <div class="tab-pane active" id="A">
- <p>{{_i}}I'm in Section A.{{/i}}</p>
- </div>
- <div class="tab-pane" id="B">
- <p>{{_i}}Howdy, I'm in Section B.{{/i}}</p>
- </div>
- <div class="tab-pane" id="C">
- <p>{{_i}}What up girl, this is Section C.{{/i}}</p>
- </div>
- </div>
- <ul class="nav nav-tabs">
- <li class="active"><a href="#A" data-toggle="tab">{{_i}}Section 1{{/i}}</a></li>
- <li><a href="#B" data-toggle="tab">{{_i}}Section 2{{/i}}</a></li>
- <li><a href="#C" data-toggle="tab">{{_i}}Section 3{{/i}}</a></li>
- </ul>
- </div> <!-- /tabbable -->
-<pre class="prettyprint linenums" style="margin-top: 11px;">
+ <h4>{{_i}}Fade in tabs{{/i}}</h4>
+ <p>{{_i}}To make tabs fade in, add <code>.fade</code> to each <code>.tab-pane</code>.{{/i}}</p>
+
+ <h4>{{_i}}Requires jQuery plugin{{/i}}</h4>
+ <p>{{_i}}All tabbable tabs are powered by our lightweight jQuery plugin. Read more about how to bring tabbable tabs to life <a href="./javascript.html#tabs">on the javascript docs page</a>.{{/i}}</p>
+
+ <h3>{{_i}}Tabbable in any direction{{/i}}</h3>
+
+ <h4>{{_i}}Tabs on the bottom{{/i}}</h4>
+ <p>{{_i}}Flip the order of the HTML and add a class to put tabs on the bottom.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="tabbable tabs-below">
+ <div class="tab-content">
+ <div class="tab-pane active" id="A">
+ <p>{{_i}}I'm in Section A.{{/i}}</p>
+ </div>
+ <div class="tab-pane" id="B">
+ <p>{{_i}}Howdy, I'm in Section B.{{/i}}</p>
+ </div>
+ <div class="tab-pane" id="C">
+ <p>{{_i}}What up girl, this is Section C.{{/i}}</p>
+ </div>
+ </div>
+ <ul class="nav nav-tabs">
+ <li class="active"><a href="#A" data-toggle="tab">{{_i}}Section 1{{/i}}</a></li>
+ <li><a href="#B" data-toggle="tab">{{_i}}Section 2{{/i}}</a></li>
+ <li><a href="#C" data-toggle="tab">{{_i}}Section 3{{/i}}</a></li>
+ </ul>
+ </div> <!-- /tabbable -->
+ </div>{{! /example }}
+<pre class="prettyprint linenums">
&lt;div class="tabbable tabs-below"&gt;
&lt;div class="tab-content"&gt;
...
@@ -788,28 +858,29 @@
&lt;/ul&gt;
&lt;/div&gt;
</pre>
- </div>
- <div class="span4">
- <h4>{{_i}}Tabs on the left{{/i}}</h4>
- <p>{{_i}}Swap the class to put tabs on the left.{{/i}}</p>
- <div class="tabbable tabs-left">
- <ul class="nav nav-tabs">
- <li class="active"><a href="#lA" data-toggle="tab">{{_i}}Section 1{{/i}}</a></li>
- <li><a href="#lB" data-toggle="tab">{{_i}}Section 2{{/i}}</a></li>
- <li><a href="#lC" data-toggle="tab">{{_i}}Section 3{{/i}}</a></li>
- </ul>
- <div class="tab-content">
- <div class="tab-pane active" id="lA">
- <p>{{_i}}I'm in Section A.{{/i}}</p>
- </div>
- <div class="tab-pane" id="lB">
- <p>{{_i}}Howdy, I'm in Section B.{{/i}}</p>
- </div>
- <div class="tab-pane" id="lC">
- <p>{{_i}}What up girl, this is Section C.{{/i}}</p>
- </div>
- </div>
- </div> <!-- /tabbable -->
+
+ <h4>{{_i}}Tabs on the left{{/i}}</h4>
+ <p>{{_i}}Swap the class to put tabs on the left.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="tabbable tabs-left">
+ <ul class="nav nav-tabs">
+ <li class="active"><a href="#lA" data-toggle="tab">{{_i}}Section 1{{/i}}</a></li>
+ <li><a href="#lB" data-toggle="tab">{{_i}}Section 2{{/i}}</a></li>
+ <li><a href="#lC" data-toggle="tab">{{_i}}Section 3{{/i}}</a></li>
+ </ul>
+ <div class="tab-content">
+ <div class="tab-pane active" id="lA">
+ <p>{{_i}}I'm in Section A.{{/i}}</p>
+ </div>
+ <div class="tab-pane" id="lB">
+ <p>{{_i}}Howdy, I'm in Section B.{{/i}}</p>
+ </div>
+ <div class="tab-pane" id="lC">
+ <p>{{_i}}What up girl, this is Section C.{{/i}}</p>
+ </div>
+ </div>
+ </div> <!-- /tabbable -->
+ </div>{{! /example }}
<pre class="prettyprint linenums">
&lt;div class="tabbable tabs-left"&gt;
&lt;ul class="nav nav-tabs"&gt;
@@ -820,28 +891,29 @@
&lt;/div&gt;
&lt;/div&gt;
</pre>
- </div>
- <div class="span4">
- <h4>{{_i}}Tabs on the right{{/i}}</h4>
- <p>{{_i}}Swap the class to put tabs on the right.{{/i}}</p>
- <div class="tabbable tabs-right">
- <ul class="nav nav-tabs">
- <li class="active"><a href="#rA" data-toggle="tab">{{_i}}Section 1{{/i}}</a></li>
- <li><a href="#rB" data-toggle="tab">{{_i}}Section 2{{/i}}</a></li>
- <li><a href="#rC" data-toggle="tab">{{_i}}Section 3{{/i}}</a></li>
- </ul>
- <div class="tab-content">
- <div class="tab-pane active" id="rA">
- <p>{{_i}}I'm in Section A.{{/i}}</p>
- </div>
- <div class="tab-pane" id="rB">
- <p>{{_i}}Howdy, I'm in Section B.{{/i}}</p>
- </div>
- <div class="tab-pane" id="rC">
- <p>{{_i}}What up girl, this is Section C.{{/i}}</p>
- </div>
- </div>
- </div> <!-- /tabbable -->
+
+ <h4>{{_i}}Tabs on the right{{/i}}</h4>
+ <p>{{_i}}Swap the class to put tabs on the right.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="tabbable tabs-right">
+ <ul class="nav nav-tabs">
+ <li class="active"><a href="#rA" data-toggle="tab">{{_i}}Section 1{{/i}}</a></li>
+ <li><a href="#rB" data-toggle="tab">{{_i}}Section 2{{/i}}</a></li>
+ <li><a href="#rC" data-toggle="tab">{{_i}}Section 3{{/i}}</a></li>
+ </ul>
+ <div class="tab-content">
+ <div class="tab-pane active" id="rA">
+ <p>{{_i}}I'm in Section A.{{/i}}</p>
+ </div>
+ <div class="tab-pane" id="rB">
+ <p>{{_i}}Howdy, I'm in Section B.{{/i}}</p>
+ </div>
+ <div class="tab-pane" id="rC">
+ <p>{{_i}}What up girl, this is Section C.{{/i}}</p>
+ </div>
+ </div>
+ </div> <!-- /tabbable -->
+ </div>{{! /example }}
<pre class="prettyprint linenums">
&lt;div class="tabbable tabs-right"&gt;
&lt;ul class="nav nav-tabs"&gt;
@@ -852,125 +924,298 @@
&lt;/div&gt;
&lt;/div&gt;
</pre>
- </div>
- </div>
-</section>
+ </section>
-<!-- Navbar
-================================================== -->
-<section id="navbar">
- <div class="page-header">
- <h1>{{_i}}Navbar{{/i}}</h1>
- </div>
- <h2>{{_i}}Static navbar example{{/i}}</h2>
- <p>{{_i}}An example of a static (not fixed to the top) navbar with project name, navigation, and search form.{{/i}}</p>
- <div class="navbar">
- <div class="navbar-inner">
- <div class="container">
- <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </a>
- <a class="brand" href="#">{{_i}}Project name{{/i}}</a>
- <div class="nav-collapse">
- <ul class="nav">
- <li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
- <li><a href="#">{{_i}}Link{{/i}}</a></li>
- <li><a href="#">{{_i}}Link{{/i}}</a></li>
- <li><a href="#">{{_i}}Link{{/i}}</a></li>
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li class="nav-header">Nav header</li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- <li><a href="#">{{_i}}One more separated link{{/i}}</a></li>
- </ul>
- </li>
- </ul>
- <form class="navbar-search pull-left" action="">
- <input type="text" class="search-query span2" placeholder="Search">
- </form>
- <ul class="nav pull-right">
- <li><a href="#">{{_i}}Link{{/i}}</a></li>
- <li class="divider-vertical"></li>
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </li>
- </ul>
- </div><!-- /.nav-collapse -->
- </div>
- </div><!-- /navbar-inner -->
- </div><!-- /navbar -->
+ <!-- Navbar
+ ================================================== -->
+ <section id="navbar">
+ <div class="page-header">
+ <h1>{{_i}}Navbar{{/i}}</h1>
+ </div>
+
- <div class="row">
- <div class="span8">
- <h3>{{_i}}Navbar scaffolding{{/i}}</h3>
- <p>{{_i}}The navbar requires only a few divs to structure it well for static or fixed display.{{/i}}</p>
+ <h2>{{_i}}Basic navbar{{/i}}</h2>
+ <p>{{_i}}To start, navbars are static (not fixed to the top) and include support for a project name and basic navigation. Place one anywhere within a <code>.container</code>, which sets the width of your site and content.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="navbar">
+ <div class="navbar-inner">
+ <a class="brand" href="#">{{_i}}Title{{/i}}</a>
+ <ul class="nav">
+ <li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
+ <li><a href="#">{{_i}}Link{{/i}}</a></li>
+ <li><a href="#">{{_i}}Link{{/i}}</a></li>
+ </ul>
+ </div>
+ </div>
+ </div>{{! /example }}
<pre class="prettyprint linenums">
&lt;div class="navbar"&gt;
&lt;div class="navbar-inner"&gt;
- &lt;div class="container"&gt;
- ...
- &lt;/div&gt;
+ &lt;a class="brand" href="#"&gt;{{_i}}Title{{/i}}&lt;/a&gt;
+ &lt;ul class="nav"&gt;
+ &lt;li class="active"&gt;&lt;a href="#"&gt;{{_i}}Home{{/i}}&lt;/a&gt;&lt;/li&gt;
+ &lt;li&gt;&lt;a href="#"&gt;{{_i}}Link{{/i}}&lt;/a&gt;&lt;/li&gt;
+ &lt;li&gt;&lt;a href="#"&gt;{{_i}}Link{{/i}}&lt;/a&gt;&lt;/li&gt;
+ &lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
</pre>
- <h3>{{_i}}Fixed navbar{{/i}}</h3>
- <p>{{_i}}Fix the navbar to the top or bottom of the viewport with an additional class on the outermost div, <code>.navbar</code>.{{/i}}</p>
- <div class="row">
- <div class="span4">
+
+
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Navbar components{{/i}}</h2>
+
+ <h3>{{_i}}Brand{{/i}}</h3>
+ <p>{{_i}}A simple link to show your brand or project name only requires an anchor tag.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="navbar">
+ <div class="navbar-inner">
+ <a class="brand" href="#">{{_i}}Title{{/i}}</a>
+ </div>
+ </div>
+ </div>{{! /example }}
<pre class="prettyprint linenums">
-&lt;div class="navbar navbar-fixed-top"&gt;
- ...
-&lt;/div&gt;
+&lt;a class="brand" href="#"&gt;{{_i}}Project name{{/i}}&lt;/a&gt;
</pre>
- </div><!--/span-->
- <div class="span4">
+
+ <h3>{{_i}}Nav links{{/i}}</h3>
+ <p>{{_i}}Nav items are simple to add via unordered lists.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="navbar">
+ <div class="navbar-inner">
+ <ul class="nav">
+ <li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
+ <li><a href="#">{{_i}}Link{{/i}}</a></li>
+ <li><a href="#">{{_i}}Link{{/i}}</a></li>
+ </ul>
+ </div>
+ </div>
+ </div>{{! /example }}
<pre class="prettyprint linenums">
-&lt;div class="navbar navbar-fixed-bottom"&gt;
- ...
-&lt;/div&gt;
+&lt;ul class="nav"&gt;
+ &lt;li class="active"&gt;
+ &lt;a href="#">{{_i}}Home{{/i}}&lt;/a&gt;
+ &lt;/li&gt;
+ &lt;li&gt;&lt;a href="#"&gt;{{_i}}Link{{/i}}&lt;/a&gt;&lt;/li&gt;
+ &lt;li&gt;&lt;a href="#"&gt;{{_i}}Link{{/i}}&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;
</pre>
- </div><!--/span-->
- </div><!--/row-->
- <p>{{_i}}When you affix the navbar, remember to account for the hidden area underneath. Add 40px or more of padding to the <code>&lt;body&gt;</code>. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.{{/i}}</p>
- <h3>{{_i}}Brand name{{/i}}</h3>
- <p>{{_i}}A simple link to show your brand or project name only requires an anchor tag.{{/i}}</p>
+ <p>{{_i}}You can easily add dividers to your nav links with an empty list item and a simple class. Just add this between links:{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="navbar">
+ <div class="navbar-inner">
+ <ul class="nav">
+ <li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
+ <li class="divider-vertical"></li>
+ <li><a href="#">{{_i}}Link{{/i}}</a></li>
+ <li class="divider-vertical"></li>
+ <li><a href="#">{{_i}}Link{{/i}}</a></li>
+ <li class="divider-vertical"></li>
+ </ul>
+ </div>
+ </div>
+ </div>{{! /example }}
<pre class="prettyprint linenums">
-&lt;a class="brand" href="#"&gt;
- {{_i}}Project name{{/i}}
-&lt;/a&gt;
+&lt;ul class="nav"&gt;
+ ...
+ &lt;li class="divider-vertical"&gt;&lt;/li&gt;
+ ...
+&lt;/ul&gt;
</pre>
- <h3>{{_i}}Forms in navbar{{/i}}</h3>
- <p>{{_i}}To properly style and position a form within the navbar, add the appropriate classes as shown below. For a default form, include <code>.navbar-form</code> and either <code>.pull-left</code> or <code>.pull-right</code> to properly align it.{{/i}}</p>
+
+ <h3>{{_i}}Forms{{/i}}</h3>
+ <p>{{_i}}To properly style and position a form within the navbar, add the appropriate classes as shown below. For a default form, include <code>.navbar-form</code> and either <code>.pull-left</code> or <code>.pull-right</code> to properly align it.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="navbar">
+ <div class="navbar-inner">
+ <form class="navbar-form pull-left">
+ <input type="text" class="span2">
+ <button type="submit" class="btn">{{_i}}Submit{{/i}}</button>
+ </form>
+ </div>
+ </div>
+ </div>{{! /example }}
<pre class="prettyprint linenums">
&lt;form class="navbar-form pull-left"&gt;
&lt;input type="text" class="span2"&gt;
+ &lt;button type="submit" class="btn"&gt;{{_i}}Submit{{/i}}&lt;/button&gt;
&lt;/form&gt;
</pre>
- <p>{{_i}}For a more customized search form, add <code>.navbar-search</code> to the <code>form</code> and <code>.search-query</code> to the input for specialized styles in the navbar.{{/i}}</p>
+
+ <h3>{{_i}}Search form{{/i}}</h3>
+ <p>{{_i}}For a more customized search form, add <code>.navbar-search</code> to the <code>form</code> and <code>.search-query</code> to the input for specialized styles in the navbar.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="navbar">
+ <div class="navbar-inner">
+ <form class="navbar-search pull-left">
+ <input type="text" class="search-query" placeholder="{{_i}}Search{{/i}}">
+ </form>
+ </div>
+ </div>
+ </div>{{! /example }}
<pre class="prettyprint linenums">
&lt;form class="navbar-search pull-left"&gt;
&lt;input type="text" class="search-query" placeholder="{{_i}}Search{{/i}}"&gt;
&lt;/form&gt;
</pre>
- <h3>{{_i}}Optional responsive variation{{/i}}</h3>
- <p>{{_i}}Depending on the amount of content in your topbar, you might want to implement the responsive options. To do so, wrap your nav content in a containing div, <code>.nav-collapse.collapse</code>, and add the navbar toggle button, <code>.btn-navbar</code>.{{/i}}</p>
+
+ <h3>{{_i}}Component alignment{{/i}}</h3>
+ <p>{{_i}}Align nav links, search form, or text, use the <code>.pull-left</code> or <code>.pull-right</code> utility classes. Both classes will add a CSS float in the specified direction.{{/i}}</p>
+
+ <h3>{{_i}}Using dropdowns{{/i}}</h3>
+ <p>{{_i}}Add dropdowns and dropups to the nav with a bit of markup and the <a href="./javascript.html#dropdowns">dropdowns javascript plugin</a>.{{/i}}</p>
+<pre class="prettyprint linenums">
+&lt;ul class="nav"&gt;
+ &lt;li class="dropdown"&gt;
+ &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown">
+ {{_i}}Account{{/i}}
+ &lt;b class="caret"&gt;&lt;/b&gt;
+ &lt;/a&gt;
+ &lt;ul class="dropdown-menu"&gt;
+ ...
+ &lt;/ul&gt;
+ &lt;/li&gt;
+&lt;/ul&gt;
+</pre>
+ <p>{{_i}}Visit the <a href="./javascript.html#dropdowns">javascript dropdowns documentation</a> for more markup and information on calling dropdowns.{{/i}}</p>
+
+ <h3>{{_i}}Text{{/i}}</h3>
+ <p>{{_i}}Wrap strings of text in an element with <code>.navbar-text</code>, usually on a <code>&lt;p&gt;</code> tag for proper leading and color.{{/i}}</p>
+
+
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Optional display variations{{/i}}</h2>
+ <p>{{_i}}Fix the navbar to the top or bottom of the viewport with an additional class on the outermost div, <code>.navbar</code>.{{/i}}</p>
+
+ <h3>Fixed to top</h3>
+ <p>{{_i}}Add <code>.navbar-fixed-top</code> and remember to account for the hidden area underneath it by adding at least 40px <code>padding</code> to the <code>&lt;body&gt;</code>. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.{{/i}}</p>
+ <div class="bs-docs-example bs-navbar-top-example">
+ <div class="navbar navbar-fixed-top" style="position: absolute;">
+ <div class="navbar-inner">
+ <div class="container" style="width: auto; padding: 0 20px;">
+ <a class="brand" href="#">{{_i}}Title{{/i}}</a>
+ <ul class="nav">
+ <li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
+ <li><a href="#">{{_i}}Link{{/i}}</a></li>
+ <li><a href="#">{{_i}}Link{{/i}}</a></li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ </div>{{! /example }}
+<pre class="prettyprint linenums">
+&lt;div class="navbar navbar-fixed-top"&gt;
+ ...
+&lt;/div&gt;
+</pre>
+
+ <h3>Fixed to bottom</h3>
+ <p>{{_i}}Add <code>.navbar-fixed-bottom</code> instead.{{/i}}</p>
+ <div class="bs-docs-example bs-navbar-bottom-example">
+ <div class="navbar navbar-fixed-bottom" style="position: absolute;">
+ <div class="navbar-inner">
+ <div class="container" style="width: auto; padding: 0 20px;">
+ <a class="brand" href="#">{{_i}}Title{{/i}}</a>
+ <ul class="nav">
+ <li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
+ <li><a href="#">{{_i}}Link{{/i}}</a></li>
+ <li><a href="#">{{_i}}Link{{/i}}</a></li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ </div>{{! /example }}
+<pre class="prettyprint linenums">
+&lt;div class="navbar navbar-fixed-bottom"&gt;
+ ...
+&lt;/div&gt;
+</pre>
+
+ <h3>{{_i}}Static top navbar{{/i}}</h3>
+ <p>{{_i}}Create a full-width navbar that scrolls away with the page by adding <code>.navbar-static-top</code>. Unlike the <code>.navbar-fixed-top</code> class, you do not need to change any padding on the <code>body</code>.{{/i}}</p>
+ <div class="bs-docs-example bs-navbar-top-example">
+ <div class="navbar navbar-static-top" style="margin: -1px -1px 0;">
+ <div class="navbar-inner">
+ <div class="container" style="width: auto; padding: 0 20px;">
+ <a class="brand" href="#">{{_i}}Title{{/i}}</a>
+ <ul class="nav">
+ <li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
+ <li><a href="#">{{_i}}Link{{/i}}</a></li>
+ <li><a href="#">{{_i}}Link{{/i}}</a></li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ </div>{{! /example }}
+<pre class="prettyprint linenums">
+&lt;div class="navbar navbar-static-top"&gt;
+ ...
+&lt;/div&gt;
+</pre>
+
+
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Responsive navbar{{/i}}</h2>
+ <p>{{_i}}To implement a collapsing responsive navbar, wrap your navbar content in a containing div, <code>.nav-collapse.collapse</code>, and add the navbar toggle button, <code>.btn-navbar</code>.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="navbar">
+ <div class="navbar-inner">
+ <div class="container">
+ <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </a>
+ <a class="brand" href="#">{{_i}}Title{{/i}}</a>
+ <div class="nav-collapse">
+ <ul class="nav">
+ <li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
+ <li><a href="#">{{_i}}Link{{/i}}</a></li>
+ <li><a href="#">{{_i}}Link{{/i}}</a></li>
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li class="nav-header">Nav header</li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ <li><a href="#">{{_i}}One more separated link{{/i}}</a></li>
+ </ul>
+ </li>
+ </ul>
+ <form class="navbar-search pull-left" action="">
+ <input type="text" class="search-query span2" placeholder="Search">
+ </form>
+ <ul class="nav pull-right">
+ <li><a href="#">{{_i}}Link{{/i}}</a></li>
+ <li class="divider-vertical"></li>
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </li>
+ </ul>
+ </div><!-- /.nav-collapse -->
+ </div>
+ </div><!-- /navbar-inner -->
+ </div><!-- /navbar -->
+ </div>{{! /example }}
<pre class="prettyprint linenums">
&lt;div class="navbar"&gt;
&lt;div class="navbar-inner"&gt;
@@ -995,220 +1240,246 @@
&lt;/div&gt;
&lt;/div&gt;
</pre>
- <div class="alert alert-info">
- <strong>{{_i}}Heads up!{{/i}}</strong> The responsive navbar requires the <a href="./javascript.html#collapse">collapse plugin</a> and <a href="./scaffolding.html#responsive">responsive Bootstrap CSS file</a>.
- </div>
+ <div class="alert alert-info">
+ <strong>{{_i}}Heads up!{{/i}}</strong> The responsive navbar requires the <a href="./javascript.html#collapse">collapse plugin</a> and <a href="./scaffolding.html#responsive">responsive Bootstrap CSS file</a>.
+ </div>
- </div><!-- /.span -->
- <div class="span4">
- <h3>{{_i}}Nav links{{/i}}</h3>
- <p>{{_i}}Nav items are simple to add via unordered lists.{{/i}}</p>
-<pre class="prettyprint linenums">
-&lt;ul class="nav"&gt;
- &lt;li class="active"&gt;
- &lt;a href="#">{{_i}}Home{{/i}}&lt;/a&gt;
- &lt;/li&gt;
- &lt;li&gt;&lt;a href="#"&gt;{{_i}}Link{{/i}}&lt;/a&gt;&lt;/li&gt;
- &lt;li&gt;&lt;a href="#"&gt;{{_i}}Link{{/i}}&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-</pre>
- <p>{{_i}}You can easily add dividers to your nav links with an empty list item and a simple class. Just add this between links:{{/i}}</p>
+
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Inverted variation{{/i}}</h2>
+ <p>{{_i}}Modify the look of the navbar by adding <code>.navbar-inverse</code>.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="navbar navbar-inverse" style="position: static;">
+ <div class="navbar-inner">
+ <div class="container">
+ <a class="btn btn-navbar" data-toggle="collapse" data-target=".subnav-collapse">
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </a>
+ <a class="brand" href="#">{{_i}}Title{{/i}}</a>
+ <div class="nav-collapse subnav-collapse">
+ <ul class="nav">
+ <li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
+ <li><a href="#">{{_i}}Link{{/i}}</a></li>
+ <li><a href="#">{{_i}}Link{{/i}}</a></li>
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li class="nav-header">Nav header</li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ <li><a href="#">{{_i}}One more separated link{{/i}}</a></li>
+ </ul>
+ </li>
+ </ul>
+ <form class="navbar-search pull-left" action="">
+ <input type="text" class="search-query span2" placeholder="Search">
+ </form>
+ <ul class="nav pull-right">
+ <li><a href="#">{{_i}}Link{{/i}}</a></li>
+ <li class="divider-vertical"></li>
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </li>
+ </ul>
+ </div><!-- /.nav-collapse -->
+ </div>
+ </div><!-- /navbar-inner -->
+ </div><!-- /navbar -->
+ </div>{{! /example }}
<pre class="prettyprint linenums">
-&lt;ul class="nav"&gt;
- ...
- &lt;li class="divider-vertical"&gt;&lt;/li&gt;
+&lt;div class="navbar navbar-inverse"&gt;
...
-&lt;/ul&gt;
-</pre>
- <h3>{{_i}}Component alignment{{/i}}</h3>
- <p>{{_i}}To align a nav, search form, or text, use the <code>.pull-left</code> or <code>.pull-right</code> utility classes. Both classes will add a CSS float in the specified direction.{{/i}}</p>
- <h3>{{_i}}Adding dropdown menus{{/i}}</h3>
- <p>{{_i}}Adding dropdowns and dropups to the nav is super simple, but does require the use of <a href="./javascript.html#dropdowns">our javascript plugin</a>.{{/i}}</p>
-<pre class="prettyprint linenums">
-&lt;ul class="nav"&gt;
- &lt;li class="dropdown"&gt;
- &lt;a href="#"
- class="dropdown-toggle"
- data-toggle="dropdown">
- {{_i}}Account{{/i}}
- &lt;b class="caret"&gt;&lt;/b&gt;
- &lt;/a&gt;
- &lt;ul class="dropdown-menu"&gt;
- ...
- &lt;/ul&gt;
- &lt;/li&gt;
-&lt;/ul&gt;
+&lt;/div&gt;
</pre>
- <p><a class="btn" href="./javascript.html#dropdowns">{{_i}}Get the javascript &rarr;{{/i}}</a></p>
- <hr>
- <h3>{{_i}}Text in the navbar{{/i}}</h3>
- <p>{{_i}}Wrap strings of text in a <code>&lt;.navbar-text&gt;</code>, usually on a <code>&lt;p&gt;</code> tag for proper leading and color.{{/i}}</p>
- </div><!-- /.span -->
- </div><!-- /.row -->
-</section>
+ </section>
-<!-- Breadcrumbs
-================================================== -->
-<section id="breadcrumbs">
- <div class="page-header">
- <h1>{{_i}}Breadcrumbs{{/i}} <small></small></h1>
- </div>
+ <!-- Breadcrumbs
+ ================================================== -->
+ <section id="breadcrumbs">
+ <div class="page-header">
+ <h1>{{_i}}Breadcrumbs{{/i}} <small></small></h1>
+ </div>
- <div class="row">
- <div class="span6">
- <h3>{{_i}}Why use them{{/i}}</h3>
- <p>{{_i}}Breadcrumb navigation is used as a way to show users where they are within an app or a site, but not for primary navigation. Keep their use sparse and succinct to be most effective.{{/i}}</p>
-
- <h3>{{_i}}Examples{{/i}}</h3>
- <p>{{_i}}A single example shown as it might be displayed across multiple pages.{{/i}}</p>
- <ul class="breadcrumb">
- <li class="active">{{_i}}Home{{/i}}</li>
- </ul>
- <ul class="breadcrumb">
- <li><a href="#">{{_i}}Home{{/i}}</a> <span class="divider">/</span></li>
- <li class="active">{{_i}}Library{{/i}}</li>
- </ul>
- <ul class="breadcrumb">
- <li><a href="#">{{_i}}Home{{/i}}</a> <span class="divider">/</span></li>
- <li><a href="#">{{_i}}Library{{/i}}</a> <span class="divider">/</span></li>
- <li class="active">{{_i}}Data{{/i}}</li>
- </ul>
- </div>
- <div class="span6">
- <h3>{{_i}}Markup{{/i}}</h3>
- <p>{{_i}}HTML is your standard unordered list with links.{{/i}}</p>
+ <h2>{{_i}}Examples{{/i}}</h2>
+ <p>{{_i}}A single example shown as it might be displayed across multiple pages.{{/i}}</p>
+ <div class="bs-docs-example">
+ <ul class="breadcrumb">
+ <li class="active">{{_i}}Home{{/i}}</li>
+ </ul>
+ <ul class="breadcrumb">
+ <li><a href="#">{{_i}}Home{{/i}}</a> <span class="divider">/</span></li>
+ <li class="active">{{_i}}Library{{/i}}</li>
+ </ul>
+ <ul class="breadcrumb" style="margin-bottom: 5px;">
+ <li><a href="#">{{_i}}Home{{/i}}</a> <span class="divider">/</span></li>
+ <li><a href="#">{{_i}}Library{{/i}}</a> <span class="divider">/</span></li>
+ <li class="active">{{_i}}Data{{/i}}</li>
+ </ul>
+ </div>
<pre class="prettyprint linenums">
&lt;ul class="breadcrumb"&gt;
- &lt;li&gt;
- &lt;a href="#"&gt;{{_i}}Home{{/i}}&lt;/a&gt; &lt;span class="divider"&gt;/&lt;/span&gt;
- &lt;/li&gt;
- &lt;li&gt;
- &lt;a href="#"&gt;{{_i}}Library{{/i}}&lt;/a&gt; &lt;span class="divider"&gt;/&lt;/span&gt;
- &lt;/li&gt;
+ &lt;li&gt;&lt;a href="#"&gt;{{_i}}Home{{/i}}&lt;/a&gt; &lt;span class="divider"&gt;/&lt;/span&gt;&lt;/li&gt;
+ &lt;li&gt;&lt;a href="#"&gt;{{_i}}Library{{/i}}&lt;/a&gt; &lt;span class="divider"&gt;/&lt;/span&gt;&lt;/li&gt;
&lt;li class="active"&gt;{{_i}}Data{{/i}}&lt;/li&gt;
&lt;/ul&gt;
</pre>
- </div>
- </div>
-</section>
+ </section>
-<!-- Pagination
-================================================== -->
-<section id="pagination">
- <div class="page-header">
- <h1>{{_i}}Pagination{{/i}} <small>{{_i}}Two options for paging through content{{/i}}</small></h1>
- </div>
+ <!-- Pagination
+ ================================================== -->
+ <section id="pagination">
+ <div class="page-header">
+ <h1>{{_i}}Pagination{{/i}} <small>{{_i}}Two options for paging through content{{/i}}</small></h1>
+ </div>
- <h2>{{_i}}Multicon-page pagination{{/i}}</h2>
- <div class="row">
- <div class="span4">
- <h3>{{_i}}When to use{{/i}}</h3>
- <p>{{_i}}Ultra simplistic and minimally styled pagination inspired by Rdio, great for apps and search results. The large block is hard to miss, easily scalable, and provides large click areas.{{/i}}</p>
- <h3>{{_i}}Stateful page links{{/i}}</h3>
- <p>{{_i}}Links are customizable and work in a number of circumstances with the right class. <code>.disabled</code> for unclickable links and <code>.active</code> for current page.{{/i}}</p>
- <h3>{{_i}}Flexible alignment{{/i}}</h3>
- <p>{{_i}}Add either of two optional classes to change the alignment of pagination links: <code>.pagination-centered</code> and <code>.pagination-right</code>.{{/i}}</p>
- </div>
- <div class="span4">
- <h3>{{_i}}Examples{{/i}}</h3>
- <p>{{_i}}The default pagination component is flexible and works in a number of variations.{{/i}}</p>
- <div class="pagination">
- <ul>
- <li class="disabled"><a href="#">&laquo;</a></li>
- <li class="active"><a href="#">1</a></li>
- <li><a href="#">2</a></li>
- <li><a href="#">3</a></li>
- <li><a href="#">4</a></li>
- <li><a href="#">&raquo;</a></li>
- </ul>
- </div>
- <div class="pagination">
- <ul>
- <li><a href="#">&laquo;</a></li>
- <li><a href="#">10</a></li>
- <li class="active"><a href="#">11</a></li>
- <li><a href="#">12</a></li>
- <li><a href="#">&raquo;</a></li>
- </ul>
- </div>
- <div class="pagination">
- <ul>
- <li><a href="#">&laquo;</a></li>
- <li class="active"><a href="#">10</a></li>
- <li class="disabled"><a href="#">...</a></li>
- <li><a href="#">20</a></li>
- <li><a href="#">&raquo;</a></li>
- </ul>
- </div>
- <div class="pagination pagination-centered">
- <ul>
- <li class="active"><a href="#">1</a></li>
- <li><a href="#">2</a></li>
- <li><a href="#">3</a></li>
- <li><a href="#">4</a></li>
- <li><a href="#">5</a></li>
- </ul>
- </div>
- </div>
- <div class="span4">
- <h3>{{_i}}Markup{{/i}}</h3>
- <p>{{_i}}Wrapped in a <code>&lt;div&gt;</code>, pagination is just a <code>&lt;ul&gt;</code>.{{/i}}</p>
+ <h2>{{_i}}Standard pagination{{/i}}</h2>
+ <p>{{_i}}Simple pagination inspired by Rdio, great for apps and search results. The large block is hard to miss, easily scalable, and provides large click areas.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="pagination">
+ <ul>
+ <li><a href="#">&laquo;</a></li>
+ <li><a href="#">1</a></li>
+ <li><a href="#">2</a></li>
+ <li><a href="#">3</a></li>
+ <li><a href="#">4</a></li>
+ <li><a href="#">5</a></li>
+ <li><a href="#">&raquo;</a></li>
+ </ul>
+ </div>
+ </div>
<pre class="prettyprint linenums">
&lt;div class="pagination"&gt;
&lt;ul&gt;
- &lt;li&gt;&lt;a href="#"&gt;Prev&lt;/a&gt;&lt;/li>
- &lt;li class="active"&gt;
- &lt;a href="#"&gt;1&lt;/a&gt;
- &lt;/li&gt;
+ &lt;li&gt;&lt;a href="#"&gt;Prev&lt;/a&gt;&lt;/li&gt;
+ &lt;li&gt;&lt;a href="#"&gt;1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;4&lt;/a&gt;&lt;/li&gt;
- &lt;li&gt;&lt;a href="#"&gt;Next&lt;/a&gt;&lt;/li>
+ &lt;li&gt;&lt;a href="#"&gt;Next&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</pre>
- </div>
- </div><!-- /row -->
-
- <h2>{{_i}}Pager{{/i}} <small>{{_i}}For quick previous and next links{{/i}}</small></h2>
- <div class="row">
- <div class="span4">
- <h3>{{_i}}About pager{{/i}}</h3>
- <p>{{_i}}The pager component is a set of links for simple pagination implementations with light markup and even lighter styles. It's great for simple sites like blogs or magazines.{{/i}}</p>
- <h4>{{_i}}Optional disabled state{{/i}}</h4>
- <p>{{_i}}Pager links also use the general <code>.disabled</code> class from the pagination.{{/i}}</p>
- </div>
- <div class="span4">
- <h3>{{_i}}Default example{{/i}}</h3>
- <p>{{_i}}By default, the pager centers links.{{/i}}</p>
- <ul class="pager">
- <li><a href="#">{{_i}}Previous{{/i}}</a></li>
- <li><a href="#">{{_i}}Next{{/i}}</a></li>
- </ul>
+
+
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Options{{/i}}</h2>
+
+ <h3>{{_i}}Disabled and active states{{/i}}</h3>
+ <p>{{_i}}Links are customizable for different circumstances. Use <code>.disabled</code> for unclickable links and <code>.active</code> to indicate the current page.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="pagination pagination-centered">
+ <ul>
+ <li class="disabled"><a href="#">&laquo;</a></li>
+ <li class="active"><a href="#">1</a></li>
+ <li><a href="#">2</a></li>
+ <li><a href="#">3</a></li>
+ <li><a href="#">4</a></li>
+ <li><a href="#">5</a></li>
+ <li><a href="#">&raquo;</a></li>
+ </ul>
+ </div>
+ </div>
+<pre class="prettyprint linenums">
+&lt;div class="pagination "&gt;
+ &lt;ul&gt;
+ &lt;li class="disabled"&gt;&lt;a href="#"&gt;Prev&lt;/a&gt;&lt;/li&gt;
+ &lt;li class="active"&gt;&lt;a href="#"&gt;1&lt;/a&gt;&lt;/li&gt;
+ ...
+ &lt;/ul&gt;
+&lt;/div&gt;
+</pre>
+
+ <h3>{{_i}}Alignment{{/i}}</h3>
+ <p>{{_i}}Add one of two optional classes to change the alignment of pagination links: <code>.pagination-centered</code> and <code>.pagination-right</code>.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="pagination pagination-centered">
+ <ul>
+ <li><a href="#">&laquo;</a></li>
+ <li><a href="#">1</a></li>
+ <li><a href="#">2</a></li>
+ <li><a href="#">3</a></li>
+ <li><a href="#">4</a></li>
+ <li><a href="#">5</a></li>
+ <li><a href="#">&raquo;</a></li>
+ </ul>
+ </div>
+ </div>
+<pre class="prettyprint linenums">
+&lt;div class="pagination pagination-centered"&gt;
+ ...
+&lt;/div&gt;
+</pre>
+ <div class="bs-docs-example">
+ <div class="pagination pagination-right">
+ <ul>
+ <li><a href="#">&laquo;</a></li>
+ <li><a href="#">1</a></li>
+ <li><a href="#">2</a></li>
+ <li><a href="#">3</a></li>
+ <li><a href="#">4</a></li>
+ <li><a href="#">5</a></li>
+ <li><a href="#">&raquo;</a></li>
+ </ul>
+ </div>
+ </div>
+<pre class="prettyprint linenums">
+&lt;div class="pagination pagination-right"&gt;
+ ...
+&lt;/div&gt;
+</pre>
+
+
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Pager{{/i}}</h2>
+ <p>{{_i}}Quick previous and next links for simple pagination implementations with light markup and styles. It's great for simple sites like blogs or magazines.{{/i}}</p>
+
+ <h3>{{_i}}Default example{{/i}}</h3>
+ <p>{{_i}}By default, the pager centers links.{{/i}}</p>
+ <div class="bs-docs-example">
+ <ul class="pager">
+ <li><a href="#">{{_i}}Previous{{/i}}</a></li>
+ <li><a href="#">{{_i}}Next{{/i}}</a></li>
+ </ul>
+ </div>
<pre class="prettyprint linenums">
&lt;ul class="pager"&gt;
- &lt;li&gt;
- &lt;a href="#"&gt;{{_i}}Previous{{/i}}&lt;/a&gt;
- &lt;/li&gt;
- &lt;li&gt;
- &lt;a href="#"&gt;{{_i}}Next{{/i}}&lt;/a&gt;
- &lt;/li&gt;
+ &lt;li&gt;&lt;a href="#"&gt;{{_i}}Previous{{/i}}&lt;/a&gt;&lt;/li&gt;
+ &lt;li&gt;&lt;a href="#"&gt;{{_i}}Next{{/i}}&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</pre>
- </div>
- <div class="span4">
- <h3>{{_i}}Aligned links{{/i}}</h3>
- <p>{{_i}}Alternatively, you can align each link to the sides:{{/i}}</p>
- <ul class="pager">
- <li class="previous"><a href="#">{{_i}}&larr; Older{{/i}}</a></li>
- <li class="next"><a href="#">{{_i}}Newer &rarr;{{/i}}</a></li>
- </ul>
+
+ <h3>{{_i}}Aligned links{{/i}}</h3>
+ <p>{{_i}}Alternatively, you can align each link to the sides:{{/i}}</p>
+ <div class="bs-docs-example">
+ <ul class="pager">
+ <li class="previous"><a href="#">{{_i}}&larr; Older{{/i}}</a></li>
+ <li class="next"><a href="#">{{_i}}Newer &rarr;{{/i}}</a></li>
+ </ul>
+ </div>
<pre class="prettyprint linenums">
&lt;ul class="pager"&gt;
&lt;li class="previous"&gt;
@@ -1219,188 +1490,193 @@
&lt;/li&gt;
&lt;/ul&gt;
</pre>
- </div>
- </div><!-- /row -->
-</section>
+ <h3>{{_i}}Optional disabled state{{/i}}</h3>
+ <p>{{_i}}Pager links also use the general <code>.disabled</code> utility class from the pagination.{{/i}}</p>
+ <div class="bs-docs-example">
+ <ul class="pager">
+ <li class="previous disabled"><a href="#">{{_i}}&larr; Older{{/i}}</a></li>
+ <li class="next"><a href="#">{{_i}}Newer &rarr;{{/i}}</a></li>
+ </ul>
+ </div>
+<pre class="prettyprint linenums">
+&lt;ul class="pager"&gt;
+ &lt;li class="previous disabled"&gt;
+ &lt;a href="#"&gt;{{_i}}&amp;larr; Older{{/i}}&lt;/a&gt;
+ &lt;/li&gt;
+ ...
+&lt;/ul&gt;
+</pre>
+ </section>
-<!-- Labels
-================================================== -->
-<section id="labels">
- <div class="page-header">
- <h1>{{_i}}Inline labels{{/i}} <small>{{_i}}Label and annotate text{{/i}}</small></h1>
- </div>
- <table class="table table-bordered table-striped">
- <thead>
- <tr>
- <th>{{_i}}Labels{{/i}}</th>
- <th>{{_i}}Markup{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>
- <span class="label">{{_i}}Default{{/i}}</span>
- </td>
- <td>
- <code>&lt;span class="label"&gt;{{_i}}Default{{/i}}&lt;/span&gt;</code>
- </td>
- </tr>
- <tr>
- <td>
- <span class="label label-success">{{_i}}Success{{/i}}</span>
- </td>
- <td>
- <code>&lt;span class="label label-success"&gt;{{_i}}Success{{/i}}&lt;/span&gt;</code>
- </td>
- </tr>
- <tr>
- <td>
- <span class="label label-warning">{{_i}}Warning{{/i}}</span>
- </td>
- <td>
- <code>&lt;span class="label label-warning"&gt;{{_i}}Warning{{/i}}&lt;/span&gt;</code>
- </td>
- </tr>
- <tr>
- <td>
- <span class="label label-important">{{_i}}Important{{/i}}</span>
- </td>
- <td>
- <code>&lt;span class="label label-important"&gt;{{_i}}Important{{/i}}&lt;/span&gt;</code>
- </td>
- </tr>
- <tr>
- <td>
- <span class="label label-info">{{_i}}Info{{/i}}</span>
- </td>
- <td>
- <code>&lt;span class="label label-info"&gt;{{_i}}Info{{/i}}&lt;/span&gt;</code>
- </td>
- </tr>
- <tr>
- <td>
- <span class="label label-inverse">{{_i}}Inverse{{/i}}</span>
- </td>
- <td>
- <code>&lt;span class="label label-inverse"&gt;{{_i}}Inverse{{/i}}&lt;/span&gt;</code>
- </td>
- </tr>
- </tbody>
- </table>
-</section>
-
-
-
-<!-- Badges
-================================================== -->
-<section id="badges">
- <div class="page-header">
- <h1>{{_i}}Badges{{/i}} <small>{{_i}}Indicators and unread counts{{/i}}</small></h1>
- </div>
- <div class="row">
- <div class="span4">
- <h3>About</h3>
- <p>{{_i}}Badges are small, simple components for displaying an indicator or count of some sort. They're commonly found in email clients like Mail.app or on mobile apps for push notifications.{{/i}}</p>
- </div><!-- /.span -->
- <div class="span8">
- <h3>Available classes</h3>
- <table class="table table-bordered table-striped">
- <thead>
- <tr>
- <th>{{_i}}Name{{/i}}</th>
- <th>{{_i}}Example{{/i}}</th>
- <th>{{_i}}Markup{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>
- {{_i}}Default{{/i}}
- </td>
- <td>
- <span class="badge">1</span>
- </td>
- <td>
- <code>&lt;span class="badge"&gt;1&lt;/span&gt;</code>
- </td>
- </tr>
- <tr>
- <td>
- {{_i}}Success{{/i}}
- </td>
- <td>
- <span class="badge badge-success">2</span>
- </td>
- <td>
- <code>&lt;span class="badge badge-success"&gt;2&lt;/span&gt;</code>
- </td>
- </tr>
- <tr>
- <td>
- {{_i}}Warning{{/i}}
- </td>
- <td>
- <span class="badge badge-warning">4</span>
- </td>
- <td>
- <code>&lt;span class="badge badge-warning"&gt;4&lt;/span&gt;</code>
- </td>
- </tr>
- <tr>
- <td>
- {{_i}}Important{{/i}}
- </td>
- <td>
- <span class="badge badge-important">6</span>
- </td>
- <td>
- <code>&lt;span class="badge badge-important"&gt;6&lt;/span&gt;</code>
- </td>
- </tr>
- <tr>
- <td>
- {{_i}}Info{{/i}}
- </td>
- <td>
- <span class="badge badge-info">8</span>
- </td>
- <td>
- <code>&lt;span class="badge badge-info"&gt;8&lt;/span&gt;</code>
- </td>
- </tr>
- <tr>
- <td>
- {{_i}}Inverse{{/i}}
- </td>
- <td>
- <span class="badge badge-inverse">10</span>
- </td>
- <td>
- <code>&lt;span class="badge badge-inverse"&gt;10&lt;/span&gt;</code>
- </td>
- </tr>
- </tbody>
- </table>
- </div><!-- /.span -->
- </div><!-- /.row -->
-</section>
-
-
-
-<!-- Typographic components
-================================================== -->
-<section id="typography">
- <div class="page-header">
- <h1>{{_i}}Typographic components{{/i}} <small>{{_i}}Page header and hero unit for segmenting content{{/i}}</small></h1>
- </div>
- <h2>{{_i}}Hero unit{{/i}}</h2>
- <div class="row">
- <div class="span4">
- <p>{{_i}}Bootstrap provides a lightweight, flexible component called a hero unit to showcase content on your site. It works well on marketing and content-heavy sites.{{/i}}</p>
- <h3>{{_i}}Markup{{/i}}</h3>
- <p>{{_i}}Wrap your content in a <code>div</code> like so:{{/i}}</p>
+
+
+ <!-- Labels and badges
+ ================================================== -->
+ <section id="labels-badges">
+ <div class="page-header">
+ <h1>{{_i}}Labels and badges{{/i}}</h1>
+ </div>
+ <h3>{{_i}}Labels{{/i}}</h3>
+ <table class="table table-bordered table-striped">
+ <thead>
+ <tr>
+ <th>{{_i}}Labels{{/i}}</th>
+ <th>{{_i}}Markup{{/i}}</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>
+ <span class="label">{{_i}}Default{{/i}}</span>
+ </td>
+ <td>
+ <code>&lt;span class="label"&gt;{{_i}}Default{{/i}}&lt;/span&gt;</code>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <span class="label label-success">{{_i}}Success{{/i}}</span>
+ </td>
+ <td>
+ <code>&lt;span class="label label-success"&gt;{{_i}}Success{{/i}}&lt;/span&gt;</code>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <span class="label label-warning">{{_i}}Warning{{/i}}</span>
+ </td>
+ <td>
+ <code>&lt;span class="label label-warning"&gt;{{_i}}Warning{{/i}}&lt;/span&gt;</code>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <span class="label label-important">{{_i}}Important{{/i}}</span>
+ </td>
+ <td>
+ <code>&lt;span class="label label-important"&gt;{{_i}}Important{{/i}}&lt;/span&gt;</code>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <span class="label label-info">{{_i}}Info{{/i}}</span>
+ </td>
+ <td>
+ <code>&lt;span class="label label-info"&gt;{{_i}}Info{{/i}}&lt;/span&gt;</code>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <span class="label label-inverse">{{_i}}Inverse{{/i}}</span>
+ </td>
+ <td>
+ <code>&lt;span class="label label-inverse"&gt;{{_i}}Inverse{{/i}}&lt;/span&gt;</code>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+
+ <h3>{{_i}}Badges{{/i}}</h3>
+ <table class="table table-bordered table-striped">
+ <thead>
+ <tr>
+ <th>{{_i}}Name{{/i}}</th>
+ <th>{{_i}}Example{{/i}}</th>
+ <th>{{_i}}Markup{{/i}}</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>
+ {{_i}}Default{{/i}}
+ </td>
+ <td>
+ <span class="badge">1</span>
+ </td>
+ <td>
+ <code>&lt;span class="badge"&gt;1&lt;/span&gt;</code>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ {{_i}}Success{{/i}}
+ </td>
+ <td>
+ <span class="badge badge-success">2</span>
+ </td>
+ <td>
+ <code>&lt;span class="badge badge-success"&gt;2&lt;/span&gt;</code>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ {{_i}}Warning{{/i}}
+ </td>
+ <td>
+ <span class="badge badge-warning">4</span>
+ </td>
+ <td>
+ <code>&lt;span class="badge badge-warning"&gt;4&lt;/span&gt;</code>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ {{_i}}Important{{/i}}
+ </td>
+ <td>
+ <span class="badge badge-important">6</span>
+ </td>
+ <td>
+ <code>&lt;span class="badge badge-important"&gt;6&lt;/span&gt;</code>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ {{_i}}Info{{/i}}
+ </td>
+ <td>
+ <span class="badge badge-info">8</span>
+ </td>
+ <td>
+ <code>&lt;span class="badge badge-info"&gt;8&lt;/span&gt;</code>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ {{_i}}Inverse{{/i}}
+ </td>
+ <td>
+ <span class="badge badge-inverse">10</span>
+ </td>
+ <td>
+ <code>&lt;span class="badge badge-inverse"&gt;10&lt;/span&gt;</code>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+
+ </section>
+
+
+
+ <!-- Typographic components
+ ================================================== -->
+ <section id="typography">
+ <div class="page-header">
+ <h1>{{_i}}Typographic components{{/i}}</h1>
+ </div>
+
+ <h2>{{_i}}Hero unit{{/i}}</h2>
+ <p>{{_i}}A lightweight, flexible component to showcase key content on your site. It works well on marketing and content-heavy sites.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="hero-unit">
+ <h1>{{_i}}Hello, world!{{/i}}</h1>
+ <p>{{_i}}This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.{{/i}}</p>
+ <p><a class="btn btn-primary btn-large">{{_i}}Learn more{{/i}}</a></p>
+ </div>
+ </div>
<pre class="prettyprint linenums">
&lt;div class="hero-unit"&gt;
&lt;h1&gt;{{_i}}Heading{{/i}}&lt;/h1&gt;
@@ -1412,404 +1688,524 @@
&lt;/p&gt;
&lt;/div&gt;
</pre>
- </div>
- <div class="span8">
- <div class="hero-unit">
- <h1>{{_i}}Hello, world!{{/i}}</h1>
- <p>{{_i}}This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.{{/i}}</p>
- <p><a class="btn btn-primary btn-large">{{_i}}Learn more{{/i}}</a></p>
- </div>
- </div>
- </div><!-- /row -->
- <h2>{{_i}}Page header{{/i}}</h2>
- <div class="row">
- <div class="span4">
- <p>{{_i}}A simple shell for an <code>h1</code> to appropriately space out and segment sections of content on a page. It can utilize the <code>h1</code>'s default <code>small</code>, element as well most other components (with additional styles).{{/i}}</p>
- </div>
- <div class="span8">
- <div class="page-header">
- <h1>{{_i}}Example page header{{/i}} <small>{{_i}}Subtext for header{{/i}}</small></h1>
- </div>
+
+ <h2>{{_i}}Page header{{/i}}</h2>
+ <p>{{_i}}A simple shell for an <code>h1</code> to appropriately space out and segment sections of content on a page. It can utilize the <code>h1</code>'s default <code>small</code>, element as well most other components (with additional styles).{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="page-header">
+ <h1>{{_i}}Example page header{{/i}} <small>{{_i}}Subtext for header{{/i}}</small></h1>
+ </div>
+ </div>
<pre class="prettyprint linenums">
&lt;div class="page-header"&gt;
&lt;h1&gt;{{_i}}Example page header{{/i}}&lt;/h1&gt;
&lt;/div&gt;
</pre>
- </div>
- </div><!-- /row -->
-</section>
+ </section>
-<!-- Thumbnails
-================================================== -->
-<section id="thumbnails">
- <div class="page-header">
- <h1>{{_i}}Thumbnails{{/i}} <small>{{_i}}Grids of images, videos, text, and more{{/i}}</small></h1>
- </div>
- <div class="row">
- <div class="span6">
- <h2>{{_i}}Default thumbnails{{/i}}</h2>
- <p>{{_i}}By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.{{/i}}</p>
- <ul class="thumbnails">
- <li class="span3">
- <a href="#" class="thumbnail">
- <img src="http://placehold.it/260x180" alt="">
- </a>
- </li>
- <li class="span3">
- <a href="#" class="thumbnail">
- <img src="http://placehold.it/260x180" alt="">
- </a>
- </li>
- <li class="span3">
- <a href="#" class="thumbnail">
- <img src="http://placehold.it/260x180" alt="">
- </a>
- </li>
- <li class="span3">
- <a href="#" class="thumbnail">
- <img src="http://placehold.it/260x180" alt="">
- </a>
- </li>
- </ul>
- </div>
- <div class="span6">
- <h2>{{_i}}Highly customizable{{/i}}</h2>
- <p>{{_i}}With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.{{/i}}</p>
- <ul class="thumbnails">
- <li class="span3">
- <div class="thumbnail">
- <img src="http://placehold.it/260x180" alt="">
- <div class="caption">
- <h5>{{_i}}Thumbnail label{{/i}}</h5>
- <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
- <p><a href="#" class="btn btn-primary">{{_i}}Action{{/i}}</a> <a href="#" class="btn">{{_i}}Action{{/i}}</a></p>
- </div>
+ <!-- Thumbnails
+ ================================================== -->
+ <section id="thumbnails">
+ <div class="page-header">
+ <h1>{{_i}}Thumbnails{{/i}} <small>{{_i}}Grids of images, videos, text, and more{{/i}}</small></h1>
</div>
- </li>
- <li class="span3">
- <div class="thumbnail">
- <img src="http://placehold.it/260x180" alt="">
- <div class="caption">
- <h5>{{_i}}Thumbnail label{{/i}}</h5>
- <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
- <p><a href="#" class="btn btn-primary">{{_i}}Action{{/i}}</a> <a href="#" class="btn">{{_i}}Action{{/i}}</a></p>
- </div>
+
+ <h2>{{_i}}Default thumbnails{{/i}}</h2>
+ <p>{{_i}}By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.{{/i}}</p>
+ <div class="row-fluid">
+ <ul class="thumbnails">
+ <li class="span3">
+ <a href="#" class="thumbnail">
+ <img src="http://placehold.it/260x180" alt="">
+ </a>
+ </li>
+ <li class="span3">
+ <a href="#" class="thumbnail">
+ <img src="http://placehold.it/260x180" alt="">
+ </a>
+ </li>
+ <li class="span3">
+ <a href="#" class="thumbnail">
+ <img src="http://placehold.it/260x180" alt="">
+ </a>
+ </li>
+ <li class="span3">
+ <a href="#" class="thumbnail">
+ <img src="http://placehold.it/260x180" alt="">
+ </a>
+ </li>
+ </ul>
</div>
- </li>
- </ul>
- </div>
- </div>
- <div class="row">
- <div class="span4">
- <h3>{{_i}}Why use thumbnails{{/i}}</h3>
- <p>{{_i}}Thumbnails (previously <code>.media-grid</code> up until v1.4) are great for grids of photos or videos, image search results, retail products, portfolios, and much more. They can be links or static content.{{/i}}</p>
- </div>
- <div class="span4">
- <h3>{{_i}}Simple, flexible markup{{/i}}</h3>
- <p>{{_i}}Thumbnail markup is simple&mdash;a <code>ul</code> with any number of <code>li</code> elements is all that is required. It's also super flexible, allowing for any type of content with just a bit more markup to wrap your contents.{{/i}}</p>
- </div>
- <div class="span4">
- <h3>{{_i}}Uses grid column sizes{{/i}}</h3>
- <p>{{_i}}Lastly, the thumbnails component uses existing grid system classes&mdash;like <code>.span2</code> or <code>.span3</code>&mdash;for control of thumbnail dimensions.{{/i}}</p>
- </div>
- </div>
+ <h2>{{_i}}Highly customizable{{/i}}</h2>
+ <p>{{_i}}With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.{{/i}}</p>
+ <div class="row-fluid">
+ <ul class="thumbnails">
+ <li class="span4">
+ <div class="thumbnail">
+ <img src="http://placehold.it/300x200" alt="">
+ <div class="caption">
+ <h3>{{_i}}Thumbnail label{{/i}}</h3>
+ <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
+ <p><a href="#" class="btn btn-primary">{{_i}}Action{{/i}}</a> <a href="#" class="btn">{{_i}}Action{{/i}}</a></p>
+ </div>
+ </div>
+ </li>
+ <li class="span4">
+ <div class="thumbnail">
+ <img src="http://placehold.it/300x200" alt="">
+ <div class="caption">
+ <h3>{{_i}}Thumbnail label{{/i}}</h3>
+ <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
+ <p><a href="#" class="btn btn-primary">{{_i}}Action{{/i}}</a> <a href="#" class="btn">{{_i}}Action{{/i}}</a></p>
+ </div>
+ </div>
+ </li>
+ <li class="span4">
+ <div class="thumbnail">
+ <img src="http://placehold.it/300x200" alt="">
+ <div class="caption">
+ <h3>{{_i}}Thumbnail label{{/i}}</h3>
+ <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
+ <p><a href="#" class="btn btn-primary">{{_i}}Action{{/i}}</a> <a href="#" class="btn">{{_i}}Action{{/i}}</a></p>
+ </div>
+ </div>
+ </li>
+ </ul>
+ </div>
+
+ <h3>{{_i}}Why use thumbnails{{/i}}</h3>
+ <p>{{_i}}Thumbnails (previously <code>.media-grid</code> up until v1.4) are great for grids of photos or videos, image search results, retail products, portfolios, and much more. They can be links or static content.{{/i}}</p>
+
+ <h3>{{_i}}Simple, flexible markup{{/i}}</h3>
+ <p>{{_i}}Thumbnail markup is simple&mdash;a <code>ul</code> with any number of <code>li</code> elements is all that is required. It's also super flexible, allowing for any type of content with just a bit more markup to wrap your contents.{{/i}}</p>
- <div class="row">
- <div class="span6">
- <h2>{{_i}}The markup{{/i}}</h2>
- <p>{{_i}}As mentioned previously, the required markup for thumbnails is light and straightforward. Here's a look at the default setup <strong>for linked images</strong>:{{/i}}</p>
+ <h3>{{_i}}Uses grid column sizes{{/i}}</h3>
+ <p>{{_i}}Lastly, the thumbnails component uses existing grid system classes&mdash;like <code>.span2</code> or <code>.span3</code>&mdash;for control of thumbnail dimensions.{{/i}}</p>
+
+ <h2>{{_i}}Markup{{/i}}</h2>
+ <p>{{_i}}As mentioned previously, the required markup for thumbnails is light and straightforward. Here's a look at the default setup <strong>for linked images</strong>:{{/i}}</p>
<pre class="prettyprint linenums">
&lt;ul class="thumbnails"&gt;
- &lt;li class="span3"&gt;
+ &lt;li class="span4"&gt;
&lt;a href="#" class="thumbnail"&gt;
- &lt;img src="http://placehold.it/260x180" alt=""&gt;
+ &lt;img src="http://placehold.it/300x200" alt=""&gt;
&lt;/a&gt;
&lt;/li&gt;
...
&lt;/ul&gt;
</pre>
- <p>{{_i}}For custom HTML content in thumbnails, the markup changes slightly. To allow block level content anywhere, we swap the <code>&lt;a&gt;</code> for a <code>&lt;div&gt;</code> like so:{{/i}}</p>
+ <p>{{_i}}For custom HTML content in thumbnails, the markup changes slightly. To allow block level content anywhere, we swap the <code>&lt;a&gt;</code> for a <code>&lt;div&gt;</code> like so:{{/i}}</p>
<pre class="prettyprint linenums">
&lt;ul class="thumbnails"&gt;
- &lt;li class="span3"&gt;
+ &lt;li class="span4"&gt;
&lt;div class="thumbnail"&gt;
- &lt;img src="http://placehold.it/260x180" alt=""&gt;
- &lt;h5&gt;{{_i}}Thumbnail label{{/i}}&lt;/h5&gt;
- &lt;p&gt;{{_i}}Thumbnail caption right here...{{/i}}&lt;/p&gt;
+ &lt;img src="http://placehold.it/300x200" alt=""&gt;
+ &lt;h3&gt;{{_i}}Thumbnail label{{/i}}&lt;/h3&gt;
+ &lt;p&gt;{{_i}}Thumbnail caption...{{/i}}&lt;/p&gt;
&lt;/div&gt;
&lt;/li&gt;
...
&lt;/ul&gt;
</pre>
- </div>
- <div class="span6">
- <h2>{{_i}}More examples{{/i}}</h2>
- <p>{{_i}}Explore all your options with the various grid classes available to you. You can also mix and match different sizes.{{/i}}</p>
- <ul class="thumbnails">
- <li class="span4">
- <a href="#" class="thumbnail">
- <img src="http://placehold.it/360x268" alt="">
- </a>
- </li>
- <li class="span2">
- <a href="#" class="thumbnail">
- <img src="http://placehold.it/160x120" alt="">
- </a>
- </li>
- <li class="span2">
- <a href="#" class="thumbnail">
- <img src="http://placehold.it/160x120" alt="">
- </a>
- </li>
- <li class="span2">
- <a href="#" class="thumbnail">
- <img src="http://placehold.it/160x120" alt="">
- </a>
- </li>
- <li class="span2">
- <a href="#" class="thumbnail">
- <img src="http://placehold.it/160x120" alt="">
- </a>
- </li>
- <li class="span2">
- <a href="#" class="thumbnail">
- <img src="http://placehold.it/160x120" alt="">
- </a>
- </li>
- </ul>
- </div>
- </div>
-</section>
+ <h2>{{_i}}More examples{{/i}}</h2>
+ <p>{{_i}}Explore all your options with the various grid classes available to you. You can also mix and match different sizes.{{/i}}</p>
+ <ul class="thumbnails">
+ <li class="span4">
+ <a href="#" class="thumbnail">
+ <img src="http://placehold.it/360x270" alt="">
+ </a>
+ </li>
+ <li class="span3">
+ <a href="#" class="thumbnail">
+ <img src="http://placehold.it/260x120" alt="">
+ </a>
+ </li>
+ <li class="span2">
+ <a href="#" class="thumbnail">
+ <img src="http://placehold.it/160x120" alt="">
+ </a>
+ </li>
+ <li class="span3">
+ <a href="#" class="thumbnail">
+ <img src="http://placehold.it/260x120" alt="">
+ </a>
+ </li>
+ <li class="span2">
+ <a href="#" class="thumbnail">
+ <img src="http://placehold.it/160x120" alt="">
+ </a>
+ </li>
+ </ul>
+ </section>
-<!-- Alerts
-================================================== -->
-<section id="alerts">
- <div class="page-header">
- <h1>{{_i}}Alerts{{/i}} <small>{{_i}}Styles for success, warning, and error messages{{/i}}</small></h1>
- </div>
- <h2>{{_i}}Lightweight defaults{{/i}}</h2>
- <div class="row">
- <div class="span4">
- <h3>{{_i}}Rewritten base class{{/i}}</h3>
- <p>{{_i}}With Bootstrap 2, we've simplified the base class: <code>.alert</code> instead of <code>.alert-message</code>. We've also reduced the minimum required markup&mdash;no <code>&lt;p&gt;</code> is required by default, just the outer <code>&lt;div&gt;</code>.{{/i}}</p>
- <h3>{{_i}}Single alert message{{/i}}</h3>
- <p>{{_i}}For a more durable component with less code, we've removed the differentiating look for block alerts, messages that come with more padding and typically more text. The class also has changed to <code>.alert-block</code>.{{/i}}</p>
- <hr>
- <h3>{{_i}}Goes great with javascript{{/i}}</h3>
- <p>{{_i}}Bootstrap comes with a great jQuery plugin that supports alert messages, making dismissing them quick and easy.{{/i}}</p>
- <p><a class="btn js-btn" href="./javascript.html#alerts">{{_i}}Get the plugin &raquo;</a>{{/i}}</p>
- </div>
- <div class="span8">
- <h3>{{_i}}Example alerts{{/i}}</h3>
- <p>{{_i}}Wrap your message and an optional close icon in a div with simple class.{{/i}}</p>
- <div class="alert">
- <button type="button" class="close" data-dismiss="alert">&times;</button>
- <strong>{{_i}}Warning!{{/i}}</strong> {{_i}}Best check yo self, you're not looking too good.{{/i}}
- </div>
+ <!-- Alerts
+ ================================================== -->
+ <section id="alerts">
+ <div class="page-header">
+ <h1>{{_i}}Alerts{{/i}} <small>{{_i}}Styles for success, warning, and error messages{{/i}}</small></h1>
+ </div>
+
+ <h2>{{_i}}Default alert{{/i}}</h2>
+ <p>{{_i}}Wrap any text and an optional dismiss button in <code>.alert</code> for a basic warning alert message.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="alert">
+ <button type="button" class="close" data-dismiss="alert">&times;</button>
+ <strong>{{_i}}Warning!{{/i}}</strong> {{_i}}Best check yo self, you're not looking too good.{{/i}}
+ </div>
+ </div>
<pre class="prettyprint linenums">
&lt;div class="alert"&gt;
- &lt;button class="close" data-dismiss="alert"&gt;&times;&lt;/button&gt;
+ &lt;button type="button" class="close" data-dismiss="alert"&gt;&times;&lt;/button&gt;
&lt;strong&gt;{{_i}}Warning!{{/i}}&lt;/strong&gt; {{_i}}Best check yo self, you're not looking too good.{{/i}}
&lt;/div&gt;
</pre>
- <p><span class="label label-info">{{_i}}Heads up!{{/i}}</span> {{_i}}iOS devices require an <code>href="#"</code> for the dismissal of alerts. Be sure to include it and the data attribute for anchor close icons. Alternatively, you may use a <code>&lt;button&gt;</code> element with the data attribute, which we have opted to do for our docs. When using <code>&lt;button&gt;</code>, you must include <code>type="button"</code> or your forms may not submit.{{/i}}</p>
- <p>{{_i}}Easily extend the standard alert message with two optional classes: <code>.alert-block</code> for more padding and text controls and <code>.alert-heading</code> for a matching heading.{{/i}}</p>
- <div class="alert alert-block">
- <button type="button" class="close" data-dismiss="alert">&times;</button>
- <h4 class="alert-heading">{{_i}}Warning!{{/i}}</h4>
- <p>{{_i}}Best check yo self, you're not looking too good.{{/i}} Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.</p>
- </div>
+
+ <h3>{{_i}}Dismiss buttons{{/i}}</h3>
+ <p>{{_i}}Mobile Safari and Mobile Opera browsers, in addition to the <code>data-dismiss="alert"</code> attribute, require an <code>href="#"</code> for the dismissal of alerts when using an <code>&lt;a&gt;</code> tag.{{/i}}</p>
+ <pre class="prettyprint linenums">&lt;a href="#" class="close" data-dismiss="alert"&gt;&times;&lt;/button&gt;</pre>
+ <p>{{_i}}Alternatively, you may use a <code>&lt;button&gt;</code> element with the data attribute, which we have opted to do for our docs. When using <code>&lt;button&gt;</code>, you must include <code>type="button"</code> or your forms may not submit.{{/i}}</p>
+ <pre class="prettyprint linenums">&lt;button type="button" class="close" data-dismiss="alert"&gt;&times;&lt;/button&gt;</pre>
+
+ <h3>{{_i}}Dismiss alerts via javascript{{/i}}</h3>
+ <p>{{_i}}Use the <a href="./javascript.html#alerts">alerts jQuery plugin</a> for quick and easy dismissal of alerts.{{/i}}</p>
+
+
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Options{{/i}}</h2>
+ <p>{{_i}}For longer messages, increase the padding on the top and bottom of the alert wrapper by adding <code>.alert-block</code>.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="alert alert-block">
+ <button type="button" class="close" data-dismiss="alert">&times;</button>
+ <h4>{{_i}}Warning!{{/i}}</h4>
+ <p>{{_i}}Best check yo self, you're not looking too good.{{/i}} Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.</p>
+ </div>
+ </div>
<pre class="prettyprint linenums">
&lt;div class="alert alert-block"&gt;
- &lt;a class="close" data-dismiss="alert" href="#"&gt;&times;&lt;/a&gt;
- &lt;h4 class="alert-heading"&gt;{{_i}}Warning!{{/i}}&lt;/h4&gt;
+ &lt;button type="button" class="close" data-dismiss="alert"&gt;&times;&lt;/button&gt;
+ &lt;h4&gt;{{_i}}Warning!{{/i}}&lt;/h4&gt;
{{_i}}Best check yo self, you're not...{{/i}}
&lt;/div&gt;
</pre>
- </div>
- </div>
- <h2>{{_i}}Contextual alternatives{{/i}} <small>{{_i}}Add optional classes to change an alert's connotation{{/i}}</small></h2>
- <div class="row">
- <div class="span4">
- <h3>{{_i}}Error or danger{{/i}}</h3>
- <div class="alert alert-error">
- <button type="button" class="close" data-dismiss="alert">&times;</button>
- <strong>{{_i}}Oh snap!{{/i}}</strong> {{_i}}Change a few things up and try submitting again.{{/i}}
- </div>
+
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Contextual alternatives{{/i}}</h2>
+ <p>{{_i}}Add optional classes to change an alert's connotation.{{/i}}</p>
+
+ <h3>{{_i}}Error or danger{{/i}}</h3>
+ <div class="bs-docs-example">
+ <div class="alert alert-error">
+ <button type="button" class="close" data-dismiss="alert">&times;</button>
+ <strong>{{_i}}Oh snap!{{/i}}</strong> {{_i}}Change a few things up and try submitting again.{{/i}}
+ </div>
+ </div>
<pre class="prettyprint linenums">
&lt;div class="alert alert-error"&gt;
...
&lt;/div&gt;
</pre>
- </div>
- <div class="span4">
- <h3>{{_i}}Success{{/i}}</h3>
- <div class="alert alert-success">
- <button type="button" class="close" data-dismiss="alert">&times;</button>
- <strong>{{_i}}Well done!{{/i}}</strong> {{_i}}You successfully read this important alert message.{{/i}}
- </div>
+
+ <h3>{{_i}}Success{{/i}}</h3>
+ <div class="bs-docs-example">
+ <div class="alert alert-success">
+ <button type="button" class="close" data-dismiss="alert">&times;</button>
+ <strong>{{_i}}Well done!{{/i}}</strong> {{_i}}You successfully read this important alert message.{{/i}}
+ </div>
+ </div>
<pre class="prettyprint linenums">
&lt;div class="alert alert-success"&gt;
...
&lt;/div&gt;
</pre>
- </div>
- <div class="span4">
- <h3>{{_i}}Information{{/i}}</h3>
- <div class="alert alert-info">
- <button type="button" class="close" data-dismiss="alert">&times;</button>
- <strong>{{_i}}Heads up!{{/i}}</strong> {{_i}}This alert needs your attention, but it's not super important.{{/i}}
- </div>
+
+ <h3>{{_i}}Information{{/i}}</h3>
+ <div class="bs-docs-example">
+ <div class="alert alert-info">
+ <button type="button" class="close" data-dismiss="alert">&times;</button>
+ <strong>{{_i}}Heads up!{{/i}}</strong> {{_i}}This alert needs your attention, but it's not super important.{{/i}}
+ </div>
+ </div>
<pre class="prettyprint linenums">
&lt;div class="alert alert-info"&gt;
...
&lt;/div&gt;
</pre>
- </div>
- </div>
-</section>
+ </section>
-<!-- Progress bars
-================================================== -->
-<section id="progress">
- <div class="page-header">
- <h1>{{_i}}Progress bars{{/i}} <small>{{_i}}For loading, redirecting, or action status{{/i}}</small></h1>
- </div>
+ <!-- Progress bars
+ ================================================== -->
+ <section id="progress">
+ <div class="page-header">
+ <h1>{{_i}}Progress bars{{/i}} <small>{{_i}}For loading, redirecting, or action status{{/i}}</small></h1>
+ </div>
- <h2>{{_i}}Examples and markup{{/i}}</h2>
- <div class="row">
- <div class="span4">
- <h3>{{_i}}Basic{{/i}}</h3>
- <p>{{_i}}Default progress bar with a vertical gradient.{{/i}}</p>
- <div class="progress">
- <div class="bar" style="width: 60%;"></div>
- </div>
+ <h2>{{_i}}Examples and markup{{/i}}</h2>
+
+ <h3>{{_i}}Basic{{/i}}</h3>
+ <p>{{_i}}Default progress bar with a vertical gradient.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="progress">
+ <div class="bar" style="width: 60%;"></div>
+ </div>
+ </div>
<pre class="prettyprint linenums">
&lt;div class="progress"&gt;
- &lt;div class="bar"
- style="width: 60%;"&gt;&lt;/div&gt;
+ &lt;div class="bar" style="width: 60%;"&gt;&lt;/div&gt;
&lt;/div&gt;
</pre>
- </div>
- <div class="span4">
- <h3>{{_i}}Striped{{/i}}</h3>
- <p>{{_i}}Uses a gradient to create a striped effect (no IE).{{/i}}</p>
- <div class="progress progress-striped">
- <div class="bar" style="width: 20%;"></div>
- </div>
+
+ <h3>{{_i}}Striped{{/i}}</h3>
+ <p>{{_i}}Uses a gradient to create a striped effect. Not available in IE7-8.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="progress progress-striped">
+ <div class="bar" style="width: 20%;"></div>
+ </div>
+ </div>
<pre class="prettyprint linenums">
&lt;div class="progress progress-striped"&gt;
- &lt;div class="bar"
- style="width: 20%;"&gt;&lt;/div&gt;
+ &lt;div class="bar" style="width: 20%;"&gt;&lt;/div&gt;
&lt;/div&gt;
</pre>
- </div>
- <div class="span4">
- <h3>{{_i}}Animated{{/i}}</h3>
- <p>{{_i}}Takes the striped example and animates it (no IE).{{/i}}</p>
- <div class="progress progress-striped active">
- <div class="bar" style="width: 45%"></div>
- </div>
+
+ <h3>{{_i}}Animated{{/i}}</h3>
+ <p>{{_i}}Add <code>.active</code> to <code>.progress-striped</code> to animate the stripes right to left. Not available in all versions of IE.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="progress progress-striped active">
+ <div class="bar" style="width: 45%"></div>
+ </div>
+ </div>
<pre class="prettyprint linenums">
-&lt;div class="progress progress-striped
- active"&gt;
- &lt;div class="bar"
- style="width: 40%;"&gt;&lt;/div&gt;
+&lt;div class="progress progress-striped active"&gt;
+ &lt;div class="bar" style="width: 40%;"&gt;&lt;/div&gt;
&lt;/div&gt;
</pre>
- </div>
- </div>
- <h2>{{_i}}Options and browser support{{/i}}</h2>
- <div class="row">
- <div class="span3">
- <h3>{{_i}}Additional colors{{/i}}</h3>
- <p>{{_i}}Progress bars use some of the same button and alert classes for consistent styles.{{/i}}</p>
- <div class="progress progress-info" style="margin-bottom: 9px;">
- <div class="bar" style="width: 20%"></div>
- </div>
- <div class="progress progress-success" style="margin-bottom: 9px;">
- <div class="bar" style="width: 40%"></div>
- </div>
- <div class="progress progress-warning" style="margin-bottom: 9px;">
- <div class="bar" style="width: 60%"></div>
- </div>
- <div class="progress progress-danger" style="margin-bottom: 9px;">
- <div class="bar" style="width: 80%"></div>
- </div>
- </div>
- <div class="span3">
- <h3>{{_i}}Striped bars{{/i}}</h3>
- <p>{{_i}}Similar to the solid colors, we have varied striped progress bars.{{/i}}</p>
- <div class="progress progress-info progress-striped" style="margin-bottom: 9px;">
- <div class="bar" style="width: 20%"></div>
- </div>
- <div class="progress progress-success progress-striped" style="margin-bottom: 9px;">
- <div class="bar" style="width: 40%"></div>
- </div>
- <div class="progress progress-warning progress-striped" style="margin-bottom: 9px;">
- <div class="bar" style="width: 60%"></div>
- </div>
- <div class="progress progress-danger progress-striped" style="margin-bottom: 9px;">
- <div class="bar" style="width: 80%"></div>
- </div>
- </div>
- <div class="span3">
- <h3>{{_i}}Behavior{{/i}}</h3>
- <p>{{_i}}Progress bars use CSS3 transitions, so if you dynamically adjust the width via javascript, it will smoothly resize.{{/i}}</p>
- <p>{{_i}}If you use the <code>.active</code> class, your <code>.progress-striped</code> progress bars will animate the stripes left to right.{{/i}}</p>
- </div>
- <div class="span3">
- <h3>{{_i}}Browser support{{/i}}</h3>
- <p>{{_i}}Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE7-9 or older versions of Firefox.{{/i}}</p>
- <p>{{_i}}Opera and IE do not support animations at this time.{{/i}}</p>
- </div>
- </div>
+ <h3>Stacked</h3>
+ <p>Place multiple bars into the same <code>.progress</code> to stack them.</p>
+ <div class="bs-docs-example">
+ <div class="progress">
+ <div class="bar bar-success" style="width: 35%"></div>
+ <div class="bar bar-warning" style="width: 20%"></div>
+ <div class="bar bar-danger" style="width: 10%"></div>
+ </div>
+ </div>
+<pre class="prettyprint linenums">
+&lt;div class="progress"&gt;
+ &lt;div class="bar bar-success" style="width: 35%;"&gt;&lt;/div&gt;
+ &lt;div class="bar bar-warning" style="width: 20%;"&gt;&lt;/div&gt;
+ &lt;div class="bar bar-danger" style="width: 10%;"&gt;&lt;/div&gt;
+&lt;/div&gt;
+</pre>
-</section>
+ <hr class="bs-docs-separator">
+ <h2>{{_i}}Options{{/i}}</h2>
+ <h3>{{_i}}Additional colors{{/i}}</h3>
+ <p>{{_i}}Progress bars use some of the same button and alert classes for consistent styles.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="progress progress-info" style="margin-bottom: 9px;">
+ <div class="bar" style="width: 20%"></div>
+ </div>
+ <div class="progress progress-success" style="margin-bottom: 9px;">
+ <div class="bar" style="width: 40%"></div>
+ </div>
+ <div class="progress progress-warning" style="margin-bottom: 9px;">
+ <div class="bar" style="width: 60%"></div>
+ </div>
+ <div class="progress progress-danger">
+ <div class="bar" style="width: 80%"></div>
+ </div>
+ </div>
+<pre class="prettyprint linenums">
+&lt;div class="progress progress-info"&gt;
+ &lt;div class="bar" style="width: 20%"&gt;&lt;/div&gt;
+&lt;/div&gt;
+&lt;div class="progress progress-success"&gt;
+ &lt;div class="bar" style="width: 40%"&gt;&lt;/div&gt;
+&lt;/div&gt;
+&lt;div class="progress progress-warning"&gt;
+ &lt;div class="bar" style="width: 60%"&gt;&lt;/div&gt;
+&lt;/div&gt;
+&lt;div class="progress progress-danger"&gt;
+ &lt;div class="bar" style="width: 80%"&gt;&lt;/div&gt;
+&lt;/div&gt;
+</pre>
-<!-- Miscellaneous
-================================================== -->
-<section id="misc">
- <div class="page-header">
- <h1>{{_i}}Miscellaneous{{/i}} <small>{{_i}}Lightweight utility components{{/i}}</small></h1>
- </div>
- <div class="row">
- <div class="span4">
- <h2>{{_i}}Wells{{/i}}</h2>
- <p>{{_i}}Use the well as a simple effect on an element to give it an inset effect.{{/i}}</p>
- <div class="well">
- {{_i}}Look, I'm in a well!{{/i}}
- </div>
+ <h3>{{_i}}Striped bars{{/i}}</h3>
+ <p>{{_i}}Similar to the solid colors, we have varied striped progress bars.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="progress progress-info progress-striped" style="margin-bottom: 9px;">
+ <div class="bar" style="width: 20%"></div>
+ </div>
+ <div class="progress progress-success progress-striped" style="margin-bottom: 9px;">
+ <div class="bar" style="width: 40%"></div>
+ </div>
+ <div class="progress progress-warning progress-striped" style="margin-bottom: 9px;">
+ <div class="bar" style="width: 60%"></div>
+ </div>
+ <div class="progress progress-danger progress-striped">
+ <div class="bar" style="width: 80%"></div>
+ </div>
+ </div>
+<pre class="prettyprint linenums">
+&lt;div class="progress progress-info progress-striped"&gt;
+ &lt;div class="bar" style="width: 20%"&gt;&lt;/div&gt;
+&lt;/div&gt;
+&lt;div class="progress progress-success progress-striped"&gt;
+ &lt;div class="bar" style="width: 40%"&gt;&lt;/div&gt;
+&lt;/div&gt;
+&lt;div class="progress progress-warning progress-striped"&gt;
+ &lt;div class="bar" style="width: 60%"&gt;&lt;/div&gt;
+&lt;/div&gt;
+&lt;div class="progress progress-danger progress-striped"&gt;
+ &lt;div class="bar" style="width: 80%"&gt;&lt;/div&gt;
+&lt;/div&gt;
+</pre>
+
+
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Browser support{{/i}}</h2>
+ <p>{{_i}}Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE7-9 or older versions of Firefox.{{/i}}</p>
+ <p>{{_i}}Versions earlier than Internet Explorer 10 and Opera 12 do not support animations.{{/i}}</p>
+
+ </section>
+
+
+
+
+
+ <!-- Miscellaneous
+ ================================================== -->
+ <section id="misc">
+ <div class="page-header">
+ <h1>{{_i}}Miscellaneous{{/i}} <small>{{_i}}Lightweight utility components{{/i}}</small></h1>
+ </div>
+
+ <h2>{{_i}}Wells{{/i}}</h2>
+ <p>{{_i}}Use the well as a simple effect on an element to give it an inset effect.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="well">
+ {{_i}}Look, I'm in a well!{{/i}}
+ </div>
+ </div>
<pre class="prettyprint linenums">
&lt;div class="well"&gt;
...
&lt;/div&gt;
</pre>
- </div><!--/span-->
- <div class="span4">
- <h2>{{_i}}Close icon{{/i}}</h2>
- <p>{{_i}}Use the generic close icon for dismissing content like modals and alerts.{{/i}}</p>
- <p><button class="close" style="float: none;">&times;</button></p>
-<pre class="prettyprint linenums">&lt;button class="close"&gt;&amp;times;&lt;/button&gt;</pre>
- <p>{{_i}}iOS devices require an href="#" for click events if you rather use an anchor.{{/i}}</p>
-<pre class="prettyprint linenums">&lt;a class="close" href="#"&gt;&amp;times;&lt;/a&gt;</pre>
- </div><!--/span-->
- </div><!--/row-->
-</section>
+ <h3>{{_i}}Optional classes{{/i}}</h3>
+ <p>{{_i}}Control padding and rounded corners with two optional modifier classes.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div class="well well-large">
+ {{_i}}Look, I'm in a well!{{/i}}
+ </div>
+ </div>
+<pre class="prettyprint linenums">
+&lt;div class="well well-large"&gt;
+ ...
+&lt;/div&gt;
+</pre>
+ <div class="bs-docs-example">
+ <div class="well well-small">
+ {{_i}}Look, I'm in a well!{{/i}}
+ </div>
+ </div>
+<pre class="prettyprint linenums">
+&lt;div class="well well-small"&gt;
+ ...
+&lt;/div&gt;
+</pre>
+
+ <h2>{{_i}}Close icon{{/i}}</h2>
+ <p>{{_i}}Use the generic close icon for dismissing content like modals and alerts.{{/i}}</p>
+ <div class="bs-docs-example">
+ <p><button class="close" style="float: none;">&times;</button></p>
+ </div>
+ <pre class="prettyprint linenums">&lt;button class="close"&gt;&amp;times;&lt;/button&gt;</pre>
+ <p>{{_i}}iOS devices require an href="#" for click events if you rather use an anchor.{{/i}}</p>
+ <pre class="prettyprint linenums">&lt;a class="close" href="#"&gt;&amp;times;&lt;/a&gt;</pre>
+
+ <h2>{{_i}}Helper classes{{/i}}</h2>
+ <p>{{_i}}Simple, focused classes for small display or behavior tweaks.{{/i}}</p>
+
+ <h4>{{_i}}.pull-left{{/i}}</h4>
+ <p>{{_i}}Float an element left{{/i}}</p>
+<pre class="prettyprint linenums">
+class="pull-left"
+</pre>
+<pre class="prettyprint linenums">
+.pull-left {
+ float: left;
+}
+</pre>
+
+ <h4>{{_i}}.pull-right{{/i}}</h4>
+ <p>{{_i}}Float an element right{{/i}}</p>
+<pre class="prettyprint linenums">
+class="pull-right"
+</pre>
+<pre class="prettyprint linenums">
+.pull-right {
+ float: right;
+}
+</pre>
+
+ <h4>{{_i}}.muted{{/i}}</h4>
+ <p>{{_i}}Change an element's color to <code>#999</code>{{/i}}</p>
+<pre class="prettyprint linenums">
+class="muted"
+</pre>
+<pre class="prettyprint linenums">
+.muted {
+ color: #999;
+}
+</pre>
+
+ <h4>{{_i}}.clearfix{{/i}}</h4>
+ <p>{{_i}}Clear the <code>float</code> on any element{{/i}}</p>
+<pre class="prettyprint linenums">
+class="clearfix"
+</pre>
+<pre class="prettyprint linenums">
+.clearfix {
+ *zoom: 1;
+ &:before,
+ &:after {
+ display: table;
+ content: "";
+ }
+ &:after {
+ clear: both;
+ }
+}
+</pre>
+
+ </section>
+
+
+
+ </div>{{! /span9 }}
+ </div>{{! row}}
+
+ </div>{{! /.container }}
diff --git a/docs/templates/pages/customize.mustache b/docs/templates/pages/customize.mustache
new file mode 100644
index 000000000..0e78f99fd
--- /dev/null
+++ b/docs/templates/pages/customize.mustache
@@ -0,0 +1,363 @@
+<!-- Masthead
+================================================== -->
+<header class="jumbotron subhead" id="overview">
+ <div class="container">
+ <h1>{{_i}}Customize and download{{/i}}</h1>
+ <p class="lead">{{_i}}<a href="https://github.com/twitter/bootstrap/zipball/master">Download Bootstrap</a> or customize variables, components, javascript plugins, and more.{{/i}}</p>
+ </div>
+</header>
+
+
+ <div class="container">
+
+ <!-- Docs nav
+ ================================================== -->
+ <div class="row">
+ <div class="span3 bs-docs-sidebar">
+ <ul class="nav nav-list bs-docs-sidenav">
+ <li><a href="#components"><i class="icon-chevron-right"></i> {{_i}}1. Choose components{{/i}}</a></li>
+ <li><a href="#plugins"><i class="icon-chevron-right"></i> {{_i}}2. Select jQuery plugins{{/i}}</a></li>
+ <li><a href="#variables"><i class="icon-chevron-right"></i> {{_i}}3. Customize variables{{/i}}</a></li>
+ <li><a href="#download"><i class="icon-chevron-right"></i> {{_i}}4. Download{{/i}}</a></li>
+ </ul>
+ </div>
+ <div class="span9">
+
+
+ <!-- Customize form
+ ================================================== -->
+ <form>
+ <section class="download" id="components">
+ <div class="page-header">
+ <a class="btn btn-small pull-right toggle-all" href="#">{{_i}}Toggle all{{/i}}</a>
+ <h1>
+ {{_i}}1. Choose components{{/i}}
+ </h1>
+ </div>
+ <div class="row download-builder">
+ <div class="span3">
+ <h3>{{_i}}Scaffolding{{/i}}</h3>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="reset.less"> {{_i}}Normalize and reset{{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="scaffolding.less"> {{_i}}Body type and links{{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="grid.less"> {{_i}}Grid system{{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="layouts.less"> {{_i}}Layouts{{/i}}</label>
+ <h3>{{_i}}Base CSS{{/i}}</h3>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="type.less"> {{_i}}Headings, body, etc{{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="code.less"> {{_i}}Code and pre{{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="labels-badges.less"> {{_i}}Labels and badges{{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="tables.less"> {{_i}}Tables{{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="forms.less"> {{_i}}Forms{{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="buttons.less"> {{_i}}Buttons{{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="sprites.less"> {{_i}}Icons{{/i}}</label>
+ </div><!-- /span -->
+ <div class="span3">
+ <h3>{{_i}}Components{{/i}}</h3>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="button-groups.less"> {{_i}}Button groups and dropdowns{{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="navs.less"> {{_i}}Navs, tabs, and pills{{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="navbar.less"> {{_i}}Navbar{{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="breadcrumbs.less"> {{_i}}Breadcrumbs{{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="pagination.less"> {{_i}}Pagination{{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="pager.less"> {{_i}}Pager{{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="thumbnails.less"> {{_i}}Thumbnails{{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="alerts.less"> {{_i}}Alerts{{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="progress-bars.less"> {{_i}}Progress bars{{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="hero-unit.less"> {{_i}}Hero unit{{/i}}</label>
+ <h3>{{_i}}JS Components{{/i}}</h3>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="tooltip.less"> {{_i}}Tooltips{{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="popovers.less"> {{_i}}Popovers{{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="modals.less"> {{_i}}Modals{{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="dropdowns.less"> {{_i}}Dropdowns{{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="accordion.less"> {{_i}}Collapse{{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="carousel.less"> {{_i}}Carousel{{/i}}</label>
+ </div><!-- /span -->
+ <div class="span3">
+ <h3>{{_i}}Miscellaneous{{/i}}</h3>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="wells.less"> {{_i}}Wells{{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="close.less"> {{_i}}Close icon{{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="utilities.less"> {{_i}}Utilities{{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="component-animations.less"> {{_i}}Component animations{{/i}}</label>
+ <h3>{{_i}}Responsive{{/i}}</h3>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="responsive-utilities.less"> {{_i}}Visible/hidden classes{{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="responsive-767px-max.less"> {{_i}}Narrow tablets and below (<767px){{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="responsive-768px-979px.less"> {{_i}}Tablets to desktops (767-979px){{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="responsive-1200px-min.less"> {{_i}}Large desktops (>1200px){{/i}}</label>
+ <label class="checkbox"><input checked="checked" type="checkbox" value="responsive-navbar.less"> {{_i}}Responsive navbar{{/i}}</label>
+ </div><!-- /span -->
+ </div><!-- /row -->
+ </section>
+
+ <section class="download" id="plugins">
+ <div class="page-header">
+ <a class="btn btn-small pull-right toggle-all" href="#">{{_i}}Toggle all{{/i}}</a>
+ <h1>
+ {{_i}}2. Select jQuery plugins{{/i}}
+ </h1>
+ </div>
+ <div class="row download-builder">
+ <div class="span3">
+ <label class="checkbox">
+ <input type="checkbox" checked="true" value="bootstrap-transition.js">
+ {{_i}}Transitions <small>(required for any animation)</small>{{/i}}
+ </label>
+ <label class="checkbox">
+ <input type="checkbox" checked="true" value="bootstrap-modal.js">
+ {{_i}}Modals{{/i}}
+ </label>
+ <label class="checkbox">
+ <input type="checkbox" checked="true" value="bootstrap-dropdown.js">
+ {{_i}}Dropdowns{{/i}}
+ </label>
+ <label class="checkbox">
+ <input type="checkbox" checked="true" value="bootstrap-scrollspy.js">
+ {{_i}}Scrollspy{{/i}}
+ </label>
+ <label class="checkbox">
+ <input type="checkbox" checked="true" value="bootstrap-tab.js">
+ {{_i}}Togglable tabs{{/i}}
+ </label>
+ <label class="checkbox">
+ <input type="checkbox" checked="true" value="bootstrap-tooltip.js">
+ {{_i}}Tooltips{{/i}}
+ </label>
+ <label class="checkbox">
+ <input type="checkbox" checked="true" value="bootstrap-popover.js">
+ {{_i}}Popovers <small>(requires Tooltips)</small>{{/i}}
+ </label>
+ </div><!-- /span -->
+ <div class="span3">
+ <label class="checkbox">
+ <input type="checkbox" checked="true" value="bootstrap-affix.js">
+ {{_i}}Affix{{/i}}
+ </label>
+ <label class="checkbox">
+ <input type="checkbox" checked="true" value="bootstrap-alert.js">
+ {{_i}}Alert messages{{/i}}
+ </label>
+ <label class="checkbox">
+ <input type="checkbox" checked="true" value="bootstrap-button.js">
+ {{_i}}Buttons{{/i}}
+ </label>
+ <label class="checkbox">
+ <input type="checkbox" checked="true" value="bootstrap-collapse.js">
+ {{_i}}Collapse{{/i}}
+ </label>
+ <label class="checkbox">
+ <input type="checkbox" checked="true" value="bootstrap-carousel.js">
+ {{_i}}Carousel{{/i}}
+ </label>
+ <label class="checkbox">
+ <input type="checkbox" checked="true" value="bootstrap-typeahead.js">
+ {{_i}}Typeahead{{/i}}
+ </label>
+ </div><!-- /span -->
+ <div class="span3">
+ <h4 class="muted">{{_i}}Heads up!{{/i}}</h4>
+ <p class="muted">{{_i}}All checked plugins will be compiled into a single file, bootstrap.js. All plugins require the latest version of <a href="http://jquery.com/" target="_blank">jQuery</a> to be included.{{/i}}</p>
+ </div><!-- /span -->
+ </div><!-- /row -->
+ </section>
+
+
+ <section class="download" id="variables">
+ <div class="page-header">
+ <a class="btn btn-small pull-right toggle-all" href="#">{{_i}}Reset to defaults{{/i}}</a>
+ <h1>
+ {{_i}}3. Customize variables{{/i}}
+ </h1>
+ </div>
+ <div class="row download-builder">
+ <div class="span3">
+ <h3>{{_i}}Scaffolding{{/i}}</h3>
+ <label>@bodyBackground</label>
+ <input type="text" class="span3" placeholder="@white">
+ <label>@textColor</label>
+ <input type="text" class="span3" placeholder="@grayDark">
+
+ <h3>{{_i}}Links{{/i}}</h3>
+ <label>@linkColor</label>
+ <input type="text" class="span3" placeholder="#08c">
+ <label>@linkColorHover</label>
+ <input type="text" class="span3" placeholder="darken(@linkColor, 15%)">
+ <h3>{{_i}}Colors{{/i}}</h3>
+ <label>@blue</label>
+ <input type="text" class="span3" placeholder="#049cdb">
+ <label>@green</label>
+ <input type="text" class="span3" placeholder="#46a546">
+ <label>@red</label>
+ <input type="text" class="span3" placeholder="#9d261d">
+ <label>@yellow</label>
+ <input type="text" class="span3" placeholder="#ffc40d">
+ <label>@orange</label>
+ <input type="text" class="span3" placeholder="#f89406">
+ <label>@pink</label>
+ <input type="text" class="span3" placeholder="#c3325f">
+ <label>@purple</label>
+ <input type="text" class="span3" placeholder="#7a43b6">
+
+ <h3>{{_i}}Sprites{{/i}}</h3>
+ <label>@iconSpritePath</label>
+ <input type="text" class="span3" placeholder="'../img/glyphicons-halflings.png'">
+ <label>@iconWhiteSpritePath</label>
+ <input type="text" class="span3" placeholder="'../img/glyphicons-halflings-white.png'">
+
+ <h3>{{_i}}Grid system{{/i}}</h3>
+ <label>@gridColumns</label>
+ <input type="text" class="span3" placeholder="12">
+ <label>@gridColumnWidth</label>
+ <input type="text" class="span3" placeholder="60px">
+ <label>@gridGutterWidth</label>
+ <input type="text" class="span3" placeholder="20px">
+ <label>@gridColumnWidth1200</label>
+ <input type="text" class="span3" placeholder="70px">
+ <label>@gridGutterWidth1200</label>
+ <input type="text" class="span3" placeholder="30px">
+ <label>@gridColumnWidth768</label>
+ <input type="text" class="span3" placeholder="42px">
+ <label>@gridGutterWidth768</label>
+ <input type="text" class="span3" placeholder="20px">
+
+ </div><!-- /span -->
+ <div class="span3">
+
+ <h3>{{_i}}Typography{{/i}}</h3>
+ <label>@sansFontFamily</label>
+ <input type="text" class="span3" placeholder="'Helvetica Neue', Helvetica, Arial, sans-serif">
+ <label>@serifFontFamily</label>
+ <input type="text" class="span3" placeholder="Georgia, 'Times New Roman', Times, serif">
+ <label>@monoFontFamily</label>
+ <input type="text" class="span3" placeholder="Menlo, Monaco, 'Courier New', monospace">
+ <label>@baseFontSize</label>
+ <input type="text" class="span3" placeholder="14px">
+ <label>@baseFontFamily</label>
+ <input type="text" class="span3" placeholder="@sansFontFamily">
+ <label>@baseLineHeight</label>
+ <input type="text" class="span3" placeholder="20px">
+ <label>@altFontFamily</label>
+ <input type="text" class="span3" placeholder="@serifFontFamily">
+ <label>@headingsFontFamily</label>
+ <input type="text" class="span3" placeholder="inherit">
+ <label>@headingsFontWeight</label>
+ <input type="text" class="span3" placeholder="bold">
+ <label>@headingsColor</label>
+ <input type="text" class="span3" placeholder="inherit">
+ <label>@heroUnitBackground</label>
+ <input type="text" class="span3" placeholder="@grayLighter">
+ <label>@heroUnitHeadingColor</label>
+ <input type="text" class="span3" placeholder="inherit">
+ <label>@heroUnitLeadColor</label>
+ <input type="text" class="span3" placeholder="inherit">
+
+ <h3>{{_i}}Tables{{/i}}</h3>
+ <label>@tableBackground</label>
+ <input type="text" class="span3" placeholder="transparent">
+ <label>@tableBackgroundAccent</label>
+ <input type="text" class="span3" placeholder="#f9f9f9">
+ <label>@tableBackgroundHover</label>
+ <input type="text" class="span3" placeholder="#f5f5f5">
+ <label>@tableBorder</label>
+ <input type="text" class="span3" placeholder="#ddd">
+
+ <h3>{{_i}}Forms{{/i}}</h3>
+ <label>@placeholderText</label>
+ <input type="text" class="span3" placeholder="@grayLight">
+ <label>@inputBackground</label>
+ <input type="text" class="span3" placeholder="@white">
+ <label>@inputBorder</label>
+ <input type="text" class="span3" placeholder="#ccc">
+ <label>@inputBorderRadius</label>
+ <input type="text" class="span3" placeholder="3px">
+ <label>@inputDisabledBackground</label>
+ <input type="text" class="span3" placeholder="@grayLighter">
+ <label>@formActionsBackground</label>
+ <input type="text" class="span3" placeholder="#f5f5f5">
+ <label>@btnPrimaryBackground</label>
+ <input type="text" class="span3" placeholder="@linkColor">
+ <label>@btnPrimaryBackgroundHighlight</label>
+ <input type="text" class="span3" placeholder="darken(@white, 10%);">
+
+ </div><!-- /span -->
+ <div class="span3">
+
+ <h3>{{_i}}Form states &amp; alerts{{/i}}</h3>
+ <label>@warningText</label>
+ <input type="text" class="span3" placeholder="#c09853">
+ <label>@warningBackground</label>
+ <input type="text" class="span3" placeholder="#fcf8e3">
+ <label>@errorText</label>
+ <input type="text" class="span3" placeholder="#b94a48">
+ <label>@errorBackground</label>
+ <input type="text" class="span3" placeholder="#f2dede">
+ <label>@successText</label>
+ <input type="text" class="span3" placeholder="#468847">
+ <label>@successBackground</label>
+ <input type="text" class="span3" placeholder="#dff0d8">
+ <label>@infoText</label>
+ <input type="text" class="span3" placeholder="#3a87ad">
+ <label>@infoBackground</label>
+ <input type="text" class="span3" placeholder="#d9edf7">
+
+ <h3>{{_i}}Navbar{{/i}}</h3>
+ <label>@navbarHeight</label>
+ <input type="text" class="span3" placeholder="40px">
+ <label>@navbarBackground</label>
+ <input type="text" class="span3" placeholder="@grayDarker">
+ <label>@navbarBackgroundHighlight</label>
+ <input type="text" class="span3" placeholder="@grayDark">
+ <label>@navbarText</label>
+ <input type="text" class="span3" placeholder="@grayLight">
+ <label>@navbarBrandColor</label>
+ <input type="text" class="span3" placeholder="@navbarLinkColor">
+ <label>@navbarLinkColor</label>
+ <input type="text" class="span3" placeholder="@grayLight">
+ <label>@navbarLinkColorHover</label>
+ <input type="text" class="span3" placeholder="@white">
+ <label>@navbarLinkColorActive</label>
+ <input type="text" class="span3" placeholder="@navbarLinkColorHover">
+ <label>@navbarLinkBackgroundHover</label>
+ <input type="text" class="span3" placeholder="transparent">
+ <label>@navbarLinkBackgroundActive</label>
+ <input type="text" class="span3" placeholder="@navbarBackground">
+ <label>@navbarSearchBackground</label>
+ <input type="text" class="span3" placeholder="lighten(@navbarBackground, 25%)">
+ <label>@navbarSearchBackgroundFocus</label>
+ <input type="text" class="span3" placeholder="@white">
+ <label>@navbarSearchBorder</label>
+ <input type="text" class="span3" placeholder="darken(@navbarSearchBackground, 30%)">
+ <label>@navbarSearchPlaceholderColor</label>
+ <input type="text" class="span3" placeholder="#ccc">
+
+ <h3>{{_i}}Dropdowns{{/i}}</h3>
+ <label>@dropdownBackground</label>
+ <input type="text" class="span3" placeholder="@white">
+ <label>@dropdownBorder</label>
+ <input type="text" class="span3" placeholder="rgba(0,0,0,.2)">
+ <label>@dropdownLinkColor</label>
+ <input type="text" class="span3" placeholder="@grayDark">
+ <label>@dropdownLinkColorHover</label>
+ <input type="text" class="span3" placeholder="@white">
+ <label>@dropdownLinkBackgroundHover</label>
+ <input type="text" class="span3" placeholder="@linkColor">
+ </div><!-- /span -->
+ </div><!-- /row -->
+ </section>
+
+ <section class="download" id="download">
+ <div class="page-header">
+ <h1>
+ {{_i}}4. Download{{/i}}
+ </h1>
+ </div>
+ <div class="download-btn">
+ <a class="btn btn-primary" href="#" {{#production}}onclick="_gaq.push(['_trackEvent', 'Customize', 'Download', 'Customize and Download']);"{{/production}}>Customize and Download</a>
+ <h4>{{_i}}What's included?{{/i}}</h4>
+ <p>{{_i}}Downloads include compiled CSS, compiled and minified CSS, and compiled jQuery plugins, all nicely packed up into a zipball for your convenience.{{/i}}</p>
+ </div>
+ </section><!-- /download -->
+ </form>
+
+
+
+ </div>{{! /span9 }}
+ </div>{{! row}}
+
+ </div>{{! /.container }}
diff --git a/docs/templates/pages/download.mustache b/docs/templates/pages/download.mustache
deleted file mode 100644
index 6efe75745..000000000
--- a/docs/templates/pages/download.mustache
+++ /dev/null
@@ -1,338 +0,0 @@
-<!-- Masthead
-================================================== -->
-<header class="jumbotron subhead" id="overview">
- <h1>{{_i}}Customize and download{{/i}}</h1>
- <p class="lead">{{_i}}<a href="https://github.com/twitter/bootstrap/zipball/master">Download the full repository</a> or customize your entire Bootstrap build by selecting only the components, javascript plugins, and assets you need.{{/i}}</p>
- <div class="subnav">
- <ul class="nav nav-pills">
- <li><a href="#components">{{_i}}1. Choose components{{/i}}</a></li>
- <li><a href="#plugins">{{_i}}2. Select jQuery plugins{{/i}}</a></li>
- <li><a href="#variables">{{_i}}3. Customize variables{{/i}}</a></li>
- <li><a href="#download">{{_i}}4. Download{{/i}}</a></li>
- </ul>
- </div>
-</header>
-
-<section class="download" id="components">
- <div class="page-header">
- <a class="btn btn-small pull-right toggle-all" href="#">{{_i}}Toggle all{{/i}}</a>
- <h1>
- {{_i}}1. Choose components{{/i}}
- <small>{{_i}}Get just the CSS you need{{/i}}</small>
- </h1>
- </div>
- <div class="row download-builder">
- <div class="span3">
- <h3>{{_i}}Scaffolding{{/i}}</h3>
- <label class="checkbox"><input checked="checked" type="checkbox" value="reset.less"> {{_i}}Normalize and reset{{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="scaffolding.less"> {{_i}}Body type and links{{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="grid.less"> {{_i}}Grid system{{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="layouts.less"> {{_i}}Layouts{{/i}}</label>
- <h3>{{_i}}Base CSS{{/i}}</h3>
- <label class="checkbox"><input checked="checked" type="checkbox" value="type.less"> {{_i}}Headings, body, etc{{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="code.less"> {{_i}}Code and pre{{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="labels-badges.less"> {{_i}}Labels and badges{{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="tables.less"> {{_i}}Tables{{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="forms.less"> {{_i}}Forms{{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="buttons.less"> {{_i}}Buttons{{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="sprites.less"> {{_i}}Icons{{/i}}</label>
- </div><!-- /span -->
- <div class="span3">
- <h3>{{_i}}Components{{/i}}</h3>
- <label class="checkbox"><input checked="checked" type="checkbox" value="button-groups.less"> {{_i}}Button groups and dropdowns{{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="navs.less"> {{_i}}Navs, tabs, and pills{{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="navbar.less"> {{_i}}Navbar{{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="breadcrumbs.less"> {{_i}}Breadcrumbs{{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="pagination.less"> {{_i}}Pagination{{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="pager.less"> {{_i}}Pager{{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="thumbnails.less"> {{_i}}Thumbnails{{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="alerts.less"> {{_i}}Alerts{{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="progress-bars.less"> {{_i}}Progress bars{{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="hero-unit.less"> {{_i}}Hero unit{{/i}}</label>
- </div><!-- /span -->
- <div class="span3">
- <h3>{{_i}}JS Components{{/i}}</h3>
- <label class="checkbox"><input checked="checked" type="checkbox" value="tooltip.less"> {{_i}}Tooltips{{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="popovers.less"> {{_i}}Popovers{{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="modals.less"> {{_i}}Modals{{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="dropdowns.less"> {{_i}}Dropdowns{{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="accordion.less"> {{_i}}Collapse{{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="carousel.less"> {{_i}}Carousel{{/i}}</label>
- </div><!-- /span -->
- <div class="span3">
- <h3>{{_i}}Miscellaneous{{/i}}</h3>
- <label class="checkbox"><input checked="checked" type="checkbox" value="wells.less"> {{_i}}Wells{{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="close.less"> {{_i}}Close icon{{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="utilities.less"> {{_i}}Utilities{{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="component-animations.less"> {{_i}}Component animations{{/i}}</label>
- <h3>{{_i}}Responsive{{/i}}</h3>
- <label class="checkbox"><input checked="checked" type="checkbox" value="responsive-utilities.less"> {{_i}}Visible/hidden classes{{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="responsive-767px-max.less"> {{_i}}Narrow tablets and below (<767px){{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="responsive-768px-979px.less"> {{_i}}Tablets to desktops (767-979px){{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="responsive-1200px-min.less"> {{_i}}Large desktops (>1200px){{/i}}</label>
- <label class="checkbox"><input checked="checked" type="checkbox" value="responsive-navbar.less"> {{_i}}Responsive navbar{{/i}}</label>
- </div><!-- /span -->
- </div><!-- /row -->
-</section>
-
-<section class="download" id="plugins">
- <div class="page-header">
- <a class="btn btn-small pull-right toggle-all" href="#">{{_i}}Toggle all{{/i}}</a>
- <h1>
- {{_i}}2. Select jQuery plugins{{/i}}
- <small>{{_i}}Quickly add only the necessary javascript{{/i}}</small>
- </h1>
- </div>
- <div class="row download-builder">
- <div class="span4">
- <label class="checkbox">
- <input type="checkbox" checked="true" value="bootstrap-transition.js">
- {{_i}}Transitions <small>(required for any animation)</small>{{/i}}
- </label>
- <label class="checkbox">
- <input type="checkbox" checked="true" value="bootstrap-modal.js">
- {{_i}}Modals{{/i}}
- </label>
- <label class="checkbox">
- <input type="checkbox" checked="true" value="bootstrap-dropdown.js">
- {{_i}}Dropdowns{{/i}}
- </label>
- <label class="checkbox">
- <input type="checkbox" checked="true" value="bootstrap-scrollspy.js">
- {{_i}}Scrollspy{{/i}}
- </label>
- <label class="checkbox">
- <input type="checkbox" checked="true" value="bootstrap-tab.js">
- {{_i}}Togglable tabs{{/i}}
- </label>
- <label class="checkbox">
- <input type="checkbox" checked="true" value="bootstrap-tooltip.js">
- {{_i}}Tooltips{{/i}}
- </label>
- </div><!-- /span -->
- <div class="span4">
- <label class="checkbox">
- <input type="checkbox" checked="true" value="bootstrap-popover.js">
- {{_i}}Popovers <small>(requires Tooltips)</small>{{/i}}
- </label>
- <label class="checkbox">
- <input type="checkbox" checked="true" value="bootstrap-alert.js">
- {{_i}}Alert messages{{/i}}
- </label>
- <label class="checkbox">
- <input type="checkbox" checked="true" value="bootstrap-button.js">
- {{_i}}Buttons{{/i}}
- </label>
- <label class="checkbox">
- <input type="checkbox" checked="true" value="bootstrap-collapse.js">
- {{_i}}Collapse{{/i}}
- </label>
- <label class="checkbox">
- <input type="checkbox" checked="true" value="bootstrap-carousel.js">
- {{_i}}Carousel{{/i}}
- </label>
- <label class="checkbox">
- <input type="checkbox" checked="true" value="bootstrap-typeahead.js">
- {{_i}}Typeahead{{/i}}
- </label>
- </div><!-- /span -->
- <div class="span4">
- <h4 class="muted">{{_i}}Heads up!{{/i}}</h4>
- <p class="muted">{{_i}}All checked plugins will be compiled into a single file, bootstrap.js. All plugins require the latest version of <a href="http://jquery.com/" target="_blank">jQuery</a> to be included.{{/i}}</p>
- </div><!-- /span -->
- </div><!-- /row -->
-</section>
-
-
-<section class="download" id="variables">
- <div class="page-header">
- <a class="btn btn-small pull-right toggle-all" href="#">{{_i}}Reset to defaults{{/i}}</a>
- <h1>
- {{_i}}3. Customize variables{{/i}}
- <small>{{_i}}Optionally modify Bootstrap without a compiler{{/i}}</small>
- </h1>
- </div>
- <div class="row download-builder">
- <div class="span3">
- <h3>{{_i}}Scaffolding{{/i}}</h3>
- <label>@bodyBackground</label>
- <input type="text" class="span3" placeholder="@white">
- <label>@textColor</label>
- <input type="text" class="span3" placeholder="@grayDark">
-
- <h3>{{_i}}Links{{/i}}</h3>
- <label>@linkColor</label>
- <input type="text" class="span3" placeholder="#08c">
- <label>@linkColorHover</label>
- <input type="text" class="span3" placeholder="darken(@linkColor, 15%)">
- <h3>{{_i}}Colors{{/i}}</h3>
- <label>@blue</label>
- <input type="text" class="span3" placeholder="#049cdb">
- <label>@green</label>
- <input type="text" class="span3" placeholder="#46a546">
- <label>@red</label>
- <input type="text" class="span3" placeholder="#9d261d">
- <label>@yellow</label>
- <input type="text" class="span3" placeholder="#ffc40d">
- <label>@orange</label>
- <input type="text" class="span3" placeholder="#f89406">
- <label>@pink</label>
- <input type="text" class="span3" placeholder="#c3325f">
- <label>@purple</label>
- <input type="text" class="span3" placeholder="#7a43b6">
-
- <h3>{{_i}}Sprites{{/i}}</h3>
- <label>@iconSpritePath</label>
- <input type="text" class="span3" placeholder="'../img/glyphicons-halflings.png'">
- <label>@iconWhiteSpritePath</label>
- <input type="text" class="span3" placeholder="'../img/glyphicons-halflings-white.png'">
-
- </div><!-- /span -->
- <div class="span3">
- <h3>{{_i}}Grid system{{/i}}</h3>
- <label>@gridColumns</label>
- <input type="text" class="span3" placeholder="12">
- <label>@gridColumnWidth</label>
- <input type="text" class="span3" placeholder="60px">
- <label>@gridGutterWidth</label>
- <input type="text" class="span3" placeholder="20px">
- <h3>{{_i}}Fluid grid system{{/i}}</h3>
- <label>@fluidGridColumnWidth</label>
- <input type="text" class="span3" placeholder="6.382978723%">
- <label>@fluidGridGutterWidth</label>
- <input type="text" class="span3" placeholder="2.127659574%">
-
- <h3>{{_i}}Typography{{/i}}</h3>
- <label>@sansFontFamily</label>
- <input type="text" class="span3" placeholder="'Helvetica Neue', Helvetica, Arial, sans-serif">
- <label>@serifFontFamily</label>
- <input type="text" class="span3" placeholder="Georgia, 'Times New Roman', Times, serif">
- <label>@monoFontFamily</label>
- <input type="text" class="span3" placeholder="Menlo, Monaco, 'Courier New', monospace">
- <label>@baseFontSize</label>
- <input type="text" class="span3" placeholder="13px">
- <label>@baseFontFamily</label>
- <input type="text" class="span3" placeholder="@sansFontFamily">
- <label>@baseLineHeight</label>
- <input type="text" class="span3" placeholder="18px">
- <label>@altFontFamily</label>
- <input type="text" class="span3" placeholder="@serifFontFamily">
- <label>@headingsFontFamily</label>
- <input type="text" class="span3" placeholder="inherit">
- <label>@headingsFontWeight</label>
- <input type="text" class="span3" placeholder="bold">
- <label>@headingsColor</label>
- <input type="text" class="span3" placeholder="inherit">
- <label>@heroUnitBackground</label>
- <input type="text" class="span3" placeholder="@grayLighter">
- <label>@heroUnitHeadingColor</label>
- <input type="text" class="span3" placeholder="inherit">
- <label>@heroUnitLeadColor</label>
- <input type="text" class="span3" placeholder="inherit">
- </div><!-- /span -->
- <div class="span3">
- <h3>{{_i}}Tables{{/i}}</h3>
- <label>@tableBackground</label>
- <input type="text" class="span3" placeholder="transparent">
- <label>@tableBackgroundAccent</label>
- <input type="text" class="span3" placeholder="#f9f9f9">
- <label>@tableBackgroundHover</label>
- <input type="text" class="span3" placeholder="#f5f5f5">
- <label>@tableBorder</label>
- <input type="text" class="span3" placeholder="#ddd">
-
- <h3>{{_i}}Navbar{{/i}}</h3>
- <label>@navbarHeight</label>
- <input type="text" class="span3" placeholder="40px">
- <label>@navbarBackground</label>
- <input type="text" class="span3" placeholder="@grayDarker">
- <label>@navbarBackgroundHighlight</label>
- <input type="text" class="span3" placeholder="@grayDark">
- <label>@navbarText</label>
- <input type="text" class="span3" placeholder="@grayLight">
- <label>@navbarBrandColor</label>
- <input type="text" class="span3" placeholder="@navbarLinkColor">
- <label>@navbarLinkColor</label>
- <input type="text" class="span3" placeholder="@grayLight">
- <label>@navbarLinkColorHover</label>
- <input type="text" class="span3" placeholder="@white">
- <label>@navbarLinkColorActive</label>
- <input type="text" class="span3" placeholder="@navbarLinkColorHover">
- <label>@navbarLinkBackgroundHover</label>
- <input type="text" class="span3" placeholder="transparent">
- <label>@navbarLinkBackgroundActive</label>
- <input type="text" class="span3" placeholder="@navbarBackground">
- <label>@navbarSearchBackground</label>
- <input type="text" class="span3" placeholder="lighten(@navbarBackground, 25%)">
- <label>@navbarSearchBackgroundFocus</label>
- <input type="text" class="span3" placeholder="@white">
- <label>@navbarSearchBorder</label>
- <input type="text" class="span3" placeholder="darken(@navbarSearchBackground, 30%)">
- <label>@navbarSearchPlaceholderColor</label>
- <input type="text" class="span3" placeholder="#ccc">
-
- <h3>{{_i}}Dropdowns{{/i}}</h3>
- <label>@dropdownBackground</label>
- <input type="text" class="span3" placeholder="@white">
- <label>@dropdownBorder</label>
- <input type="text" class="span3" placeholder="rgba(0,0,0,.2)">
- <label>@dropdownLinkColor</label>
- <input type="text" class="span3" placeholder="@grayDark">
- <label>@dropdownLinkColorHover</label>
- <input type="text" class="span3" placeholder="@white">
- <label>@dropdownLinkBackgroundHover</label>
- <input type="text" class="span3" placeholder="@linkColor">
- </div><!-- /span -->
- <div class="span3">
- <h3>{{_i}}Forms{{/i}}</h3>
- <label>@placeholderText</label>
- <input type="text" class="span3" placeholder="@grayLight">
- <label>@inputBackground</label>
- <input type="text" class="span3" placeholder="@white">
- <label>@inputBorder</label>
- <input type="text" class="span3" placeholder="#ccc">
- <label>@inputBorderRadius</label>
- <input type="text" class="span3" placeholder="3px">
- <label>@inputDisabledBackground</label>
- <input type="text" class="span3" placeholder="@grayLighter">
- <label>@formActionsBackground</label>
- <input type="text" class="span3" placeholder="#f5f5f5">
-
- <label>@btnPrimaryBackground</label>
- <input type="text" class="span3" placeholder="@linkColor">
- <label>@btnPrimaryBackgroundHighlight</label>
- <input type="text" class="span3" placeholder="darken(@white, 10%);">
-
- <h3>{{_i}}Form states &amp; alerts{{/i}}</h3>
- <label>@warningText</label>
- <input type="text" class="span3" placeholder="#c09853">
- <label>@warningBackground</label>
- <input type="text" class="span3" placeholder="#fcf8e3">
- <label>@errorText</label>
- <input type="text" class="span3" placeholder="#b94a48">
- <label>@errorBackground</label>
- <input type="text" class="span3" placeholder="#f2dede">
- <label>@successText</label>
- <input type="text" class="span3" placeholder="#468847">
- <label>@successBackground</label>
- <input type="text" class="span3" placeholder="#dff0d8">
- <label>@infoText</label>
- <input type="text" class="span3" placeholder="#3a87ad">
- <label>@infoBackground</label>
- <input type="text" class="span3" placeholder="#d9edf7">
- </div><!-- /span -->
- </div><!-- /row -->
-</section>
-
-<section class="download" id="download">
- <div class="page-header">
- <h1>
- {{_i}}4. Download{{/i}}
- </h1>
- </div>
- <div class="download-btn">
- <a class="btn btn-primary" href="#" {{#production}}onclick="_gaq.push(['_trackEvent', 'Customize', 'Download', 'Customize and Download']);"{{/production}}>Customize and Download</a>
- <h4>{{_i}}What's included?{{/i}}</h4>
- <p>{{_i}}Downloads include compiled CSS, compiled and minified CSS, and compiled jQuery plugins, all nicely packed up into a zipball for your convenience.{{/i}}</p>
- </div>
-</section><!-- /download -->
diff --git a/docs/templates/pages/examples.mustache b/docs/templates/pages/examples.mustache
deleted file mode 100644
index dee7d5651..000000000
--- a/docs/templates/pages/examples.mustache
+++ /dev/null
@@ -1,31 +0,0 @@
-<!-- Masthead
-================================================== -->
-<header class="jumbotron subhead" id="overview">
- <h1>{{_i}}Bootstrap examples{{/i}}</h1>
- <p class="lead">{{_i}}We've included a few basic examples as starting points for your work with Bootstrap. We encourage folks to iterate on these examples and not simply use them as an end result.{{/i}}</p>
-</header>
-
-
-<ul class="thumbnails bootstrap-examples">
- <li class="span4">
- <a class="thumbnail" href="examples/hero.html">
- <img src="assets/img/examples/bootstrap-example-hero.jpg" alt="">
- </a>
- <h3>{{_i}}Basic marketing site{{/i}}</h3>
- <p>{{_i}}Featuring a hero unit for a primary message and three supporting elements.{{/i}}</p>
- </li>
- <li class="span4">
- <a class="thumbnail" href="examples/fluid.html">
- <img src="assets/img/examples/bootstrap-example-fluid.jpg" alt="">
- </a>
- <h3>{{_i}}Fluid layout{{/i}}</h3>
- <p>{{_i}}Uses our new responsive, fluid grid system to create a seamless liquid layout.{{/i}}</p>
- </li>
- <li class="span4">
- <a class="thumbnail" href="examples/starter-template.html">
- <img src="assets/img/examples/bootstrap-example-starter.jpg" alt="">
- </a>
- <h3>{{_i}}Starter template{{/i}}</h3>
- <p>{{_i}}A barebones HTML document with all the Bootstrap CSS and javascript included.{{/i}}</p>
- </li>
-</ul>
diff --git a/docs/templates/pages/extend.mustache b/docs/templates/pages/extend.mustache
new file mode 100644
index 000000000..a4332e62e
--- /dev/null
+++ b/docs/templates/pages/extend.mustache
@@ -0,0 +1,169 @@
+<!-- Subhead
+================================================== -->
+<header class="jumbotron subhead" id="overview">
+ <div class="container">
+ <h1>{{_i}}Extending Bootstrap{{/i}}</h1>
+ <p class="lead">{{_i}}Extend Bootstrap to take advantage of included styles and components, as well as LESS variables and mixins.{{/i}}</p>
+ <div>
+</header>
+
+ <div class="container">
+
+ <!-- Docs nav
+ ================================================== -->
+ <div class="row">
+ <div class="span3 bs-docs-sidebar">
+ <ul class="nav nav-list bs-docs-sidenav">
+ <li><a href="#built-with-less"><i class="icon-chevron-right"></i> {{_i}}Built with LESS{{/i}}</a></li>
+ <li><a href="#compiling"><i class="icon-chevron-right"></i> {{_i}}Compiling Bootstrap{{/i}}</a></li>
+ <li><a href="#static-assets"><i class="icon-chevron-right"></i> {{_i}}Use as static assets{{/i}}</a></li>
+ </ul>
+ </div>
+ <div class="span9">
+
+
+
+ <!-- BUILT WITH LESS
+ ================================================== -->
+ <section id="built-with-less">
+ <div class="page-header">
+ <h1>{{_i}}Built with LESS{{/i}}</h1>
+ </div>
+
+ <img style="float: right; height: 36px; margin: 10px 20px 20px" src="assets/img/less-logo-large.png" alt="LESS CSS">
+ <p class="lead">{{_i}}Bootstrap is made with LESS at its core, a dynamic stylesheet language created by our good friend, <a href="http://cloudhead.io">Alexis Sellier</a>. It makes developing systems-based CSS faster, easier, and more fun.{{/i}}</p>
+
+ <h3>{{_i}}Why LESS?{{/i}}</h3>
+ <p>{{_i}}One of Bootstrap's creators wrote a quick <a href="http://www.wordsbyf.at/2012/03/08/why-less/">blog post about this</a>, summarized here:{{/i}}</p>
+ <ul>
+ <li>{{_i}}Bootstrap compiles faster ~6x faster with Less compared to Sass{{/i}}</li>
+ <li>{{_i}}Less is written in JavaScript, making it easier to us to dive in and patch compared to Ruby with Sass.{{/i}}</li>
+ <li>{{_i}}Less is more; we want to feel like we're writing CSS and making Bootstrap approachable to all.{{/i}}</li>
+ </ul>
+
+ <h3>{{_i}}What's included?{{/i}}</h3>
+ <p>{{_i}}As an extension of CSS, LESS includes variables, mixins for reusable snippets of code, operations for simple math, nesting, and even color functions.{{/i}}</p>
+
+ <h3>{{_i}}Learn more{{/i}}</h3>
+ <p>{{_i}}Visit the official website at <a href="http://lesscss.org">http://lesscss.org</a> to learn more.{{/i}}</p>
+ </section>
+
+
+
+ <!-- COMPILING LESS AND BOOTSTRAP
+ ================================================== -->
+ <section id="compiling">
+ <div class="page-header">
+ <h1>{{_i}}Compiling Bootstrap with Less{{/i}}</h1>
+ </div>
+
+ <p class="lead">{{_i}}Since our CSS is written with Less and utilizes variables and mixins, it needs to be compiled for final production implementation. Here's how.{{/i}}</p>
+
+ <div class="alert alert-info">
+ {{_i}}<strong>Note:</strong> If you're submitting a pull request to GitHub with modified CSS, you <strong>must</strong> recompile the CSS via any of these methods.{{/i}}
+ </div>
+
+ <h2>{{_i}}Tools for compiling{{/i}}</h2>
+
+ <h3>{{_i}}Node with makefile{{/i}}</h3>
+ <p>{{_i}}Install the LESS command line compiler, JSHint, Recess, and uglify-js globally with npm by running the following command:{{/i}}</p>
+ <pre>$ npm install -g less jshint recess uglify-js</pre>
+ <p>{{_i}}Once installed just run <code>make</code> from the root of your bootstrap directory and you're all set.{{/i}}</p>
+ <p>{{_i}}Additionally, if you have <a href="https://github.com/mynyml/watchr">watchr</a> installed, you may run <code>make watch</code> to have bootstrap automatically rebuilt every time you edit a file in the bootstrap lib (this isn't required, just a convenience method).{{/i}}</p>
+
+ <h3>{{_i}}Command line{{/i}}</h3>
+ <p>{{_i}}Install the LESS command line tool via Node and run the following command:{{/i}}</p>
+ <pre>$ lessc ./less/bootstrap.less > bootstrap.css</pre>
+ <p>{{_i}}Be sure to include <code>--compress</code> in that command if you're trying to save some bytes!{{/i}}</p>
+
+ <h3>{{_i}}Javascript{{/i}}</h3>
+ <p>{{_i}}<a href="http://lesscss.org/">Download the latest Less.js</a> and include the path to it (and Bootstrap) in the <code>&lt;head&gt;</code>.{{/i}}</p>
+<pre class="prettyprint">
+&lt;link rel="stylesheet/less" href="/path/to/bootstrap.less"&gt;
+&lt;script src="/path/to/less.js"&gt;&lt;/script&gt;
+</pre>
+ <p>{{_i}}To recompile the .less files, just save them and reload your page. Less.js compiles them and stores them in local storage.{{/i}}</p>
+
+ <h3>{{_i}}Unofficial Mac app{{/i}}</h3>
+ <p>{{_i}}<a href="http://incident57.com/less/">The unofficial Mac app</a> watches directories of .less files and compiles the code to local files after every save of a watched .less file. If you like, you can toggle preferences in the app for automatic minifying and which directory the compiled files end up in.{{/i}}</p>
+
+ <h3>{{_i}}More apps{{/i}}</h3>
+ <h4><a href="http://crunchapp.net/" target="_blank">Crunch</a></h4>
+ <p>{{_i}}Crunch is a great looking LESS editor and compiler built on Adobe Air.{{/i}}</p>
+ <h4><a href="http://incident57.com/codekit/" target="_blank">CodeKit</a></h4>
+ <p>{{_i}}Created by the same guy as the unofficial Mac app, CodeKit is a Mac app that compiles LESS, SASS, Stylus, and CoffeeScript.{{/i}}</p>
+ <h4><a href="http://wearekiss.com/simpless" target="_blank">Simpless</a></h4>
+ <p>{{_i}}Mac, Linux, and Windows app for drag and drop compiling of LESS files. Plus, the <a href="https://github.com/Paratron/SimpLESS" target="_blank">source code is on GitHub</a>.{{/i}}</p>
+
+ </section>
+
+
+
+ <!-- Static assets
+ ================================================== -->
+ <section id="static-assets">
+ <div class="page-header">
+ <h1>{{_i}}Use as static assets{{/i}}</h1>
+ </div>
+ <p class="lead">{{_i}}<a href="./getting-started.html">Quickly start</a> any web project by dropping in the compiled or minified CSS and JS. Layer on custom styles separately for easy upgrades and maintenance moving forward.{{/i}}</p>
+
+ <h3>{{_i}}Setup file structure{{/i}}</h3>
+ <p>{{_i}}Download the latest compiled Bootstrap and place into your project. For example, you might have something like this:{{/i}}</p>
+<pre class="prettyprint">
+ app/
+ ├── layouts/
+ └── templates/
+ public/
+ ├── css/
+ │ ├── bootstrap.min.css
+ ├── js/
+ │ ├── bootstrap.min.js
+ └── img/
+ ├── glyphicons-halflings.png
+ └── glyphicons-halflings-white.png
+</pre>
+
+ <h3>{{_i}}Utilize starter template{{/i}}</h3>
+ <p>{{_i}}Copy the following base HTML to get started.{{/i}}</p>
+<pre class="prettyprint linenums">
+&lt;html&gt;
+ &lt;head&gt;
+ &lt;title&gt;Bootstrap 101 Template&lt;/title&gt;
+ &lt;!-- Bootstrap --&gt;
+ &lt;link href="public/css/bootstrap.min.css" rel="stylesheet"&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+ &lt;h1&gt;Hello, world!&lt;/h1&gt;
+ &lt;!-- Bootstrap --&gt;
+ &lt;script src="public/js/bootstrap.min.js"&gt;&lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
+</pre>
+
+ <h3>{{_i}}Layer on custom code{{/i}}</h3>
+ <p>{{_i}}Work in your custom CSS, JS, and more as necessary to make Bootstrap your own with your own separate CSS and JS files.{{/i}}</p>
+<pre class="prettyprint linenums">
+&lt;html&gt;
+ &lt;head&gt;
+ &lt;title&gt;Bootstrap 101 Template&lt;/title&gt;
+ &lt;!-- Bootstrap --&gt;
+ &lt;link href="public/css/bootstrap.min.css" rel="stylesheet"&gt;
+ &lt;!-- Project --&gt;
+ &lt;link href="public/css/application.css" rel="stylesheet"&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+ &lt;h1&gt;Hello, world!&lt;/h1&gt;
+ &lt;!-- Bootstrap --&gt;
+ &lt;script src="public/js/bootstrap.min.js"&gt;&lt;/script&gt;
+ &lt;!-- Project --&gt;
+ &lt;script src="public/js/application.js"&gt;&lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
+</pre>
+
+ </section>
+
+ </div>{{! /span9 }}
+ </div>{{! row}}
+
+ </div>{{! /.container }}
diff --git a/docs/templates/pages/getting-started.mustache b/docs/templates/pages/getting-started.mustache
new file mode 100644
index 000000000..8b58e62b7
--- /dev/null
+++ b/docs/templates/pages/getting-started.mustache
@@ -0,0 +1,213 @@
+<!-- Subhead
+================================================== -->
+<header class="jumbotron subhead" id="overview">
+ <div class="container">
+ <h1>{{_i}}Getting started{{/i}}</h1>
+ <p class="lead">{{_i}}Overview of the project, it's contents, and how to get started with a simple template.{{/i}}</p>
+ </div>
+</header>
+
+
+ <div class="container">
+
+ <!-- Docs nav
+ ================================================== -->
+ <div class="row">
+ <div class="span3 bs-docs-sidebar">
+ <ul class="nav nav-list bs-docs-sidenav">
+ <li><a href="#download-bootstrap"><i class="icon-chevron-right"></i> {{_i}}Download{{/i}}</a></li>
+ <li><a href="#file-structure"><i class="icon-chevron-right"></i> {{_i}}File structure{{/i}}</a></li>
+ <li><a href="#contents"><i class="icon-chevron-right"></i> {{_i}}What's included{{/i}}</a></li>
+ <li><a href="#html-template"><i class="icon-chevron-right"></i> {{_i}}HTML template{{/i}}</a></li>
+ <li><a href="#examples"><i class="icon-chevron-right"></i> {{_i}}Examples{{/i}}</a></li>
+ <li><a href="#what-next"><i class="icon-chevron-right"></i> {{_i}}What next?{{/i}}</a></li>
+ </ul>
+ </div>
+ <div class="span9">
+
+
+
+ <!-- Download
+ ================================================== -->
+ <section id="download-bootstrap">
+ <div class="page-header">
+ <h1>{{_i}}1. Download{{/i}}</h1>
+ </div>
+ <p class="lead">{{_i}}Before downloading, be sure to have a code editor (we recommend <a href="http://sublimetext.com/2">Sublime Text 2</a>) and some working knowledge of HTML and CSS. We won't walk through the source files here, but they are available for download. We'll focus on getting started with our the compiled Bootstrap files.{{/i}}</p>
+
+ <div class="row-fluid">
+ <div class="span6">
+ <h2>Download compiled</h2>
+ <p><strong>Fastest way to get started:</strong> get the compiled and minified versions of our CSS, JS, and images. No docs or original source files.</p>
+ <p><a class="btn btn-large btn-primary" href="assets/bootstrap.zip" {{#production}}onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download compiled']);"{{/production}}>Download Bootstrap</a></p>
+ </div>
+ <div class="span6">
+ <h2>Download source</h2>
+ <p>Get the original files for all CSS and Javasript, along with a local copy of the docs by downloading the latest version directly from GitHub.</p>
+ <p><a class="btn btn-large" href="https://github.com/twitter/bootstrap/zipball/master" {{#production}}onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download source']);"{{/production}}>Download Bootstrap source</a></p>
+ </div>
+ </div>
+ </section>
+
+
+
+ <!-- File structure
+ ================================================== -->
+ <section id="file-structure">
+ <div class="page-header">
+ <h1>{{_i}}2. File structure{{/i}}</h1>
+ </div>
+ <p class="lead">{{_i}}Within the download you'll find the following file structure and contents, logically grouping common assets and providing both compiled and minified variations.{{/i}}</p>
+ <p>{{_i}}Once downloaded, unzip the compressed folder to see the structure of (the compiled) Bootstrap. You'll see something like this:{{/i}}</p>
+<pre class="prettyprint">
+ bootstrap/
+ ├── css/
+ │ ├── bootstrap.css
+ │ ├── bootstrap.min.css
+ ├── js/
+ │ ├── bootstrap.js
+ │ ├── bootstrap.min.js
+ ├── img/
+ │ ├── glyphicons-halflings.png
+ │ ├── glyphicons-halflings-white.png
+ └── README.md
+</pre>
+ <p>{{_i}}This is the most basic form of Bootstrap: compiled files for quick drop-in usage in nearly any web project. We provide compiled CSS and JS (<code>bootstrap.*</code>), as well as compiled and minified CSS and JS (<code>bootstrap.min.*</code>). The image files are compressed using <a href="http://imageoptim.com/">ImageOptim</a>, a Mac app for compressing PNGs.{{/i}}</p>
+ </section>
+
+
+
+ <!-- Contents
+ ================================================== -->
+ <section id="contents">
+ <div class="page-header">
+ <h1>{{_i}}3. What's included{{/i}}</h1>
+ </div>
+ <p class="lead">{{_i}}Bootstrap comes equipped with HTML, CSS, and JS for all sorts of things, but they can be summarized with a handful of categories visible at the top of the <a href="http://getbootstrap.com">Bootstrap documentation</a>.{{/i}}</p>
+
+ <h2>{{_i}}Docs sections{{/i}}</h2>
+ <h4><a href="http://twitter.github.com/bootstrap/scaffolding.html">{{_i}}Scaffolding{{/i}}</a></h4>
+ <p>{{_i}}Global styles for the body to reset type and background, link styles, grid system, and two simple layouts.{{/i}}</p>
+ <h4><a href="http://twitter.github.com/bootstrap/base-css.html">{{_i}}Base CSS{{/i}}</a></h4>
+ <p>{{_i}}Styles for common HTML elements like typography, code, tables, forms, and buttons. Also includes <a href="http://glyphicons.com">Glyphicons</a>, a great little icon set.{{/i}}</p>
+ <h4><a href="http://twitter.github.com/bootstrap/components.html">{{_i}}Components{{/i}}</a></h4>
+ <p>{{_i}}Basic styles for common interface components like tabs and pills, navbar, alerts, page headers, and more.{{/i}}</p>
+ <h4><a href="http://twitter.github.com/bootstrap/javascript.html">{{_i}}Javascript plugins{{/i}}</a></h4>
+ <p>{{_i}}Similar to Components, these Javascript plugins are interactive components for things like tooltips, popovers, modals, and more.{{/i}}</p>
+
+ <h2>{{_i}}List of components{{/i}}</h2>
+ <p>{{_i}}Together, the <strong>Components</strong> and <strong>Javascript plugins</strong> sections provide the following interface elements:{{/i}}</p>
+ <ul>
+ <li>{{_i}}Button groups{{/i}}</li>
+ <li>{{_i}}Button dropdowns{{/i}}</li>
+ <li>{{_i}}Navigational tabs, pills, and lists{{/i}}</li>
+ <li>{{_i}}Navbar{{/i}}</li>
+ <li>{{_i}}Labels{{/i}}</li>
+ <li>{{_i}}Badges{{/i}}</li>
+ <li>{{_i}}Page headers and hero unit{{/i}}</li>
+ <li>{{_i}}Thumbnails{{/i}}</li>
+ <li>{{_i}}Alerts{{/i}}</li>
+ <li>{{_i}}Progress bars{{/i}}</li>
+ <li>{{_i}}Modals{{/i}}</li>
+ <li>{{_i}}Dropdowns{{/i}}</li>
+ <li>{{_i}}Tooltips{{/i}}</li>
+ <li>{{_i}}Popovers{{/i}}</li>
+ <li>{{_i}}Accordion{{/i}}</li>
+ <li>{{_i}}Carousel{{/i}}</li>
+ <li>{{_i}}Typeahead{{/i}}</li>
+ </ul>
+ <p>{{_i}}In future guides, we may walk through these components individually in more detail. Until then, look for each of these in the documentation for information on how to utilize and customize them.{{/i}}</p>
+ </section>
+
+
+
+ <!-- HTML template
+ ================================================== -->
+ <section id="html-template">
+ <div class="page-header">
+ <h1>{{_i}}4. Basic HTML template{{/i}}</h1>
+ </div>
+ <p class="lead">{{_i}}With a brief intro into the contents out of the way, we can focus putting Bootstrap to use. To do that, we'll utilize a basic HTML template that includes everything we mentioned in the <a href="#file-structure">File structure</a>.{{/i}}</p>
+ <p>{{_i}}Now, here's a look at a <strong>typical HTML file</strong>:{{/i}}</p>
+<pre class="prettyprint linenums">
+&lt;html&gt;
+ &lt;head&gt;
+ &lt;title&gt;Bootstrap 101 Template&lt;/title&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+ &lt;h1&gt;Hello, world!&lt;/h1&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
+</pre>
+ <p>{{_i}}To make this <strong>a Bootstrapped template</strong>, just include the appropriate CSS and JS files:{{/i}}</p>
+<pre class="prettyprint linenums">
+&lt;html&gt;
+ &lt;head&gt;
+ &lt;title&gt;Bootstrap 101 Template&lt;/title&gt;
+ &lt;!-- Bootstrap --&gt;
+ &lt;link href="css/bootstrap.min.css" rel="stylesheet"&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+ &lt;h1&gt;Hello, world!&lt;/h1&gt;
+ &lt;script src="js/bootstrap.min.js"&gt;&lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
+</pre>
+ <p>{{_i}}<strong>And you're set!</strong> With those two files added, you can begin to develop any site or application with Bootstrap.{{/i}}</p>
+ </section>
+
+
+
+ <!-- Examples
+ ================================================== -->
+ <section id="examples">
+ <div class="page-header">
+ <h1>{{_i}}5. Examples{{/i}}</h1>
+ </div>
+ <p class="lead">{{_i}}Move beyond the base template with a few example layouts. We encourage folks to iterate on these examples and not simply use them as an end result.{{/i}}</p>
+ <ul class="thumbnails bootstrap-examples">
+ <li class="span3">
+ <a class="thumbnail" href="examples/hero.html">
+ <img src="assets/img/examples/bootstrap-example-hero.jpg" alt="">
+ </a>
+ <h4>{{_i}}Basic marketing site{{/i}}</h4>
+ <p>{{_i}}Featuring a hero unit for a primary message and three supporting elements.{{/i}}</p>
+ </li>
+ <li class="span3">
+ <a class="thumbnail" href="examples/fluid.html">
+ <img src="assets/img/examples/bootstrap-example-fluid.jpg" alt="">
+ </a>
+ <h4>{{_i}}Fluid layout{{/i}}</h4>
+ <p>{{_i}}Uses our new responsive, fluid grid system to create a seamless liquid layout.{{/i}}</p>
+ </li>
+ <li class="span3">
+ <a class="thumbnail" href="examples/starter-template.html">
+ <img src="assets/img/examples/bootstrap-example-starter.jpg" alt="">
+ </a>
+ <h4>{{_i}}Starter template{{/i}}</h4>
+ <p>{{_i}}A barebones HTML document with all the Bootstrap CSS and javascript included.{{/i}}</p>
+ </li>
+ </ul>
+ </section>
+
+
+
+
+ <!-- Next
+ ================================================== -->
+ <section id="what-next">
+ <div class="page-header">
+ <h1>{{_i}}What next?{{/i}}</h1>
+ </div>
+ <p class="lead">Head to the docs for information, examples, and code snippets, or take the next leap and customize Bootstrap for any upcoming project.</p>
+ <a class="btn btn-large btn-primary" href="./scaffolding.html" {{#production}}onclick="_gaq.push(['_trackEvent', 'Getting started', 'Next steps', 'Visit docs']);"{{/production}}>Visit the Bootstrap docs</a>
+ <a class="btn btn-large" href="./customize.html" style="margin-left: 5px;" {{#production}}onclick="_gaq.push(['_trackEvent', 'Getting started', 'Next steps', 'Customize']);"{{/production}}>Customize Bootstrap</a>
+ </section>
+
+
+
+
+ </div>{{! /span9 }}
+ </div>{{! row}}
+
+ </div>{{! /.container }}
diff --git a/docs/templates/pages/index.mustache b/docs/templates/pages/index.mustache
index f14e95c14..654a98846 100644
--- a/docs/templates/pages/index.mustache
+++ b/docs/templates/pages/index.mustache
@@ -1,29 +1,24 @@
-<!-- Masthead
-================================================== -->
-<header class="jumbotron masthead">
- <div class="inner">
- <h1>{{_i}}Bootstrap, from Twitter{{/i}}</h1>
- <p>{{_i}}Simple and flexible HTML, CSS, and Javascript for popular user interface components and interactions.{{/i}}</p>
- <p class="download-info">
- <a href="https://github.com/twitter/bootstrap/" class="btn btn-primary btn-large" {{#production}}onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'GitHub Project', 'View project on GitHub']);"{{/production}}>{{_i}}View project on GitHub{{/i}}</a>
- <a href="assets/bootstrap.zip" class="btn btn-large" {{#production}}onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Download', 'Download 2.0.4']);"{{/production}}>{{_i}}Download Bootstrap <small>(v2.0.4)</small>{{/i}}</a>
- </p>
+<div class="jumbotron masthead">
+ <div class="container">
+ <h1>Bootstrap</h1>
+ <p>Sleek, intuitive, and powerful front-end framework for faster and easier web development.</p>
+ <p><a href="assets/bootstrap.zip" class="btn btn-primary btn-large" {{#production}}onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Download', 'Download 2.1.0']);"{{/production}}>{{_i}}Download Bootstrap{{/i}}</a></p>
+ <ul class="masthead-links">
+ <li><a href="http://github.com/twitter/bootstrap" {{#production}}onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Jumbotron links', 'GitHub project']);"{{/production}}>GitHub project</a></li>
+ <li><a href="./extend.html" {{#production}}onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Jumbotron links', 'Extend']);"{{/production}}>Extend</a></li>
+ <li>Version 2.1.0</li>
+ </ul>
</div>
+</div>
- <div class="bs-links">
- <ul class="quick-links">
- <li><a href="./upgrading.html">{{_i}}Upgrading from 1.4{{/i}}</a></li>
- <li><a href="https://github.com/twitter/bootstrap/zipball/master">{{_i}}Download with docs{{/i}}</a></li>
- <li><a href="http://blog.getbootstrap.com">{{_i}}Read the blog{{/i}}</a></li>
- <li><a href="https://github.com/twitter/bootstrap/issues?state=open">{{_i}}Submit issues{{/i}}</a></li>
- <li><a href="https://github.com/twitter/bootstrap/wiki">{{_i}}Roadmap and changelog{{/i}}</a></li>
- </ul>
- <ul class="quick-links">
+<div class="bs-docs-social">
+ <div class="container">
+ <ul class="bs-docs-social-buttons">
<li>
- <iframe class="github-btn" src="http://markdotto.github.com/github-buttons/github-btn.html?user=twitter&repo=bootstrap&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="112px" height="20px"></iframe>
+ <iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=twitter&repo=bootstrap&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100px" height="20px"></iframe>
</li>
<li>
- <iframe class="github-btn" src="http://markdotto.github.com/github-buttons/github-btn.html?user=twitter&repo=bootstrap&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="98px" height="20px"></iframe>
+ <iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=twitter&repo=bootstrap&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="98px" height="20px"></iframe>
</li>
<li class="follow-btn">
<a href="https://twitter.com/twbootstrap" class="twitter-follow-button" data-link-color="#0069D6" data-show-count="true">{{_i}}Follow @twbootstrap{{/i}}</a>
@@ -33,112 +28,62 @@
</li>
</ul>
</div>
-</header>
+</div>
-<hr class="soften">
+<div class="container">
-<div class="marketing">
- <h1>{{_i}}Designed for everyone, everywhere.{{/i}}</h1>
- <p class="marketing-byline">{{_i}}Need reasons to love Bootstrap? Look no further.{{/i}}</p>
- <div class="row">
- <div class="span4">
- <img class="bs-icon" src="assets/img/glyphicons/glyphicons_042_group.png">
- <h2>{{_i}}Built for and by nerds{{/i}}</h2>
- <p>{{_i}}Like you, we love building awesome products on the web. We love it so much, we decided to help people just like us do it easier, better, and faster. Bootstrap is built for you.{{/i}}</p>
- </div>
- <div class="span4">
- <img class="bs-icon" src="assets/img/glyphicons/glyphicons_079_podium.png">
- <h2>{{_i}}For all skill levels{{/i}}</h2>
- <p>{{_i}}Bootstrap is designed to help people of all skill levels&mdash;designer or developer, huge nerd or early beginner. Use it as a complete kit or use to start something more complex.{{/i}}</p>
- </div>
- <div class="span4">
- <img class="bs-icon" src="assets/img/glyphicons/glyphicons_163_iphone.png">
- <h2>{{_i}}Cross-everything{{/i}}</h2>
- <p>{{_i}}Originally built with only modern browsers in mind, Bootstrap has evolved to include support for all major browsers (even IE7!) and, with Bootstrap 2, tablets and smartphones, too.{{/i}}</p>
- </div>
- </div><!--/row-->
- <div class="row">
- <div class="span4">
- <img class="bs-icon" src="assets/img/glyphicons/glyphicons_155_show_thumbnails.png">
- <h2>{{_i}}12-column grid{{/i}}</h2>
- <p>{{_i}}Grid systems aren't everything, but having a durable and flexible one at the core of your work can make development much simpler. Use our built-in grid classes or roll your own.{{/i}}</p>
- </div>
- <div class="span4">
- <img class="bs-icon" src="assets/img/glyphicons/glyphicons_214_resize_small.png">
- <h2>{{_i}}Responsive design{{/i}}</h2>
- <p>{{_i}}With Bootstrap 2, we've gone fully responsive. Our components are scaled according to a range of resolutions and devices to provide a consistent experience, no matter what.{{/i}}</p>
- </div>
- <div class="span4">
- <img class="bs-icon" src="assets/img/glyphicons/glyphicons_266_book_open.png">
- <h2>{{_i}}Styleguide docs{{/i}}</h2>
- <p>{{_i}}Unlike other front-end toolkits, Bootstrap was designed first and foremost as a styleguide to document not only our features, but best practices and living, coded examples.{{/i}}</p>
- </div>
- </div><!--/row-->
- <div class="row">
- <div class="span4">
- <img class="bs-icon" src="assets/img/glyphicons/glyphicons_082_roundabout.png">
- <h2>{{_i}}Growing library{{/i}}</h2>
- <p>{{_i}}Despite being only 10kb (gzipped), Bootstrap is one of the most complete front-end toolkits out there with dozens of fully functional components ready to be put to use.{{/i}}</p>
- </div>
- <div class="span4">
- <img class="bs-icon" src="assets/img/glyphicons/glyphicons_009_magic.png">
- <h2>{{_i}}Custom jQuery plugins{{/i}}</h2>
- <p>{{_i}}What good is an awesome design component without easy-to-use, proper, and extensible interactions? With Bootstrap, you get custom-built jQuery plugins to bring your projects to life.{{/i}}</p>
- </div>
- <div class="span4">
- <img class="bs-icon" src="assets/img/less-small.png">
- <h2>{{_i}}Built on LESS{{/i}}</h2>
- <p>{{_i}}Where vanilla CSS falters, LESS excels. Variables, nesting, operations, and mixins in LESS makes coding CSS faster and more efficient with minimal overhead.{{/i}}</p>
- </div>
- </div><!--/row-->
- <div class="row">
- <div class="span3">
- <img class="small-bs-icon" src="assets/img/icon-html5.png">
- <h3>HTML5</h3>
- <p>{{_i}}Built to support new HTML5 elements and syntax.{{/i}}</p>
- </div>
- <div class="span3">
- <img class="small-bs-icon" src="assets/img/icon-css3.png">
- <h3>CSS3</h3>
- <p>{{_i}}Progressively enhanced components for ultimate style.{{/i}}</p>
- </div>
- <div class="span3">
- <img class="small-bs-icon" src="assets/img/icon-github.png">
- <h3>{{_i}}Open-source{{/i}}</h3>
- <p>{{_i}}Built for and maintained by the community via <a href="https://github.com">GitHub</a>.{{/i}}</p>
- </div>
- <div class="span3">
- <img class="small-bs-icon" src="assets/img/icon-twitter.png">
- <h3>{{_i}}Made at Twitter{{/i}}</h3>
- <p>{{_i}}Brought to you by an experienced <a href="http://twitter.com/fat">engineer</a> and <a href="http://twitter.com/mdo">designer</a>.{{/i}}</p>
+ <div class="marketing">
+
+ <h1>{{_i}}Introducing Bootstrap.{{/i}}</h1>
+ <p class="marketing-byline">{{_i}}Need reasons to love Bootstrap? Look no further.{{/i}}</p>
+
+ <div class="row-fluid">
+ <div class="span4">
+ <img src="assets/img/bs-docs-twitter-github.png">
+ <h2>{{_i}}By nerds, for nerds.{{/i}}</h2>
+ <p>{{_i}}Built at Twitter by <a href="http://twitter.com/mdo">@mdo</a> and <a href="http://twitter.com/fat">@fat</a>, Bootstrap utilizes <a href="http://lesscss.org">LESS CSS</a>, is compiled via <a href="http://nodejs.org">Node</a>, and is managed through <a href="http://github.com">GitHub</a> to help nerds do awesome stuff on the web.{{/i}}</p>
+ </div>
+ <div class="span4">
+ <img src="assets/img/bs-docs-responsive-illustrations.png">
+ <h2>{{_i}}Made for everyone.{{/i}}</h2>
+ <p>{{_i}}Bootstrap was made to not only look and behave great in the latest desktop browsers (as well as IE7!), but in tablet and smartphone browsers via <a href="./scaffolding.html#responsive">responsive CSS</a> as well.{{/i}}</p>
+ </div>
+ <div class="span4">
+ <img src="assets/img/bs-docs-bootstrap-features.png">
+ <h2>{{_i}}Packed with features.{{/i}}</h2>
+ <p>{{_i}}A 12-column responsive <a href="./scaffolding.html#grid">grid</a>, dozens of components, <a href="./javascript.html">javascript plugins</a>, typography, form controls, and even a <a href="./customize.html">web-based Customizer</a> to make Bootstrap your own.{{/i}}</p>
+ </div>
</div>
- </div><!--/row-->
- <hr class="soften">
+ <hr class="soften">
+
+ <h1>{{_i}}Built with Bootstrap.{{/i}}</h1>
+ <p class="marketing-byline">{{_i}}For even more sites built with Bootstrap, <a href="http://builtwithbootstrap.tumblr.com/" target="_blank">visit the unofficial Tumblr</a> or <a href="./getting-started.html#examples">browse the examples</a>.{{/i}}</p>
+ <div class="row-fluid">
+ <ul class="thumbnails example-sites">
+ <li class="span3">
+ <a class="thumbnail" href="http://soundready.fm/" target="_blank">
+ <img src="assets/img/example-sites/soundready.png" alt="SoundReady.fm">
+ </a>
+ </li>
+ <li class="span3">
+ <a class="thumbnail" href="http://kippt.com/" target="_blank">
+ <img src="assets/img/example-sites/kippt.png" alt="Kippt">
+ </a>
+ </li>
+ <li class="span3">
+ <a class="thumbnail" href="http://www.fleetio.com/" target="_blank">
+ <img src="assets/img/example-sites/fleetio.png" alt="Fleetio">
+ </a>
+ </li>
+ <li class="span3">
+ <a class="thumbnail" href="http://www.jshint.com/" target="_blank">
+ <img src="assets/img/example-sites/jshint.png" alt="JS Hint">
+ </a>
+ </li>
+ </ul>
+ </div>
- <h1>{{_i}}Built with Bootstrap.{{/i}}</h1>
- <p class="marketing-byline">{{_i}}For even more sites built with Bootstrap, <a href="http://builtwithbootstrap.tumblr.com/" target="_blank">visit the unofficial Tumblr</a> or <a href="./examples.html">browse the examples</a>.{{/i}}</p>
- <ul class="thumbnails example-sites">
- <li class="span3">
- <a class="thumbnail" href="http://soundready.fm/" target="_blank">
- <img src="assets/img/example-sites/soundready.png" alt="SoundReady.fm">
- </a>
- </li>
- <li class="span3">
- <a class="thumbnail" href="http://kippt.com/" target="_blank">
- <img src="assets/img/example-sites/kippt.png" alt="Kippt">
- </a>
- </li>
- <li class="span3">
- <a class="thumbnail" href="http://www.fleetio.com/" target="_blank">
- <img src="assets/img/example-sites/fleetio.png" alt="Fleetio">
- </a>
- </li>
- <li class="span3">
- <a class="thumbnail" href="http://www.jshint.com/" target="_blank">
- <img src="assets/img/example-sites/jshint.png" alt="JS Hint">
- </a>
- </li>
- </ul>
+ </div>{{! /.marketing }}
-</div><!-- /.marketing --> \ No newline at end of file
+</div>{{! /.container }}
diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache
index 4ed30284a..c9e1b612b 100644
--- a/docs/templates/pages/javascript.mustache
+++ b/docs/templates/pages/javascript.mustache
@@ -1,113 +1,119 @@
- <!-- Masthead
- ================================================== -->
- <header class="jumbotron subhead" id="overview">
- <h1>{{_i}}Javascript for Bootstrap{{/i}}</h1>
- <p class="lead">{{_i}}Bring Bootstrap's components to life&mdash;now with 12 custom <a href="http://jquery.com/" target="_blank">jQuery</a> plugins.{{/i}}
- <div class="subnav">
- <ul class="nav nav-pills">
- <li><a href="#javascript">{{_i}}All plugins{{/i}}</a></li>
- <li><a href="#modals">{{_i}}Modal{{/i}}</a></li>
- <li><a href="#dropdowns">{{_i}}Dropdown{{/i}}</a></li>
- <li><a href="#scrollspy">{{_i}}Scrollspy{{/i}}</a></li>
- <li><a href="#tabs">{{_i}}Tab{{/i}}</a></li>
- <li><a href="#tooltips">{{_i}}Tooltip{{/i}}</a></li>
- <li><a href="#popovers">{{_i}}Popover{{/i}}</a></li>
- <li><a href="#alerts">{{_i}}Alert{{/i}}</a></li>
- <li><a href="#buttons">{{_i}}Button{{/i}}</a></li>
- <li><a href="#collapse">{{_i}}Collapse{{/i}}</a></li>
- <li><a href="#carousel">{{_i}}Carousel{{/i}}</a></li>
- <li><a href="#typeahead">{{_i}}Typeahead{{/i}}</a></li>
+<!-- Subhead
+================================================== -->
+<header class="jumbotron subhead">
+ <div class="container">
+ <h1>{{_i}}JavaScript for Bootstrap{{/i}}</h1>
+ <p class="lead">{{_i}}Bring Bootstrap's components to life&mdash;now with 13 custom jQuery plugins.{{/i}}
+ </div>
+</header>
+
+ <div class="container">
+
+ <!-- Docs nav
+ ================================================== -->
+ <div class="row">
+ <div class="span3 bs-docs-sidebar">
+ <ul class="nav nav-list bs-docs-sidenav">
+ <li><a href="#overview"><i class="icon-chevron-right"></i> {{_i}}Overview{{/i}}</a></li>
+ <li><a href="#transitions"><i class="icon-chevron-right"></i> {{_i}}Transitions{{/i}}</a></li>
+ <li><a href="#modals"><i class="icon-chevron-right"></i> {{_i}}Modal{{/i}}</a></li>
+ <li><a href="#dropdowns"><i class="icon-chevron-right"></i> {{_i}}Dropdown{{/i}}</a></li>
+ <li><a href="#scrollspy"><i class="icon-chevron-right"></i> {{_i}}Scrollspy{{/i}}</a></li>
+ <li><a href="#tabs"><i class="icon-chevron-right"></i> {{_i}}Tab{{/i}}</a></li>
+ <li><a href="#tooltips"><i class="icon-chevron-right"></i> {{_i}}Tooltip{{/i}}</a></li>
+ <li><a href="#popovers"><i class="icon-chevron-right"></i> {{_i}}Popover{{/i}}</a></li>
+ <li><a href="#alerts"><i class="icon-chevron-right"></i> {{_i}}Alert{{/i}}</a></li>
+ <li><a href="#buttons"><i class="icon-chevron-right"></i> {{_i}}Button{{/i}}</a></li>
+ <li><a href="#collapse"><i class="icon-chevron-right"></i> {{_i}}Collapse{{/i}}</a></li>
+ <li><a href="#carousel"><i class="icon-chevron-right"></i> {{_i}}Carousel{{/i}}</a></li>
+ <li><a href="#typeahead"><i class="icon-chevron-right"></i> {{_i}}Typeahead{{/i}}</a></li>
+ <li><a href="#affix"><i class="icon-chevron-right"></i> {{_i}}Affix{{/i}}</a></li>
+ </ul>
+ </div>
+ <div class="span9">
+
+
+ <!-- Overview
+ ================================================== -->
+ <section id="overview">
+ <div class="page-header">
+ <h1>{{_i}}JavaScript in Bootstrap{{/i}}</h1>
+ </div>
+
+ <h3>{{_i}}Individual or compiled{{/i}}</h3>
+ <p>{{_i}}If you have downloaded the latest version of Bootstrap, both <strong>bootstrap.js</strong> and <strong>bootstrap.min.js</strong> contain all of the plugins listed on this page.{{/i}}</p>
+
+ <h3>{{_i}}Data attributes{{/i}}</h3>
+ <p>{{_i}}You can use all Bootstrap plugins purely through the markup API without writing a single line of JavaScript. This is Bootstrap's first class API and should be your first consideration when using a plugin.{{/i}}</p>
+
+ <p>{{_i}}That said, in some situations it may be desirable to turn this functionality off. Therefore, we also provide the ability to disable the data attribute API by unbinding all events on the body namespaced with `'data-api'`. This looks like this:{{/i}}
+ <pre class="prettyprint linenums">$('body').off('.data-api')</pre>
+
+ <p>{{_i}}Alternatively, to target a specific plugin, just include the plugins name as a namespace along with the data-api namespace like this:{{/i}}</p>
+ <pre class="prettyprint linenums">$('body').off('.alert.data-api')</pre>
+
+ <h3>{{_i}}Programmatic API{{/i}}</h3>
+ <p>{{_i}}We also believe you should be able to use all Bootstrap plugins purely through the JavaScript API. All public APIs are single, chainable methods, and return the collection acted upon.{{/i}}</p>
+ <pre class="prettyprint linenums">$(".btn.danger").button("toggle").addClass("fat")</pre>
+ <p>{{_i}}All methods should accept an optional options object, a string which targets a particular method, or nothing (which initiates a plugin with default behavior):{{/i}}</p>
+<pre class="prettyprint linenums">
+$("#myModal").modal() // initialized with defaults
+$("#myModal").modal({ keyboard: false }) // initialized with no keyboard
+$("#myModal").modal('show') // initializes and invokes show immediately</p>
+</pre>
+ <p>{{_i}}Each plugin also exposes it's raw constructor on a `Constructor` property: <code>$.fn.popover.Constructor</code>. If you'd like to get a particular plugin instance, retrieve it directly from an element: <code>$('[rel=popover]').data('popover')</code>.{{/i}}</p>
+
+ <h3>{{_i}}Events{{/i}}</h3>
+ <p>{{_i}}Bootstrap provides custom events for most plugin's unique actions. Generally, these come in an infinitive and past participle form - where the infinitive (ex. <code>show</code>) is triggered at the start of an event, and it's past participle form (ex. <code>shown</code>) is trigger on the completion of an action.{{/i}}</p>
+ <p>{{_i}}All infinitive events provide preventDefault functionality. This provides the abililty to stop the execution of an action before it starts.{{/i}}</p>
+<pre class="prettyprint linenums">
+$('#myModal').on('show', function (e) {
+ if (!data) return e.preventDefault() // stops modal from being shown
+})
+</pre>
+ </section>
+
+
+
+ <!-- Transitions
+ ================================================== -->
+ <section id="transitions">
+ <div class="page-header">
+ <h1>{{_i}}Transitions{{/i}} <small>bootstrap-transition.js</small></h1>
+ </div>
+ <h3>{{_i}}About transitions{{/i}}</h3>
+ <p>{{_i}}For simple transition effects, include bootstrap-transition.js once alongside the other JS files. If you're using the compiled (or minified) bootstrap.js, there is no need to include this&mdash;it's already there.{{/i}}</p>
+ <h3>{{_i}}Use cases{{/i}}</h3>
+ <p>{{_i}}A few examples of the transition plugin:{{/i}}</p>
+ <ul>
+ <li>{{_i}}Sliding or fading in modals{{/i}}</li>
+ <li>{{_i}}Fading out tabs{{/i}}</li>
+ <li>{{_i}}Fading out alerts{{/i}}</li>
+ <li>{{_i}}Sliding carousel panes{{/i}}</li>
</ul>
- </div>
- </header>
+ {{! Ideas: include docs for .fade.in, .slide.in, etc }}
+ </section>
- <!-- Using Javascript w/ Bootstrap
- ================================================== -->
- <section id="javascript">
- <div class="page-header">
- <h1>{{_i}}jQuery plugins{{/i}} <small>{{_i}}A dozen Bootstrap plugins to get you started{{/i}}</small></h1>
- </div>
- <div class="row">
- <div class="span3">
- <h3><a href="./javascript.html#modals">{{_i}}Modals{{/i}}</a></h3>
- <p>{{_i}}A streamlined, but flexible, take on the traditional javascript modal plugin with only the minimum required functionality and smart defaults.{{/i}}</p>
- </div>
- <div class="span3">
- <h3><a href="./javascript.html#dropdowns">{{_i}}Dropdowns{{/i}}</a></h3>
- <p>{{_i}}Add dropdown menus to nearly anything in Bootstrap with this simple plugin. Bootstrap features full dropdown menu support on in the navbar, tabs, and pills.{{/i}}</p>
- </div>
- <div class="span3">
- <h3><a href="./javascript.html#scrollspy">{{_i}}Scrollspy{{/i}}</a></h3>
- <p>{{_i}}Use scrollspy to automatically update the links in your navbar to show the current active link based on scroll position.{{/i}}</p>
- </div>
- <div class="span3">
- <h3><a href="./javascript.html#tabs">{{_i}}Togglable tabs{{/i}}</a></h3>
- <p>{{_i}}Use this plugin to make tabs and pills more useful by allowing them to toggle through tabbable panes of local content.{{/i}}</p>
- </div>
- </div> <!-- /row -->
- <div class="row">
- <div class="span3">
- <h3><a href="./javascript.html#tooltips">{{_i}}Tooltips{{/i}}</a></h3>
- <p>{{_i}}A new take on the jQuery Tipsy plugin, Tooltips don't rely on images&mdash;they use CSS3 for animations and data-attributes for local title storage.{{/i}}</p>
- </div>
- <div class="span3">
- <h3><a href="./javascript.html#popovers">{{_i}}Popovers{{/i}}</a> <small class="muted">*</small></h3>
- <p>{{_i}}Add small overlays of content, like those on the iPad, to any element for housing secondary information.{{/i}}</p>
- <p class="muted"><strong>*</strong> {{_i}}Requires <a href="#tooltips">Tooltips</a> to be included{{/i}}</p>
- </div>
- <div class="span3">
- <h3><a href="./javascript.html#alerts">{{_i}}Alert messages{{/i}}</a></h3>
- <p>{{_i}}The alert plugin is a tiny class for adding close functionality to alerts.{{/i}}</p>
- </div>
- <div class="span3">
- <h3><a href="./javascript.html#buttons">{{_i}}Buttons{{/i}}</a></h3>
- <p>{{_i}}Do more with buttons. Control button states or create groups of buttons for more components like toolbars.{{/i}}</p>
- </div>
- </div> <!-- /row -->
- <div class="row" style="margin-bottom: 9px;">
- <div class="span3">
- <h3><a href="./javascript.html#collapse">{{_i}}Collapse{{/i}}</a></h3>
- <p>{{_i}}Get base styles and flexible support for collapsible components like accordions and navigation.{{/i}}</p>
- </div>
- <div class="span3">
- <h3><a href="./javascript.html#carousel">{{_i}}Carousel{{/i}}</a></h3>
- <p>{{_i}}Create a merry-go-round of any content you wish to provide an interactive slideshow of content.{{/i}}</p>
- </div>
- <div class="span3">
- <h3><a href="./javascript.html#typeahead">Typeahead</a></h3>
- <p>{{_i}}A basic, easily extended plugin for quickly creating elegant typeaheads with any form text input.{{/i}}</p>
- </div>
- <div class="span3">
- <h3>{{_i}}Transitions{{/i}} <small class="muted">*</small></h3>
- <p>{{_i}}For simple transition effects, include bootstrap-transition.js once to slide in modals or fade out alerts.{{/i}}</p>
- <p class="muted"><strong>*</strong> {{_i}}Required for animation in plugins{{/i}}</p>
- </div>
- </div> <!-- /row -->
- <div class="alert alert-info"><strong>{{_i}}Heads up!{{/i}}</strong> {{_i}}All javascript plugins require the latest version of jQuery.{{/i}}</div>
- </section>
+ <!-- Modal
+ ================================================== -->
+ <section id="modals">
+ <div class="page-header">
+ <h1>{{_i}}Modals{{/i}} <small>bootstrap-modal.js</small></h1>
+ </div>
- <!-- Modal
- ================================================== -->
- <section id="modals">
- <div class="page-header">
- <h1>{{_i}}Modals{{/i}} <small>bootstrap-modal.js</small></h1>
- </div>
- <div class="row">
- <div class="span3 columns">
- <h3>{{_i}}About modals{{/i}}</h3>
- <p>{{_i}}A streamlined, but flexible, take on the traditional javascript modal plugin with only the minimum required functionality and smart defaults.{{/i}}</p>
- <a href="assets/js/bootstrap-modal.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
- </div>
- <div class="span9 columns">
- <h2>{{_i}}Static example{{/i}}</h2>
- <p>{{_i}}Below is a statically rendered modal.{{/i}}</p>
- <div class="well modal-example" style="background-color: #888; border: none;">
- <div class="modal" style="position: relative; top: auto; left: auto; margin: 0 auto; z-index: 1; max-width: 100%;">
+
+ <h2>{{_i}}Examples{{/i}}</h2>
+ <p>{{_i}}Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults.{{/i}}</p>
+
+ <h3>{{_i}}Static example{{/i}}</h3>
+ <p>{{_i}}A rendered modal with header, body, and set of actions in the footer.{{/i}}</p>
+ <div class="bs-docs-example" style="background-color: #f5f5f5;">
+ <div class="modal" style="position: relative; top: auto; left: auto; margin: 0 auto 20px; z-index: 1; max-width: 100%;">
<div class="modal-header">
- <button type="button" class="close" data-dismiss="modal">&times;</button>
+ <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h3>{{_i}}Modal header{{/i}}</h3>
</div>
<div class="modal-body">
@@ -118,22 +124,37 @@
<a href="#" class="btn btn-primary">{{_i}}Save changes{{/i}}</a>
</div>
</div>
- </div> <!-- /well -->
+ </div>{{! /example }}
+<pre class="prettyprint linenums">
+&lt;div class="modal hide fade"&gt;
+ &lt;div class="modal-header"&gt;
+ &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;&amp;times;&lt;/button&gt;
+ &lt;h3&gt;{{_i}}Modal header{{/i}}&lt;/h3&gt;
+ &lt;/div&gt;
+ &lt;div class="modal-body"&gt;
+ &lt;p&gt;{{_i}}One fine body…{{/i}}&lt;/p&gt;
+ &lt;/div&gt;
+ &lt;div class="modal-footer"&gt;
+ &lt;a href="#" class="btn"&gt;{{_i}}Close{{/i}}&lt;/a&gt;
+ &lt;a href="#" class="btn btn-primary"&gt;{{_i}}Save changes{{/i}}&lt;/a&gt;
+ &lt;/div&gt;
+&lt;/div&gt;
+</pre>
- <h2>{{_i}}Live demo{{/i}}</h2>
- <p>{{_i}}Toggle a modal via javascript by clicking the button below. It will slide down and fade in from the top of the page.{{/i}}</p>
+ <h3>{{_i}}Live demo{{/i}}</h3>
+ <p>{{_i}}Toggle a modal via JavaScript by clicking the button below. It will slide down and fade in from the top of the page.{{/i}}</p>
<!-- sample modal content -->
- <div id="myModal" class="modal hide fade">
+ <div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
- <button type="button" class="close" data-dismiss="modal">&times;</button>
- <h3>{{_i}}Modal Heading{{/i}}</h3>
+ <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
+ <h3 id="myModalLabel">{{_i}}Modal Heading{{/i}}</h3>
</div>
<div class="modal-body">
<h4>{{_i}}Text in a modal{{/i}}</h4>
<p>Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem.</p>
<h4>{{_i}}Popover in a modal{{/i}}</h4>
- <p>{{_i}}This <a href="#" class="btn popover-test" title="A Title" data-content="And here's some amazing content. It's very engaging. right?">button</a> should trigger a popover on hover.{{/i}}</p>
+ <p>{{_i}}This <a href="#" role="button" class="btn popover-test" title="A Title" data-content="And here's some amazing content. It's very engaging. right?">button</a> should trigger a popover on hover.{{/i}}</p>
<h4>{{_i}}Tooltips in a modal{{/i}}</h4>
<p>{{_i}}<a href="#" class="tooltip-test" title="Tooltip">This link</a> and <a href="#" class="tooltip-test" title="Tooltip">that link</a> should have tooltips on hover.{{/i}}</p>
@@ -150,18 +171,49 @@
<p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
</div>
<div class="modal-footer">
- <a href="#" class="btn" data-dismiss="modal" >{{_i}}Close{{/i}}</a>
- <a href="#" class="btn btn-primary">{{_i}}Save changes{{/i}}</a>
+ <button class="btn" data-dismiss="modal">{{_i}}Close{{/i}}</button>
+ <button class="btn btn-primary">{{_i}}Save changes{{/i}}</button>
</div>
</div>
- <a data-toggle="modal" href="#myModal" class="btn btn-primary btn-large">{{_i}}Launch demo modal{{/i}}</a>
+ <div class="bs-docs-example" style="padding-bottom: 24px;">
+ <a data-toggle="modal" href="#myModal" class="btn btn-primary btn-large">{{_i}}Launch demo modal{{/i}}</a>
+ </div>{{! /example }}
+<pre class="prettyprint linenums">
+&lt;-- Button to trigger modal --&gt;
+&lt;a href="#myModal" role="button" class="btn" data-toggle="modal"&gt;{{_i}}Launch demo modal{{/i}}&lt;/a&gt;
- <hr>
+&lt;-- Modal --&gt;
+&lt;div class="modal" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt;
+ &lt;div class="modal-header"&gt;
+ &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;&times;&lt;/button&gt;
+ &lt;h3 id="myModalLabel"&gt;Modal header&lt;/h3&gt;
+ &lt;/div&gt;
+ &lt;div class="modal-body"&gt;
+ &lt;p&gt;{{_i}}One fine body…{{/i}}&lt;/p&gt;
+ &lt;/div&gt;
+ &lt;div class="modal-footer"&gt;
+ &lt;button class="btn" data-dismiss="modal" aria-hidden="true"&gt;{{_i}}Close{{/i}}&lt;/button&gt;
+ &lt;button class="btn btn-primary"&gt;{{_i}}Save changes{{/i}}&lt;/button&gt;
+ &lt;/div&gt;
+&lt;/div&gt;
+</pre>
- <h2>{{_i}}Using bootstrap-modal{{/i}}</h2>
- <p>{{_i}}Call the modal via javascript:{{/i}}</p>
+
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Usage{{/i}}</h2>
+
+ <h3>{{_i}}Via data attributes{{/i}}</h3>
+ <p>{{_i}}Activate a modal without writing JavaScript. Set <code>data-toggle="modal"</code> on a controller element, like a button, along with a <code>data-target="#foo"</code> or <code>href="#foo"</code> to target a specific modal to toggle.{{/i}}</p>
+ <pre class="prettyprint linenums">&lt;button type="button" data-toggle="modal" data-target="#myModal"&gt;Launch modal&lt;/button&gt;</pre>
+
+ <h3>{{_i}}Via JavaScript{{/i}}</h3>
+ <p>{{_i}}Call a modal with id <code>myModal</code> with a single line of JavaScript:{{/i}}</p>
<pre class="prettyprint linenums">$('#myModal').modal(options)</pre>
+
<h3>{{_i}}Options{{/i}}</h3>
+ <p>{{_i}}Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-backdrop=""</code>.{{/i}}</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
@@ -190,40 +242,24 @@
<td>{{_i}}true{{/i}}</td>
<td>{{_i}}Shows the modal when initialized.{{/i}}</td>
</tr>
+ <tr>
+ <td>{{_i}}remote{{/i}}</td>
+ <td>{{_i}}path{{/i}}</td>
+ <td>{{_i}}false{{/i}}</td>
+ <td><p>{{_i}}If a remote url is provided, content will be loaded via jQuery's <code>load</code> method and injected into the <code>.modal-body</code>. If you're using the data api, you may alternatively use the <code>href</code> tag to specify the remote source. An example of this is shown below:{{/i}}</p>
+ <pre class="prettyprint linenums"><code>&lt;a data-toggle="modal" href="remote.html" data-target="#modal"&gt;click me&lt;/a&gt;</code></pre></td>
+ </tr>
</tbody>
</table>
- <h3>{{_i}}Markup{{/i}}</h3>
- <p>{{_i}}You can activate modals on your page easily without having to write a single line of javascript. Just set <code>data-toggle="modal"</code> on a controller element with a <code>data-target="#foo"</code> or <code>href="#foo"</code> which corresponds to a modal element id, and when clicked, it will launch your modal.</p>
- <p>Also, to add options to your modal instance, just include them as additional data attributes on either the control element or the modal markup itself.{{/i}}</p>
-<pre class="prettyprint linenums">
-&lt;a class="btn" data-toggle="modal" href="#myModal" &gt;{{_i}}Launch Modal{{/i}}&lt;/a&gt;
-</pre>
-<pre class="prettyprint linenums">
-&lt;div class="modal hide" id="myModal"&gt;
- &lt;div class="modal-header"&gt;
- &lt;button type="button" class="close" data-dismiss="modal"&gt;&times;&lt;/button&gt;
- &lt;h3&gt;Modal header&lt;/h3&gt;
- &lt;/div&gt;
- &lt;div class="modal-body"&gt;
- &lt;p&gt;{{_i}}One fine body…{{/i}}&lt;/p&gt;
- &lt;/div&gt;
- &lt;div class="modal-footer"&gt;
- &lt;a href="#" class="btn" data-dismiss="modal"&gt;{{_i}}Close{{/i}}&lt;/a&gt;
- &lt;a href="#" class="btn btn-primary"&gt;{{_i}}Save changes{{/i}}&lt;/a&gt;
- &lt;/div&gt;
-&lt;/div&gt;
-</pre>
- <div class="alert alert-info">
- <strong>{{_i}}Heads up!{{/i}}</strong> {{_i}}If you want your modal to animate in and out, just add a <code>.fade</code> class to the <code>.modal</code> element (refer to the demo to see this in action) and include bootstrap-transition.js.{{/i}}
- </div>
<h3{{_i}}>Methods{{/i}}</h3>
<h4>.modal({{_i}}options{{/i}})</h4>
<p>{{_i}}Activates your content as a modal. Accepts an optional options <code>object</code>.{{/i}}</p>
<pre class="prettyprint linenums">
$('#myModal').modal({
keyboard: false
-})</pre>
+})
+</pre>
<h4>.modal('toggle')</h4>
<p>{{_i}}Manually toggles a modal.{{/i}}</p>
<pre class="prettyprint linenums">$('#myModal').modal('toggle')</pre>
@@ -261,229 +297,217 @@ $('#myModal').modal({
</tr>
</tbody>
</table>
-
<pre class="prettyprint linenums">
$('#myModal').on('hidden', function () {
// {{_i}}do something…{{/i}}
-})</pre>
- </div>
- </div>
- </section>
+})
+</pre>
+ </section>
- <!-- Dropdown
- ================================================== -->
- <section id="dropdowns">
- <div class="page-header">
- <h1>{{_i}}Dropdowns{{/i}} <small>bootstrap-dropdown.js</small></h1>
- </div>
- <div class="row">
- <div class="span3 columns">
- <h3>{{_i}}About dropdowns{{/i}}</h3>
- <p>{{_i}}Add dropdown menus to nearly anything in Bootstrap with this simple plugin. Bootstrap features full dropdown menu support on in the navbar, tabs, and pills.{{/i}}</p>
- <a href="assets/js/bootstrap-dropdown.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
- </div>
- <div class="span9 columns">
+ <!-- Dropdown
+ ================================================== -->
+ <section id="dropdowns">
+ <div class="page-header">
+ <h1>{{_i}}Dropdowns{{/i}} <small>bootstrap-dropdown.js</small></h1>
+ </div>
+
+
<h2>{{_i}}Examples{{/i}}</h2>
- <p>{{_i}}Click on the dropdown nav links in the navbar and pills below to test dropdowns.{{/i}}</p>
- <div id="navbar-example" class="navbar navbar-static">
- <div class="navbar-inner">
- <div class="container" style="width: auto;">
- <a class="brand" href="#">{{_i}}Project Name{{/i}}</a>
- <ul class="nav">
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </li>
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown 2 {{/i}}<b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </li>
+ <p>{{_i}}Add dropdown menus to nearly anything with this simple plugin, including the navbar, tabs, and pills.{{/i}}</p>
+
+ <h3>{{_i}}Within a navbar{{/i}}</h3>
+ <div class="bs-docs-example">
+ <div id="navbar-example" class="navbar navbar-static">
+ <div class="navbar-inner">
+ <div class="container" style="width: auto;">
+ <a class="brand" href="#">{{_i}}Project Name{{/i}}</a>
+ <ul class="nav" role="navigation">
+ <li class="dropdown">
+ <a id="drop1" href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
+ <ul class="dropdown-menu" role="menu" aria-labelledby="drop1">
+ <li><a tabindex="-1" href="http://google.com">{{_i}}Action{{/i}}</a></li>
+ <li><a tabindex="-1" href="#anotherAction">{{_i}}Another action{{/i}}</a></li>
+ <li><a tabindex="-1" href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a tabindex="-1" href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </li>
+ <li class="dropdown">
+ <a href="#" id="drop2" role="button" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown 2 {{/i}}<b class="caret"></b></a>
+ <ul class="dropdown-menu" role="menu" aria-labelledby="drop2">
+ <li><a tabindex="-1" href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a tabindex="-1" href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a tabindex="-1" href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a tabindex="-1" href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </li>
+ </ul>
+ <ul class="nav pull-right">
+ <li id="fat-menu" class="dropdown">
+ <a href="#" id="drop3" role="button" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown 3{{/i}} <b class="caret"></b></a>
+ <ul class="dropdown-menu" role="menu" aria-labelledby="drop3">
+ <li><a tabindex="-1" href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a tabindex="-1" href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a tabindex="-1" href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a tabindex="-1" href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </li>
+ </ul>
+ </div>
+ </div>
+ </div> <!-- /navbar-example -->
+ </div> {{! /example }}
+
+ <h3>{{_i}}Within tabs{{/i}}</h3>
+ <div class="bs-docs-example">
+ <ul class="nav nav-pills">
+ <li class="active"><a href="#">{{_i}}Regular link{{/i}}</a></li>
+ <li class="dropdown">
+ <a class="dropdown-toggle" id="drop4" role="button" data-toggle="dropdown" href="#">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
+ <ul id="menu1" class="dropdown-menu" role="menu" aria-labelledby="drop4">
+ <li><a tabindex="-1" href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a tabindex="-1" href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a tabindex="-1" href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a tabindex="-1" href="#">{{_i}}Separated link{{/i}}</a></li>
</ul>
- <ul class="nav pull-right">
- <li id="fat-menu" class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown 3{{/i}} <b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </li>
+ </li>
+ <li class="dropdown">
+ <a class="dropdown-toggle" id="drop5" role="button" data-toggle="dropdown" href="#">{{_i}}Dropdown 2{{/i}} <b class="caret"></b></a>
+ <ul id="menu2" class="dropdown-menu" role="menu" aria-labelledby="drop5">
+ <li><a tabindex="-1" href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a tabindex="-1" href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a tabindex="-1" href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a tabindex="-1" href="#">{{_i}}Separated link{{/i}}</a></li>
</ul>
- </div>
- </div>
- </div> <!-- /navbar-example -->
-
- <ul class="nav nav-pills">
- <li class="active"><a href="#">{{_i}}Regular link{{/i}}</a></li>
- <li class="dropdown">
- <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
- <ul id="menu1" class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </li>
- <li class="dropdown">
- <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Dropdown 2{{/i}} <b class="caret"></b></a>
- <ul id="menu2" class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </li>
- <li class="dropdown">
- <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Dropdown 3{{/i}} <b class="caret"></b></a>
- <ul id="menu3" class="dropdown-menu">
- <li><a href="#">{{_i}}Action{{/i}}</a></li>
- <li><a href="#">{{_i}}Another action{{/i}}</a></li>
- <li><a href="#">{{_i}}Something else here{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#">{{_i}}Separated link{{/i}}</a></li>
- </ul>
- </li>
- </ul> <!-- /tabs -->
-
- <hr>
-
- <h2>{{_i}}Using{{/i}} bootstrap-dropdown.js</h2>
- <p>{{_i}}Call the dropdowns via javascript:{{/i}}</p>
- <pre class="prettyprint linenums">$('.dropdown-toggle').dropdown()</pre>
- <h3>{{_i}}Markup{{/i}}</h3>
- <p>{{_i}}To quickly add dropdown functionality to any element just add <code>data-toggle="dropdown"</code> and any valid bootstrap dropdown will automatically be activated.{{/i}}</p>
- <div class="alert alert-info">
- <strong>{{_i}}Heads up!{{/i}}</strong>{{_i}} You may optionally target a specific dropdown by using <code>data-target="#fat"</code> or <code>href="#fat"</code>.{{/i}}
- </div>
+ </li>
+ <li class="dropdown">
+ <a class="dropdown-toggle" id="drop5" role="button" data-toggle="dropdown" href="#">{{_i}}Dropdown 3{{/i}} <b class="caret"></b></a>
+ <ul id="menu3" class="dropdown-menu" role="menu" aria-labelledby="drop5">
+ <li><a tabindex="-1" href="#">{{_i}}Action{{/i}}</a></li>
+ <li><a tabindex="-1" href="#">{{_i}}Another action{{/i}}</a></li>
+ <li><a tabindex="-1" href="#">{{_i}}Something else here{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a tabindex="-1" href="#">{{_i}}Separated link{{/i}}</a></li>
+ </ul>
+ </li>
+ </ul> <!-- /tabs -->
+ </div> {{! /example }}
+
+
+ <hr class="bs-docs-separator">
+
+ <h2>{{_i}}Usage{{/i}}</h2>
+
+ <h3>{{_i}}Via data attributes{{/i}}</h3>
+ <p>{{_i}}Add <code>data-toggle="dropdown"</code> to a link or button to toggle a dropdown.{{/i}}</p>
<pre class="prettyprint linenums">
-&lt;ul class="nav nav-pills"&gt;
- &lt;li class="active"&gt;&lt;a href="#"&gt;Regular link&lt;/a&gt;&lt;/li&gt;
- &lt;li class="dropdown" id="menu1"&gt;
- &lt;a class="dropdown-toggle" data-toggle="dropdown" href="#menu1"&gt;
- {{_i}}Dropdown{{/i}}
- &lt;b class="caret"&gt;&lt;/b&gt;
- &lt;/a&gt;
- &lt;ul class="dropdown-menu"&gt;
- &lt;li&gt;&lt;a href="#"&gt;{{_i}}Action{{/i}}&lt;/a&gt;&lt;/li&gt;
- &lt;li&gt;&lt;a href="#"&gt;{{_i}}Another action{{/i}}&lt;/a&gt;&lt;/li&gt;
- &lt;li&gt;&lt;a href="#"&gt;{{_i}}Something else here{{/i}}&lt;/a&gt;&lt;/li&gt;
- &lt;li class="divider"&gt;&lt;/li&gt;
- &lt;li&gt;&lt;a href="#"&gt;{{_i}}Separated link{{/i}}&lt;/a&gt;&lt;/li&gt;
- &lt;/ul&gt;
- &lt;/li&gt;
- ...
-&lt;/ul&gt;</pre>
+&lt;div class="dropdown"&gt;
+ &lt;a class="dropdown-toggle" href="#"&gt;Dropdown trigger&lt;/a&gt;
+ &lt;ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"&gt;
+ ...
+ &lt;/ul&gt;
+&lt;/div&gt;
+</pre>
<p>{{_i}}To keep URLs intact, use the <code>data-target</code> attribute instead of <code>href="#"</code>.{{/i}}</p>
<pre class="prettyprint linenums">
-&lt;ul class="nav nav-pills"&gt;
- &lt;li class="dropdown"&gt;
- &lt;a class="dropdown-toggle" data-toggle="dropdown" data-target="#" href="path/to/page.html"&gt;
- {{_i}}Dropdown{{/i}}
- &lt;b class="caret"&gt;&lt;/b&gt;
- &lt;/a&gt;
- &lt;ul class="dropdown-menu"&gt;
- ...
- &lt;/ul&gt;
- &lt;/li&gt;
-&lt;/ul&gt;
+&lt;div class="dropdown"&gt;
+ &lt;a class="dropdown-toggle" id="dLabel" role="button" data-toggle="dropdown" data-target="#" href="/page.html"&gt;
+ {{_i}}Dropdown{{/i}}
+ &lt;b class="caret"&gt;&lt;/b&gt;
+ &lt;/a&gt;
+ &lt;ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"&gt;
+ ...
+ &lt;/ul&gt;
+&lt;/div&gt;
</pre>
+
+ <h3>{{_i}}Via JavaScript{{/i}}</h3>
+ <p>{{_i}}Call the dropdowns via JavaScript:{{/i}}</p>
+ <pre class="prettyprint linenums">$('.dropdown-toggle').dropdown()</pre>
+
+ <h3>{{_i}}Options{{/i}}</h3>
+ <p><em>{{_i}}None{{/i}}</em></p>
+
<h3>{{_i}}Methods{{/i}}</h3>
<h4>$().dropdown()</h4>
<p>{{_i}}A programatic api for activating menus for a given navbar or tabbed navigation.{{/i}}</p>
- </div>
- </div>
- </section>
+ </section>
- <!-- ScrollSpy
- ================================================== -->
- <section id="scrollspy">
- <div class="page-header">
- <h1>{{_i}}ScrollSpy{{/i}} <small>bootstrap-scrollspy.js</small></h1>
- </div>
- <div class="row">
- <div class="span3 columns">
- <p>{{_i}}The ScrollSpy plugin is for automatically updating nav targets based on scroll position.{{/i}}</p>
- <a href="assets/js/bootstrap-scrollspy.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
- </div>
- <div class="span9 columns">
- <h2>{{_i}}Example navbar with scrollspy{{/i}}</h2>
- <p>{{_i}}Scroll the area below and watch the navigation update. The dropdown sub items will be highlighted as well. Try it!{{/i}}</p>
- <div id="navbarExample" class="navbar navbar-static">
- <div class="navbar-inner">
- <div class="container" style="width: auto;">
- <a class="brand" href="#">{{_i}}Project Name{{/i}}</a>
- <ul class="nav">
- <li><a href="#fat">@fat</a></li>
- <li><a href="#mdo">@mdo</a></li>
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="#one">{{_i}}one{{/i}}</a></li>
- <li><a href="#two">{{_i}}two{{/i}}</a></li>
- <li class="divider"></li>
- <li><a href="#three">{{_i}}three{{/i}}</a></li>
- </ul>
- </li>
- </ul>
+ <!-- ScrollSpy
+ ================================================== -->
+ <section id="scrollspy">
+ <div class="page-header">
+ <h1>{{_i}}ScrollSpy{{/i}} <small>bootstrap-scrollspy.js</small></h1>
+ </div>
+
+
+ <h2>{{_i}}Example in navbar{{/i}}</h2>
+ <p>{{_i}}The ScrollSpy plugin is for automatically updating nav targets based on scroll position. Scroll the area below the navbar and watch the active class change. The dropdown sub items will be highlighted as well.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div id="navbarExample" class="navbar navbar-static">
+ <div class="navbar-inner">
+ <div class="container" style="width: auto;">
+ <a class="brand" href="#">{{_i}}Project Name{{/i}}</a>
+ <ul class="nav">
+ <li><a href="#fat">@fat</a></li>
+ <li><a href="#mdo">@mdo</a></li>
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a href="#one">{{_i}}one{{/i}}</a></li>
+ <li><a href="#two">{{_i}}two{{/i}}</a></li>
+ <li class="divider"></li>
+ <li><a href="#three">{{_i}}three{{/i}}</a></li>
+ </ul>
+ </li>
+ </ul>
+ </div>
</div>
</div>
- </div>
- <div data-spy="scroll" data-target="#navbarExample" data-offset="0" class="scrollspy-example">
- <h4 id="fat">@fat</h4>
- <p>
- Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.
- </p>
- <h4 id="mdo">@mdo</h4>
- <p>
- Veniam marfa mustache skateboard, adipisicing fugiat velit pitchfork beard. Freegan beard aliqua cupidatat mcsweeney's vero. Cupidatat four loko nisi, ea helvetica nulla carles. Tattooed cosby sweater food truck, mcsweeney's quis non freegan vinyl. Lo-fi wes anderson +1 sartorial. Carles non aesthetic exercitation quis gentrify. Brooklyn adipisicing craft beer vice keytar deserunt.
- </p>
- <h4 id="one">one</h4>
- <p>
- Occaecat commodo aliqua delectus. Fap craft beer deserunt skateboard ea. Lomo bicycle rights adipisicing banh mi, velit ea sunt next level locavore single-origin coffee in magna veniam. High life id vinyl, echo park consequat quis aliquip banh mi pitchfork. Vero VHS est adipisicing. Consectetur nisi DIY minim messenger bag. Cred ex in, sustainable delectus consectetur fanny pack iphone.
- </p>
- <h4 id="two">two</h4>
- <p>
- In incididunt echo park, officia deserunt mcsweeney's proident master cleanse thundercats sapiente veniam. Excepteur VHS elit, proident shoreditch +1 biodiesel laborum craft beer. Single-origin coffee wayfarers irure four loko, cupidatat terry richardson master cleanse. Assumenda you probably haven't heard of them art party fanny pack, tattooed nulla cardigan tempor ad. Proident wolf nesciunt sartorial keffiyeh eu banh mi sustainable. Elit wolf voluptate, lo-fi ea portland before they sold out four loko. Locavore enim nostrud mlkshk brooklyn nesciunt.
- </p>
- <h4 id="three">three</h4>
- <p>
- Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.
- </p>
- <p>Keytar twee blog, culpa messenger bag marfa whatever delectus food truck. Sapiente synth id assumenda. Locavore sed helvetica cliche irony, thundercats you probably haven't heard of them consequat hoodie gluten-free lo-fi fap aliquip. Labore elit placeat before they sold out, terry richardson proident brunch nesciunt quis cosby sweater pariatur keffiyeh ut helvetica artisan. Cardigan craft beer seitan readymade velit. VHS chambray laboris tempor veniam. Anim mollit minim commodo ullamco thundercats.
- </p>
- </div>
- <hr>
- <h2>{{_i}}Using bootstrap-scrollspy.js{{/i}}</h2>
- <p>{{_i}}Call the scrollspy via javascript:{{/i}}</p>
+ <div data-spy="scroll" data-target="#navbarExample" data-offset="0" class="scrollspy-example">
+ <h4 id="fat">@fat</h4>
+ <p>Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.</p>
+ <h4 id="mdo">@mdo</h4>
+ <p>Veniam marfa mustache skateboard, adipisicing fugiat velit pitchfork beard. Freegan beard aliqua cupidatat mcsweeney's vero. Cupidatat four loko nisi, ea helvetica nulla carles. Tattooed cosby sweater food truck, mcsweeney's quis non freegan vinyl. Lo-fi wes anderson +1 sartorial. Carles non aesthetic exercitation quis gentrify. Brooklyn adipisicing craft beer vice keytar deserunt.</p>
+ <h4 id="one">one</h4>
+ <p>Occaecat commodo aliqua delectus. Fap craft beer deserunt skateboard ea. Lomo bicycle rights adipisicing banh mi, velit ea sunt next level locavore single-origin coffee in magna veniam. High life id vinyl, echo park consequat quis aliquip banh mi pitchfork. Vero VHS est adipisicing. Consectetur nisi DIY minim messenger bag. Cred ex in, sustainable delectus consectetur fanny pack iphone.</p>
+ <h4 id="two">two</h4>
+ <p>In incididunt echo park, officia deserunt mcsweeney's proident master cleanse thundercats sapiente veniam. Excepteur VHS elit, proident shoreditch +1 biodiesel laborum craft beer. Single-origin coffee wayfarers irure four loko, cupidatat terry richardson master cleanse. Assumenda you probably haven't heard of them art party fanny pack, tattooed nulla cardigan tempor ad. Proident wolf nesciunt sartorial keffiyeh eu banh mi sustainable. Elit wolf voluptate, lo-fi ea portland before they sold out four loko. Locavore enim nostrud mlkshk brooklyn nesciunt.</p>
+ <h4 id="three">three</h4>
+ <p>Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.</p>
+ <p>Keytar twee blog, culpa messenger bag marfa whatever delectus food truck. Sapiente synth id assumenda. Locavore sed helvetica cliche irony, thundercats you probably haven't heard of them consequat hoodie gluten-free lo-fi fap aliquip. Labore elit placeat before they sold out, terry richardson proident brunch nesciunt quis cosby sweater pariatur keffiyeh ut helvetica artisan. Cardigan craft beer seitan readymade velit. VHS chambray laboris tempor veniam. Anim mollit minim commodo ullamco thundercats.
+ </p>
+ </div>
+ </div>{{! /example }}
+
+
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Usage{{/i}}</h2>
+
+ <h3>{{_i}}Via data attributes{{/i}}</h3>
+ <p>{{_i}}To easily add scrollspy behavior to your topbar navigation, just add <code>data-spy="scroll"</code> to the element you want to spy on (most typically this would be the body) and <code>data-target=".navbar"</code> to select which nav to use. You'll want to use scrollspy with a <code>.nav</code> component.{{/i}}</p>
+ <pre class="prettyprint linenums">&lt;body data-spy="scroll" data-target=".navbar"&gt;...&lt;/body&gt;</pre>
+
+ <h3>{{_i}}Via JavaScript{{/i}}</h3>
+ <p>{{_i}}Call the scrollspy via JavaScript:{{/i}}</p>
<pre class="prettyprint linenums">$('#navbar').scrollspy()</pre>
- <h3>{{_i}}Markup{{/i}}</h3>
- <p>{{_i}}To easily add scrollspy behavior to your topbar navigation, just add <code>data-spy="scroll"</code> to the element you want to spy on (most typically this would be the body).{{/i}}</p>
- <pre class="prettyprint linenums">&lt;body data-spy="scroll" &gt;...&lt;/body&gt;</pre>
+
<div class="alert alert-info">
<strong>{{_i}}Heads up!{{/i}}</strong>
{{_i}}Navbar links must have resolvable id targets. For example, a <code>&lt;a href="#home"&gt;home&lt;/a&gt;</code> must correspond to something in the dom like <code>&lt;div id="home"&gt;&lt;/div&gt;</code>.{{/i}}
</div>
+
<h3>{{_i}}Methods{{/i}}</h3>
<h4>.scrollspy('refresh')</h4>
<p>{{_i}}When using scrollspy in conjunction with adding or removing of elements from the DOM, you'll need to call the refresh method like so:{{/i}}</p>
@@ -492,7 +516,9 @@ $('[data-spy="scroll"]').each(function () {
var $spy = $(this).scrollspy('refresh')
});
</pre>
+
<h3>{{_i}}Options{{/i}}</h3>
+ <p>{{_i}}Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-offset=""</code>.{{/i}}</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
@@ -511,7 +537,8 @@ $('[data-spy="scroll"]').each(function () {
</tr>
</tbody>
</table>
- <h3>{{_i}}Events{{/i}}</h3>
+
+ <h3>{{_i}}Events{{/i}}</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
@@ -526,55 +553,55 @@ $('[data-spy="scroll"]').each(function () {
</tr>
</tbody>
</table>
- </div>
- </div>
- </section>
+ </section>
- <!-- Tabs
- ================================================== -->
- <section id="tabs">
- <div class="page-header">
- <h1>{{_i}}Togglable tabs{{/i}} <small>bootstrap-tab.js</small></h1>
- </div>
- <div class="row">
- <div class="span3 columns">
- <p>{{_i}}This plugin adds quick, dynamic tab and pill functionality for transitioning through local content.{{/i}}</p>
- <a href="assets/js/bootstrap-tab.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
- </div>
- <div class="span9 columns">
+ <!-- Tabs
+ ================================================== -->
+ <section id="tabs">
+ <div class="page-header">
+ <h1>{{_i}}Togglable tabs{{/i}} <small>bootstrap-tab.js</small></h1>
+ </div>
+
+
<h2>{{_i}}Example tabs{{/i}}</h2>
- <p>{{_i}}Click the tabs below to toggle between hidden panes, even via dropdown menus.{{/i}}</p>
- <ul id="myTab" class="nav nav-tabs">
- <li class="active"><a href="#home" data-toggle="tab">{{_i}}Home{{/i}}</a></li>
- <li><a href="#profile" data-toggle="tab">{{_i}}Profile{{/i}}</a></li>
- <li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
- <ul class="dropdown-menu">
- <li><a href="#dropdown1" data-toggle="tab">@fat</a></li>
- <li><a href="#dropdown2" data-toggle="tab">@mdo</a></li>
- </ul>
- </li>
- </ul>
- <div id="myTabContent" class="tab-content">
- <div class="tab-pane fade in active" id="home">
- <p>Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.</p>
- </div>
- <div class="tab-pane fade" id="profile">
- <p>Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.</p>
- </div>
- <div class="tab-pane fade" id="dropdown1">
- <p>Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.</p>
- </div>
- <div class="tab-pane fade" id="dropdown2">
- <p>Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan.</p>
+ <p>{{_i}}Add quick, dynamic tab functionality to transiton through panes of local content, even via dropdown menus.{{/i}}</p>
+ <div class="bs-docs-example">
+ <ul id="myTab" class="nav nav-tabs">
+ <li class="active"><a href="#home" data-toggle="tab">{{_i}}Home{{/i}}</a></li>
+ <li><a href="#profile" data-toggle="tab">{{_i}}Profile{{/i}}</a></li>
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a href="#dropdown1" data-toggle="tab">@fat</a></li>
+ <li><a href="#dropdown2" data-toggle="tab">@mdo</a></li>
+ </ul>
+ </li>
+ </ul>
+ <div id="myTabContent" class="tab-content">
+ <div class="tab-pane fade in active" id="home">
+ <p>Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.</p>
+ </div>
+ <div class="tab-pane fade" id="profile">
+ <p>Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.</p>
+ </div>
+ <div class="tab-pane fade" id="dropdown1">
+ <p>Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.</p>
+ </div>
+ <div class="tab-pane fade" id="dropdown2">
+ <p>Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan.</p>
+ </div>
</div>
- </div>
- <hr>
- <h2>{{_i}}Using bootstrap-tab.js{{/i}}</h2>
- <p>{{_i}}Enable tabbable tabs via javascript (each tab needs to be activated individually):{{/i}}</p>
- <pre class="prettyprint linenums">
+ </div>{{! /example }}
+
+
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Usage{{/i}}</h2>
+ <p>{{_i}}Enable tabbable tabs via JavaScript (each tab needs to be activated individually):{{/i}}</p>
+<pre class="prettyprint linenums">
$('#myTab a').click(function (e) {
e.preventDefault();
$(this).tab('show');
@@ -586,8 +613,9 @@ $('#myTab a:first').tab('show'); // Select first tab
$('#myTab a:last').tab('show'); // Select last tab
$('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
</pre>
+
<h3>{{_i}}Markup{{/i}}</h3>
- <p>{{_i}}You can activate a tab or pill navigation without writing any javascript by simply specifying <code>data-toggle="tab"</code> or <code>data-toggle="pill"</code> on an element. Adding the <code>nav</code> and <code>nav-tabs</code> classes to the tab <code>ul</code> will apply the bootstrap tab styling.{{/i}}</p>
+ <p>{{_i}}You can activate a tab or pill navigation without writing any JavaScript by simply specifying <code>data-toggle="tab"</code> or <code>data-toggle="pill"</code> on an element. Adding the <code>nav</code> and <code>nav-tabs</code> classes to the tab <code>ul</code> will apply the Bootstrap tab styling.{{/i}}</p>
<pre class="prettyprint linenums">
&lt;ul class="nav nav-tabs"&gt;
&lt;li&gt;&lt;a href="#home" data-toggle="tab"&gt;{{_i}}Home{{/i}}&lt;/a&gt;&lt;/li&gt;
@@ -595,6 +623,7 @@ $('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
&lt;li&gt;&lt;a href="#messages" data-toggle="tab"&gt;{{_i}}Messages{{/i}}&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#settings" data-toggle="tab"&gt;{{_i}}Settings{{/i}}&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</pre>
+
<h3>{{_i}}Methods{{/i}}</h3>
<h4>$().tab</h4>
<p>
@@ -619,7 +648,9 @@ $('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
$(function () {
$('#myTab a:last').tab('show');
})
-&lt;/script&gt;</pre>
+&lt;/script&gt;
+</pre>
+
<h3>{{_i}}Events{{/i}}</h3>
<table class="table table-bordered table-striped">
<thead>
@@ -639,41 +670,51 @@ $('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
</tr>
</tbody>
</table>
-
- <pre class="prettyprint linenums">
+<pre class="prettyprint linenums">
$('a[data-toggle="tab"]').on('shown', function (e) {
e.target // activated tab
e.relatedTarget // previous tab
-})</pre>
- </div>
- </div>
- </section>
+})
+</pre>
+ </section>
- <!-- Tooltips
- ================================================== -->
- <section id="tooltips">
- <div class="page-header">
- <h1>{{_i}}Tooltips{{/i}} <small>bootstrap-tooltip.js</small></h1>
- </div>
- <div class="row">
- <div class="span3 columns">
- <h3>{{_i}}About Tooltips{{/i}}</h3>
- <p>{{_i}}Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, use css3 for animations, and data-attributes for local title storage.{{/i}}</p>
- <a href="assets/js/bootstrap-tooltip.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
- </div>
- <div class="span9 columns">
- <h2>{{_i}}Example use of Tooltips{{/i}}</h2>
+ <!-- Tooltips
+ ================================================== -->
+ <section id="tooltips">
+ <div class="page-header">
+ <h1>{{_i}}Tooltips{{/i}} <small>bootstrap-tooltip.js</small></h1>
+ </div>
+
+
+ <h2>{{_i}}Examples{{/i}}</h2>
+ <p>{{_i}}Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, use CSS3 for animations, and data-attributes for local title storage.{{/i}}</p>
<p>{{_i}}Hover over the links below to see tooltips:{{/i}}</p>
- <div class="tooltip-demo well">
- <p class="muted" style="margin-bottom: 0;">{{_i}}Tight pants next level keffiyeh <a href="#" rel="tooltip" title="first tooltip">you probably</a> haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel <a href="#" rel="tooltip" title="Another tooltip">have a</a> terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan <a href="#" rel="tooltip" title="Another one here too">whatever keytar</a>, scenester farm-to-table banksy Austin <a href="#" rel="tooltip" title="The last tip!">twitter handle</a> freegan cred raw denim single-origin coffee viral.{{/i}}
+ <div class="bs-docs-example tooltip-demo">
+ <p class="muted" style="margin-bottom: 0;">{{_i}}Tight pants next level keffiyeh <a href="#" rel="tooltip" title="Default tooltip">you probably</a> haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel <a href="#" rel="tooltip" title="Another tooltip">have a</a> terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan <a href="#" rel="tooltip" title="Another one here too">whatever keytar</a>, scenester farm-to-table banksy Austin <a href="#" rel="tooltip" title="The last tip!">twitter handle</a> freegan cred raw denim single-origin coffee viral.{{/i}}
</p>
- </div>
- <hr>
- <h2>{{_i}}Using{{/i}} bootstrap-tooltip.js</h2>
- <p>{{_i}}Trigger the tooltip via javascript:{{/i}}</p>
+ </div>{{! /example }}
+
+ <h3>{{_i}}Four directions{{/i}}</h3>
+ <div class="bs-docs-example tooltip-demo">
+ <ul class="bs-docs-tooltip-examples">
+ <li><a href="#" rel="tooltip" data-placement="top" title="Tooltip on top">Tooltip on top</a></li>
+ <li><a href="#" rel="tooltip" data-placement="right" title="Tooltip on right">Tooltip on right</a></li>
+ <li><a href="#" rel="tooltip" data-placement="bottom" title="Tooltip on bottom">Tooltip on bottom</a></li>
+ <li><a href="#" rel="tooltip" data-placement="left" title="Tooltip on left">Tooltip on left</a></li>
+ </ul>
+ </div>{{! /example }}
+
+
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Usage{{/i}}</h2>
+ <p>{{_i}}Trigger the tooltip via JavaScript:{{/i}}</p>
<pre class="prettyprint linenums">$('#example').tooltip({{_i}}options{{/i}})</pre>
+
<h3>{{_i}}Options{{/i}}</h3>
+ <p>{{_i}}Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-animation=""</code>.{{/i}}</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
@@ -691,6 +732,12 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
<td>{{_i}}apply a css fade transition to the tooltip{{/i}}</td>
</tr>
<tr>
+ <td>{{_i}}html{{/i}}</td>
+ <td>{{_i}}boolean{{/i}}</td>
+ <td>true</td>
+ <td>{{_i}}Insert html into the tooltip. If false, jquery's <code>text</code> method will be used to insert content into the dom. Use text if you're worried about XSS attacks.{{/i}}</td>
+ </tr>
+ <tr>
<td>{{_i}}placement{{/i}}</td>
<td>{{_i}}string|function{{/i}}</td>
<td>'top'</td>
@@ -712,7 +759,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
<td>{{_i}}trigger{{/i}}</td>
<td>{{_i}}string{{/i}}</td>
<td>'hover'</td>
- <td>{{_i}}how tooltip is triggered{{/i}} - hover | focus | manual</td>
+ <td>{{_i}}how tooltip is triggered{{/i}} - click | hover | focus | manual</td>
</tr>
<tr>
<td>{{_i}}delay{{/i}}</td>
@@ -730,11 +777,11 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
<strong>{{_i}}Heads up!{{/i}}</strong>
{{_i}}Options for individual tooltips can alternatively be specified through the use of data attributes.{{/i}}
</div>
+
<h3>{{_i}}Markup{{/i}}</h3>
<p>{{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.{{/i}}</p>
-<pre class="prettyprint linenums">
-&lt;a href="#" rel="tooltip" title="{{_i}}first tooltip{{/i}}"&gt;{{_i}}hover over me{{/i}}&lt;/a&gt;
-</pre>
+ <pre class="prettyprint linenums">&lt;a href="#" rel="tooltip" title="{{_i}}first tooltip{{/i}}"&gt;{{_i}}hover over me{{/i}}&lt;/a&gt;</pre>
+
<h3>{{_i}}Methods{{/i}}</h3>
<h4>$().tooltip({{_i}}options{{/i}})</h4>
<p>{{_i}}Attaches a tooltip handler to an element collection.{{/i}}</p>
@@ -747,139 +794,186 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
<h4>.tooltip('toggle')</h4>
<p>{{_i}}Toggles an element's tooltip.{{/i}}</p>
<pre class="prettyprint linenums">$('#element').tooltip('toggle')</pre>
- </div>
- </div>
- </section>
+ <h4>.tooltip('destroy')</h4>
+ <p>{{_i}}Hides and destroys an element's tooltip.{{/i}}</p>
+ <pre class="prettyprint linenums">$('#element').tooltip('destroy')</pre>
+ </section>
- <!-- Popovers
- ================================================== -->
- <section id="popovers">
- <div class="page-header">
- <h1>{{_i}}Popovers{{/i}} <small>bootstrap-popover.js</small></h1>
- </div>
- <div class="row">
- <div class="span3 columns">
- <h3>{{_i}}About popovers{{/i}}</h3>
- <p>{{_i}}Add small overlays of content, like those on the iPad, to any element for housing secondary information.{{/i}}</p>
- <p class="muted"><strong>*</strong> {{_i}}Requires <a href="#tooltips">Tooltip</a> to be included{{/i}}</p>
- <a href="assets/js/bootstrap-popover.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
+ <!-- Popovers
+ ================================================== -->
+ <section id="popovers">
+ <div class="page-header">
+ <h1>{{_i}}Popovers{{/i}} <small>bootstrap-popover.js</small></h1>
</div>
- <div class="span9 columns">
- <h2>{{_i}}Example hover popover{{/i}}</h2>
- <p>{{_i}}Hover over the button to trigger the popover.{{/i}}</p>
- <div class="well">
- <a href="#" class="btn btn-danger" rel="popover" title="A Title" data-content="And here's some amazing content. It's very engaging. right?">{{_i}}hover for popover{{/i}}</a>
+
+ <h2>{{_i}}Examples{{/i}}</h2>
+ <p>{{_i}}Add small overlays of content, like those on the iPad, to any element for housing secondary information. Hover over the button to trigger the popover. <strong>Requires <a href="#tooltips">Tooltip</a> to be included.</strong>{{/i}}</p>
+
+ <h3>{{_i}}Static popover{{/i}}</h3>
+ <p>{{_i}}Four options are available: top, right, bottom, and left aligned.{{/i}}</p>
+ <div class="bs-docs-example bs-docs-example-popover">
+ <div class="popover top">
+ <div class="arrow"></div>
+ <h3 class="popover-title">Popover top</h3>
+ <div class="popover-content">
+ <p>Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p>
+ </div>
</div>
- <hr>
- <h2>{{_i}}Using bootstrap-popover.js{{/i}}</h2>
- <p>{{_i}}Enable popovers via javascript:{{/i}}</p>
- <pre class="prettyprint linenums">$('#example').popover({{_i}}options{{/i}})</pre>
- <h3>{{_i}}Options{{/i}}</h3>
- <table class="table table-bordered table-striped">
- <thead>
- <tr>
- <th style="width: 100px;">{{_i}}Name{{/i}}</th>
- <th style="width: 100px;">{{_i}}type{{/i}}</th>
- <th style="width: 50px;">{{_i}}default{{/i}}</th>
- <th>{{_i}}description{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{_i}}animation{{/i}}</td>
- <td>{{_i}}boolean{{/i}}</td>
- <td>true</td>
- <td>{{_i}}apply a css fade transition to the tooltip{{/i}}</td>
- </tr>
- <tr>
- <td>{{_i}}placement{{/i}}</td>
- <td>{{_i}}string|function{{/i}}</td>
- <td>'right'</td>
- <td>{{_i}}how to position the popover{{/i}} - top | bottom | left | right</td>
- </tr>
- <tr>
- <td>{{_i}}selector{{/i}}</td>
- <td>{{_i}}string{{/i}}</td>
- <td>false</td>
- <td>{{_i}}if a selector is provided, tooltip objects will be delegated to the specified targets{{/i}}</td>
- </tr>
- <tr>
- <td>{{_i}}trigger{{/i}}</td>
- <td>{{_i}}string{{/i}}</td>
- <td>'hover'</td>
- <td>{{_i}}how tooltip is triggered{{/i}} - hover | focus | manual</td>
- </tr>
- <tr>
- <td>{{_i}}title{{/i}}</td>
- <td>{{_i}}string | function{{/i}}</td>
- <td>''</td>
- <td>{{_i}}default title value if `title` attribute isn't present{{/i}}</td>
- </tr>
- <tr>
- <td>{{_i}}content{{/i}}</td>
- <td>{{_i}}string | function{{/i}}</td>
- <td>''</td>
- <td>{{_i}}default content value if `data-content` attribute isn't present{{/i}}</td>
- </tr>
- <tr>
- <td>{{_i}}delay{{/i}}</td>
- <td>{{_i}}number | object{{/i}}</td>
- <td>0</td>
- <td>
- <p>{{_i}}delay showing and hiding the popover (ms) - does not apply to manual trigger type{{/i}}</p>
- <p>{{_i}}If a number is supplied, delay is applied to both hide/show{{/i}}</p>
- <p>{{_i}}Object structure is: <code>delay: { show: 500, hide: 100 }</code>{{/i}}</p>
- </td>
- </tr>
- </tbody>
- </table>
- <div class="alert alert-info">
- <strong>{{_i}}Heads up!{{/i}}</strong>
- {{_i}}Options for individual popovers can alternatively be specified through the use of data attributes.{{/i}}
+
+ <div class="popover right">
+ <div class="arrow"></div>
+ <h3 class="popover-title">Popover right</h3>
+ <div class="popover-content">
+ <p>Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p>
+ </div>
</div>
- <h3>{{_i}}Markup{{/i}}</h3>
- <p>
- {{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.{{/i}}
- </p>
- <h3>{{_i}}Methods{{/i}}</h3>
- <h4>$().popover({{_i}}options{{/i}})</h4>
- <p>{{_i}}Initializes popovers for an element collection.{{/i}}</p>
- <h4>.popover('show')</h4>
- <p>{{_i}}Reveals an elements popover.{{/i}}</p>
- <pre class="prettyprint linenums">$('#element').popover('show')</pre>
- <h4>.popover('hide')</h4>
- <p>{{_i}}Hides an elements popover.{{/i}}</p>
- <pre class="prettyprint linenums">$('#element').popover('hide')</pre>
- <h4>.popover('toggle')</h4>
- <p>{{_i}}Toggles an elements popover.{{/i}}</p>
- <pre class="prettyprint linenums">$('#element').popover('toggle')</pre>
+
+ <div class="popover bottom">
+ <div class="arrow"></div>
+ <h3 class="popover-title">Popover bottom</h3>
+ <div class="popover-content">
+ <p>Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p>
+ </div>
+ </div>
+
+ <div class="popover left">
+ <div class="arrow"></div>
+ <h3 class="popover-title">Popover left</h3>
+ <div class="popover-content">
+ <p>Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p>
+ </div>
+ </div>
+
+ <div class="clearfix"></div>
</div>
- </div>
- </section>
+ <p>{{_i}}No markup shown as popovers are generated from JavaScript and content within a <code>data</code> attribute.{{/i}}</p>
+ <h3>Live demo</h3>
+ <div class="bs-docs-example" style="padding-bottom: 24px;">
+ <a href="#" class="btn btn-large btn-danger" rel="popover" title="A Title" data-content="And here's some amazing content. It's very engaging. right?">{{_i}}Click to toggle popover{{/i}}</a>
+ </div>
- <!-- Alert
- ================================================== -->
- <section id="alerts">
- <div class="page-header">
- <h1>{{_i}}Alert messages{{/i}} <small>bootstrap-alert.js</small></h1>
- </div>
- <div class="row">
- <div class="span3 columns">
- <h3>{{_i}}About alerts{{/i}}</h3>
- <p>{{_i}}The alert plugin is a tiny class for adding close functionality to alerts.{{/i}}</p>
- <a href="assets/js/bootstrap-alert.js" target="_blank" class="btn">{{_i}}Download{{/i}}</a>
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Usage{{/i}}</h2>
+ <p>{{_i}}Enable popovers via JavaScript:{{/i}}</p>
+ <pre class="prettyprint linenums">$('#example').popover({{_i}}options{{/i}})</pre>
+
+ <h3>{{_i}}Options{{/i}}</h3>
+ <p>{{_i}}Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-animation=""</code>.{{/i}}</p>
+ <table class="table table-bordered table-striped">
+ <thead>
+ <tr>
+ <th style="width: 100px;">{{_i}}Name{{/i}}</th>
+ <th style="width: 100px;">{{_i}}type{{/i}}</th>
+ <th style="width: 50px;">{{_i}}default{{/i}}</th>
+ <th>{{_i}}description{{/i}}</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{_i}}animation{{/i}}</td>
+ <td>{{_i}}boolean{{/i}}</td>
+ <td>true</td>
+ <td>{{_i}}apply a css fade transition to the tooltip{{/i}}</td>
+ </tr>
+ <tr>
+ <td>{{_i}}html{{/i}}</td>
+ <td>{{_i}}boolean{{/i}}</td>
+ <td>true</td>
+ <td>{{_i}}Insert html into the popover. If false, jquery's <code>text</code> method will be used to insert content into the dom. Use text if you're worried about XSS attacks.{{/i}}</td>
+ </tr>
+ <tr>
+ <td>{{_i}}placement{{/i}}</td>
+ <td>{{_i}}string|function{{/i}}</td>
+ <td>'right'</td>
+ <td>{{_i}}how to position the popover{{/i}} - top | bottom | left | right</td>
+ </tr>
+ <tr>
+ <td>{{_i}}selector{{/i}}</td>
+ <td>{{_i}}string{{/i}}</td>
+ <td>false</td>
+ <td>{{_i}}if a selector is provided, tooltip objects will be delegated to the specified targets{{/i}}</td>
+ </tr>
+ <tr>
+ <td>{{_i}}trigger{{/i}}</td>
+ <td>{{_i}}string{{/i}}</td>
+ <td>'click'</td>
+ <td>{{_i}}how popover is triggered{{/i}} - click | hover | focus | manual</td>
+ </tr>
+ <tr>
+ <td>{{_i}}title{{/i}}</td>
+ <td>{{_i}}string | function{{/i}}</td>
+ <td>''</td>
+ <td>{{_i}}default title value if `title` attribute isn't present{{/i}}</td>
+ </tr>
+ <tr>
+ <td>{{_i}}content{{/i}}</td>
+ <td>{{_i}}string | function{{/i}}</td>
+ <td>''</td>
+ <td>{{_i}}default content value if `data-content` attribute isn't present{{/i}}</td>
+ </tr>
+ <tr>
+ <td>{{_i}}delay{{/i}}</td>
+ <td>{{_i}}number | object{{/i}}</td>
+ <td>0</td>
+ <td>
+ <p>{{_i}}delay showing and hiding the popover (ms) - does not apply to manual trigger type{{/i}}</p>
+ <p>{{_i}}If a number is supplied, delay is applied to both hide/show{{/i}}</p>
+ <p>{{_i}}Object structure is: <code>delay: { show: 500, hide: 100 }</code>{{/i}}</p>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ <div class="alert alert-info">
+ <strong>{{_i}}Heads up!{{/i}}</strong>
+ {{_i}}Options for individual popovers can alternatively be specified through the use of data attributes.{{/i}}
+ </div>
+
+ <h3>{{_i}}Markup{{/i}}</h3>
+ <p>{{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.{{/i}}</p>
+
+ <h3>{{_i}}Methods{{/i}}</h3>
+ <h4>$().popover({{_i}}options{{/i}})</h4>
+ <p>{{_i}}Initializes popovers for an element collection.{{/i}}</p>
+ <h4>.popover('show')</h4>
+ <p>{{_i}}Reveals an elements popover.{{/i}}</p>
+ <pre class="prettyprint linenums">$('#element').popover('show')</pre>
+ <h4>.popover('hide')</h4>
+ <p>{{_i}}Hides an elements popover.{{/i}}</p>
+ <pre class="prettyprint linenums">$('#element').popover('hide')</pre>
+ <h4>.popover('toggle')</h4>
+ <p>{{_i}}Toggles an elements popover.{{/i}}</p>
+ <pre class="prettyprint linenums">$('#element').popover('toggle')</pre>
+ <h4>.popover('destroy')</h4>
+ <p>{{_i}}Hides and destroys an element's popover.{{/i}}</p>
+ <pre class="prettyprint linenums">$('#element').popover('destroy')</pre>
+ </section>
+
+
+
+ <!-- Alert
+ ================================================== -->
+ <section id="alerts">
+ <div class="page-header">
+ <h1>{{_i}}Alert messages{{/i}} <small>bootstrap-alert.js</small></h1>
</div>
- <div class="span9 columns">
- <h2>{{_i}}Example alerts{{/i}}</h2>
- <p>{{_i}}The alerts plugin works on regular alert messages, and block messages.{{/i}}</p>
+
+
+ <h2>{{_i}}Example alerts{{/i}}</h2>
+ <p>{{_i}}Add dismiss functionality to all alerge messages with this plugin.{{/i}}</p>
+ <div class="bs-docs-example">
<div class="alert fade in">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<strong>{{_i}}Holy guacamole!{{/i}}</strong> {{_i}}Best check yo self, you're not looking too good.{{/i}}
</div>
+ </div>{{! /example }}
+
+ <div class="bs-docs-example">
<div class="alert alert-block alert-error fade in">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<h4 class="alert-heading">{{_i}}Oh snap! You got an error!{{/i}}</h4>
@@ -888,387 +982,355 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
<a class="btn btn-danger" href="#">{{_i}}Take this action{{/i}}</a> <a class="btn" href="#">{{_i}}Or do this{{/i}}</a>
</p>
</div>
- <hr>
- <h2>{{_i}}Using bootstrap-alert.js{{/i}}</h2>
- <p>{{_i}}Enable dismissal of an alert via javascript:{{/i}}</p>
- <pre class="prettyprint linenums">$(".alert").alert()</pre>
- <h3>{{_i}}Markup{{/i}}</h3>
- <p>{{_i}}Just add <code>data-dismiss="alert"</code> to your close button to automatically give an alert close functionality.{{/i}}</p>
- <pre class="prettyprint linenums">&lt;a class="close" data-dismiss="alert" href="#"&gt;&amp;times;&lt;/a&gt;</pre>
- <h3>{{_i}}Methods{{/i}}</h3>
- <h4>$().alert()</h4>
- <p>{{_i}}Wraps all alerts with close functionality. To have your alerts animate out when closed, make sure they have the <code>.fade</code> and <code>.in</code> class already applied to them.{{/i}}</p>
- <h4>.alert('close')</h4>
- <p>{{_i}}Closes an alert.{{/i}}</p>
- <pre class="prettyprint linenums">$(".alert").alert('close')</pre>
- <h3>{{_i}}Events{{/i}}</h3>
- <p>{{_i}}Bootstrap's alert class exposes a few events for hooking into alert functionality.{{/i}}</p>
- <table class="table table-bordered table-striped">
- <thead>
- <tr>
- <th style="width: 150px;">{{_i}}Event{{/i}}</th>
- <th>{{_i}}Description{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{_i}}close{{/i}}</td>
- <td>{{_i}}This event fires immediately when the <code>close</code> instance method is called.{{/i}}</td>
- </tr>
- <tr>
- <td>{{_i}}closed{{/i}}</td>
- <td>{{_i}}This event is fired when the alert has been closed (will wait for css transitions to complete).{{/i}}</td>
- </tr>
- </tbody>
- </table>
+ </div>{{! /example }}
+
+
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Usage{{/i}}</h2>
+ <p>{{_i}}Enable dismissal of an alert via JavaScript:{{/i}}</p>
+ <pre class="prettyprint linenums">$(".alert").alert()</pre>
+
+ <h3>{{_i}}Markup{{/i}}</h3>
+ <p>{{_i}}Just add <code>data-dismiss="alert"</code> to your close button to automatically give an alert close functionality.{{/i}}</p>
+ <pre class="prettyprint linenums">&lt;a class="close" data-dismiss="alert" href="#"&gt;&amp;times;&lt;/a&gt;</pre>
+
+ <h3>{{_i}}Methods{{/i}}</h3>
+ <h4>$().alert()</h4>
+ <p>{{_i}}Wraps all alerts with close functionality. To have your alerts animate out when closed, make sure they have the <code>.fade</code> and <code>.in</code> class already applied to them.{{/i}}</p>
+ <h4>.alert('close')</h4>
+ <p>{{_i}}Closes an alert.{{/i}}</p>
+ <pre class="prettyprint linenums">$(".alert").alert('close')</pre>
+
+
+ <h3>{{_i}}Events{{/i}}</h3>
+ <p>{{_i}}Bootstrap's alert class exposes a few events for hooking into alert functionality.{{/i}}</p>
+ <table class="table table-bordered table-striped">
+ <thead>
+ <tr>
+ <th style="width: 150px;">{{_i}}Event{{/i}}</th>
+ <th>{{_i}}Description{{/i}}</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{_i}}close{{/i}}</td>
+ <td>{{_i}}This event fires immediately when the <code>close</code> instance method is called.{{/i}}</td>
+ </tr>
+ <tr>
+ <td>{{_i}}closed{{/i}}</td>
+ <td>{{_i}}This event is fired when the alert has been closed (will wait for css transitions to complete).{{/i}}</td>
+ </tr>
+ </tbody>
+ </table>
<pre class="prettyprint linenums">
$('#my-alert').bind('closed', function () {
// {{_i}}do something…{{/i}}
-})</pre>
- </div>
- </div>
- </section>
+})
+</pre>
+ </section>
- <!-- Buttons
- ================================================== -->
- <section id="buttons">
- <div class="page-header">
- <h1>{{_i}}Buttons{{/i}} <small>bootstrap-button.js</small></h1>
- </div>
- <div class="row">
- <div class="span3 columns">
- <h3>{{_i}}About{{/i}}</h3>
- <p>{{_i}}Do more with buttons. Control button states or create groups of buttons for more components like toolbars.{{/i}}</p>
- <a href="assets/js/bootstrap-button.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
- </div>
- <div class="span9 columns">
- <h2>{{_i}}Example uses{{/i}}</h2>
- <p>{{_i}}Use the buttons plugin for states and toggles.{{/i}}</p>
- <table class="table table-bordered table-striped">
- <tbody>
- <tr>
- <td>{{_i}}Stateful{{/i}}</td>
- <td>
- <button id="fat-btn" data-loading-text="loading..." class="btn btn-primary">
- {{_i}}Loading State{{/i}}
- </button>
- </td>
- </tr>
- <tr>
- <td>{{_i}}Single toggle{{/i}}</td>
- <td>
- <button class="btn btn-primary" data-toggle="button">{{_i}}Single Toggle{{/i}}</button>
- </td>
- </tr>
- <tr>
- <td>{{_i}}Checkbox{{/i}}</td>
- <td>
- <div class="btn-group" data-toggle="buttons-checkbox">
- <button class="btn btn-primary">{{_i}}Left{{/i}}</button>
- <button class="btn btn-primary">{{_i}}Middle{{/i}}</button>
- <button class="btn btn-primary">{{_i}}Right{{/i}}</button>
- </div>
- </td>
- </tr>
- <tr>
- <td>{{_i}}Radio{{/i}}</td>
- <td>
- <div class="btn-group" data-toggle="buttons-radio">
- <button class="btn btn-primary">{{_i}}Left{{/i}}</button>
- <button class="btn btn-primary">{{_i}}Middle{{/i}}</button>
- <button class="btn btn-primary">{{_i}}Right{{/i}}</button>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- <hr>
- <h2>{{_i}}Using bootstrap-button.js{{/i}}</h2>
- <p>{{_i}}Enable buttons via javascript:{{/i}}</p>
- <pre class="prettyprint linenums">$('.nav-tabs').button()</pre>
- <h3>{{_i}}Markup{{/i}}</h3>
- <p>{{_i}}Data attributes are integral to the button plugin. Check out the example code below for the various markup types.{{/i}}</p>
-<pre class="prettyprint linenums">
-&lt;!-- {{_i}}Add data-toggle="button" to activate toggling on a single button{{/i}} --&gt;
-&lt;button class="btn" data-toggle="button"&gt;Single Toggle&lt;/button&gt;
+ <!-- Buttons
+ ================================================== -->
+ <section id="buttons">
+ <div class="page-header">
+ <h1>{{_i}}Buttons{{/i}} <small>bootstrap-button.js</small></h1>
+ </div>
+
+ <h2>{{_i}}Example uses{{/i}}</h2>
+ <p>{{_i}}Do more with buttons. Control button states or create groups of buttons for more components like toolbars.{{/i}}</p>
+
+ <h4>{{_i}}Stateful{{/i}}</h4>
+ <p>{{_i}}Add data-loading-text="Loading..." to use a loading state on a button.{{/i}}</p>
+ <div class="bs-docs-example" style="padding-bottom: 24px;">
+ <button type="button" id="fat-btn" data-loading-text="loading..." class="btn btn-primary">
+ {{_i}}Loading state{{/i}}
+ </button>
+ </div>{{! /example }}
+ <pre class="prettyprint linenums">&lt;button type="button" class="btn btn-primary" data-loading-text="Loading..."&gt;Loading state&lt;/button&gt;</pre>
+
+ <h4>{{_i}}Single toggle{{/i}}</h4>
+ <p>{{_i}}Add data-toggle="button" to activate toggling on a single button.{{/i}}</p>
+ <div class="bs-docs-example" style="padding-bottom: 24px;">
+ <button type="button" class="btn btn-primary" data-toggle="button">{{_i}}Single Toggle{{/i}}</button>
+ </div>{{! /example }}
+ <pre class="prettyprint linenums">&lt;button type="button" class="btn" data-toggle="button"&gt;Single Toggle&lt;/button&gt;</pre>
-&lt;!-- {{_i}}Add data-toggle="buttons-checkbox" for checkbox style toggling on btn-group{{/i}} --&gt;
+ <h4>{{_i}}Checkbox{{/i}}</h4>
+ <p>{{_i}}Add data-toggle="buttons-checkbox" for checkbox style toggling on btn-group.{{/i}}</p>
+ <div class="bs-docs-example" style="padding-bottom: 24px;">
+ <div class="btn-group" data-toggle="buttons-checkbox">
+ <button type="button" class="btn btn-primary">{{_i}}Left{{/i}}</button>
+ <button type="button" class="btn btn-primary">{{_i}}Middle{{/i}}</button>
+ <button type="button" class="btn btn-primary">{{_i}}Right{{/i}}</button>
+ </div>
+ </div>{{! /example }}
+<pre class="prettyprint linenums">
&lt;div class="btn-group" data-toggle="buttons-checkbox"&gt;
- &lt;button class="btn"&gt;Left&lt;/button&gt;
- &lt;button class="btn"&gt;Middle&lt;/button&gt;
- &lt;button class="btn"&gt;Right&lt;/button&gt;
+ &lt;button type="button" class="btn"&gt;Left&lt;/button&gt;
+ &lt;button type="button" class="btn"&gt;Middle&lt;/button&gt;
+ &lt;button type="button" class="btn"&gt;Right&lt;/button&gt;
&lt;/div&gt;
+</pre>
-&lt;!-- {{_i}}Add data-toggle="buttons-radio" for radio style toggling on btn-group{{/i}} --&gt;
+ <h4>{{_i}}Radio{{/i}}</h4>
+ <p>{{_i}}Add data-toggle="buttons-radio" for radio style toggling on btn-group.{{/i}}</p>
+ <div class="bs-docs-example" style="padding-bottom: 24px;">
+ <div class="btn-group" data-toggle="buttons-radio">
+ <button type="button" class="btn btn-primary">{{_i}}Left{{/i}}</button>
+ <button type="button" class="btn btn-primary">{{_i}}Middle{{/i}}</button>
+ <button type="button" class="btn btn-primary">{{_i}}Right{{/i}}</button>
+ </div>
+ </div>{{! /example }}
+<pre class="prettyprint linenums">
&lt;div class="btn-group" data-toggle="buttons-radio"&gt;
- &lt;button class="btn"&gt;Left&lt;/button&gt;
- &lt;button class="btn"&gt;Middle&lt;/button&gt;
- &lt;button class="btn"&gt;Right&lt;/button&gt;
+ &lt;button type="button" class="btn"&gt;Left&lt;/button&gt;
+ &lt;button type="button" class="btn"&gt;Middle&lt;/button&gt;
+ &lt;button type="button" class="btn"&gt;Right&lt;/button&gt;
&lt;/div&gt;
</pre>
- <h3>{{_i}}Methods{{/i}}</h3>
- <h4>$().button('toggle')</h4>
- <p>{{_i}}Toggles push state. Gives the button the appearance that it has been activated.{{/i}}</p>
- <div class="alert alert-info">
- <strong>{{_i}}Heads up!{{/i}}</strong>
- {{_i}}You can enable auto toggling of a button by using the <code>data-toggle</code> attribute.{{/i}}
- </div>
- <pre class="prettyprint linenums">&lt;button class="btn" data-toggle="button" &gt;…&lt;/button&gt;</pre>
- <h4>$().button('loading')</h4>
- <p>{{_i}}Sets button state to loading - disables button and swaps text to loading text. Loading text should be defined on the button element using the data attribute <code>data-loading-text</code>.{{/i}}
- </p>
- <pre class="prettyprint linenums">&lt;button class="btn" data-loading-text="loading stuff..." &gt;...&lt;/button&gt;</pre>
- <div class="alert alert-info">
- <strong>{{_i}}Heads up!{{/i}}</strong>
- {{_i}}<a href="https://github.com/twitter/bootstrap/issues/793">Firefox persists the disabled state across page loads</a>. A workaround for this is to use <code>autocomplete="off"</code>.{{/i}}
- </div>
- <h4>$().button('reset')</h4>
- <p>{{_i}}Resets button state - swaps text to original text.{{/i}}</p>
- <h4>$().button(string)</h4>
- <p>{{_i}}Resets button state - swaps text to any data defined text state.{{/i}}</p>
-<pre class="prettyprint linenums">&lt;button class="btn" data-complete-text="finished!" &gt;...&lt;/button&gt;
+
+
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Usage{{/i}}</h2>
+ <p>{{_i}}Enable buttons via JavaScript:{{/i}}</p>
+ <pre class="prettyprint linenums">$('.nav-tabs').button()</pre>
+
+ <h3>{{_i}}Markup{{/i}}</h3>
+ <p>{{_i}}Data attributes are integral to the button plugin. Check out the example code below for the various markup types.{{/i}}</p>
+
+ <h3>{{_i}}Options{{/i}}</h3>
+ <p><em>{{_i}}None{{/i}}</em></p>
+
+ <h3>{{_i}}Methods{{/i}}</h3>
+ <h4>$().button('toggle')</h4>
+ <p>{{_i}}Toggles push state. Gives the button the appearance that it has been activated.{{/i}}</p>
+ <div class="alert alert-info">
+ <strong>{{_i}}Heads up!{{/i}}</strong>
+ {{_i}}You can enable auto toggling of a button by using the <code>data-toggle</code> attribute.{{/i}}
+ </div>
+ <pre class="prettyprint linenums">&lt;button type="button" class="btn" data-toggle="button" &gt;…&lt;/button&gt;</pre>
+ <h4>$().button('loading')</h4>
+ <p>{{_i}}Sets button state to loading - disables button and swaps text to loading text. Loading text should be defined on the button element using the data attribute <code>data-loading-text</code>.{{/i}}
+ </p>
+ <pre class="prettyprint linenums">&lt;button type="button" class="btn" data-loading-text="loading stuff..." &gt;...&lt;/button&gt;</pre>
+ <div class="alert alert-info">
+ <strong>{{_i}}Heads up!{{/i}}</strong>
+ {{_i}}<a href="https://github.com/twitter/bootstrap/issues/793">Firefox persists the disabled state across page loads</a>. A workaround for this is to use <code>autocomplete="off"</code>.{{/i}}
+ </div>
+ <h4>$().button('reset')</h4>
+ <p>{{_i}}Resets button state - swaps text to original text.{{/i}}</p>
+ <h4>$().button(string)</h4>
+ <p>{{_i}}Resets button state - swaps text to any data defined text state.{{/i}}</p>
+<pre class="prettyprint linenums">&lt;button type="button" class="btn" data-complete-text="finished!" &gt;...&lt;/button&gt;
&lt;script&gt;
$('.btn').button('complete')
-&lt;/script&gt;</pre>
- </div>
- </div>
- </section>
+&lt;/script&gt;
+</pre>
+ </section>
- <!-- Collapse
- ================================================== -->
- <section id="collapse">
- <div class="page-header">
- <h1>{{_i}}Collapse{{/i}} <small>bootstrap-collapse.js</small></h1>
- </div>
- <div class="row">
- <div class="span3 columns">
- <h3>{{_i}}About{{/i}}</h3>
- <p>{{_i}}Get base styles and flexible support for collapsible components like accordions and navigation.{{/i}}</p>
- <a href="assets/js/bootstrap-collapse.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
- <p class="muted"><strong>*</strong> {{_i}}Requires the Transitions plugin to be included.{{/i}}</p>
- </div>
- <div class="span9 columns">
- <h2>{{_i}}Example accordion{{/i}}</h2>
- <p>{{_i}}Using the collapse plugin, we built a simple accordion style widget:{{/i}}</p>
-
- <div class="accordion" id="accordion2">
- <div class="accordion-group">
- <div class="accordion-heading">
- <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne">
- {{_i}}Collapsible Group Item #1{{/i}}
- </a>
- </div>
- <div id="collapseOne" class="accordion-body collapse in">
- <div class="accordion-inner">
- Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
- </div>
- </div>
+ <!-- Collapse
+ ================================================== -->
+ <section id="collapse">
+ <div class="page-header">
+ <h1>{{_i}}Collapse{{/i}} <small>bootstrap-collapse.js</small></h1>
</div>
- <div class="accordion-group">
- <div class="accordion-heading">
- <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">
- {{_i}}Collapsible Group Item #2{{/i}}
- </a>
- </div>
- <div id="collapseTwo" class="accordion-body collapse">
- <div class="accordion-inner">
- Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
+
+ <h3>{{_i}}About{{/i}}</h3>
+ <p>{{_i}}Get base styles and flexible support for collapsible components like accordions and navigation.{{/i}}</p>
+ <p class="muted"><strong>*</strong> {{_i}}Requires the Transitions plugin to be included.{{/i}}</p>
+
+ <h2>{{_i}}Example accordion{{/i}}</h2>
+ <p>{{_i}}Using the collapse plugin, we built a simple accordion style widget:{{/i}}</p>
+
+ <div class="bs-docs-example">
+ <div class="accordion" id="accordion2">
+ <div class="accordion-group">
+ <div class="accordion-heading">
+ <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne">
+ {{_i}}Collapsible Group Item #1{{/i}}
+ </a>
+ </div>
+ <div id="collapseOne" class="accordion-body collapse in">
+ <div class="accordion-inner">
+ Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
+ </div>
+ </div>
</div>
- </div>
- </div>
- <div class="accordion-group">
- <div class="accordion-heading">
- <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseThree">
- {{_i}}Collapsible Group Item #3{{/i}}
- </a>
- </div>
- <div id="collapseThree" class="accordion-body collapse">
- <div class="accordion-inner">
- Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
+ <div class="accordion-group">
+ <div class="accordion-heading">
+ <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">
+ {{_i}}Collapsible Group Item #2{{/i}}
+ </a>
+ </div>
+ <div id="collapseTwo" class="accordion-body collapse">
+ <div class="accordion-inner">
+ Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
+ </div>
+ </div>
+ </div>
+ <div class="accordion-group">
+ <div class="accordion-heading">
+ <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseThree">
+ {{_i}}Collapsible Group Item #3{{/i}}
+ </a>
+ </div>
+ <div id="collapseThree" class="accordion-body collapse">
+ <div class="accordion-inner">
+ Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
+ </div>
+ </div>
</div>
</div>
- </div>
- </div>
-
-
- <hr>
- <h2>{{_i}}Using bootstrap-collapse.js{{/i}}</h2>
- <p>{{_i}}Enable via javascript:{{/i}}</p>
- <pre class="prettyprint linenums">$(".collapse").collapse()</pre>
- <h3>{{_i}}Options{{/i}}</h3>
- <table class="table table-bordered table-striped">
- <thead>
- <tr>
- <th style="width: 100px;">{{_i}}Name{{/i}}</th>
- <th style="width: 50px;">{{_i}}type{{/i}}</th>
- <th style="width: 50px;">{{_i}}default{{/i}}</th>
- <th>{{_i}}description{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{_i}}parent{{/i}}</td>
- <td>{{_i}}selector{{/i}}</td>
- <td>false</td>
- <td>{{_i}}If selector then all collapsible elements under the specified parent will be closed when this collapsible item is shown. (similar to traditional accordion behavior){{/i}}</td>
- </tr>
- <tr>
- <td>{{_i}}toggle{{/i}}</td>
- <td>{{_i}}boolean{{/i}}</td>
- <td>true</td>
- <td>{{_i}}Toggles the collapsible element on invocation{{/i}}</td>
- </tr>
- </tbody>
- </table>
- <h3>{{_i}}Markup{{/i}}</h3>
- <p>{{_i}}Just add <code>data-toggle="collapse"</code> and a <code>data-target</code> to element to automatically assign control of a collapsible element. The <code>data-target</code> attribute accepts a css selector to apply the collapse to. Be sure to add the class <code>collapse</code> to the collapsible element. If you'd like it to default open, add the additional class <code>in</code>.{{/i}}</p>
- <pre class="prettyprint linenums">
-&lt;button class="btn btn-danger" data-toggle="collapse" data-target="#demo"&gt;
+ </div>{{! /example }}
+<pre class="prettyprint linenums">
+&lt;button type="button" class="btn btn-danger" data-toggle="collapse" data-target="#demo"&gt;
{{_i}}simple collapsible{{/i}}
&lt;/button&gt;
-&lt;div id="demo" class="collapse in"&gt; … &lt;/div&gt;</pre>
- <div class="alert alert-info">
- <strong>{{_i}}Heads up!{{/i}}</strong>
- {{_i}}To add accordion-like group management to a collapsible control, add the data attribute <code>data-parent="#selector"</code>. Refer to the demo to see this in action.{{/i}}
- </div>
- <h3>{{_i}}Methods{{/i}}</h3>
- <h4>.collapse({{_i}}options{{/i}})</h4>
- <p>{{_i}}Activates your content as a collapsible element. Accepts an optional options <code>object</code>.{{/i}}
+&lt;div id="demo" class="collapse in"&gt; … &lt;/div&gt;
+</pre>
+
+
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Usage{{/i}}</h2>
+
+ <h3>{{_i}}Via data attributes{{/i}}</h3>
+ <p>{{_i}}Just add <code>data-toggle="collapse"</code> and a <code>data-target</code> to element to automatically assign control of a collapsible element. The <code>data-target</code> attribute accepts a css selector to apply the collapse to. Be sure to add the class <code>collapse</code> to the collapsible element. If you'd like it to default open, add the additional class <code>in</code>.{{/i}}</p>
+ <p>{{_i}}To add accordion-like group management to a collapsible control, add the data attribute <code>data-parent="#selector"</code>. Refer to the demo to see this in action.{{/i}}</p>
+
+ <h3>{{_i}}Via JavaScript{{/i}}</h3>
+ <p>{{_i}}Enable manually with:{{/i}}</p>
+ <pre class="prettyprint linenums">$(".collapse").collapse()</pre>
+
+ <h3>{{_i}}Options{{/i}}</h3>
+ <p>{{_i}}Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-parent=""</code>.{{/i}}</p>
+ <table class="table table-bordered table-striped">
+ <thead>
+ <tr>
+ <th style="width: 100px;">{{_i}}Name{{/i}}</th>
+ <th style="width: 50px;">{{_i}}type{{/i}}</th>
+ <th style="width: 50px;">{{_i}}default{{/i}}</th>
+ <th>{{_i}}description{{/i}}</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{_i}}parent{{/i}}</td>
+ <td>{{_i}}selector{{/i}}</td>
+ <td>false</td>
+ <td>{{_i}}If selector then all collapsible elements under the specified parent will be closed when this collapsible item is shown. (similar to traditional accordion behavior){{/i}}</td>
+ </tr>
+ <tr>
+ <td>{{_i}}toggle{{/i}}</td>
+ <td>{{_i}}boolean{{/i}}</td>
+ <td>true</td>
+ <td>{{_i}}Toggles the collapsible element on invocation{{/i}}</td>
+ </tr>
+ </tbody>
+ </table>
+
+
+ <h3>{{_i}}Methods{{/i}}</h3>
+ <h4>.collapse({{_i}}options{{/i}})</h4>
+ <p>{{_i}}Activates your content as a collapsible element. Accepts an optional options <code>object</code>.{{/i}}
<pre class="prettyprint linenums">
$('#myCollapsible').collapse({
toggle: false
-})</pre>
- <h4>.collapse('toggle')</h4>
- <p>{{_i}}Toggles a collapsible element to shown or hidden.{{/i}}</p>
- <h4>.collapse('show')</h4>
- <p>{{_i}}Shows a collapsible element.{{/i}}</p>
- <h4>.collapse('hide')</h4>
- <p>{{_i}}Hides a collapsible element.{{/i}}</p>
- <h3>{{_i}}Events{{/i}}</h3>
- <p>
- {{_i}}Bootstrap's collapse class exposes a few events for hooking into collapse functionality.{{/i}}
- </p>
- <table class="table table-bordered table-striped">
- <thead>
- <tr>
- <th style="width: 150px;">{{_i}}Event{{/i}}</th>
- <th>{{_i}}Description{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{_i}}show{{/i}}</td>
- <td>{{_i}}This event fires immediately when the <code>show</code> instance method is called.{{/i}}</td>
- </tr>
- <tr>
- <td>{{_i}}shown{{/i}}</td>
- <td>{{_i}}This event is fired when a collapse element has been made visible to the user (will wait for css transitions to complete).{{/i}}</td>
- </tr>
- <tr>
- <td>{{_i}}hide{{/i}}</td>
- <td>
- {{_i}}This event is fired immediately when the <code>hide</code> method has been called.{{/i}}
- </td>
- </tr>
- <tr>
- <td>{{_i}}hidden{{/i}}</td>
- <td>{{_i}}This event is fired when a collapse element has been hidden from the user (will wait for css transitions to complete).{{/i}}</td>
- </tr>
- </tbody>
- </table>
+})
+</pre>
+ <h4>.collapse('toggle')</h4>
+ <p>{{_i}}Toggles a collapsible element to shown or hidden.{{/i}}</p>
+ <h4>.collapse('show')</h4>
+ <p>{{_i}}Shows a collapsible element.{{/i}}</p>
+ <h4>.collapse('hide')</h4>
+ <p>{{_i}}Hides a collapsible element.{{/i}}</p>
+ <h3>{{_i}}Events{{/i}}</h3>
+ <p>{{_i}}Bootstrap's collapse class exposes a few events for hooking into collapse functionality.{{/i}}</p>
+ <table class="table table-bordered table-striped">
+ <thead>
+ <tr>
+ <th style="width: 150px;">{{_i}}Event{{/i}}</th>
+ <th>{{_i}}Description{{/i}}</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{_i}}show{{/i}}</td>
+ <td>{{_i}}This event fires immediately when the <code>show</code> instance method is called.{{/i}}</td>
+ </tr>
+ <tr>
+ <td>{{_i}}shown{{/i}}</td>
+ <td>{{_i}}This event is fired when a collapse element has been made visible to the user (will wait for css transitions to complete).{{/i}}</td>
+ </tr>
+ <tr>
+ <td>{{_i}}hide{{/i}}</td>
+ <td>
+ {{_i}}This event is fired immediately when the <code>hide</code> method has been called.{{/i}}
+ </td>
+ </tr>
+ <tr>
+ <td>{{_i}}hidden{{/i}}</td>
+ <td>{{_i}}This event is fired when a collapse element has been hidden from the user (will wait for css transitions to complete).{{/i}}</td>
+ </tr>
+ </tbody>
+ </table>
<pre class="prettyprint linenums">
$('#myCollapsible').on('hidden', function () {
// {{_i}}do something…{{/i}}
})</pre>
- </div>
- </div>
- </section>
+ </section>
- <!-- Carousel
- ================================================== -->
- <section id="carousel">
- <div class="page-header">
- <h1>{{_i}}Carousel{{/i}} <small>bootstrap-carousel.js</small></h1>
- </div>
- <div class="row">
- <div class="span3 columns">
- <h3>{{_i}}About{{/i}}</h3>
- <p>{{_i}}A generic plugin for cycling through elements. A merry-go-round.{{/i}}</p>
- <a href="assets/js/bootstrap-carousel.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
- </div>
- <div class="span9 columns">
- <h2>{{_i}}Example carousel{{/i}}</h2>
- <p>{{_i}}Watch the slideshow below.{{/i}}</p>
- <div id="myCarousel" class="carousel slide">
- <div class="carousel-inner">
- <div class="item active">
- <img src="assets/img/bootstrap-mdo-sfmoma-01.jpg" alt="">
- <div class="carousel-caption">
- <h4>{{_i}}First Thumbnail label{{/i}}</h4>
- <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
- </div>
- </div>
- <div class="item">
- <img src="assets/img/bootstrap-mdo-sfmoma-02.jpg" alt="">
- <div class="carousel-caption">
- <h4>{{_i}}Second Thumbnail label{{/i}}</h4>
- <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
- </div>
- </div>
- <div class="item">
- <img src="assets/img/bootstrap-mdo-sfmoma-03.jpg" alt="">
- <div class="carousel-caption">
- <h4>{{_i}}Third Thumbnail label{{/i}}</h4>
- <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
+ <!-- Carousel
+ ================================================== -->
+ <section id="carousel">
+ <div class="page-header">
+ <h1>{{_i}}Carousel{{/i}} <small>bootstrap-carousel.js</small></h1>
+ </div>
+
+ <h2>{{_i}}Example carousel{{/i}}</h2>
+ <p>{{_i}}The slideshow below shows a generic plugin and component for cycling through elements like a carousel.{{/i}}</p>
+ <div class="bs-docs-example">
+ <div id="myCarousel" class="carousel slide">
+ <div class="carousel-inner">
+ <div class="item active">
+ <img src="assets/img/bootstrap-mdo-sfmoma-01.jpg" alt="">
+ <div class="carousel-caption">
+ <h4>{{_i}}First Thumbnail label{{/i}}</h4>
+ <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
+ </div>
+ </div>
+ <div class="item">
+ <img src="assets/img/bootstrap-mdo-sfmoma-02.jpg" alt="">
+ <div class="carousel-caption">
+ <h4>{{_i}}Second Thumbnail label{{/i}}</h4>
+ <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
+ </div>
+ </div>
+ <div class="item">
+ <img src="assets/img/bootstrap-mdo-sfmoma-03.jpg" alt="">
+ <div class="carousel-caption">
+ <h4>{{_i}}Third Thumbnail label{{/i}}</h4>
+ <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
+ </div>
+ </div>
</div>
+ <a class="left carousel-control" href="#myCarousel" data-slide="prev">&lsaquo;</a>
+ <a class="right carousel-control" href="#myCarousel" data-slide="next">&rsaquo;</a>
</div>
- </div>
- <a class="left carousel-control" href="#myCarousel" data-slide="prev">&lsaquo;</a>
- <a class="right carousel-control" href="#myCarousel" data-slide="next">&rsaquo;</a>
- </div>
- <div class="alert alert-info">
- <strong>{{_i}}Heads up!{{/i}}</strong>
- {{_i}}When implementing this carousel, remove the images we have provided and replace them with your own.{{/i}}
- </div>
- <hr>
- <h2>{{_i}}Using bootstrap-carousel.js{{/i}}</h2>
- <p>{{_i}}Call via javascript:{{/i}}</p>
- <pre class="prettyprint linenums">$('.carousel').carousel()</pre>
- <h3>{{_i}}Options{{/i}}</h3>
- <table class="table table-bordered table-striped">
- <thead>
- <tr>
- <th style="width: 100px;">{{_i}}Name{{/i}}</th>
- <th style="width: 50px;">{{_i}}type{{/i}}</th>
- <th style="width: 50px;">{{_i}}default{{/i}}</th>
- <th>{{_i}}description{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{_i}}interval{{/i}}</td>
- <td>{{_i}}number{{/i}}</td>
- <td>5000</td>
- <td>{{_i}}The amount of time to delay between automatically cycling an item. If false, carousel will not automatically cycle.{{/i}}</td>
- </tr>
- <tr>
- <td>{{_i}}pause{{/i}}</td>
- <td>{{_i}}string{{/i}}</td>
- <td>"hover"</td>
- <td>{{_i}}Pauses the cycling of the carousel on mouseenter and resumes the cycling of the carousel on mouseleave.{{/i}}</td>
- </tr>
- </tbody>
- </table>
- <h3>{{_i}}Markup{{/i}}</h3>
- <p>{{_i}}Data attributes are used for the previous and next conrols. Check out the example markup below.{{/i}}</p>
+ </div>{{! /example }}
<pre class="prettyprint linenums">
&lt;div id="myCarousel" class="carousel slide"&gt;
&lt;!-- {{_i}}Carousel items{{/i}} --&gt;
@@ -1282,124 +1344,242 @@ $('#myCollapsible').on('hidden', function () {
&lt;a class="carousel-control right" href="#myCarousel" data-slide="next"&gt;&amp;rsaquo;&lt;/a&gt;
&lt;/div&gt;
</pre>
- <h3>{{_i}}Methods{{/i}}</h3>
- <h4>.carousel({{_i}}options{{/i}})</h4>
- <p>{{_i}}Initializes the carousel with an optional options <code>object</code> and starts cycling through items.{{/i}}</p>
+
+ <div class="alert alert-warning">
+ <strong>{{_i}}Heads up!{{/i}}</strong>
+ {{_i}}When implementing this carousel, remove the images we have provided and replace them with your own.{{/i}}
+ </div>
+
+
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Usage{{/i}}</h2>
+
+ <h3>{{_i}}Via data attributes{{/i}}</h3>
+ <p>{{_i}}...{{/i}}</p>
+
+ <h3>{{_i}}Via JavaScript{{/i}}</h3>
+ <p>{{_i}}Call carousel manually with:{{/i}}</p>
+ <pre class="prettyprint linenums">$('.carousel').carousel()</pre>
+
+ <h3>{{_i}}Options{{/i}}</h3>
+ <p>{{_i}}Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-interval=""</code>.{{/i}}</p>
+ <table class="table table-bordered table-striped">
+ <thead>
+ <tr>
+ <th style="width: 100px;">{{_i}}Name{{/i}}</th>
+ <th style="width: 50px;">{{_i}}type{{/i}}</th>
+ <th style="width: 50px;">{{_i}}default{{/i}}</th>
+ <th>{{_i}}description{{/i}}</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{_i}}interval{{/i}}</td>
+ <td>{{_i}}number{{/i}}</td>
+ <td>5000</td>
+ <td>{{_i}}The amount of time to delay between automatically cycling an item. If false, carousel will not automatically cycle.{{/i}}</td>
+ </tr>
+ <tr>
+ <td>{{_i}}pause{{/i}}</td>
+ <td>{{_i}}string{{/i}}</td>
+ <td>"hover"</td>
+ <td>{{_i}}Pauses the cycling of the carousel on mouseenter and resumes the cycling of the carousel on mouseleave.{{/i}}</td>
+ </tr>
+ </tbody>
+ </table>
+
+ <h3>{{_i}}Methods{{/i}}</h3>
+ <h4>.carousel({{_i}}options{{/i}})</h4>
+ <p>{{_i}}Initializes the carousel with an optional options <code>object</code> and starts cycling through items.{{/i}}</p>
<pre class="prettyprint linenums">
$('.carousel').carousel({
interval: 2000
})
</pre>
- <h4>.carousel('cycle')</h4>
- <p>{{_i}}Cycles through the carousel items from left to right.{{/i}}</p>
- <h4>.carousel('pause')</h4>
- <p>{{_i}}Stops the carousel from cycling through items.{{/i}}</p>
- <h4>.carousel(number)</h4>
- <p>{{_i}}Cycles the carousel to a particular frame (0 based, similar to an array).{{/i}}</p>
- <h4>.carousel('prev')</h4>
- <p>{{_i}}Cycles to the previous item.{{/i}}</p>
- <h4>.carousel('next')</h4>
- <p>{{_i}}Cycles to the next item.{{/i}}</p>
- <h3>{{_i}}Events{{/i}}</h3>
- <p>{{_i}}Bootstrap's carousel class exposes two events for hooking into carousel functionality.{{/i}}</p>
- <table class="table table-bordered table-striped">
- <thead>
- <tr>
- <th style="width: 150px;">{{_i}}Event{{/i}}</th>
- <th>{{_i}}Description{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{_i}}slide{{/i}}</td>
- <td>{{_i}}This event fires immediately when the <code>slide</code> instance method is invoked.{{/i}}</td>
- </tr>
- <tr>
- <td>{{_i}}slid{{/i}}</td>
- <td>{{_i}}This event is fired when the carousel has completed its slide transition.{{/i}}</td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </section>
+ <h4>.carousel('cycle')</h4>
+ <p>{{_i}}Cycles through the carousel items from left to right.{{/i}}</p>
+ <h4>.carousel('pause')</h4>
+ <p>{{_i}}Stops the carousel from cycling through items.{{/i}}</p>
+ <h4>.carousel(number)</h4>
+ <p>{{_i}}Cycles the carousel to a particular frame (0 based, similar to an array).{{/i}}</p>
+ <h4>.carousel('prev')</h4>
+ <p>{{_i}}Cycles to the previous item.{{/i}}</p>
+ <h4>.carousel('next')</h4>
+ <p>{{_i}}Cycles to the next item.{{/i}}</p>
+ <h3>{{_i}}Events{{/i}}</h3>
+ <p>{{_i}}Bootstrap's carousel class exposes two events for hooking into carousel functionality.{{/i}}</p>
+ <table class="table table-bordered table-striped">
+ <thead>
+ <tr>
+ <th style="width: 150px;">{{_i}}Event{{/i}}</th>
+ <th>{{_i}}Description{{/i}}</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{_i}}slide{{/i}}</td>
+ <td>{{_i}}This event fires immediately when the <code>slide</code> instance method is invoked.{{/i}}</td>
+ </tr>
+ <tr>
+ <td>{{_i}}slid{{/i}}</td>
+ <td>{{_i}}This event is fired when the carousel has completed its slide transition.{{/i}}</td>
+ </tr>
+ </tbody>
+ </table>
+ </section>
- <!-- Typeahead
- ================================================== -->
- <section id="typeahead">
- <div class="page-header">
- <h1>{{_i}}Typeahead{{/i}} <small>bootstrap-typeahead.js</small></h1>
- </div>
- <div class="row">
- <div class="span3 columns">
- <h3>{{_i}}About{{/i}}</h3>
- <p>{{_i}}A basic, easily extended plugin for quickly creating elegant typeaheads with any form text input.{{/i}}</p>
- <a href="assets/js/bootstrap-typeahead.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a>
- </div>
- <div class="span9 columns">
- <h2>{{_i}}Example{{/i}}</h2>
- <p>{{_i}}Start typing in the field below to show the typeahead results.{{/i}}</p>
- <div class="well">
- <input type="text" class="span3" style="margin: 0 auto;" data-provide="typeahead" data-items="4" data-source='["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Dakota","North Carolina","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"]'>
- </div>
- <hr>
- <h2>{{_i}}Using bootstrap-typeahead.js{{/i}}</h2>
- <p>{{_i}}Call the typeahead via javascript:{{/i}}</p>
- <pre class="prettyprint linenums">$('.typeahead').typeahead()</pre>
+
+ <!-- Typeahead
+ ================================================== -->
+ <section id="typeahead">
+ <div class="page-header">
+ <h1>{{_i}}Typeahead{{/i}} <small>bootstrap-typeahead.js</small></h1>
+ </div>
+
+
+ <h2>{{_i}}Example{{/i}}</h2>
+ <p>{{_i}}A basic, easily extended plugin for quickly creating elegant typeaheads with any form text input.{{/i}}</p>
+ <div class="bs-docs-example" style="background-color: #f5f5f5;">
+ <input type="text" class="span3" style="margin: 0 auto;" data-provide="typeahead" data-items="4" data-source='["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Dakota","North Carolina","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"]'>
+ </div>{{! /example }}
+ <pre class="prettyprint linenums">&lt;input type="text" data-provide="typeahead"&gt;</pre>
+
+
+ <hr class="bs-docs-separator">
+
+
+ <h2>{{_i}}Usage{{/i}}</h2>
+
+ <h3>{{_i}}Via data attributes{{/i}}</h3>
+ <p>{{_i}}Add data attributes to register an element with typeahead functionality as shown in the example above.{{/i}}</p>
+
+ <h3>{{_i}}Via JavaScript{{/i}}</h3>
+ <p>{{_i}}Call the typeahead manually with:{{/i}}</p>
+ <pre class="prettyprint linenums">$('.typeahead').typeahead()</pre>
+
+ <h3>{{_i}}Options{{/i}}</h3>
+ <p>{{_i}}Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-source=""</code>.{{/i}}</p>
+ <table class="table table-bordered table-striped">
+ <thead>
+ <tr>
+ <th style="width: 100px;">{{_i}}Name{{/i}}</th>
+ <th style="width: 50px;">{{_i}}type{{/i}}</th>
+ <th style="width: 100px;">{{_i}}default{{/i}}</th>
+ <th>{{_i}}description{{/i}}</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{_i}}source{{/i}}</td>
+ <td>{{_i}}array, function{{/i}}</td>
+ <td>[ ]</td>
+ <td>{{_i}}The data source to query against. May be an array of strings or a function. The function is passed two arguments, the <code>query</code> value in the input field and the <code>process</code> callback. The function may be used synchronously by returning the data source directly or asynchronously via the <code>process</code> callback's single argument.{{/i}}</td>
+ </tr>
+ <tr>
+ <td>{{_i}}items{{/i}}</td>
+ <td>{{_i}}number{{/i}}</td>
+ <td>8</td>
+ <td>{{_i}}The max number of items to display in the dropdown.{{/i}}</td>
+ </tr>
+ <tr>
+ <td>{{_i}}minLength{{/i}}</td>
+ <td>{{_i}}number{{/i}}</td>
+ <td>{{_i}}1{{/i}}</td>
+ <td>{{_i}}The minimum character length needed before triggering autocomplete suggestions{{/i}}</td>
+ </tr>
+ <tr>
+ <td>{{_i}}matcher{{/i}}</td>
+ <td>{{_i}}function{{/i}}</td>
+ <td>{{_i}}case insensitive{{/i}}</td>
+ <td>{{_i}}The method used to determine if a query matches an item. Accepts a single argument, the <code>item</code> against which to test the query. Access the current query with <code>this.query</code>. Return a boolean <code>true</code> if query is a match.{{/i}}</td>
+ </tr>
+ <tr>
+ <td>{{_i}}sorter{{/i}}</td>
+ <td>{{_i}}function{{/i}}</td>
+ <td>{{_i}}exact match,<br> case sensitive,<br> case insensitive{{/i}}</td>
+ <td>{{_i}}Method used to sort autocomplete results. Accepts a single argument <code>items</code> and has the scope of the typeahead instance. Reference the current query with <code>this.query</code>.{{/i}}</td>
+ </tr>
+ <tr>
+ <td>{{_i}}highlighter{{/i}}</td>
+ <td>{{_i}}function{{/i}}</td>
+ <td>{{_i}}highlights all default matches{{/i}}</td>
+ <td>{{_i}}Method used to highlight autocomplete results. Accepts a single argument <code>item</code> and has the scope of the typeahead instance. Should return html.{{/i}}</td>
+ </tr>
+ </tbody>
+ </table>
+
+ <h3>{{_i}}Methods{{/i}}</h3>
+ <h4>.typeahead({{_i}}options{{/i}})</h4>
+ <p>{{_i}}Initializes an input with a typeahead.{{/i}}</p>
+ </section>
+
+
+
+ <!-- Affix
+ ================================================== -->
+ <section id="affix">
+ <div class="page-header">
+ <h1>{{_i}}Affix{{/i}} <small>bootstrap-affix.js</small></h1>
+ </div>
+
+ <h2>{{_i}}Example{{/i}}</h2>
+ <p>{{_i}}The subnavigation on the left is a live demo of the affix plugin.{{/i}}</p>
+
+ <hr class="bs-docs-separator">
+
+ <h2>{{_i}}Usage{{/i}}</h2>
+
+ <h3>{{_i}}Via data attributes{{/i}}</h3>
+ <p>{{_i}}To easily add affix behavior to any element, just add <code>data-spy="affix"</code> to the element you want to spy on. Then use offsets to define when to toggle the pinning of an element on and off.{{/i}}</p>
+
+ <pre class="prettyprint linenums">&lt;div data-spy="affix" data-offset-top="200"&gt;...&lt;/body&gt;</pre>
+
+ <div class="alert alert-info">
+ <strong>{{_i}}Heads up!{{/i}}</strong>
+ {{_i}}It's up to you to manage the position of a pinned element. This is done by styling <code>affix</code>, <code>affix-top</code>, and <code>affix-bottom</code>.{{/i}}
+ </div>
+
+ <h3>{{_i}}Via JavaScript{{/i}}</h3>
+ <p>{{_i}}Call the affix plugin via JavaScript:{{/i}}</p>
+ <pre class="prettyprint linenums">$('#navbar').affix()</pre>
+
+ <h3>{{_i}}Methods{{/i}}</h3>
+ <h4>.affix('refresh')</h4>
+ <p>{{_i}}When using affix in conjunction with adding or removing of elements from the DOM, you'll want to call the refresh method:{{/i}}</p>
+<pre class="prettyprint linenums">
+$('[data-spy="affix"]').each(function () {
+ $(this).affix('refresh')
+});
+</pre>
<h3>{{_i}}Options{{/i}}</h3>
+ <p>{{_i}}Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-offset-top="200"</code>.{{/i}}</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th style="width: 100px;">{{_i}}Name{{/i}}</th>
- <th style="width: 50px;">{{_i}}type{{/i}}</th>
- <th style="width: 100px;">{{_i}}default{{/i}}</th>
+ <th style="width: 100px;">{{_i}}type{{/i}}</th>
+ <th style="width: 50px;">{{_i}}default{{/i}}</th>
<th>{{_i}}description{{/i}}</th>
</tr>
</thead>
<tbody>
- <tr>
- <td>{{_i}}source{{/i}}</td>
- <td>{{_i}}array{{/i}}</td>
- <td>[ ]</td>
- <td>{{_i}}The data source to query against.{{/i}}</td>
- </tr>
- <tr>
- <td>{{_i}}items{{/i}}</td>
- <td>{{_i}}number{{/i}}</td>
- <td>8</td>
- <td>{{_i}}The max number of items to display in the dropdown.{{/i}}</td>
- </tr>
- <tr>
- <td>{{_i}}matcher{{/i}}</td>
- <td>{{_i}}function{{/i}}</td>
- <td>{{_i}}case insensitive{{/i}}</td>
- <td>{{_i}}The method used to determine if a query matches an item. Accepts a single argument, the <code>item</code> against which to test the query. Access the current query with <code>this.query</code>. Return a boolean <code>true</code> if query is a match.{{/i}}</td>
- </tr>
- <tr>
- <td>{{_i}}sorter{{/i}}</td>
- <td>{{_i}}function{{/i}}</td>
- <td>{{_i}}exact match,<br> case sensitive,<br> case insensitive{{/i}}</td>
- <td>{{_i}}Method used to sort autocomplete results. Accepts a single argument <code>items</code> and has the scope of the typeahead instance. Reference the current query with <code>this.query</code>.{{/i}}</td>
- </tr>
<tr>
- <td>{{_i}}highlighter{{/i}}</td>
- <td>{{_i}}function{{/i}}</td>
- <td>{{_i}}highlights all default matches{{/i}}</td>
- <td>{{_i}}Method used to highlight autocomplete results. Accepts a single argument <code>item</code> and has the scope of the typeahead instance. Should return html.{{/i}}</td>
+ <td>{{_i}}offset{{/i}}</td>
+ <td>{{_i}}number | function | object{{/i}}</td>
+ <td>{{_i}}10{{/i}}</td>
+ <td>{{_i}}Pixels to offset from screen when calculating position of scroll. If a single number is provide, the offset will be applied in both top and left directions. To listen for a single direction, or multiple unique offsets, just provided an object <code>offset: { x: 10 }</code>. Use a function when you need to dynamically provide an offset (useful for some responsive designs).{{/i}}</td>
</tr>
</tbody>
</table>
+ </section>
- <h3>{{_i}}Markup{{/i}}</h3>
- <p>{{_i}}Add data attributes to register an element with typeahead functionality.{{/i}}</p>
-<pre class="prettyprint linenums">
-&lt;input type="text" data-provide="typeahead"&gt;
-</pre>
- <h3>{{_i}}Methods{{/i}}</h3>
- <h4>.typeahead({{_i}}options{{/i}})</h4>
- <p>{{_i}}Initializes an input with a typeahead.{{/i}}</p>
- </div>
- </div>
- </section> \ No newline at end of file
+
+
+ </div>{{! /span9 }}
+ </div>{{! row}}
+
+ </div>{{! /.container }}
diff --git a/docs/templates/pages/less.mustache b/docs/templates/pages/less.mustache
deleted file mode 100644
index 7bdbe7614..000000000
--- a/docs/templates/pages/less.mustache
+++ /dev/null
@@ -1,944 +0,0 @@
-<!-- Masthead
-================================================== -->
-<header class="jumbotron subhead" id="overview">
- <h1>{{_i}}Using LESS with Bootstrap{{/i}}</h1>
- <p class="lead">{{_i}}Customize and extend Bootstrap with <a href="http://lesscss.org" target="_blank">LESS</a>, a CSS preprocessor, to take advantage of the variables, mixins, and more used to build Bootstrap's CSS.{{/i}}</p>
- <div class="subnav">
- <ul class="nav nav-pills">
- <li><a href="#builtWith">{{_i}}Built with Less{{/i}}</a></li>
- <li><a href="#variables">{{_i}}Variables{{/i}}</a></li>
- <li><a href="#mixins">{{_i}}Mixins{{/i}}</a></li>
- <li><a href="#compiling">{{_i}}Compiling Bootstrap{{/i}}</a></li>
- </ul>
- </div>
-</header>
-
-
-
-<!-- BUILT WITH LESS
-================================================== -->
-<section id="builtWith">
- <div class="page-header">
- <h1>{{_i}}Built with LESS{{/i}}</h1>
- </div>
- <div class="row">
- <div class="span4">
- <h3>{{_i}}Why LESS?{{/i}}</h3>
- <p>{{_i}}Bootstrap is made with LESS at its core, a dynamic stylesheet language created by our good friend, <a href="http://cloudhead.io">Alexis Sellier</a>. It makes developing systems-based CSS faster, easier, and more fun.{{/i}}</p>
- </div>
- <div class="span4">
- <h3>{{_i}}What's included?{{/i}}</h3>
- <p>{{_i}}As an extension of CSS, LESS includes variables, mixins for reusable snippets of code, operations for simple math, nesting, and even color functions.{{/i}}</p>
- </div>
- <div class="span4">
- <h3>{{_i}}Learn more{{/i}}</h3>
- <img style="float: right; height: 36px;" src="assets/img/less-logo-large.png" alt="LESS CSS">
- <p>{{_i}}Visit the official website at <a href="http://lesscss.org">http://lesscss.org</a> to learn more.{{/i}}</p>
- </div>
- </div>
- <div class="row">
- <div class="span4">
- <h3><a href="#variables">{{_i}}Variables{{/i}}</a></h3>
- <p>{{_i}}Managing colors and pixel values in CSS can be a bit of a pain, usually full of copy and paste. Not with LESS though&mdash;assign colors or pixel values as variables and change them once.{{/i}}</p>
- </div>
- <div class="span4">
- <h3><a href="#mixins">{{_i}}Mixins{{/i}}</a></h3>
- <p>{{_i}}Those three border-radius declarations you need to make in regular ol' CSS? Now they're down to one line with the help of mixins, snippets of code you can reuse anywhere.{{/i}}</p>
- </div>
- <div class="span4">
- <h3>{{_i}}Operations{{/i}}</h3>
- <p>{{_i}}Make your grid, leading, and more super flexible by doing the math on the fly with operations. Multiply, divide, add, and subtract your way to CSS sanity.{{/i}}</p>
- </div>
- </div>
-</section>
-
-
-
-<!-- VARIABLES
-================================================== -->
-<section id="variables">
- <div class="page-header">
- <h1>{{_i}}Bootstrap variables <small>LESS variables, their values, and usage guidelines</small>{{/i}}</h1>
- </div>
-
- <h3>{{_i}}Scaffolding and links{{/i}}</h3>
- <table class="table table-bordered table-striped">
- <tbody>
- <tr>
- <td class="span4"><code>@bodyBackground</code></td>
- <td><code>@white</code></td>
- <td>{{_i}}Page background color{{/i}}</td>
- <td class="swatch-col"><span class="swatch" style="background-color: #fff;"></span></td>
- </tr>
- <tr>
- <td><code>@textColor</code></td>
- <td><code>@grayDark</code></td>
- <td>{{_i}}Default text color for entire body, headings, and more{{/i}}</td>
- <td class="swatch-col"><span class="swatch" style="background-color: #333;"></span></td>
- </tr>
- <tr>
- <td><code>@linkColor</code></td>
- <td><code>#08c</code></td>
- <td>{{_i}}Default link text color{{/i}}</td>
- <td class="swatch-col"><span class="swatch" style="background-color: #08c;"></span></td>
- </tr>
- <tr>
- <td><code>@linkColorHover</code></td>
- <td><code>darken(@linkColor, 15%)</code></td>
- <td>{{_i}}Default link text hover color{{/i}}</td>
- <td><span class="swatch" style="background-color: #005580;"></span></td>
- </tr>
- </tbody>
- </table>
- <h3>{{_i}}Grid system{{/i}}</h3>
- <table class="table table-bordered table-striped">
- <tbody>
- <tr>
- <td class="span4"><code>@gridColumns</code></td>
- <td>12</td>
- </tr>
- <tr>
- <td><code>@gridColumnWidth</code></td>
- <td>60px</td>
- </tr>
- <tr>
- <td><code>@gridGutterWidth</code></td>
- <td>20px</td>
- </tr>
- <tr>
- <td><code>@fluidGridColumnWidth</code></td>
- <td>6.382978723%</td>
- </tr>
- <tr>
- <td><code>@fluidGridGutterWidth</code></td>
- <td>2.127659574%</td>
- </tr>
- </tbody>
- </table>
- <h3>{{_i}}Typography{{/i}}</h3>
- <table class="table table-bordered table-striped">
- <tbody>
- <tr>
- <td class="span4"><code>@sansFontFamily</code></td>
- <td colspan="2">"Helvetica Neue", Helvetica, Arial, sans-serif</td>
- </tr>
- <tr>
- <td><code>@serifFontFamily</code></td>
- <td colspan="2"><code>Georgia, "Times New Roman", Times, serif</code></td>
- </tr>
- <tr>
- <td><code>@monoFontFamily</code></td>
- <td colspan="2">Menlo, Monaco, "Courier New", monospace</td>
- </tr>
-
- <tr>
- <td><code>@baseFontSize</code></td>
- <td>13px</td>
- <td><em class="muted">Must be pixels</em></td>
- </tr>
- <tr>
- <td><code>@baseFontFamily</code></td>
- <td colspan="2"><code>@sansFontFamily</code></td>
- </tr>
- <tr>
- <td><code>@baseLineHeight</code></td>
- <td>18px</td>
- <td><em class="muted">Must be pixels</em></td>
- </tr>
- <tr>
- <td><code>@altFontFamily</code></td>
- <td colspan="2"><code>@serifFontFamily</code></td>
- </tr>
-
- <tr>
- <td><code>@headingsFontFamily</code></td>
- <td colspan="2"><code>inherit</code></td>
- </tr>
- <tr>
- <td><code>@headingsFontWeight</code></td>
- <td colspan="2"><code>bold</code></td>
- </tr>
- <tr>
- <td><code>@headingsColor</code></td>
- <td colspan="2"><code>inherit</code></td>
- </tr>
- </tbody>
- </table>
- <h3>{{_i}}Tables{{/i}}</h3>
- <table class="table table-bordered table-striped">
- <tbody>
- <tr>
- <td class="span4"><code>@tableBackground</code></td>
- <td><code>transparent</code></td>
- </tr>
- <tr>
- <td><code>@tableBackgroundAccent</code></td>
- <td><code>#f9f9f9</code></td>
- </tr>
- <tr>
- <td><code>@tableBackgroundHover</code></td>
- <td><code>#f5f5f5</code></td>
- </tr>
- <tr>
- <td><code>@tableBorder</code></td>
- <td><code>ddd</code></td>
- </tr>
- </tbody>
- </table>
-
- <h3>{{_i}}Grayscale colors{{/i}}</h3>
- <table class="table table-bordered table-striped">
- <tbody>
- <tr>
- <td class="span4"><code>@black</code></td>
- <td>#000</td>
- <td class="swatch-col"><span class="swatch" style="background-color: #000;"></span></td>
- </tr>
- <tr>
- <td><code>@grayDarker</code></td>
- <td>#222</td>
- <td><span class="swatch" style="background-color: #222;"></span></td>
- </tr>
- <tr>
- <td><code>@grayDark</code></td>
- <td>#333</td>
- <td><span class="swatch" style="background-color: #333;"></span></td>
- </tr>
- <tr>
- <td><code>@gray</code></td>
- <td>#555</td>
- <td><span class="swatch" style="background-color: #555;"></span></td>
- </tr>
- <tr>
- <td><code>@grayLight</code></td>
- <td>#999</td>
- <td><span class="swatch" style="background-color: #999;"></span></td>
- </tr>
- <tr>
- <td><code>@grayLighter</code></td>
- <td>#eee</td>
- <td><span class="swatch" style="background-color: #eee;"></span></td>
- </tr>
- <tr>
- <td><code>@white</code></td>
- <td>#fff</td>
- <td><span class="swatch swatch-bordered" style="background-color: #fff;"></span></td>
- </tr>
- </tbody>
- </table>
- <h3>{{_i}}Accent colors{{/i}}</h3>
- <table class="table table-bordered table-striped">
- <tbody>
- <tr>
- <td class="span4"><code>@blue</code></td>
- <td>#049cdb</td>
- <td class="swatch-col"><span class="swatch" style="background-color: #049cdb;"></span></td>
- </tr>
- <tr>
- <td><code>@green</code></td>
- <td>#46a546</td>
- <td><span class="swatch" style="background-color: #46a546;"></span></td>
- </tr>
- <tr>
- <td><code>@red</code></td>
- <td>#9d261d</td>
- <td><span class="swatch" style="background-color: #9d261d;"></span></td>
- </tr>
- <tr>
- <td><code>@yellow</code></td>
- <td>#ffc40d</td>
- <td><span class="swatch" style="background-color: #ffc40d;"></span></td>
- </tr>
- <tr>
- <td><code>@orange</code></td>
- <td>#f89406</td>
- <td><span class="swatch" style="background-color: #f89406;"></span></td>
- </tr>
- <tr>
- <td><code>@pink</code></td>
- <td>#c3325f</td>
- <td><span class="swatch" style="background-color: #c3325f;"></span></td>
- </tr>
- <tr>
- <td><code>@purple</code></td>
- <td>#7a43b6</td>
- <td><span class="swatch" style="background-color: #7a43b6;"></span></td>
- </tr>
- </tbody>
- </table>
-
-
- <h3>{{_i}}Components{{/i}}</h3>
-
- <h4>{{_i}}Buttons{{/i}}</h4>
- <table class="table table-bordered table-striped">
- <tbody>
- <tr>
- <td class="span4"><code>@btnBackground</code></td>
- <td><code>@white</code></td>
- <td class="swatch-col"><span class="swatch" style="background-color: #fff;"></span></td>
- </tr>
- <tr>
- <td><code>@btnBackgroundHighlight</code></td>
- <td><code>darken(@white, 10%)</code></td>
- <td class="swatch-col"><span class="swatch" style="background-color: #e6e6e6;"></span></td>
- </tr>
- <tr>
- <td><code>@btnBorder</code></td>
- <td><code>darken(@white, 20%)</code></td>
- <td class="swatch-col"><span class="swatch" style="background-color: #ccc;"></span></td>
- </tr>
-
- <tr>
- <td><code>@btnPrimaryBackground</code></td>
- <td><code>@linkColor</code></td>
- <td class="swatch-col"><span class="swatch" style="background-color: #08c;"></span></td>
- </tr>
- <tr>
- <td><code>@btnPrimaryBackgroundHighlight</code></td>
- <td><code>spin(@btnPrimaryBackground, 15%)</code></td>
- <td class="swatch-col"><span class="swatch" style="background-color: #05c;"></span></td>
- </tr>
-
- <tr>
- <td><code>@btnInfoBackground</code></td>
- <td><code>#5bc0de</code></td>
- <td class="swatch-col"><span class="swatch" style="background-color: #5bc0de;"></span></td>
- </tr>
- <tr>
- <td><code>@btnInfoBackgroundHighlight</code></td>
- <td><code>#2f96b4</code></td>
- <td class="swatch-col"><span class="swatch" style="background-color: #2f96b4;"></span></td>
- </tr>
-
- <tr>
- <td><code>@btnSuccessBackground</code></td>
- <td><code>#62c462</code></td>
- <td class="swatch-col"><span class="swatch" style="background-color: #62c462;"></span></td>
- </tr>
- <tr>
- <td><code>@btnSuccessBackgroundHighlight</code></td>
- <td><code>51a351</code></td>
- <td class="swatch-col"><span class="swatch" style="background-color: #51a351;"></span></td>
- </tr>
-
- <tr>
- <td><code>@btnWarningBackground</code></td>
- <td><code>lighten(@orange, 15%)</code></td>
- <td class="swatch-col"><span class="swatch" style="background-color: #fbb450;"></span></td>
- </tr>
- <tr>
- <td><code>@btnWarningBackgroundHighlight</code></td>
- <td><code>@orange</code></td>
- <td class="swatch-col"><span class="swatch" style="background-color: #f89406;"></span></td>
- </tr>
-
- <tr>
- <td><code>@btnDangerBackground</code></td>
- <td><code>#ee5f5b</code></td>
- <td class="swatch-col"><span class="swatch" style="background-color: #ee5f5b;"></span></td>
- </tr>
- <tr>
- <td><code>@btnDangerBackgroundHighlight</code></td>
- <td><code>#bd362f</code></td>
- <td class="swatch-col"><span class="swatch" style="background-color: #bd362f;"></span></td>
- </tr>
-
- <tr>
- <td><code>@btnInverseBackground</code></td>
- <td><code>@gray</code></td>
- <td class="swatch-col"><span class="swatch" style="background-color: #555;"></span></td>
- </tr>
- <tr>
- <td><code>@btnInverseBackgroundHighlight</code></td>
- <td><code>@grayDarker</code></td>
- <td class="swatch-col"><span class="swatch" style="background-color: #222;"></span></td>
- </tr>
- </tbody>
- </table>
- <h4>{{_i}}Forms{{/i}}</h4>
- <table class="table table-bordered table-striped">
- <tbody>
- <tr>
- <td class="span4"><code>@placeholderText</code></td>
- <td><code>@grayLight</code></td>
- </tr>
- <tr>
- <td><code>@inputBackground</code></td>
- <td><code>@white</code></td>
- </tr>
- <tr>
- <td><code>@inputBorder</code></td>
- <td><code>#ccc</code></td>
- </tr>
- <tr>
- <td><code>@inputBorderRadius</code></td>
- <td><code>3px</code></td>
- </tr>
- <tr>
- <td><code>@inputDisabledBackground</code></td>
- <td><code>@grayLighter</code></td>
- </tr>
- <tr>
- <td><code>@formActionsBackground</code></td>
- <td><code>#f5f5f5</code></td>
- </tr>
- </tbody>
- </table>
- <h4>{{_i}}Form states and alerts{{/i}}</h4>
- <table class="table table-bordered table-striped">
- <tbody>
- <tr>
- <td class="span4"><code>@warningText</code></td>
- <td>#c09853</td>
- <td><span class="swatch" style="background-color: #c09853;"></span></td>
- </tr>
- <tr>
- <td><code>@warningBackground</code></td>
- <td>#f3edd2</td>
- <td class="swatch-col"><span class="swatch" style="background-color: #f3edd2;"></span></td>
- </tr>
- <tr>
- <td><code>@errorText</code></td>
- <td>#b94a48</td>
- <td><span class="swatch" style="background-color: #b94a48;"></span></td>
- </tr>
- <tr>
- <td><code>@errorBackground</code></td>
- <td>#f2dede</td>
- <td><span class="swatch" style="background-color: #f2dede;"></span></td>
- </tr>
- <tr>
- <td><code>@successText</code></td>
- <td>#468847</td>
- <td><span class="swatch" style="background-color: #468847;"></span></td>
- </tr>
- <tr>
- <td><code>@successBackground</code></td>
- <td>#dff0d8</td>
- <td><span class="swatch" style="background-color: #dff0d8;"></span></td>
- </tr>
- <tr>
- <td><code>@infoText</code></td>
- <td>#3a87ad</td>
- <td><span class="swatch" style="background-color: #3a87ad;"></span></td>
- </tr>
- <tr>
- <td><code>@infoBackground</code></td>
- <td>#d9edf7</td>
- <td><span class="swatch" style="background-color: #d9edf7;"></span></td>
- </tr>
- </tbody>
- </table>
-
- <h4>{{_i}}Navbar{{/i}}</h4>
- <table class="table table-bordered table-striped">
- <tbody>
- <tr>
- <td class="span4"><code>@navbarHeight</code></td>
- <td>40px</td>
- <td class="swatch-col"></td>
- </tr>
- <tr>
- <td><code>@navbarBackground</code></td>
- <td><code>@grayDarker</code></td>
- <td><span class="swatch" style="background-color: #222;"></span></td>
- </tr>
- <tr>
- <td><code>@navbarBackgroundHighlight</code></td>
- <td><code>@grayDark</code></td>
- <td><span class="swatch" style="background-color: #333;"></span></td>
- </tr>
-
- <tr>
- <td><code>@navbarText</code></td>
- <td><code>@grayLight</code></td>
- <td><span class="swatch" style="background-color: #999;"></span></td>
- </tr>
- <tr>
- <td><code>@navbarLinkColor</code></td>
- <td><code>@grayLight</code></td>
- <td><span class="swatch" style="background-color: #999;"></span></td>
- </tr>
- <tr>
- <td><code>@navbarLinkColorHover</code></td>
- <td><code>@white</code></td>
- <td><span class="swatch swatch-bordered" style="background-color: #fff;"></span></td>
- </tr>
- <tr>
- <td><code>@navbarLinkColorActive</code></td>
- <td><code>@navbarLinkColorHover</code></td>
- <td><span class="swatch swatch-bordered" style="background-color: #fff;"></span></td>
- </tr>
- <tr>
- <td><code>@navbarLinkBackgroundHover</code></td>
- <td><code>transparent</code></td>
- <td><span class="swatch swatch-bordered" style="background-color: transparent;"></span></td>
- </tr>
- <tr>
- <td><code>@navbarLinkBackgroundActive</code></td>
- <td><code>@navbarBackground</code></td>
- <td><span class="swatch swatch-bordered" style="background-color: #fff;"></span></td>
- </tr>
-
- <tr>
- <td><code>@navbarSearchBackground</code></td>
- <td><code>lighten(@navbarBackground, 25%)</code></td>
- <td><span class="swatch" style="background-color: #666;"></span></td>
- </tr>
- <tr>
- <td><code>@navbarSearchBackgroundFocus</code></td>
- <td><code>@white</code></td>
- <td><span class="swatch swatch-bordered" style="background-color: #fff;"></span></td>
- </tr>
- <tr>
- <td><code>@navbarSearchBorder</code></td>
- <td><code>darken(@navbarSearchBackground, 30%)</code></td>
- <td><span class="swatch" style="background-color: #111;"></span></td>
- </tr>
- <tr>
- <td><code>@navbarSearchPlaceholderColor</code></td>
- <td><code>#ccc</code></td>
- <td><span class="swatch" style="background-color: #ccc;"></span></td>
- </tr>
- <tr>
- <td><code>@navbarBrandColor</code></td>
- <td><code>@navbarLinkColor</code></td>
- <td><span class="swatch swatch-bordered" style="background-color: #fff;"></span></td>
- </tr>
- </tbody>
- </table>
- <h4>{{_i}}Dropdowns{{/i}}</h4>
- <table class="table table-bordered table-striped">
- <tbody>
- <tr>
- <td class="span4"><code>@dropdownBackground</code></td>
- <td><code>@white</code></td>
- </tr>
- <tr>
- <td><code>@dropdownBorder</code></td>
- <td><code>rgba(0,0,0,.2)</code></td>
- </tr>
- <tr>
- <td><code>@dropdownLinkColor</code></td>
- <td><code>@grayDark</code></td>
- </tr>
- <tr>
- <td><code>@dropdownLinkColorHover</code></td>
- <td><code>@white</code></td>
- </tr>
- <tr>
- <td><code>@dropdownLinkBackgroundHover</code></td>
- <td><code>@linkColor</code></td>
- </tr>
- <tr>
- <td><code>@@dropdownDividerTop</code></td>
- <td><code>#e5e5e5</code></td>
- </tr>
- <tr>
- <td><code>@@dropdownDividerBottom</code></td>
- <td><code>@white</code></td>
- </tr>
- </tbody>
- </table>
- <h4>{{_i}}Hero unit{{/i}}</h4>
- <table class="table table-bordered table-striped">
- <tbody>
- <tr>
- <td class="span4"><code>@heroUnitBackground</code></td>
- <td><code>@grayLighter</code></td>
- <td class="swatch-col"><span class="swatch" style="background-color: #eee;"></span></td>
- </tr>
- <tr>
- <td class="span2"><code>@heroUnitHeadingColor</code></td>
- <td><code>inherit</code></td>
- <td></td>
- </tr>
- <tr>
- <td><code>@heroUnitLeadColor</code></td>
- <td><code>inhereit</code></td>
- <td></td>
- </tr>
- </tbody>
- </table>
-
-
-</section>
-
-
-
-<!-- MIXINS
-================================================== -->
-<section id="mixins">
- <div class="page-header">
- <h1>{{_i}}Bootstrap mixins <small></small>{{/i}}</h1>
- </div>
- <h2>{{_i}}About mixins{{/i}}</h2>
- <div class="row">
- <div class="span4">
- <h3>{{_i}}Basic mixins{{/i}}</h3>
- <p>{{_i}}A basic mixin is essentially an include or a partial for a snippet of CSS. They're written just like a CSS class and can be called anywhere.{{/i}}</p>
-<pre class="prettyprint linenums">
-.element {
- .clearfix();
-}
-</pre>
- </div><!-- /span4 -->
- <div class="span4">
- <h3>{{_i}}Parametric mixins{{/i}}</h3>
- <p>{{_i}}A parametric mixin is just like a basic mixin, but it also accepts parameters (hence the name) with optional default values.{{/i}}</p>
-<pre class="prettyprint linenums">
-.element {
- .border-radius(4px);
-}
-</pre>
- </div><!-- /span4 -->
- <div class="span4">
- <h3>{{_i}}Easily add your own{{/i}}</h3>
- <p>{{_i}}Nearly all of Bootstrap's mixins are stored in mixins.less, a wonderful utility .less file that enables you to use a mixin in any of the .less files in the toolkit.{{/i}}</p>
- <p>{{_i}}So, go ahead and use the existing ones or feel free to add your own as you need.{{/i}}</p>
- </div><!-- /span4 -->
- </div><!-- /row -->
- <h2>{{_i}}Included mixins{{/i}}</h2>
- <h3>{{_i}}Utilities{{/i}}</h3>
- <table class="table table-bordered table-striped">
- <thead>
- <tr>
- <th class="span4">{{_i}}Mixin{{/i}}</th>
- <th>{{_i}}Parameters{{/i}}</th>
- <th>{{_i}}Usage{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><code>.clearfix()</code></td>
- <td><em class="muted">none</em></td>
- <td>{{_i}}Add to any parent to clear floats within{{/i}}</td>
- </tr>
- <tr>
- <td><code>.tab-focus()</code></td>
- <td><em class="muted">none</em></td>
- <td>{{_i}}Apply the Webkit focus style and round Firefox outline{{/i}}</td>
- </tr>
- <tr>
- <td><code>.center-block()</code></td>
- <td><em class="muted">none</em></td>
- <td>{{_i}}Auto center a block-level element using <code>margin: auto</code>{{/i}}</td>
- </tr>
- <tr>
- <td><code>.ie7-inline-block()</code></td>
- <td><em class="muted">none</em></td>
- <td>{{_i}}Use in addition to regular <code>display: inline-block</code> to get IE7 support{{/i}}</td>
- </tr>
- <tr>
- <td><code>.size()</code></td>
- <td><code>@height @width</code></td>
- <td>{{_i}}Quickly set the height and width on one line{{/i}}</td>
- </tr>
- <tr>
- <td><code>.square()</code></td>
- <td><code>@size</code></td>
- <td>{{_i}}Builds on <code>.size()</code> to set the width and height as same value{{/i}}</td>
- </tr>
- <tr>
- <td><code>.opacity()</code></td>
- <td><code>@opacity</code></td>
- <td>{{_i}}Set, in whole numbers, the opacity percentage (e.g., "50" or "75"){{/i}}</td>
- </tr>
- </tbody>
- </table>
- <h3>Forms</h3>
- <table class="table table-bordered table-striped">
- <thead>
- <tr>
- <th class="span4">{{_i}}Mixin{{/i}}</th>
- <th>{{_i}}Parameters{{/i}}</th>
- <th>{{_i}}Usage{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><code>.placeholder()</code></td>
- <td><code>@color: @placeholderText</code></td>
- <td>{{_i}}Set the <code>placeholder</code> text color for inputs{{/i}}</td>
- </tr>
- </tbody>
- </table>
- <h3>Typography</h3>
- <table class="table table-bordered table-striped">
- <thead>
- <tr>
- <th class="span4">{{_i}}Mixin{{/i}}</th>
- <th>{{_i}}Parameters{{/i}}</th>
- <th>{{_i}}Usage{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><code>#font > #family > .serif()</code></td>
- <td><em class="muted">none</em></td>
- <td>{{_i}}Make an element use a serif font stack{{/i}}</td>
- </tr>
- <tr>
- <td><code>#font > #family > .sans-serif()</code></td>
- <td><em class="muted">none</em></td>
- <td>{{_i}}Make an element use a sans-serif font stack{{/i}}</td>
- </tr>
- <tr>
- <td><code>#font > #family > .monospace()</code></td>
- <td><em class="muted">none</em></td>
- <td>{{_i}}Make an element use a monospace font stack{{/i}}</td>
- </tr>
- <tr>
- <td><code>#font > .shorthand()</code></td>
- <td><code>@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight</code></td>
- <td>{{_i}}Easily set font size, weight, and leading{{/i}}</td>
- </tr>
- <tr>
- <td><code>#font > .serif()</code></td>
- <td><code>@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight</code></td>
- <td>{{_i}}Set font family to serif, and control size, weight, and leading{{/i}}</td>
- </tr>
- <tr>
- <td><code>#font > .sans-serif()</code></td>
- <td><code>@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight</code></td>
- <td>{{_i}}Set font family to sans-serif, and control size, weight, and leading{{/i}}</td>
- </tr>
- <tr>
- <td><code>#font > .monospace()</code></td>
- <td><code>@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight</code></td>
- <td>{{_i}}Set font family to monospace, and control size, weight, and leading{{/i}}</td>
- </tr>
- </tbody>
- </table>
- <h3>Grid system</h3>
- <table class="table table-bordered table-striped">
- <thead>
- <tr>
- <th class="span4">{{_i}}Mixin{{/i}}</th>
- <th>{{_i}}Parameters{{/i}}</th>
- <th>{{_i}}Usage{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><code>.container-fixed()</code></td>
- <td><em class="muted">none</em></td>
- <td>{{_i}}Create a horizontally centered container for holding your content{{/i}}</td>
- </tr>
- <tr>
- <td><code>#grid > .core()</code></td>
- <td><code>@gridColumnWidth, @gridGutterWidth</code></td>
- <td>{{_i}}Generate a pixel grid system (container, row, and columns) with <em>n</em> columns and <em>x</em> pixel wide gutter{{/i}}</td>
- </tr>
- <tr>
- <td><code>#grid > .fluid()</code></td>
- <td><code>@fluidGridColumnWidth, @fluidGridGutterWidth</code></td>
- <td>{{_i}}Generate a percent grid system with <em>n</em> columns and <em>x</em> % wide gutter{{/i}}</td>
- </tr>
- <tr>
- <td><code>#grid > .input()</code></td>
- <td><code>@gridColumnWidth, @gridGutterWidth</code></td>
- <td>{{_i}}Generate the pixel grid system for <code>input</code> elements, accounting for padding and borders{{/i}}</td>
- </tr>
- <tr>
- <td><code>.makeColumn</code></td>
- <td><code>@columns: 1, @offset: 0</code></td>
- <td>{{_i}}Turn any <code>div</code> into a grid column without the <code>.span*</code> classes{{/i}}</td>
- </tr>
- </tbody>
- </table>
- <h3>{{_i}}CSS3 properties{{/i}}</h3>
- <table class="table table-bordered table-striped">
- <thead>
- <tr>
- <th class="span3">{{_i}}Mixin{{/i}}</th>
- <th>{{_i}}Parameters{{/i}}</th>
- <th>{{_i}}Usage{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><code>.border-radius()</code></td>
- <td><code>@radius</code></td>
- <td>{{_i}}Round the corners of an element. Can be a single value or four space-separated values{{/i}}</td>
- </tr>
- <tr>
- <td><code>.box-shadow()</code></td>
- <td><code>@shadow</code></td>
- <td>{{_i}}Add a drop shadow to an element{{/i}}</td>
- </tr>
- <tr>
- <td><code>.transition()</code></td>
- <td><code>@transition</code></td>
- <td>{{_i}}Add CSS3 transition effect (e.g., <code>all .2s linear</code>){{/i}}</td>
- </tr>
- <tr>
- <td><code>.rotate()</code></td>
- <td><code>@degrees</code></td>
- <td>{{_i}}Rotate an element <em>n</em> degrees{{/i}}</td>
- </tr>
- <tr>
- <td><code>.scale()</code></td>
- <td><code>@ratio</code></td>
- <td>{{_i}}Scale an element to <em>n</em> times its original size{{/i}}</td>
- </tr>
- <tr>
- <td><code>.translate()</code></td>
- <td><code>@x, @y</code></td>
- <td>{{_i}}Move an element on the x and y planes{{/i}}</td>
- </tr>
- <tr>
- <td><code>.background-clip()</code></td>
- <td><code>@clip</code></td>
- <td>{{_i}}Crop the background of an element (useful for <code>border-radius</code>){{/i}}</td>
- </tr>
- <tr>
- <td><code>.background-size()</code></td>
- <td><code>@size</code></td>
- <td>{{_i}}Control the size of background images via CSS3{{/i}}</td>
- </tr>
- <tr>
- <td><code>.box-sizing()</code></td>
- <td><code>@boxmodel</code></td>
- <td>{{_i}}Change the box model for an element (e.g., <code>border-box</code> for a full-width <code>input</code>){{/i}}</td>
- </tr>
- <tr>
- <td><code>.user-select()</code></td>
- <td><code>@select</code></td>
- <td>{{_i}}Control cursor selection of text on a page{{/i}}</td>
- </tr>
- <tr>
- <td><code>.backface-visibility()</code></td>
- <td><code>@visibility: visible</code></td>
- <td>{{_i}}Prevent flickering of content when using CSS 3D transforms{{/i}}</td>
- </tr>
- <tr>
- <td><code>.resizable()</code></td>
- <td><code>@direction: both</code></td>
- <td>{{_i}}Make any element resizable on the right and bottom{{/i}}</td>
- </tr>
- <tr>
- <td><code>.content-columns()</code></td>
- <td><code>@columnCount, @columnGap: @gridGutterWidth</code></td>
- <td>{{_i}}Make the content of any element use CSS3 columns{{/i}}</td>
- </tr>
- <tr>
- <td><code>.hyphens()</code></td>
- <td><code>@mode: auto</code></td>
- <td>{{_i}}CSS3 hyphenation when you want it (includes <code>word-wrap: break-word</code>){{/i}}</td>
- </tr>
- </tbody>
- </table>
- <h3>{{_i}}Backgrounds and gradients{{/i}}</h3>
- <table class="table table-bordered table-striped">
- <thead>
- <tr>
- <th class="span4">{{_i}}Mixin{{/i}}</th>
- <th>{{_i}}Parameters{{/i}}</th>
- <th>{{_i}}Usage{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><code>#translucent > .background()</code></td>
- <td><code>@color: @white, @alpha: 1</code></td>
- <td>{{_i}}Give an element a translucent background color{{/i}}</td>
- </tr>
- <tr>
- <td><code>#translucent > .border()</code></td>
- <td><code>@color: @white, @alpha: 1</code></td>
- <td>{{_i}}Give an element a translucent border color{{/i}}</td>
- </tr>
- <tr>
- <td><code>#gradient > .vertical()</code></td>
- <td><code>@startColor, @endColor</code></td>
- <td>{{_i}}Create a cross-browser vertical background gradient{{/i}}</td>
- </tr>
- <tr>
- <td><code>#gradient > .horizontal()</code></td>
- <td><code>@startColor, @endColor</code></td>
- <td>{{_i}}Create a cross-browser horizontal background gradient{{/i}}</td>
- </tr>
- <tr>
- <td><code>#gradient > .directional()</code></td>
- <td><code>@startColor, @endColor, @deg</code></td>
- <td>{{_i}}Create a cross-browser directional background gradient{{/i}}</td>
- </tr>
- <tr>
- <td><code>#gradient > .vertical-three-colors()</code></td>
- <td><code>@startColor, @midColor, @colorStop, @endColor</code></td>
- <td>{{_i}}Create a cross-browser three-color background gradient{{/i}}</td>
- </tr>
- <tr>
- <td><code>#gradient > .radial()</code></td>
- <td><code>@innerColor, @outerColor</code></td>
- <td>{{_i}}Create a cross-browser radial background gradient{{/i}}</td>
- </tr>
- <tr>
- <td><code>#gradient > .striped()</code></td>
- <td><code>@color, @angle</code></td>
- <td>{{_i}}Create a cross-browser striped background gradient{{/i}}</td>
- </tr>
- <tr>
- <td><code>#gradientBar()</code></td>
- <td><code>@primaryColor, @secondaryColor</code></td>
- <td>{{_i}}Used for buttons to assign a gradient and slightly darker border{{/i}}</td>
- </tr>
- </tbody>
- </table>
-</section>
-
-
-
-<!-- COMPILING LESS AND BOOTSTRAP
-================================================== -->
-<section id="compiling">
- <div class="page-header">
- <h1>{{_i}}Compiling Bootstrap with LESS{{/i}}</h1>
- </div>
- <div class="alert alert-info">
- {{_i}}<strong>Note:</strong> If you're submitting a pull request to GitHub with modified CSS, you <strong>must</strong> recompile the CSS via any of these methods.{{/i}}
- </div>
- <h2>{{_i}}Tools for compiling{{/i}}</h2>
- <div class="row">
- <div class="span4">
- <h3>{{_i}}Node with makefile{{/i}}</h3>
- <p>{{_i}}Install the LESS command line compiler, JSHint, Recess, and uglify-js globally with npm by running the following command:{{/i}}</p>
- <pre>$ npm install -g less jshint recess uglify-js</pre>
- <p>{{_i}}Once installed just run <code>make</code> from the root of your bootstrap directory and you're all set.{{/i}}</p>
- <p>{{_i}}Additionally, if you have <a href="https://github.com/mynyml/watchr">watchr</a> installed, you may run <code>make watch</code> to have bootstrap automatically rebuilt every time you edit a file in the bootstrap lib (this isn't required, just a convenience method).{{/i}}</p>
- </div><!-- /span4 -->
- <div class="span4">
- <h3>{{_i}}Command line{{/i}}</h3>
- <p>{{_i}}Install the LESS command line tool via Node and run the following command:{{/i}}</p>
- <pre>$ lessc ./less/bootstrap.less > bootstrap.css</pre>
- <p>{{_i}}Be sure to include <code>--compress</code> in that command if you're trying to save some bytes!{{/i}}</p>
- </div><!-- /span4 -->
- <div class="span4">
- <h3>{{_i}}Javascript{{/i}}</h3>
- <p>{{_i}}<a href="http://lesscss.org/">Download the latest Less.js</a> and include the path to it (and Bootstrap) in the <code>&lt;head&gt;</code>.{{/i}}</p>
-<pre class="prettyprint">
-&lt;link rel="stylesheet/less" href="/path/to/bootstrap.less"&gt;
-&lt;script src="/path/to/less.js"&gt;&lt;/script&gt;
-</pre>
- <p>{{_i}}To recompile the .less files, just save them and reload your page. Less.js compiles them and stores them in local storage.{{/i}}</p>
- </div><!-- /span4 -->
- </div><!-- /row -->
- <div class="row">
- <div class="span4">
- <h3>{{_i}}Unofficial Mac app{{/i}}</h3>
- <p>{{_i}}<a href="http://incident57.com/less/">The unofficial Mac app</a> watches directories of .less files and compiles the code to local files after every save of a watched .less file.{{/i}}</p>
- <p>{{_i}}If you like, you can toggle preferences in the app for automatic minifying and which directory the compiled files end up in.{{/i}}</p>
- </div><!-- /span4 -->
- <div class="span4">
- <h3>{{_i}}More Mac apps{{/i}}</h3>
- <h4><a href="http://crunchapp.net/" target="_blank">Crunch</a></h4>
- <p>{{_i}}Crunch is a great looking LESS editor and compiler built on Adobe Air.{{/i}}</p>
- <h4><a href="http://incident57.com/codekit/" target="_blank">CodeKit</a></h4>
- <p>{{_i}}Created by the same guy as the unofficial Mac app, CodeKit is a Mac app that compiles LESS, SASS, Stylus, and CoffeeScript.{{/i}}</p>
- <h4><a href="http://wearekiss.com/simpless" target="_blank">Simpless</a></h4>
- <p>{{_i}}Mac, Linux, and PC app for drag and drop compiling of LESS files. Plus, the <a href="https://github.com/Paratron/SimpLESS" target="_blank">source code is on GitHub</a>.{{/i}}</p>
- </div><!-- /span4 -->
- </div><!-- /row -->
-</section>
diff --git a/docs/templates/pages/scaffolding.mustache b/docs/templates/pages/scaffolding.mustache
index 1088cc775..724ab5e53 100644
--- a/docs/templates/pages/scaffolding.mustache
+++ b/docs/templates/pages/scaffolding.mustache
@@ -1,254 +1,251 @@
-<!-- Masthead
+<!-- Subhead
================================================== -->
<header class="jumbotron subhead" id="overview">
- <h1>{{_i}}Scaffolding{{/i}}</h1>
- <p class="lead">{{_i}}Bootstrap is built on a responsive 12-column grid. We've also included fixed- and fluid-width layouts based on that system.{{/i}}</p>
- <div class="subnav">
- <ul class="nav nav-pills">
- <li><a href="#global">{{_i}}Global styles{{/i}}</a></li>
- <li><a href="#gridSystem">{{_i}}Grid system{{/i}}</a></li>
- <li><a href="#fluidGridSystem">{{_i}}Fluid grid system{{/i}}</a></li>
- <li><a href="#gridCustomization">{{_i}}Customizing{{/i}}</a></li>
- <li><a href="#layouts">{{_i}}Layouts{{/i}}</a></li>
- <li><a href="#responsive">{{_i}}Responsive design{{/i}}</a></li>
- </ul>
+ <div class="container">
+ <h1>{{_i}}Scaffolding{{/i}}</h1>
+ <p class="lead">{{_i}}Bootstrap is built on responsive 12-column grids, layouts, and components.{{/i}}</p>
</div>
</header>
+ <div class="container">
+
+ <!-- Docs nav
+ ================================================== -->
+ <div class="row">
+ <div class="span3 bs-docs-sidebar">
+ <ul class="nav nav-list bs-docs-sidenav">
+ <li><a href="#global"><i class="icon-chevron-right"></i> {{_i}}Global styles{{/i}}</a></li>
+ <li><a href="#gridSystem"><i class="icon-chevron-right"></i> {{_i}}Grid system{{/i}}</a></li>
+ <li><a href="#fluidGridSystem"><i class="icon-chevron-right"></i> {{_i}}Fluid grid system{{/i}}</a></li>
+ <li><a href="#layouts"><i class="icon-chevron-right"></i> {{_i}}Layouts{{/i}}</a></li>
+ <li><a href="#responsive"><i class="icon-chevron-right"></i> {{_i}}Responsive design{{/i}}</a></li>
+ </ul>
+ </div>
+ <div class="span9">
-<!-- Global Bootstrap settings
-================================================== -->
-<section id="global">
- <div class="page-header">
- <h1>{{_i}}Global styles <small>for CSS reset, typography, and links</small>{{/i}}</h1>
- </div>
- <div class="row">
- <div class="span4">
- <h2>{{_i}}Requires HTML5 doctype{{/i}}</h2>
- <p>{{_i}}Bootstrap makes use of HTML elements and CSS properties that require the use of the HTML5 doctype. Be sure to include it at the beginning of every Bootstrapped page in your project.{{/i}}</p>
+ <!-- Global Bootstrap settings
+ ================================================== -->
+ <section id="global">
+ <div class="page-header">
+ <h1>{{_i}}Global settings{{/i}}</h1>
+ </div>
+
+ <h3>{{_i}}Requires HTML5 doctype{{/i}}</h3>
+ <p>{{_i}}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.{{/i}}</p>
<pre class="prettyprint linenums">
&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;
...
&lt;/html&gt;
</pre>
- </div><!-- /.span -->
- <div class="span4">
- <h2>{{_i}}Typography and links{{/i}}</h2>
- <p>{{_i}}Within the <strong>scaffolding.less</strong> file, we set basic global display, typography, and link styles. Specifically, we:{{/i}}</p>
- <ul>
- <li>{{_i}}Remove margin on the body{{/i}}</li>
- <li>{{_i}}Set <code>background-color: white;</code> on the <code>body</code>{{/i}}</li>
- <li>{{_i}}Use the <code>@baseFontFamily</code>, <code>@baseFontSize</code>, and <code>@baseLineHeight</code> attributes as our typographyic base{{/i}}</li>
- <li>{{_i}}Set the global link color via <code>@linkColor</code> and apply link underlines only on <code>:hover</code>{{/i}}</li>
- </ul>
- </div><!-- /.span -->
- <div class="span4">
- <h2>{{_i}}Reset via Normalize{{/i}}</h2>
- <p>{{_i}}As of Bootstrap 2, the traditional CSS reset has evolved to make use of elements from <a href="http://necolas.github.com/normalize.css/" target="_blank">Normalize.css</a>, a project by <a href="http://twitter.com/necolas" target="_blank">Nicolas Gallagher</a> that also powers the <a href="http://html5boilerplate.com" target="_blank">HTML5 Boilerplate</a>.{{/i}}</p>
- <p>{{_i}}The new reset can still be found in <strong>reset.less</strong>, but with many elements removed for brevity and accuracy.{{/i}}</p>
- </div><!-- /.span -->
- </div><!-- /.row -->
-</section>
-
-
-
-
-<!-- Grid system
-================================================== -->
-<section id="gridSystem">
- <div class="page-header">
- <h1>{{_i}}Default grid system <small>12 columns with a responsive twist</small>{{/i}}</h1>
- </div>
- <div class="row show-grid">
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- </div>
- <div class="row show-grid">
- <div class="span4">4</div>
- <div class="span4">4</div>
- <div class="span4">4</div>
- </div>
- <div class="row show-grid">
- <div class="span4">4</div>
- <div class="span8">8</div>
- </div>
- <div class="row show-grid">
- <div class="span6">6</div>
- <div class="span6">6</div>
- </div>
- <div class="row show-grid">
- <div class="span12">12</div>
- </div>
- <div class="row">
- <div class="span4">
- <p>{{_i}}The default grid system provided in Bootstrap utilizes <strong>12 columns</strong> that render out at widths of 724px, 940px (default without responsive CSS included), and 1170px. Below 767px viewports, the columns become fluid and stack vertically. {{/i}}</p>
- </div><!-- /.span -->
- <div class="span4">
+ <h3>{{_i}}Typography and links{{/i}}</h3>
+ <p>{{_i}}Bootstrap sets basic global display, typography, and link styles. Specifically, we:{{/i}}</p>
+ <ul>
+ <li>{{_i}}Remove <code>margin</code> on the body{{/i}}</li>
+ <li>{{_i}}Set <code>background-color: white;</code> on the <code>body</code>{{/i}}</li>
+ <li>{{_i}}Use the <code>@baseFontFamily</code>, <code>@baseFontSize</code>, and <code>@baseLineHeight</code> attributes as our typographyic base{{/i}}</li>
+ <li>{{_i}}Set the global link color via <code>@linkColor</code> and apply link underlines only on <code>:hover</code>{{/i}}</li>
+ </ul>
+ <p>{{_i}}These styles can be found within <strong>scaffolding.less</strong>.{{/i}}</p>
+
+ <h3>{{_i}}Reset via Normalize{{/i}}</h3>
+ <p>{{_i}}With Bootstrap 2, the old reset block has been dropped in favor of <a href="http://necolas.github.com/normalize.css/" target="_blank">Normalize.css</a>, a project by <a href="http://twitter.com/necolas" target="_blank">Nicolas Gallagher</a> that also powers the <a href="http://html5boilerplate.com" target="_blank">HTML5 Boilerplate</a>. While we use much of Normalize within our <strong>reset.less</strong>, we have removed some elements specifically for Bootstrap.{{/i}}</p>
+
+ </section>
+
+
+
+
+ <!-- Grid system
+ ================================================== -->
+ <section id="gridSystem">
+ <div class="page-header">
+ <h1>{{_i}}Default grid system{{/i}}</h1>
+ </div>
+
+ <h2>{{_i}}Live grid example{{/i}}</h2>
+ <p>{{_i}}The default Bootstrap grid system utilizes <strong>12 columns</strong>, making for a 940px wide container without <a href="#responsive">responsive features</a> enabled. With the responsive CSS file added, the grid adapts to be 724px and 1170px wide depending on your viewport. Below 767px viewports, the columns become fluid and stack vertically.{{/i}}</p>
+ <div class="bs-docs-grid">
+ <div class="row show-grid">
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ </div>
+ <div class="row show-grid">
+ <div class="span2">2</div>
+ <div class="span3">3</div>
+ <div class="span4">4</div>
+ </div>
+ <div class="row show-grid">
+ <div class="span4">4</div>
+ <div class="span5">5</div>
+ </div>
+ <div class="row show-grid">
+ <div class="span9">9</div>
+ </div>
+ </div>
+
+ <h3>{{_i}}Basic grid HTML{{/i}}</h3>
+ <p>{{_i}}For a simple two column layout, create a <code>.row</code> and add the appropriate number of <code>.span*</code> columns. As this is a 12-column grid, each <code>.span*</code> spans a number of those 12 columns, and should always add up to 12 for each row (or the number of columns in the parent).{{/i}}</p>
<pre class="prettyprint linenums">
&lt;div class="row"&gt;
&lt;div class="span4"&gt;...&lt;/div&gt;
&lt;div class="span8"&gt;...&lt;/div&gt;
&lt;/div&gt;
</pre>
- </div><!-- /.span -->
- <div class="span4">
- <p>{{_i}}As shown here, a basic layout can be created with two "columns", each spanning a number of the 12 foundational columns we defined as part of our grid system.{{/i}}</p>
- </div><!-- /.span -->
- </div><!-- /.row -->
-
- <br>
-
- <h2>{{_i}}Offsetting columns{{/i}}</h2>
- <div class="row show-grid">
- <div class="span4">4</div>
- <div class="span4 offset4">4 offset 4</div>
- </div><!-- /row -->
- <div class="row show-grid">
- <div class="span3 offset3">3 offset 3</div>
- <div class="span3 offset3">3 offset 3</div>
- </div><!-- /row -->
- <div class="row show-grid">
- <div class="span8 offset4">8 offset 4</div>
- </div><!-- /row -->
+ <p>{{_i}}Given this example, we have <code>.span4</code> and <code>.span8</code>, making for 12 total columns and a complete row.{{/i}}</p>
+
+ <h2>{{_i}}Offsetting columns{{/i}}</h2>
+ <p>{{_i}}Move columns to the left using <code>.offset*</code> classes. Each class increases the left margin of a column by a whole column. For example, <code>.offset4</code> moves <code>.span4</code> over four columns.{{/i}}</p>
+ <div class="bs-docs-grid">
+ <div class="row show-grid">
+ <div class="span4">4</div>
+ <div class="span3 offset2">3 offset 2</div>
+ </div><!-- /row -->
+ <div class="row show-grid">
+ <div class="span3 offset1">3 offset 1</div>
+ <div class="span3 offset2">3 offset 2</div>
+ </div><!-- /row -->
+ <div class="row show-grid">
+ <div class="span6 offset3">6 offset 3</div>
+ </div><!-- /row -->
+ </div>
<pre class="prettyprint linenums">
&lt;div class="row"&gt;
&lt;div class="span4"&gt;...&lt;/div&gt;
- &lt;div class="span4 offset4"&gt;...&lt;/div&gt;
+ &lt;div class="span3 offset2"&gt;...&lt;/div&gt;
&lt;/div&gt;
</pre>
- <br>
-
- <h2>{{_i}}Nesting columns{{/i}}</h2>
- <div class="row">
- <div class="span6">
- <p>{{_i}}With the static (non-fluid) grid system in Bootstrap, nesting is easy. To nest your content, just add a new <code>.row</code> and set of <code>.span*</code> columns within an existing <code>.span*</code> column.{{/i}}</p>
- <h3>{{_i}}Example{{/i}}</h3>
- <p>{{_i}}Nested rows should include a set of columns that add up to the number of columns of it's parent. For example, two nested <code>.span3</code> columns should be placed within a <code>.span6</code>.{{/i}}</p>
- <div class="row show-grid">
- <div class="span6">
- {{_i}}Level 1 of column{{/i}}
+ <h2>{{_i}}Nesting columns{{/i}}</h2>
+ <p>{{_i}}To nest your content with the default grid, add a new <code>.row</code> and set of <code>.span*</code> columns within an existing <code>.span*</code> column. Nested rows should include a set of columns that add up to the number of columns of its parent.{{/i}}</p>
+ <h3>{{_i}}Example{{/i}}</h3>
+ <p>{{_i}}Here two nested <code>.span4</code> columns are placed within a <code>.span8</code>.{{/i}}</p>
<div class="row show-grid">
- <div class="span3">
- {{_i}}Level 2{{/i}}
- </div>
- <div class="span3">
- {{_i}}Level 2{{/i}}
+ <div class="span9">
+ {{_i}}Level 1 of column{{/i}}
+ <div class="row show-grid">
+ <div class="span6">
+ {{_i}}Level 2{{/i}}
+ </div>
+ <div class="span3">
+ {{_i}}Level 2{{/i}}
+ </div>
+ </div>
</div>
</div>
- </div>
- </div>
- </div><!-- /.span -->
- <div class="span6">
<pre class="prettyprint linenums">
&lt;div class="row"&gt;
- &lt;div class="span6"&gt;
+ &lt;div class="span9"&gt;
{{_i}}Level 1 column{{/i}}
&lt;div class="row"&gt;
- &lt;div class="span3"&gt;{{_i}}Level 2{{/i}}&lt;/div&gt;
+ &lt;div class="span6"&gt;{{_i}}Level 2{{/i}}&lt;/div&gt;
&lt;div class="span3"&gt;{{_i}}Level 2{{/i}}&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</pre>
- </div><!-- /.span -->
- </div><!-- /.row -->
-</section>
+ </section>
-<!-- Fluid grid system
-================================================== -->
-<section id="fluidGridSystem">
- <div class="page-header">
- <h1>{{_i}}Fluid grid system <small>12 responsive, percent-based columns</small>{{/i}}</h1>
- </div>
+ <!-- Fluid grid system
+ ================================================== -->
+ <section id="fluidGridSystem">
+ <div class="page-header">
+ <h1>{{_i}}Fluid grid system{{/i}}</h1>
+ </div>
- <h2>{{_i}}Fluid columns{{/i}}</h2>
- <div class="row-fluid show-grid">
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- <div class="span1">1</div>
- </div>
- <div class="row-fluid show-grid">
- <div class="span4">4</div>
- <div class="span4">4</div>
- <div class="span4">4</div>
- </div>
- <div class="row-fluid show-grid">
- <div class="span4">4</div>
- <div class="span8">8</div>
- </div>
- <div class="row-fluid show-grid">
- <div class="span6">6</div>
- <div class="span6">6</div>
- </div>
- <div class="row-fluid show-grid">
- <div class="span12">12</div>
- </div>
+ <h2>{{_i}}Live fluid grid example{{/i}}</h2>
+ <p>{{_i}}The fluid grid system uses percents instead of pixels for column widths. It has the same responsive capabilities as our fixed grid system, ensuring proper proportions for key screen resolutions and devices.{{/i}}</p>
+ <div class="bs-docs-grid">
+ <div class="row-fluid show-grid">
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ <div class="span1">1</div>
+ </div>
+ <div class="row-fluid show-grid">
+ <div class="span4">4</div>
+ <div class="span4">4</div>
+ <div class="span4">4</div>
+ </div>
+ <div class="row-fluid show-grid">
+ <div class="span4">4</div>
+ <div class="span8">8</div>
+ </div>
+ <div class="row-fluid show-grid">
+ <div class="span6">6</div>
+ <div class="span6">6</div>
+ </div>
+ <div class="row-fluid show-grid">
+ <div class="span12">12</div>
+ </div>
+ </div>
- <div class="row">
- <div class="span4">
- <h3>{{_i}}Percents, not pixels{{/i}}</h3>
- <p>{{_i}}The fluid grid system uses percents for column widths instead of fixed pixels. It also has the same responsive variations as our fixed grid system, ensuring proper proportions for key screen resolutions and devices.{{/i}}</p>
- </div><!-- /.span -->
- <div class="span4">
- <h3>{{_i}}Fluid rows{{/i}}</h3>
- <p>{{_i}}Make any row fluid simply by changing <code>.row</code> to <code>.row-fluid</code>. The columns stay the exact same, making it super straightforward to flip between fixed and fluid layouts.{{/i}}</p>
- </div><!-- /.span -->
- <div class="span4">
- <h3>{{_i}}Markup{{/i}}</h3>
+ <h3>{{_i}}Basic fluid grid HTML{{/i}}</h3>
+ <p>{{_i}}Make any row "fluid" by changing <code>.row</code> to <code>.row-fluid</code>. The column classes stay the exact same, making it easy to flip between fixed and fluid grids.{{/i}}</p>
<pre class="prettyprint linenums">
&lt;div class="row-fluid"&gt;
&lt;div class="span4"&gt;...&lt;/div&gt;
&lt;div class="span8"&gt;...&lt;/div&gt;
&lt;/div&gt;
</pre>
- </div><!-- /.span -->
- </div><!-- /.row -->
-
- <h2>{{_i}}Fluid nesting{{/i}}</h2>
- <div class="row">
- <div class="span6">
- <p>{{_i}}Nesting with fluid grids is a bit different: the number of nested columns doesn't need to match the parent. Instead, your columns are reset at each level because each row takes up 100% of the parent column.{{/i}}</p>
- <div class="row-fluid show-grid">
- <div class="span12">
- {{_i}}Fluid 12{{/i}}
+
+ <h2>{{_i}}Fluid offsetting{{/i}}</h2>
+ <p>{{_i}}Operates the same way as the fixed grid system offsetting: add <code>.offset*</code> to any column to offset by that many columns.{{/i}}</p>
+ <div class="bs-docs-grid">
+ <div class="row-fluid show-grid">
+ <div class="span4">4</div>
+ <div class="span4 offset4">4 offset 4</div>
+ </div><!-- /row -->
+ <div class="row-fluid show-grid">
+ <div class="span3 offset3">3 offset 3</div>
+ <div class="span3 offset3">3 offset 3</div>
+ </div><!-- /row -->
+ <div class="row-fluid show-grid">
+ <div class="span6 offset6">6 offset 6</div>
+ </div><!-- /row -->
+ </div>
+<pre class="prettyprint linenums">
+&lt;div class="row-fluid"&gt;
+ &lt;div class="span4"&gt;...&lt;/div&gt;
+ &lt;div class="span4 offset2"&gt;...&lt;/div&gt;
+&lt;/div&gt;
+</pre>
+
+ <h2>{{_i}}Fluid nesting{{/i}}</h2>
+ <p>{{_i}}Nesting with fluid grids is a bit different: the number of nested columns should not match the parent's number of columns. Instead, each level of nested columns are reset because each row takes up 100% of the parent column.{{/i}}</p>
<div class="row-fluid show-grid">
- <div class="span6">
- {{_i}}Fluid 6{{/i}}
- </div>
- <div class="span6">
- {{_i}}Fluid 6{{/i}}
+ <div class="span12">
+ {{_i}}Fluid 12{{/i}}
+ <div class="row-fluid show-grid">
+ <div class="span6">
+ {{_i}}Fluid 6{{/i}}
+ </div>
+ <div class="span6">
+ {{_i}}Fluid 6{{/i}}
+ </div>
+ </div>
</div>
</div>
- </div>
- </div>
- </div><!-- /.span -->
- <div class="span6">
<pre class="prettyprint linenums">
&lt;div class="row-fluid"&gt;
&lt;div class="span12"&gt;
@@ -260,78 +257,24 @@
&lt;/div&gt;
&lt;/div&gt;
</pre>
- </div><!-- /.span -->
- </div><!-- /.row -->
-</section>
+ </section>
-<!-- Customizaton
-================================================== -->
-<section id="gridCustomization">
- <div class="page-header">
- <h1>{{_i}}Grid customization{{/i}}</h1>
- </div>
- <table class="table table-bordered table-striped">
- <thead>
- <tr>
- <th>{{_i}}Variable{{/i}}</th>
- <th>{{_i}}Default value{{/i}}</th>
- <th>{{_i}}Description{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><code>@gridColumns</code></td>
- <td>12</td>
- <td>{{_i}}Number of columns{{/i}}</td>
- </tr>
- <tr>
- <td><code>@gridColumnWidth</code></td>
- <td>60px</td>
- <td>{{_i}}Width of each column{{/i}}</td>
- </tr>
- <tr>
- <td><code>@gridGutterWidth</code></td>
- <td>20px</td>
- <td>{{_i}}Negative space between columns{{/i}}</td>
- </tr>
- </tbody>
- </table>
- <div class="row">
- <div class="span4">
- <h3>{{_i}}Variables in LESS{{/i}}</h3>
- <p>{{_i}}Built into Bootstrap are a handful of variables for customizing the default 940px grid system, documented above. All variables for the grid are stored in variables.less.{{/i}}</p>
- </div><!-- /.span -->
- <div class="span4">
- <h3>{{_i}}How to customize{{/i}}</h3>
- <p>{{_i}}Modifying the grid means changing the three <code>@grid*</code> variables and recompiling Bootstrap. Change the grid variables in variables.less and use one of the <a href="less.html#compiling">four ways documented to recompile</a>. If you're adding more columns, be sure to add the CSS for those in grid.less.{{/i}}</p>
- </div><!-- /.span -->
- <div class="span4">
- <h3>{{_i}}Staying responsive{{/i}}</h3>
- <p>{{_i}}Customization of the grid only works at the default level, the 940px grid. To maintain the responsive aspects of Bootstrap, you'll also have to customize the grids in responsive.less.{{/i}}</p>
- </div><!-- /.span -->
- </div><!-- /.row -->
-
-</section>
-
-
-
-<!-- Layouts (Default and fluid)
-================================================== -->
-<section id="layouts">
- <div class="page-header">
- <h1>{{_i}}Layouts <small>Basic templates to create webpages</small>{{/i}}</h1>
- </div>
- <div class="row">
- <div class="span6">
- <h2>{{_i}}Fixed layout{{/i}}</h2>
- <p>{{_i}}The default and simple 940px-wide, centered layout for just about any website or page provided by a single <code>&lt;div class="container"&gt;</code>.{{/i}}</p>
- <div class="mini-layout">
- <div class="mini-layout-body"></div>
- </div>
+ <!-- Layouts (Default and fluid)
+ ================================================== -->
+ <section id="layouts">
+ <div class="page-header">
+ <h1>{{_i}}Layouts{{/i}}</h1>
+ </div>
+
+ <h2>{{_i}}Fixed layout{{/i}}</h2>
+ <p>{{_i}}Provides a common fixed-width (and optionally responsive) layout with only <code>&lt;div class="container"&gt;</code> required.{{/i}}</p>
+ <div class="mini-layout">
+ <div class="mini-layout-body"></div>
+ </div>
<pre class="prettyprint linenums">
&lt;body&gt;
&lt;div class="container"&gt;
@@ -339,14 +282,13 @@
&lt;/div&gt;
&lt;/body&gt;
</pre>
- </div><!-- /.span -->
- <div class="span6">
- <h2>{{_i}}Fluid layout{{/i}}</h2>
- <p>{{_i}}<code>&lt;div class="container-fluid"&gt;</code> gives flexible page structure, min- and max-widths, and a left-hand sidebar. It's great for apps and docs.{{/i}}</p>
- <div class="mini-layout fluid">
- <div class="mini-layout-sidebar"></div>
- <div class="mini-layout-body"></div>
- </div>
+
+ <h2>{{_i}}Fluid layout{{/i}}</h2>
+ <p>{{_i}}Create a fluid, two-column page with <code>&lt;div class="container-fluid"&gt;</code>&mdash;great for applications and docs.{{/i}}</p>
+ <div class="mini-layout fluid">
+ <div class="mini-layout-sidebar"></div>
+ <div class="mini-layout-body"></div>
+ </div>
<pre class="prettyprint linenums">
&lt;div class="container-fluid"&gt;
&lt;div class="row-fluid"&gt;
@@ -359,197 +301,173 @@
&lt;/div&gt;
&lt;/div&gt;
</pre>
- </div><!-- /.span -->
- </div><!-- /.row -->
-</section>
+ </section>
-<!-- Responsive design
-================================================== -->
-<section id="responsive">
- <div class="page-header">
- <h1>{{_i}}Responsive design <small>Media queries for various devices and resolutions</small>{{/i}}</h1>
- </div>
- <!-- Supported devices -->
- <div class="row">
- <div class="span4">
- <p><img src="assets/img/responsive-illustrations.png" alt="Responsive devices"></p>
- <h3>{{_i}}What they do{{/i}}</h3>
- <p>{{_i}}Media queries allow for custom CSS based on a number of conditions&mdash;ratios, widths, display type, etc&mdash;but usually focuses around <code>min-width</code> and <code>max-width</code>.{{/i}}</p>
- <ul>
- <li>{{_i}}Modify the width of column in our grid{{/i}}</li>
- <li>{{_i}}Stack elements instead of float wherever necessary{{/i}}</li>
- <li>{{_i}}Resize headings and text to be more appropriate for devices{{/i}}</li>
- </ul>
- <p>{{_i}}Use media queries responsibly and only as a start to your mobile audiences. For larger projects, do consider dedicated code bases and not layers of media queries.{{/i}}</p>
- </div><!-- /.span -->
- <div class="span8">
- <h2>{{_i}}Supported devices{{/i}}</h2>
- <p>{{_i}}Bootstrap supports a handful of media queries in a single file to help make your projects more appropriate on different devices and screen resolutions. Here's what's included:{{/i}}</p>
- <table class="table table-bordered table-striped">
- <thead>
- <tr>
- <th>{{_i}}Label{{/i}}</th>
- <th>{{_i}}Layout width{{/i}}</th>
- <th>{{_i}}Column width{{/i}}</th>
- <th>{{_i}}Gutter width{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{_i}}Smartphones{{/i}}</td>
- <td>480px and below</td>
- <td class="muted" colspan="2">{{_i}}Fluid columns, no fixed widths{{/i}}</td>
- </tr>
- <tr>
- <td>{{_i}}Smartphones to tablets{{/i}}</td>
- <td>767px and below</td>
- <td class="muted" colspan="2">{{_i}}Fluid columns, no fixed widths{{/i}}</td>
- </tr>
- <tr>
- <td>{{_i}}Portrait tablets{{/i}}</td>
- <td>768px and above</td>
- <td>42px</td>
- <td>20px</td>
- </tr>
- <tr>
- <td>{{_i}}Default{{/i}}</td>
- <td>980px and up</td>
- <td>60px</td>
- <td>20px</td>
- </tr>
- <tr>
- <td>{{_i}}Large display{{/i}}</td>
- <td>1200px and up</td>
- <td>70px</td>
- <td>30px</td>
- </tr>
- </tbody>
- </table>
-
- <h3>{{_i}}Requires meta tag{{/i}}</h3>
- <p>{{_i}}To ensure devices display responsive pages properly, include the viewport meta tag.{{/i}}</p>
- <pre class="prettyprint linenums">&lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;</pre>
- </div><!-- /.span -->
- </div><!-- /.row -->
-
- <br>
-
- <!-- Media query code -->
- <h2>{{_i}}Using the media queries{{/i}}</h2>
- <div class="row">
- <div class="span4">
- <p>{{_i}}Bootstrap doesn't automatically include these media queries, but understanding and adding them is very easy and requires minimal setup. You have a few options for including the responsive features of Bootstrap:{{/i}}</p>
- <ol>
- <li>{{_i}}Use the compiled responsive version, bootstrap-responsive.css{{/i}}</li>
- <li>{{_i}}Add @import "responsive.less" and recompile Bootstrap{{/i}}</li>
- <li>{{_i}}Modify and recompile responsive.less as a separate file{{/i}}</li>
- </ol>
- <p>{{_i}}<strong>Why not just include it?</strong> Truth be told, not everything needs to be responsive. Instead of encouraging developers to remove this feature, we figure it best to enable it.{{/i}}</p>
- </div><!-- /.span -->
- <div class="span8">
+ <!-- Responsive design
+ ================================================== -->
+ <section id="responsive">
+ <div class="page-header">
+ <h1>{{_i}}Responsive design{{/i}}</h1>
+ </div>
+
+ {{! Enabling }}
+ <h2>{{_i}}Enabling responsive features{{/i}}</h2>
+ <p>{{_i}}Turn on responsive CSS in your project by including the proper meta tag and additional stylesheet within the <code>&lt;head&gt;</code> of your document. If you've compiled Bootstrap from the Customize page, you need only include the meta tag.{{/i}}</p>
<pre class="prettyprint linenums">
- /* {{_i}}Landscape phones and down{{/i}} */
- @media (max-width: 480px) { ... }
+&lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
+&lt;link href="assets/css/bootstrap-responsive.css" rel="stylesheet"&gt;
+</pre>
+ <p><span class="label label-info">{{_i}}Heads up!{{/i}}</span> {{_i}} Bootstrap doesn't include responsive features by default at this time as not everything needs to be responsive. Instead of encouraging developers to remove this feature, we figure it best to enable it as needed.{{/i}}</p>
+
+ {{! About }}
+ <h2>{{_i}}About responsive Bootstrap{{/i}}</h2>
+ <img src="assets/img/responsive-illustrations.png" alt="Responsive devices" style="float: right; margin: 0 0 20px 20px;">
+ <p>{{_i}}Media queries allow for custom CSS based on a number of conditions&mdash;ratios, widths, display type, etc&mdash;but usually focuses around <code>min-width</code> and <code>max-width</code>.{{/i}}</p>
+ <ul>
+ <li>{{_i}}Modify the width of column in our grid{{/i}}</li>
+ <li>{{_i}}Stack elements instead of float wherever necessary{{/i}}</li>
+ <li>{{_i}}Resize headings and text to be more appropriate for devices{{/i}}</li>
+ </ul>
+ <p>{{_i}}Use media queries responsibly and only as a start to your mobile audiences. For larger projects, do consider dedicated code bases and not layers of media queries.{{/i}}</p>
+
+ {{! Supported }}
+ <h2>{{_i}}Supported devices{{/i}}</h2>
+ <p>{{_i}}Bootstrap supports a handful of media queries in a single file to help make your projects more appropriate on different devices and screen resolutions. Here's what's included:{{/i}}</p>
+ <table class="table table-bordered table-striped">
+ <thead>
+ <tr>
+ <th>{{_i}}Label{{/i}}</th>
+ <th>{{_i}}Layout width{{/i}}</th>
+ <th>{{_i}}Column width{{/i}}</th>
+ <th>{{_i}}Gutter width{{/i}}</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{_i}}Phones{{/i}}</td>
+ <td>480px and below</td>
+ <td class="muted" colspan="2">{{_i}}Fluid columns, no fixed widths{{/i}}</td>
+ </tr>
+ <tr>
+ <td>{{_i}}Phones to tablets{{/i}}</td>
+ <td>767px and below</td>
+ <td class="muted" colspan="2">{{_i}}Fluid columns, no fixed widths{{/i}}</td>
+ </tr>
+ <tr>
+ <td>{{_i}}Portrait tablets{{/i}}</td>
+ <td>768px and above</td>
+ <td>42px</td>
+ <td>20px</td>
+ </tr>
+ <tr>
+ <td>{{_i}}Default{{/i}}</td>
+ <td>980px and up</td>
+ <td>60px</td>
+ <td>20px</td>
+ </tr>
+ <tr>
+ <td>{{_i}}Large display{{/i}}</td>
+ <td>1200px and up</td>
+ <td>70px</td>
+ <td>30px</td>
+ </tr>
+ </tbody>
+ </table>
+<pre class="prettyprint linenums">
+/* {{_i}}Landscape phones and down{{/i}} */
+@media (max-width: 480px) { ... }
- /* {{_i}}Landscape phone to portrait tablet{{/i}} */
- @media (max-width: 767px) { ... }
+/* {{_i}}Landscape phone to portrait tablet{{/i}} */
+@media (max-width: 767px) { ... }
- /* {{_i}}Portrait tablet to landscape and desktop{{/i}} */
- @media (min-width: 768px) and (max-width: 979px) { ... }
+/* {{_i}}Portrait tablet to landscape and desktop{{/i}} */
+@media (min-width: 768px) and (max-width: 979px) { ... }
- /* {{_i}}Large desktop{{/i}} */
- @media (min-width: 1200px) { ... }
+/* {{_i}}Large desktop{{/i}} */
+@media (min-width: 1200px) { ... }
</pre>
- </div><!-- /.span -->
- </div><!-- /.row -->
- <br>
-
- <!-- Responsive utility classes -->
- <h2>{{_i}}Responsive utility classes{{/i}}</h2>
- <div class="row">
- <div class="span4">
- <h3>{{_i}}What are they{{/i}}</h2>
- <p>{{_i}}For faster mobile-friendly development, use these basic utility classes for showing and hiding content by device.{{/i}}</p>
- <h3>{{_i}}When to use{{/i}}</h2>
- <p>{{_i}}Use on a limited basis and avoid creating entirely different versions of the same site. Instead, use them to complement each device's presentation.{{/i}}</p>
- <p>{{_i}}For example, you might show a <code>&lt;select&gt;</code> element for nav on mobile layouts, but not on tablets or desktops.{{/i}}</p>
- </div><!-- /.span -->
- <div class="span8">
- <h3>{{_i}}Support classes{{/i}}</h3>
- <p>{{_i}}Shown here is a table of the classes we support and their effect on a given media query layout (labeled by device). They can be found in <code>responsive.less</code>.{{/i}}</p>
- <table class="table table-bordered table-striped responsive-utilities">
- <thead>
- <tr>
- <th>{{_i}}Class{{/i}}</th>
- <th>{{_i}}Phones <small>480px and below</small>{{/i}}</th>
- <th>{{_i}}Tablets <small>767px and below</small>{{/i}}</th>
- <th>{{_i}}Desktops <small>768px and above</small>{{/i}}</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <th><code>.visible-phone</code></th>
- <td class="is-visible">{{_i}}Visible{{/i}}</td>
- <td class="is-hidden">{{_i}}Hidden{{/i}}</td>
- <td class="is-hidden">{{_i}}Hidden{{/i}}</td>
- </tr>
- <tr>
- <th><code>.visible-tablet</code></th>
- <td class="is-hidden">{{_i}}Hidden{{/i}}</td>
- <td class="is-visible">{{_i}}Visible{{/i}}</td>
- <td class="is-hidden">{{_i}}Hidden{{/i}}</td>
- </tr>
- <tr>
- <th><code>.visible-desktop</code></th>
- <td class="is-hidden">{{_i}}Hidden{{/i}}</td>
- <td class="is-hidden">{{_i}}Hidden{{/i}}</td>
- <td class="is-visible">{{_i}}Visible{{/i}}</td>
- </tr>
- <tr>
- <th><code>.hidden-phone</code></th>
- <td class="is-hidden">{{_i}}Hidden{{/i}}</td>
- <td class="is-visible">{{_i}}Visible{{/i}}</td>
- <td class="is-visible">{{_i}}Visible{{/i}}</td>
- </tr>
- <tr>
- <th><code>.hidden-tablet</code></th>
- <td class="is-visible">{{_i}}Visible{{/i}}</td>
- <td class="is-hidden">{{_i}}Hidden{{/i}}</td>
- <td class="is-visible">{{_i}}Visible{{/i}}</td>
- </tr>
- <tr>
- <th><code>.hidden-desktop</code></th>
- <td class="is-visible">{{_i}}Visible{{/i}}</td>
- <td class="is-visible">{{_i}}Visible{{/i}}</td>
- <td class="is-hidden">{{_i}}Hidden{{/i}}</td>
- </tr>
- </tbody>
- </table>
- <h3>{{_i}}Test case{{/i}}</h3>
- <p>{{_i}}Resize your browser or load on different devices to test the above classes.{{/i}}</p>
- <h4>{{_i}}Visible on...{{/i}}</h4>
- <p>{{_i}}Green checkmarks indicate that class is visible in your current viewport.{{/i}}</p>
- <ul class="responsive-utilities-test">
- <li>{{_i}}Phone{{/i}}<span class="visible-phone">&#10004; {{_i}}Phone{{/i}}</span></li>
- <li>{{_i}}Tablet{{/i}}<span class="visible-tablet">&#10004; {{_i}}Tablet{{/i}}</span></li>
- <li>{{_i}}Desktop{{/i}}<span class="visible-desktop">&#10004; {{_i}}Desktop{{/i}}</span></li>
- </ul>
- <h4>{{_i}}Hidden on...{{/i}}</h4>
- <p>{{_i}}Here, green checkmarks indicate that class is hidden in your current viewport.{{/i}}</p>
- <ul class="responsive-utilities-test hidden-on">
- <li>{{_i}}Phone{{/i}}<span class="hidden-phone">&#10004; {{_i}}Phone{{/i}}</span></li>
- <li>{{_i}}Tablet{{/i}}<span class="hidden-tablet">&#10004; {{_i}}Tablet{{/i}}</span></li>
- <li>{{_i}}Desktop{{/i}}<span class="hidden-desktop">&#10004; {{_i}}Desktop{{/i}}</span></li>
- </ul>
- </div><!-- /.span -->
- </div><!-- /.row -->
-
-
- <div class="row">
- <div class="span4">
- </div><!-- /.span -->
- </div><!-- /.row -->
-</section>
+
+
+ {{! Responsive utility classes }}
+ <h2>{{_i}}Responsive utility classes{{/i}}</h2>
+ <p>{{_i}}For faster mobile-friendly development, use these utility classes for showing and hiding content by device. Below is a table of the available classes and their effect on a given media query layout (labeled by device). They can be found in <code>responsive.less</code>.{{/i}}</p>
+ <table class="table table-bordered table-striped responsive-utilities">
+ <thead>
+ <tr>
+ <th>{{_i}}Class{{/i}}</th>
+ <th>{{_i}}Phones <small>767px and below</small>{{/i}}</th>
+ <th>{{_i}}Tablets <small>979px to 768px</small>{{/i}}</th>
+ <th>{{_i}}Desktops <small>Default</small>{{/i}}</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th><code>.visible-phone</code></th>
+ <td class="is-visible">{{_i}}Visible{{/i}}</td>
+ <td class="is-hidden">{{_i}}Hidden{{/i}}</td>
+ <td class="is-hidden">{{_i}}Hidden{{/i}}</td>
+ </tr>
+ <tr>
+ <th><code>.visible-tablet</code></th>
+ <td class="is-hidden">{{_i}}Hidden{{/i}}</td>
+ <td class="is-visible">{{_i}}Visible{{/i}}</td>
+ <td class="is-hidden">{{_i}}Hidden{{/i}}</td>
+ </tr>
+ <tr>
+ <th><code>.visible-desktop</code></th>
+ <td class="is-hidden">{{_i}}Hidden{{/i}}</td>
+ <td class="is-hidden">{{_i}}Hidden{{/i}}</td>
+ <td class="is-visible">{{_i}}Visible{{/i}}</td>
+ </tr>
+ <tr>
+ <th><code>.hidden-phone</code></th>
+ <td class="is-hidden">{{_i}}Hidden{{/i}}</td>
+ <td class="is-visible">{{_i}}Visible{{/i}}</td>
+ <td class="is-visible">{{_i}}Visible{{/i}}</td>
+ </tr>
+ <tr>
+ <th><code>.hidden-tablet</code></th>
+ <td class="is-visible">{{_i}}Visible{{/i}}</td>
+ <td class="is-hidden">{{_i}}Hidden{{/i}}</td>
+ <td class="is-visible">{{_i}}Visible{{/i}}</td>
+ </tr>
+ <tr>
+ <th><code>.hidden-desktop</code></th>
+ <td class="is-visible">{{_i}}Visible{{/i}}</td>
+ <td class="is-visible">{{_i}}Visible{{/i}}</td>
+ <td class="is-hidden">{{_i}}Hidden{{/i}}</td>
+ </tr>
+ </tbody>
+ </table>
+
+ <h3>{{_i}}When to use{{/i}}</h3>
+ <p>{{_i}}Use on a limited basis and avoid creating entirely different versions of the same site. Instead, use them to complement each device's presentation.{{/i}}</p>
+
+ <h3>{{_i}}Responsive utilities test case{{/i}}</h3>
+ <p>{{_i}}Resize your browser or load on different devices to test the above classes.{{/i}}</p>
+ <h4>{{_i}}Visible on...{{/i}}</h4>
+ <p>{{_i}}Green checkmarks indicate that class is visible in your current viewport.{{/i}}</p>
+ <ul class="responsive-utilities-test">
+ <li>{{_i}}Phone{{/i}}<span class="visible-phone">&#10004; {{_i}}Phone{{/i}}</span></li>
+ <li>{{_i}}Tablet{{/i}}<span class="visible-tablet">&#10004; {{_i}}Tablet{{/i}}</span></li>
+ <li>{{_i}}Desktop{{/i}}<span class="visible-desktop">&#10004; {{_i}}Desktop{{/i}}</span></li>
+ </ul>
+ <h4>{{_i}}Hidden on...{{/i}}</h4>
+ <p>{{_i}}Here, green checkmarks indicate that class is hidden in your current viewport.{{/i}}</p>
+ <ul class="responsive-utilities-test hidden-on">
+ <li>{{_i}}Phone{{/i}}<span class="hidden-phone">&#10004; {{_i}}Phone{{/i}}</span></li>
+ <li>{{_i}}Tablet{{/i}}<span class="hidden-tablet">&#10004; {{_i}}Tablet{{/i}}</span></li>
+ <li>{{_i}}Desktop{{/i}}<span class="hidden-desktop">&#10004; {{_i}}Desktop{{/i}}</span></li>
+ </ul>
+
+ </section>
+
+
+
+ </div>{{! /span9 }}
+ </div>{{! row}}
+
+ </div>{{! /.container }}
diff --git a/docs/templates/pages/upgrading.mustache b/docs/templates/pages/upgrading.mustache
deleted file mode 100644
index 5a82e2dc9..000000000
--- a/docs/templates/pages/upgrading.mustache
+++ /dev/null
@@ -1,194 +0,0 @@
-<!-- Masthead
-================================================== -->
-<header class="jumbotron subhead" id="overview">
- <h1>{{_i}}Upgrading to Bootstrap 2{{/i}}</h1>
- <p class="lead">{{_i}}Learn about significant changes and additions since v1.4 with this handy guide.{{/i}}</p>
-</header>
-
-
-
-<!-- Project
-================================================== -->
-<section id="docs">
- <div class="page-header">
- <h1>{{_i}}Project changes{{/i}}</h1>
- </div>
- <ul>
- <li>{{_i}}Docs: major updates across the board to general structure, examples, and code snippets. Also made responsive with new media queries.{{/i}}</li>
- <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>
- <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>
- <li>{{_i}}Docs and repo: one makefile, just type <code>make</code> in the Terminal and get updated docs and CSS.{{/i}}</li>
- </ul>
-</section>
-
-
-
-<!-- Scaffolding
-================================================== -->
-<section id="scaffolding">
- <div class="page-header">
- <h1>{{_i}}Scaffolding{{/i}}</h1>
- </div>
- <h3>{{_i}}Grid system{{/i}}</h3>
- <ul>
- <li>{{_i}}Updated grid system, now only 12 columns instead of 16{{/i}}
- <li>{{_i}}Responsive approach means your projects virtually work out of the box on smartphones, tablets, and more{{/i}}</li>
- <li>{{_i}}Removed unused (by default) grid columns support for 17-24 columns{{/i}}</li>
- </ul>
- <h3>{{_i}}Responsive (media queries){{/i}}</h3>
- <ul>
- <li>{{_i}}Media queries added for <strong>basic support</strong> across mobile and tablet devices{{/i}}
- <li>{{_i}}Responsive CSS is compiled separately, as bootstrap-responsive.css{{/i}}</li>
- </ul>
-</section>
-
-
-
-<!-- Base CSS
-================================================== -->
-<section id="baseCSS">
- <div class="page-header">
- <h1>{{_i}}Base CSS{{/i}}</h1>
- </div>
- <h3>{{_i}}Typography{{/i}}</h3>
- <ul>
- <li>{{_i}}<code>h4</code> elements were dropped from 16px to 14px with a default <code>line-height</code> of 18px{{/i}}</li>
- <li>{{_i}}<code>h5</code> elements were dropped from 14px to 12px{{/i}}</li>
- <li>{{_i}}<code>h6</code> elements were dropped from 13px to 11px{{/i}}</li>
- <li>{{_i}}Right-aligned option for blockquotes if <code>float: right;</code>{{/i}}</li>
- </ul>
- <h3>{{_i}}Code{{/i}}</h3>
- <ul>
- <li>{{_i}}New graphical style for <code>&lt;code&gt;</code>{{/i}}</li>
- <li>{{_i}}Google Code Prettify styles updated (based on GitHub's gists){{/i}}</li>
- </ul>
- <h3>{{_i}}Tables{{/i}}</h3>
- <ul>
- <li>{{_i}}Improved support for <code>colspan</code> and <code>rowspan</code>{{/i}}</li>
- <li>{{_i}}Styles now restricted to new base class, <code>.table</code>{{/i}}</li>
- <li>{{_i}}Table classes standardized with <code>.table-</code> required as a prefix{{/i}}</li>
- <li>{{_i}}Removed unused table color options (too much code for such little impact){{/i}}</li>
- <li>{{_i}}Dropped support for TableSorter{{/i}}</li>
- </ul>
- <h3>{{_i}}Buttons{{/i}}</h3>
- <ul>
- <li>{{_i}}New classes for colors and sizes, all prefixed with <code>.btn-</code>{{/i}}</li>
- <li>{{_i}}IE9: removed gradients and added rounded corners{{/i}}</li>
- <li>{{_i}}Updated active state to make styling clearer in button groups (new) and look better with custom transition{{/i}}</li>
- <li>{{_i}}New mixin, <code>.buttonBackground</code>, to set button gradients{{/i}}</li>
- <li>{{_i}}The <code>.secondary</code> class was removed from modal examples in our docs as it never had associated styles.{{/i}}</li>
- </ul>
- <h3>{{_i}}Forms{{/i}}</h3>
- <ul>
- <li>{{_i}}Default form style is now vertical (stacked) to use less CSS and add greater flexibility{{/i}}</li>
- <li>{{_i}}Form classes standardized with <code>.form-</code> required as a prefix{{/i}}</li>
- <li>{{_i}}New built-in form defaults for search, inline, and horizontal forms{{/i}}</li>
- <li>{{_i}}For horizontal forms, previous classes <code>.clearfix</code> and <code>.input</code> are equivalent to the new <code>.control-group</code> and <code>.controls</code>.{{/i}}</li>
- <li>{{_i}}More flexible horizontal form markup with classes for all styling, including new optional class for the <code>label</code>{{/i}}</li>
- <li>{{_i}}Form states: colors updated and customizable via new LESS variables{{/i}}</li>
- </ul>
- <h3>{{_i}}Icons, by Glyphicons{{/i}}</h3>
- <ul>
- <li>{{_i}}New Glyphicons Halflings icon set added in sprite form, in black and white{{/i}}</li>
- <li>{{_i}}Simple markup required for an icon in tons of contexts: <code>&lt;i class="icon-cog"&gt;&lt;/&gt;</code>{{/i}}</li>
- <li>{{_i}}Add another class, <code>.icon-white</code>, for white variation of the same icon{{/i}}</li>
- </ul>
-</section>
-
-
-
-<!-- Components
-================================================== -->
-<section id="components">
- <div class="page-header">
- <h1>{{_i}}Components{{/i}}</h1>
- </div>
- <h3>{{_i}}Button groups and dropdowns{{/i}}</h3>
- <ul>
- <li>{{_i}}Two brand new components in 2.0: button groups and button dropdowns{{/i}}</li>
- <li>{{_i}}Dependency: button dropdowns are built on button groups, and therefore require all their styles{{/i}}</li>
- <li>{{_i}}Button groups, <code>.btn-group</code>, can be grouped one level higher with a button toolbar, <code>.btn-toolbar</code>{{/i}}</li>
- </ul>
- <h3>{{_i}}Navigation{{/i}}</h3>
- <ul>
- <li>{{_i}}Tabs and pills now require the use of a new base class, <code>.nav</code>, on their <code>&lt;ul&gt;</code> and the class names are now <code>.nav-pills</code> and <code>.nav-tabs</code>.{{/i}}</li>
- <li>{{_i}}New nav list variation added that uses the same base class, <code>.nav</code>{{/i}}</li>
- <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>
- <li>{{_i}}Pills were restyled to be less rounded by default{{/i}}</li>
- <li>{{_i}}Pills now have dropdown menu support (they share the same markup and styles as tabs){{/i}}</li>
- </ul>
- <h3>{{_i}}Navbar (formerly topbar){{/i}}</h3>
- <ul>
- <li>{{_i}}Base class changed from <code>.topbar</code> to <code>.navbar</code>{{/i}}</li>
- <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>
- <li>{{_i}}Added vertical dividers to top-level nav{{/i}}</li>
- <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>
- <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>
- <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>
- </ul>
- <h3>{{_i}}Dropdown menus{{/i}}</h3>
- <ul>
- <li>{{_i}}Updated the <code>.dropdown-menu</code> to tighten up spacing{{/i}}</li>
- <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>
- <li>{{_i}}Now requires you to add a <code>data-toggle="dropdown"</code> attribute to obtain toggling behavior{{/i}}</li>
- <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>
- </ul>
- <h3>{{_i}}Labels{{/i}}</h3>
- <ul>
- <li>{{_i}}Label colors updated to match form state colors{{/i}}</li>
- <li>{{_i}}Not only do they match graphically, but they are powered by the same new variables{{/i}}</li>
- </ul>
- <h3>{{_i}}Thumbnails{{/i}}</h3>
- <ul>
- <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>
- <li>{{_i}}Individual thumbnails now require <code>.thumbnail</code> class{{/i}}</li>
- </ul>
- <h3>{{_i}}Alerts{{/i}}</h3>
- <ul>
- <li>{{_i}}New base class: <code>.alert</code> instead of <code>.alert-message</code>{{/i}}</li>
- <li>{{_i}}Class names standardized for other options, now all starting with <code>.alert-</code>{{/i}}</li>
- <li>{{_i}}Redesigned base alert styles to combine the default alerts and block-level alerts into one{{/i}}</li>
- <li>{{_i}}Block level alert class changed: <code>.alert-block</code> instead of <code>.block-message</code>{{/i}}</li>
- </ul>
- <h3>{{_i}}Progress bars{{/i}}</h3>
- <ul>
- <li>{{_i}}New in 2.0{{/i}}</li>
- <li>{{_i}}Features multiple styles via classes, including striped and animated variations via CSS3{{/i}}</li>
- </ul>
- <h3>{{_i}}Miscellaneous components{{/i}}</h3>
- <ul>
- <li>{{_i}}Added documentation for the well component and the close icon (used in modals and alerts){{/i}}</li>
- </ul>
-</section>
-
-
-
-<!-- Javascript
-================================================== -->
-<section id="javascript">
- <div class="page-header">
- <h1>{{_i}}Javascript plugins{{/i}}</h1>
- </div>
- <div class="alert alert-info">
- <strong>{{_i}}Heads up!{{/i}}</strong> {{_i}}We've rewritten just about everything for our plugins, so head on over to <a href="./javascript.html">the Javascript page</a> to learn more.{{/i}}
- </div>
- <h3>{{_i}}Tooltips{{/i}}</h3>
- <ul>
- <li>{{_i}}The plugin method has been renamed from <code>twipsy()</code> to <code>tooltip()</code>, and the class name changed from <code>twipsy</code> to <code>tooltip</code>.{{/i}}</li>
- <li>{{_i}}The <code>placement</code> option value that was <code>below</code> is now <code>bottom</code>, and <code>above</code> is now <code>top</code>.{{/i}}</li>
- <li>{{_i}}The <code>animate</code> option was renamed to <code>animation</code>.{{/i}}</li>
- <li>{{_i}}The <code>html</code> option was removed, as the tooltips default to allowing HTML now.{{/i}}</li>
- </ul>
- <h3>{{_i}}Popovers{{/i}}</h3>
- <ul>
- <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>
- <li>{{_i}}The <code>placement</code> option value that was <code>below</code> is now <code>bottom</code>, and <code>above</code> is now <code>top</code>.{{/i}}</li>
- </ul>
- <h3>{{_i}}New plugins{{/i}}</h3>
- <ul>
- <li>{{_i}}<a href="./javascript.html#collapse">Collapse</a>{{/i}}</li>
- <li>{{_i}}<a href="./javascript.html#carousel">Carousel</a>{{/i}}</li>
- <li>{{_i}}<a href="./javascript.html#typeahead">Typeahead</a>{{/i}}</li>
- </ul>
-</section>
-