diff options
| author | Jacob Thornton <[email protected]> | 2012-01-31 13:18:34 -0800 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2012-01-31 13:18:34 -0800 |
| commit | 0bfbe5058d61ae93d82b09f1dff7eb30dc22426e (patch) | |
| tree | 6ccf3dd9c36ff4b1f6cde5edbce21cdf0de78497 /docs/templates | |
| parent | 43cbc9440425b7c97c943690eefd14520de708e1 (diff) | |
| parent | 4bd1ba4e0dc44d1d16161306576548f378ab1f8a (diff) | |
| download | bootstrap-0bfbe5058d61ae93d82b09f1dff7eb30dc22426e.tar.xz bootstrap-0bfbe5058d61ae93d82b09f1dff7eb30dc22426e.zip | |
Merge branch '2.0-wip'
Conflicts:
.gitignore
LICENSE
Makefile
bootstrap.css
bootstrap.min.css
docs/assets/js/application.js
docs/assets/js/google-code-prettify/prettify.css
docs/index.html
docs/javascript.html
examples/container-app.html
examples/fluid.html
examples/hero.html
js/bootstrap-alerts.js
js/bootstrap-dropdown.js
js/bootstrap-modal.js
js/bootstrap-popover.js
js/bootstrap-scrollspy.js
js/bootstrap-tabs.js
js/bootstrap-twipsy.js
js/tests/index.html
js/tests/unit/bootstrap-modal.js
js/tests/unit/bootstrap-popover.js
js/tests/unit/bootstrap-tabs.js
lib/forms.less
lib/mixins.less
lib/patterns.less
lib/scaffolding.less
lib/tables.less
Diffstat (limited to 'docs/templates')
| -rw-r--r-- | docs/templates/layout.mustache | 113 | ||||
| -rw-r--r-- | docs/templates/pages/base-css.mustache | 1468 | ||||
| -rw-r--r-- | docs/templates/pages/components.mustache | 1403 | ||||
| -rw-r--r-- | docs/templates/pages/download.mustache | 246 | ||||
| -rw-r--r-- | docs/templates/pages/examples.mustache | 56 | ||||
| -rw-r--r-- | docs/templates/pages/index.mustache | 136 | ||||
| -rw-r--r-- | docs/templates/pages/javascript.mustache | 1352 | ||||
| -rw-r--r-- | docs/templates/pages/less.mustache | 686 | ||||
| -rw-r--r-- | docs/templates/pages/scaffolding.mustache | 324 | ||||
| -rw-r--r-- | docs/templates/pages/upgrading.mustache | 198 |
10 files changed, 5982 insertions, 0 deletions
diff --git a/docs/templates/layout.mustache b/docs/templates/layout.mustache new file mode 100644 index 000000000..77f584cd1 --- /dev/null +++ b/docs/templates/layout.mustache @@ -0,0 +1,113 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>Bootstrap, from Twitter</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <meta name="description" content=""> + <meta name="author" content=""> + + <!-- Le HTML5 shim, for IE6-8 support of HTML elements --> + <!--[if lt IE 9]> + <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> + <![endif]--> + + <!-- Le styles --> + <link href="assets/css/bootstrap.css" rel="stylesheet"> + <link href="assets/css/bootstrap-responsive.css" rel="stylesheet"> + <link href="assets/css/docs.css" rel="stylesheet"> + <link href="assets/js/google-code-prettify/prettify.css" rel="stylesheet"> + + <!-- Le fav and touch icons --> + <link rel="shortcut icon" href="assets/ico/favicon.ico"> + <link rel="apple-touch-icon" href="assets/ico/apple-touch-icon.png"> + <link rel="apple-touch-icon" sizes="72x72" href="assets/ico/apple-touch-icon-72x72.png"> + <link rel="apple-touch-icon" sizes="114x114" href="assets/ico/apple-touch-icon-114x114.png"> + </head> + + <body data-spy="scroll" data-target=".subnav" data-offset="50"> + + + <!-- Navbar + ================================================== --> + <div class="navbar navbar-fixed-top"> + <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="./index.html">Bootstrap</a> + <div class="nav-collapse"> + <ul class="nav"> + <li class="{{index}}"> + <a href="./index.html">{{_i}}Overview{{/i}}</a> + </li> + <li class="{{scaffolding}}"> + <a href="./scaffolding.html">{{_i}}Scaffolding{{/i}}</a> + </li> + <li class="{{base-css}}"> + <a href="./base-css.html">{{_i}}Base CSS{{/i}}</a> + </li> + <li class="{{components}}"> + <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> + </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> + </ul> + </div> + </div> + </div> + </div> + + <div class="container"> + +{{>body}} + + + <!-- Footer + ================================================== --> + <footer class="footer"> + <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 --> + + + + <!-- Le javascript + ================================================== --> + <!-- Placed at the end of the document so the pages load faster --> + <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> + <script src="../js/tests/vendor/jquery.js"></script> + <script src="assets/js/google-code-prettify/prettify.js"></script> + <script src="../js/bootstrap-transition.js"></script> + <script src="../js/bootstrap-alert.js"></script> + <script src="../js/bootstrap-modal.js"></script> + <script src="../js/bootstrap-dropdown.js"></script> + <script src="../js/bootstrap-scrollspy.js"></script> + <script src="../js/bootstrap-tab.js"></script> + <script src="../js/bootstrap-tooltip.js"></script> + <script src="../js/bootstrap-popover.js"></script> + <script src="../js/bootstrap-button.js"></script> + <script src="../js/bootstrap-collapse.js"></script> + <script src="../js/bootstrap-carousel.js"></script> + <script src="../js/bootstrap-typeahead.js"></script> + <script src="assets/js/application.js"></script> + </body> +</html> diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache new file mode 100644 index 000000000..cc0b2a1ea --- /dev/null +++ b/docs/templates/pages/base-css.mustache @@ -0,0 +1,1468 @@ +<!-- Masthead +================================================== --> +<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> +</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> + + <h2>{{_i}}Headings & 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 preboot.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 ut id elit.</p> + <p>Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec sed odio dui.</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> + </div> + </div> + </div> + + <!-- 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><strong></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><em></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><abbr></code> + </td> + <td> + {{_i}}Wraps abbreviations and acronyms to show the expanded version on hover{{/i}} + </td> + <td> + {{_i}}Include optional <code>title</code> for expanded text{{/i}} + </td> + </tr> + <tr> + <td> + <code><address></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><br></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><b></code> and <code><i></code> in HTML5, but their usage has changed a bit. <code><b></code> is meant to highlight words or phrases without conveying additional importance while <code><i></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><address></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 are styled with uppercase text and a light dotted bottom border. They also have a help cursor on hover so users have extra indication something will be shown on hover.{{/i}}</p> + <p>{{_i}}<abbr title="HyperText Markup Language">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><blockquote></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><small></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><cite></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><blockquote></code> around any <abbr title="HyperText Markup Language">HTML</abbr> as the quote. For straight quotes we recommend a <code><p></code>.{{/i}}</p> + <p>{{_i}}Include an optional <code><small></code> element to cite your source and you'll get an em dash <code>&mdash;</code> before it for styling purposes.{{/i}}</p> + </div> + <div class="span8"> +<pre class="prettyprint linenums"> +<blockquote> + <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.</p> + <small>{{_i}}Someone famous{{/i}}</small> +</blockquote> +</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> + + + <!-- Lists --> + <h2>{{_i}}Lists{{/i}}</h2> + <div class="row"> + <div class="span3"> + <h4>{{_i}}Unordered{{/i}}</h4> + <p><code><ul></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="span3"> + <h4>{{_i}}Unstyled{{/i}}</h4> + <p><code><ul class="unstyled"></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> + </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="span3"> + <h4>{{_i}}Ordered{{/i}}</h4> + <p><code><ol></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 class="span3"> + <h4>{{_i}}Description{{/i}}</h4> + <p><code><dl></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><!-- /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><code></code>.</p> +<pre class="prettyprint linenums"> +{{_i}}For example, <code>section</code> should be wrapped as inline.{{/i}} +</pre> + </div><!--/span--> + <div class="span4"> + <h2>Basic block</h2> + <p>{{_i}}Use <code><pre></code> for multiple lines of code. Be sure to turn any carets into their unicode characters for proper rendering.{{/i}}</p> +<pre> +<p>{{_i}}Sample text here...{{/i}}</p> +</pre> +<pre class="prettyprint linenums" style="margin-bottom: 9px;"> +<pre> + &lt;p&gt;{{_i}}Sample text here...{{/i}}&lt;/p&gt; +</pre> +</pre> + <p>{{_i}}<strong>Note:</strong> Be sure to keep code within <code><pre></code> tags as close to the left as possible; it will render all tabs.{{/i}}</p> + </div><!--/span--> + <div class="span4"> + <h2>Google Prettify</h2> + <p>Take the same <code><pre></code> element and add two optional classes for enhanced rendering.</p> +<pre class="prettyprint linenums" style="margin-bottom: 9px;"> +<p>{{_i}}Sample text here...{{/i}}</p> +</pre> +<pre class="prettyprint linenums" style="margin-bottom: 9px;"> +<pre class="prettyprint + linenums"> + &lt;p&gt;{{_i}}Sample text here...{{/i}}&lt;/p&gt; +</pre> +</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> + + + +<!-- Tables +================================================== --> +<section id="tables"> + <div class="page-header"> + <h1>{{_i}}Tables <small>For, you guessed it, tabular data</small>{{/i}}</h1> + </div> + + <h2>{{_i}}Table markup{{/i}}</h2> + <div class="row"> + <div class="span8"> + <table class="table table-bordered table-striped"> + <thead> + <tr> + <th>{{_i}}Tag{{/i}}</th> + <th>{{_i}}Description{{/i}}</th> + </tr> + </thead> + <tbody> + <tr> + <td> + <code><table></code> + </td> + <td> + {{_i}}Wrapping element for displaying data in a tabular format{{/i}} + </td> + </tr> + <tr> + <td> + <code><thead></code> + </td> + <td> + {{_i}}Container element for table header rows (<code><tr></code>) to label table columns{{/i}} + </td> + </tr> + <tr> + <td> + <code><tbody></code> + </td> + <td> + {{_i}}Container element for table rows (<code><tr></code>) in the body of the table{{/i}} + </td> + </tr> + <tr> + <td> + <code><tr></code> + </td> + <td> + {{_i}}Container element for a set of table cells (<code><td></code> or <code><th></code>) that appears on a single row{{/i}} + </td> + </tr> + <tr> + <td> + <code><td></code> + </td> + <td> + {{_i}}Default table cell{{/i}} + </td> + </tr> + <tr> + <td> + <code><th></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><thead></code>{{/i}} + </td> + </tr> + <tr> + <td> + <code><caption></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"> +<pre class="prettyprint linenums"> +<table> + <thead> + <tr> + <th>…</th> + <th>…</th> + </tr> + </thead> + <tbody> + <tr> + <td>…</td> + <td>…</td> + </tr> + </tbody> +</table> +</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 outter 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"> +<table class="table"> + … +</table></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}}Language{{/i}}</th> + </tr> + </thead> + <tbody> + <tr> + <td>1</td> + <td>Mark</td> + <td>Otto</td> + <td>CSS</td> + </tr> + <tr> + <td>2</td> + <td>Jacob</td> + <td>Thornton</td> + <td>Javascript</td> + </tr> + <tr> + <td>3</td> + <td>Stu</td> + <td>Dent</td> + <td>HTML</td> + </tr> + </tbody> + </table> + </div> + </div> + + + <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—just add the <code>.table-striped</code> class.{{/i}}</p> + <p class="muted">{{_i}}<strong>Note:</strong> Sprited tables use the <code>:nth-child</code> CSS selector and is not available in IE7-IE8.{{/i}}</p> +<pre class="prettyprint linenums" style="margin-bottom: 18px;"> +<table class="table table-striped"> + … +</table></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}}Language{{/i}}</th> + </tr> + </thead> + <tbody> + <tr> + <td>1</td> + <td>Mark</td> + <td>Otto</td> + <td>CSS</td> + </tr> + <tr> + <td>2</td> + <td>Jacob</td> + <td>Thornton</td> + <td>Javascript</td> + </tr> + <tr> + <td>3</td> + <td>Stu</td> + <td>Dent</td> + <td>HTML</td> + </tr> + </tbody> + </table> + </div> + </div> + + + <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> +<pre class="prettyprint linenums"> +<table class="table table-bordered"> + … +</table></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}}Language{{/i}}</th> + </tr> + </thead> + <tbody> + <tr> + <td>1</td> + <td colspan="2">Mark Otto</td> + <td>CSS</td> + </tr> + <tr> + <td>2</td> + <td>Jacob</td> + <td>Thornton</td> + <td rowspan="2">Javascript</td> + </tr> + </tr> + <td>3</td> + <td>Stu</td> + <td>Dent</td> + </tr> + <tr> + <td>3</td> + <td>Brosef</td> + <td>Stalin</td> + <td>HTML</td> + </tr> + </tbody> + </table> + </div> + </div> + + + <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> +<pre class="prettyprint linenums" style="margin-bottom: 18px;"> +<table class="table table-condensed"> + … +</table></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}}Language{{/i}}</th> + </tr> + </thead> + <tbody> + <tr> + <td>1</td> + <td>Mark</td> + <td>Otto</td> + <td>CSS</td> + </tr> + <tr> + <td>2</td> + <td>Jacob</td> + <td>Thornton</td> + <td>Javascript</td> + </tr> + <tr> + <td>3</td> + <td>Stu</td> + <td>Dent</td> + <td>HTML</td> + </tr> + </tbody> + </table> + </div> + </div> + + + + <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;"> +<table class="table table-striped table-bordered table-condensed"> + ... +</table></pre> + </div> + <div class="span8"> + <table class="table table-striped table-bordered table-condensed"> + <thead> + <tr> + <th>#</th> + <th class="yellow">{{_i}}First Name{{/i}}</th> + <th class="blue">{{_i}}Last Name{{/i}}</th> + <th class="green">{{_i}}Language{{/i}}</th> + </tr> + </thead> + <tbody> + <tr> + <td>1</td> + <td>Mark</td> + <td>Otto</td> + <td>CSS</td> + </tr> + <tr> + <td>2</td> + <td>Jacob</td> + <td>Thornton</td> + <td>Javascript</td> + </tr> + <tr> + <td>3</td> + <td>Stu</td> + <td>Dent</td> + <td>HTML</td> + </tr> + <tr> + <td>4</td> + <td>Brosef</td> + <td>Stalin</td> + <td>HTML</td> + </tr> + </tbody> + </table> + </div> + </div> +</section> + + + +<!-- 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> + + <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> + <h3>{{_i}}Basic form{{/i}}</h3> + <div class="row"> + <div class="span3"> + <p>{{_i}}With v2.0, we have lighter and smarter defaults for form styles. No extra markup, just form controls.{{/i}}</p> + </div> + <div class="span9"> + <form class="well"> + <label>{{_i}}Label name{{/i}}</label> + <input type="text" class="span3" placeholder="{{_i}}Type something…{{/i}}"> <span class="help-inline">Associated help text!</span> + <label class="checkbox"> + <input type="checkbox"> {{_i}}Check me out{{/i}} + </label> + <button type="submit" class="btn">{{_i}}Submit{{/i}}</button> + </form> + </div> + </div> <!-- /row --> + <h3>{{_i}}Search form{{/i}}</h3> + <div class="row"> + <div class="span3"> + <p>{{_i}}Reflecting default WebKit styles, just add <code>.form-search</code> for extra rounded search fields.{{/i}}</p> + </div> + <div class="span9"> + <form class="well form-search"> + <input type="text" class="input-medium search-query"> + <button type="submit" class="btn">{{_i}}Search{{/i}}</button> + </form> + </div> + </div> <!-- /row --> + <h3>{{_i}}Inline form{{/i}}</h3> + <div class="row"> + <div class="span3"> + <p>{{_i}}Inputs are block level to start. For <code>.form-inline</code> and <code>.form-horizontal</code>, we use inline-block.{{/i}}</p> + </div> + <div class="span9"> + <form class="well form-search"> + <input type="text" class="input-small" placeholder="{{_i}}Email{{/i}}"> + <input type="password" class="input-small" placeholder="{{_i}}Password{{/i}}"> + <button type="submit" class="btn">{{_i}}Go{{/i}}</button> + </form> + </div> + </div><!-- /row --> + + <br> + + <h2>{{_i}}Horizontal forms{{/i}}</h2> + <div class="row"> + <div class="span8"> + <form class="form-horizontal"> + <fieldset> + <legend>{{_i}}Controls Bootstrap supports{{/i}}</legend> + <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—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> + </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> + </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> + </div> + <div class="form-actions"> + <button type="submit" class="btn btn-primary">{{_i}}Save changes{{/i}}</button> + <button type="reset" class="btn">{{_i}}Cancel{{/i}}</button> + </div> + </fieldset> + </form> + </div> + <div class="span4"> + <h3>{{_i}}What's included{{/i}}</h3> + <p>{{_i}}Shown on the left 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> + <hr> + <h3>{{_i}}New defaults with v2.0{{/i}}</h3> + <p>{{_i}}Up to v1.4, Bootstrap's default form styles used the horizontal layout. With Bootstrap 2, we removed that constraint to have smarter, more scalable defaults for any form.{{/i}}</p> + </div> + </div> + + <br> + + <div class="row"> + <div class="span8"> + <form class="form-horizontal"> + <fieldset> + <legend>{{_i}}Form control states{{/i}}</legend> + <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}}"> + </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> + </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> + </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> + </div> + </div> + <div class="control-group warning"> + <label class="control-label" for="inputError">{{_i}}Input with warning{{/i}}</label> + <div class="controls"> + <input type="text" id="inputError"> + <span class="help-inline">{{_i}}Something may have gone wrong{{/i}}</span> + </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> + </div> + </div> + <div class="control-group success"> + <label class="control-label" for="inputError">{{_i}}Input with success{{/i}}</label> + <div class="controls"> + <input type="text" id="inputError"> + <span class="help-inline">{{_i}}Woohoo!{{/i}}</span> + </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> + </div> + </div> + <div class="form-actions"> + <button type="submit" class="btn btn-primary">{{_i}}Save changes{{/i}}</button> + <button type="reset" class="btn">{{_i}}Cancel{{/i}}</button> + </div> + </fieldset> + </form> + </div> + <div class="span4"> + <h3>{{_i}}Redesigned browser states{{/i}}</h3> + <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 it's 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> +<pre class="prettyprint linenums"> +<fieldset + class="control-group error"> + … +</fieldset> +</pre> + </div> + </div> + + <br> + + <div class="row"> + <div class="span8"> + <form class="form-horizontal"> + <fieldset> + <legend>{{_i}}Extending form controls{{/i}}</legend> + <div class="control-group"> + <label class="control-label">{{_i}}Form sizes{{/i}}</label> + <div class="controls docs-input-sizes"> + <input class="span1" type="text" placeholder=".span1"> + <input class="span2" type="text" placeholder=".span2"> + <input class="span3" type="text" placeholder=".span3"> + <select class="span1"> + <option>1</option> + <option>2</option> + <option>3</option> + <option>4</option> + <option>5</option> + </select> + <select class="span2"> + <option>1</option> + <option>2</option> + <option>3</option> + <option>4</option> + <option>5</option> + </select> + <select class="span3"> + <option>1</option> + <option>2</option> + <option>3</option> + <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" for="prependedInput">{{_i}}Prepended text{{/i}}</label> + <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> + </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> + <p class="help-block">{{_i}}Here's more help text{{/i}}</p> + </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> + </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—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—yes, you guessed it—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> + </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—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 is something else and selecting it will deselect option one{{/i}} + </label> + </div> + </div> + <div class="form-actions"> + <button type="submit" class="btn btn-primary">{{_i}}Save changes{{/i}}</button> + <button type="reset" class="btn">{{_i}}Cancel{{/i}}</button> + </div> + </fieldset> + </form> + </div> + <div class="span4"> + <h3>{{_i}}Prepend & append inputs{{/i}}</h3> + <p>{{_i}}Input groups—with appended or prepended text—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><label class="checkbox"></code> that wraps the <code><input type="checkbox"></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><span class="help-inline"></code> or a help text block with <code><p class="help-block"></code> after the input element.{{/i}}</p> + </div> + </div><!-- /row --> +</section> + + + +<!-- 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><a class="btn" href="#">{{_i}}Default{{/i}}</a></td> + <td><code>.btn</code></td> + <td>{{_i}}Standard gray button with gradient{{/i}}</td> + </tr> + <tr> + <td><a class="btn btn-primary" href="#">{{_i}}Primary{{/i}}</a></td> + <td><code>.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><a class="btn btn-info" href="#">{{_i}}Info{{/i}}</a></td> + <td><code>.btn-info</code></td> + <td>{{_i}}Used as an alternate to the default styles{{/i}}</td> + </tr> + <tr> + <td><a class="btn btn-success" href="#">{{_i}}Success{{/i}}</a></td> + <td><code>.btn-success</code></td> + <td>{{_i}}Indicates a successful or positive action{{/i}}</td> + </tr> + <tr> + <td><a class="btn btn-warning" href="#">{{_i}}Warning{{/i}}</a></td> + <td><code>.btn-warning</code></td> + <td>{{_i}}Indicates caution should be taken with this action{{/i}}</td> + </tr> + <tr> + <td><a class="btn btn-danger" href="#">{{_i}}Danger{{/i}}</a></td> + <td><code>.btn-danger</code></td> + <td>{{_i}}Indicates a dangerous or potentially negative action{{/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> + </div> + <div class="span4"> + <h3>{{_i}}For anchors and forms{{/i}}</h3> + <p>{{_i}}Button styles can be applied to anything with the <code>.btn</code> applied. However, typically you’ll want to apply these to only <code><a></code> and <code><button></code> elements.{{/i}}</p> + </div> + <div class="span4"> + <p>{{_i}}<strong>Note:</strong> All buttons must include the <code>.btn</code> class. Button styles should be applied to <code><button></code> and <code><a></code> elements for consistency.{{/i}}</p> + </div> + </div> + + <div class="row"> + <div class="span4"> + <h3>{{_i}}Multiple sizes{{/i}}</h3> + <p>{{_i}}Fancy larger or smaller buttons? Have at it!{{/i}}</p> + <p> + <a href="#" class="btn btn-large btn-primary">{{_i}}Primary action{{/i}}</a> + <a href="#" class="btn btn-large">{{_i}}Action{{/i}}</a> + </p> + <p> + <a href="#" class="btn btn-small btn-primary">{{_i}}Primary action{{/i}}</a> + <a href="#" class="btn btn-small">{{_i}}Action{{/i}}</a> + </p> + </div> + <div class="span4"> + <h3>{{_i}}Disabled state{{/i}}</h3> + <p>{{_i}}For disabled buttons, use <code>.btn-disabled</code> for links and <code>:disabled</code> for <code><button></code> elements.{{/i}}</p> + <p> + <a href="#" class="btn btn-large btn-primary disabled">{{_i}}Primary action{{/i}}</a> + <a href="#" class="btn btn-large disabled">{{_i}}Action{{/i}}</a> + </p> + <p> + <button class="btn btn-large btn-primary disabled" disabled="disabled">{{_i}}Primary action{{/i}}</button> + <button class="btn btn-large" disabled>{{_i}}Action{{/i}}</button> + </p> + </div> + <div class="span4"> + <h3>Cross browser compatibility</h3> + <p>In IE9, we drop the gradient on all buttons in favor of rounded corners as IE9 doesn't crop background gradients to the corners.</p> + <p>Related, IE9 jankifies disabled <code>button</code> elements, rendering text gray with a nasty text-shadow—unfortunately we can't fix this.</p> + </div> + </div> + + <br> + +</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"> + <div class="the-icons"> + <i class="icon-glass"></i> + <i class="icon-music"></i> + <i class="icon-search"></i> + <i class="icon-envelope"></i> + <i class="icon-heart"></i> + <i class="icon-star"></i> + <i class="icon-star-empty"></i> + <i class="icon-user"></i> + <i class="icon-film"></i> + <i class="icon-th-large"></i> + <i class="icon-th"></i> + <i class="icon-th-list"></i> + <i class="icon-ok"></i> + <i class="icon-remove"></i> + <i class="icon-zoom-in"></i> + <i class="icon-zoom-out"></i> + <i class="icon-off"></i> + <i class="icon-signal"></i> + <i class="icon-cog"></i> + <i class="icon-trash"></i> + + <i class="icon-home"></i> + <i class="icon-file"></i> + <i class="icon-time"></i> + <i class="icon-road"></i> + <i class="icon-download-alt"></i> + <i class="icon-download"></i> + <i class="icon-upload"></i> + <i class="icon-inbox"></i> + <i class="icon-play-circle"></i> + <i class="icon-repeat"></i> + </div> + </div> + <div class="span3"> + <div class="the-icons"> + <i class="icon-refresh"></i> + <i class="icon-list-alt"></i> + <i class="icon-lock"></i> + <i class="icon-flag"></i> + <i class="icon-headphones"></i> + <i class="icon-volume-off"></i> + <i class="icon-volume-down"></i> + <i class="icon-volume-up"></i> + <i class="icon-qrcode"></i> + <i class="icon-barcode"></i> + + <i class="icon-tag"></i> + <i class="icon-tags"></i> + <i class="icon-book"></i> + <i class="icon-bookmark"></i> + <i class="icon-print"></i> + <i class="icon-camera"></i> + <i class="icon-font"></i> + <i class="icon-bold"></i> + <i class="icon-italic"></i> + <i class="icon-text-height"></i> + <i class="icon-text-width"></i> + <i class="icon-align-left"></i> + <i class="icon-align-center"></i> + <i class="icon-align-right"></i> + <i class="icon-align-justify"></i> + <i class="icon-list"></i> + <i class="icon-indent-left"></i> + <i class="icon-indent-right"></i> + <i class="icon-facetime-video"></i> + <i class="icon-picture"></i> + </div> + </div> + <div class="span3"> + <div class="the-icons"> + <i class="icon-pencil"></i> + <i class="icon-map-marker"></i> + <i class="icon-adjust"></i> + <i class="icon-tint"></i> + <i class="icon-edit"></i> + <i class="icon-share"></i> + <i class="icon-check"></i> + <i class="icon-move"></i> + <i class="icon-step-backward"></i> + <i class="icon-fast-backward"></i> + <i class="icon-backward"></i> + <i class="icon-play"></i> + <i class="icon-pause"></i> + <i class="icon-stop"></i> + <i class="icon-forward"></i> + <i class="icon-fast-forward"></i> + <i class="icon-step-forward"></i> + <i class="icon-eject"></i> + <i class="icon-chevron-left"></i> + <i class="icon-chevron-right"></i> + + <i class="icon-plus-sign"></i> + <i class="icon-minus-sign"></i> + <i class="icon-remove-sign"></i> + <i class="icon-ok-sign"></i> + <i class="icon-question-sign"></i> + <i class="icon-info-sign"></i> + <i class="icon-screenshot"></i> + <i class="icon-remove-circle"></i> + <i class="icon-ok-circle"></i> + <i class="icon-ban-circle"></i> + </div> + </div> + <div class="span3"> + <div class="the-icons"> + <i class="icon-arrow-left"></i> + <i class="icon-arrow-right"></i> + <i class="icon-arrow-up"></i> + <i class="icon-arrow-down"></i> + <i class="icon-share-alt"></i> + <i class="icon-resize-full"></i> + <i class="icon-resize-small"></i> + <i class="icon-plus"></i> + <i class="icon-minus"></i> + <i class="icon-asterisk"></i> + + <i class="icon-exclamation-sign"></i> + <i class="icon-gift"></i> + <i class="icon-leaf"></i> + <i class="icon-fire"></i> + <i class="icon-eye-open"></i> + <i class="icon-eye-close"></i> + <i class="icon-warning-sign"></i> + <i class="icon-plane"></i> + <i class="icon-calendar"></i> + <i class="icon-random"></i> + <i class="icon-comment"></i> + <i class="icon-magnet"></i> + <i class="icon-chevron-up"></i> + <i class="icon-chevron-down"></i> + <i class="icon-retweet"></i> + <i class="icon-shopping-cart"></i> + <i class="icon-folder-close"></i> + <i class="icon-folder-open"></i> + <i class="icon-resize-vertical"></i> + <i class="icon-resize-horizontal"></i> + </div> + </div> + </div> + <div class="alert alert-info"> + {{_i}}<strong>Heads up!</strong> Icon classes are echoed via CSS <code>:after</code>. In the docs, we show a light red background color on hover to hightlight the icon's size.{{/i}} + </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—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}}With v2.0.0, we have opted to use an <code><i></code> tag for all our icons, but they have no case class—only a shared prefix. To use, place the following code just about anywhere:{{/i}}</p> +<pre class="prettyprint linenums"> +<i class="icon-search"></i> +</pre> + <p>{{_i}}There are also styles available for inverted (white) icons, made ready with one extra class:{{/i}}</p> +<pre class="prettyprint linenums"> +<i class="icon-search icon-white"></i> +</pre> + <p>{{_i}}There are 120 classes to choose from for your icons. Just add an <code><i></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> + </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><i></code> tag, you can put an icon.{{/i}}</p> + </div> + </div> + + <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 white user"></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="prependedInput">{{_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="iconInput" type="text"> + </div> + </div> + </div> + </form> + </div> + </div> +</section> diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache new file mode 100644 index 000000000..ab11337df --- /dev/null +++ b/docs/templates/pages/components.mustache @@ -0,0 +1,1403 @@ +<!-- Masthead +================================================== --> +<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">Button groups</a></li> + <li><a href="#buttonDropdowns">Button dropdowns</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="#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> +</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><a></code> or <code><button></code> elements.{{/i}}</p> + <p>{{_i}}You can also combine sets of <code><div class="btn-group"></code> into a <code><div class="btn-toolbar"></code> for more complex projects.{{/i}}</p> + <div class="btn-toolbar" style="margin-top: 18px;"> + <div class="btn-group"> + <a class="btn" href="#">{{_i}}Left{{/i}}</a> + <a class="btn" href="#">{{_i}}Middle{{/i}}</a> + <a class="btn" href="#">{{_i}}Right{{/i}}</a> + </div> + </div> + <div class="btn-toolbar"> + <div class="btn-group"> + <a class="btn" href="#">1</a> + <a class="btn" href="#">2</a> + <a class="btn" href="#">3</a> + <a class="btn" href="#">4</a> + </div> + <div class="btn-group"> + <a class="btn" href="#">5</a> + <a class="btn" href="#">6</a> + <a class="btn" href="#">7</a> + </div> + <div class="btn-group"> + <a class="btn" href="#">8</a> + </div> + </div> + </div> + <div class="span4"> + <h3>{{_i}}Example markup{{/i}}</h3> + <p>{{_i}}Here's how the HTML looks for a standard button group built with anchor tag buttons:{{/i}}</p> +<pre class="prettyprint linenums"> +<div class="btn-group"> + <a class="btn" href="#">1</a> + <a class="btn" href="#">2</a> + <a class="btn" href="#">3</a> +</div> +</pre> + <p>{{_i}}And with a toolbar for multiple groups:{{/i}}</p> +<pre class="prettyprint linenums"> +<div class="btn-toolbar"> + <div class="btn-group"> + ... + </div> +</div> +</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 »{{/i}}</a></p> + <hr> + <h4 class="muted">{{_i}}Heads up{{/i}}</h4> + <p class="muted">{{_i}}CSS for button groups is in a separate file, button-groups.less.{{/i}}</p> + </div> + </div> +</section> + + + +<!-- Split button dropdowns +================================================== --> +<section id="buttonDropdowns"> + <div class="page-header"> + <h1>{{_i}}Buttons dropdowns{{/i}} <small>{{_i}}Contextual dropdown menus built on button groups{{/i}}</small></h1> + </div> + + <div class="row"> + <div class="span4"> + <h3>{{_i}}Button dropdowns{{/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"> + <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Action{{/i}} <span class="caret"></span></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> + </div><!-- /btn-group --> + <div class="btn-group"> + <a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Action{{/i}} <span class="caret"></span></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> + </div><!-- /btn-group --> + <div class="btn-group"> + <a class="btn btn-danger dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Danger{{/i}} <span class="caret"></span></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> + </div><!-- /btn-group --> + </div> + <div class="btn-toolbar"> + <div class="btn-group"> + <a class="btn btn-success dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Success{{/i}} <span class="caret"></span></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> + </div><!-- /btn-group --> + <div class="btn-group"> + <a class="btn btn-info dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Info{{/i}} <span class="caret"></span></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> + </div><!-- /btn-group --> + </div> + </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> +<pre class="prettyprint linenums"> +<div class="btn-group"> + <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> + {{_i}}Action{{/i}} + <span class="caret"></span> + </a> + <ul class="dropdown-menu"> + <!-- {{_i}}dropdown menu links{{/i}} --> + </ul> +</div> +</pre> + </div> + </div> + + <div class="row"> + <div class="span4"> + <h3>{{_i}}Split button dropdowns{{/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"> + <a class="btn" href="#">{{_i}}Action{{/i}}</a> + <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></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> + </div><!-- /btn-group --> + <div class="btn-group"> + <a class="btn btn-primary" href="#">{{_i}}Action{{/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}}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"> + <a class="btn btn-danger" href="#">{{_i}}Danger{{/i}}</a> + <a class="btn btn-danger dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></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> + </div><!-- /btn-group --> + </div> + <div class="btn-toolbar"> + <div class="btn-group"> + <a class="btn btn-success" href="#">{{_i}}Success{{/i}}</a> + <a class="btn btn-success dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></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> + </div><!-- /btn-group --> + <div class="btn-group"> + <a class="btn btn-info" href="#">{{_i}}Info{{/i}}</a> + <a class="btn btn-info dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></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> + </div><!-- /btn-group --> + </div> + </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> +<pre class="prettyprint linenums"> +<div class="btn-group"> + <a class="btn" href="#">{{_i}}Action{{/i}}</a> + <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> + <span class="caret"></span> + </a> + <ul class="dropdown-menu"> + <!-- {{_i}}dropdown menu links{{/i}} --> + </ul> +</div> +</pre> + </div> + </div> +</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> + + <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—tabs, pills, and lists—<strong>share the same base markup and styles</strong> through the <code>.nav</code> class.{{/i}}</p> + <h3>{{_i}}Why tabs and pills{{/i}}</h3> + <p>{{_i}}Tabs and pills in Bootstrap are built on a <code><ul></code> with the same core HTML, a list of links. Swap between tabs or pills with only a class.{{/i}}</p> + <p>{{_i}}Both options are great for sub-sections of content or navigating between pages of related content.{{/i}}</p> + </div> + <div class="span4"> + <h3>{{_i}}Basic tabs{{/i}}</h3> + <p>{{_i}}Take a regular <code><ul></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> +<pre class="prettyprint linenums"> +<ul class="nav nav-tabs"> + <li class="active"> + <a href="#">{{_i}}Home{{/i}}</a> + </li> + <li><a href="#">...</a></li> + <li><a href="#">...</a></li> +</ul> +</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> +<pre class="prettyprint linenums"> +<ul class="nav nav-pills"> + <li class="active"> + <a href="#">{{_i}}Home{{/i}}</a> + </li> + <li><a href="#">...</a></li> + <li><a href="#">...</a></li> +</ul> +</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> +<pre class="prettyprint linenums"> +<ul class="nav nav-tabs nav-stacked"> + ... +</ul> +</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> +<pre class="prettyprint linenums"> +<ul class="nav nav-pills nav-stacked"> + ... +</ul> +</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}}Profile{{/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> +<pre class="prettyprint linenums"> +<ul class="nav nav-tabs"> + <li class="dropdown"> + <a class="dropdown-toggle" + data-toggle="dropdown" + href="#"> + {{_i}}Dropdown{{/i}} + <b class="caret"></b> + </a> + <ul class="dropdown-menu"> + <!-- {{_i}}links{{/i}} --> + </ul> + </li> +</ul> +</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}}Profile{{/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> +<pre class="prettyprint linenums"> +<ul class="nav nav-pills"> + <li class="dropdown"> + <a class="dropdown-toggle" + data-toggle="dropdown" + href="#"> + {{_i}}Dropdown{{/i}} + <b class="caret"></b> + </a> + <ul class="dropdown-menu"> + <!-- {{_i}}links{{/i}} --> + </ul> + </li> +</ul> +</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> + <h4>{{_i}}With icons{{/i}}</h4> + <p>{{_i}}Nav lists are also easy to equip with icons. Add the proper <code><i></code> tag with class and you're set.{{/i}}</p> + </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><a href="#">{{_i}}Help{{/i}}</a></li> + </ul> + </div> <!-- /well --> +<pre class="prettyprint linenums"> +<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> + ... +</ul> +</pre> + </div> + <div class="span4"> + <h3>{{_i}}Example with icons{{/i}}</h3> + <p>{{_i}}Same example, but with <code><i></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><a href="#"><i class="icon-flag"></i> {{_i}}Help{{/i}}</a></li> + </ul> + </div> <!-- /well --> +<pre class="prettyprint linenums"> +<ul class="nav nav-list"> + ... + <li> + <a href="#"> + <i class="icon-book"></i> + {{_i}}Library{{/i}} + </a> + </li> + ... +</ul> +</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> + </div> + <div class="span4"> + <h3>{{_i}}Tabbable example{{/i}}</h3> + <p>{{_i}}To make tabs tabbable, wrap the <code>.nav-tabs</code> in another div with class <code>.tabbable</code>.{{/i}}</p> + <div class="tabbable" style="margin-bottom: 9px;"> + <ul class="nav nav-tabs"> + <li class="active"><a href="#1" data-toggle="tab">{{_i}}Section 1{{/i}}</a></li> + <li><a href="#2" data-toggle="tab">{{_i}}Section 2{{/i}}</a></li> + <li><a href="#3" data-toggle="tab">{{_i}}Section 3{{/i}}</a></li> + </ul> + <div class="tab-content"> + <div class="tab-pane active" id="1"> + <p>{{_i}}I'm in Section 1.{{/i}}</p> + </div> + <div class="tab-pane" id="2"> + <p>{{_i}}Howdy, I'm in Section 2.{{/i}}</p> + </div> + <div class="tab-pane" id="3"> + <p>{{_i}}What up girl, this is Section 3.{{/i}}</p> + </div> + </div> + </div> <!-- /tabbable --> + </div> + <div class="span4"> + <h3>{{_i}}Custom jQuery plugin{{/i}}</h3> + <p>{{_i}}All tabbable tabs are powered by our lightweight jQuery plugin. Read more about how to bring tabbable tabs to life on the javascript docs page.{{/i}}</p> + <p><a class="btn" href="./javascript.html/#tabs">{{_i}}Get the javascript →{{/i}}</a></p> + </div> + </div> + + <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> +<pre class="prettyprint linenums"> +<div class="tabbable"> + <ul class="nav nav-tabs"> + <li class="active"><a href="#1" data-toggle="tab">{{_i}}Section 1{{/i}}</a></li> + <li><a href="#2" data-toggle="tab">{{_i}}Section 2{{/i}}</a></li> + </ul> + <div class="tab-content"> + <div class="tab-pane active" id="1"> + <p>{{_i}}I'm in Section 1.{{/i}}</p> + </div> + <div class="tab-pane" id="2"> + <p>{{_i}}Howdy, I'm in Section 2.{{/i}}</p> + </div> + </div> +</div> +</pre> + + <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;"> +<div class="tabbable tabs-below"> + <div class="tab-content"> + ... + </div> + <ul class="nav nav-tabs"> + ... + </ul> +</div> +</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 --> +<pre class="prettyprint linenums"> +<div class="tabbable tabs-left"> + <ul class="nav nav-tabs"> + ... + </ul> + <div class="tab-content"> + ... + </div> +</div> +</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 --> +<pre class="prettyprint linenums"> +<div class="tabbable tabs-right"> + <ul class="nav nav-tabs"> + ... + </ul> + <div class="tab-content"> + ... + </div> +</div> +</pre> + </div> + </div> + +</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" style="width: auto;"> + <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><a href="#">{{_i}}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 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> +<pre class="prettyprint linenums"> +<div class="navbar"> + <div class="navbar-inner"> + <div class="container"> + ... + </div> + </div> +</div> +</pre> + <p>{{_i}}To make the navbar fixed to the top of the viewport, add <code>.navbar-fixed-top</code> to the outermost div, <code>.navbar</code>. In your CSS, you will also need to account for the overlap it causes by adding <code>padding-top: 40px;</code> to your <code><body></code>.{{/i}}</p> +<pre class="prettyprint linenums"> +<div class="navbar navbar-fixed-top"> + ... +</div> +</pre> + <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> +<pre class="prettyprint linenums"> +<a class="brand" href="#"> + {{_i}}Project name{{/i}} +</a> +</pre> + <h3>{{_i}}Search form{{/i}}</h3> + <p>{{_i}}Search forms receive custom styles in the navbar with the <code>.navbar-search</code> class. Include <code>.pull-left</code> or <code>.pull-right</code> on the <code>form</code> to align it.{{/i}}</p> +<pre class="prettyprint linenums"> +<form class="navbar-search pull-left"> + <input type="text" class="search-query" placeholder="{{_i}}Search{{/i}}"> +</form> +</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> +<pre class="prettyprint linenums"> +<div class="navbar"> + <div class="navbar-inner"> + <div class="container"> + + <!-- .btn-navbar is used as the toggle for collapsed navbar content --> + <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> + + <!-- Be sure to leave the brand out there if you want it shown --> + <a class="brand" href="#">{{_i}}Project name{{/i}}</a> + + <!-- Everything you want hidden at 940px or less, place within here --> + <div class="nav-collapse"> + <!-- .nav, .navbar-search, .navbar-form, etc --> + </div> + + </div> + </div> +</div> +</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>. + </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"> +<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> +</pre> + <h3>{{_i}}Adding dropdowns{{/i}}</h3> + <p>{{_i}}Adding dropdowns to the nav is super simple, but does require the use of <a href="./javascript.html/#dropdown">our javascript plugin</a>.{{/i}}</p> +<pre class="prettyprint linenums"> +<ul class="nav"> + <li class="dropdown"> + <a href="#" + class="dropdown-toggle" + data-toggle="dropdown"> + {{_i}}Account{{/i}} + <b class="caret"></b> + </a> + <ul class="dropdown-menu"> + ... + </ul> + </li> +</ul> +</pre> + <p><a class="btn" href="./javascript.html/#dropdown">{{_i}}Get the javascript →{{/i}}</a></p> + </div><!-- /.span --> + </div><!-- /.row --> + +</section> + + + +<!-- 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> +<pre class="prettyprint linenums"> +<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"> + <a href="#">{{_i}}Data{{/i}}</a> + </li> +</ul> +</pre> + </div> + </div> + +</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> + + <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="#">«</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="#">»</a></li> + </ul> + </div> + <div class="pagination"> + <ul> + <li><a href="#">«</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="#">»</a></li> + </ul> + </div> + <div class="pagination"> + <ul> + <li><a href="#">←</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="#">→</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><div></code>, pagination is just a <code><ul></code>.{{/i}}</p> +<pre class="prettyprint linenums"> +<div class="pagination"> + <ul> + <li><a href="#">Prev</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="#">Next</a></li> + </ul> +</div> +</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 implemenations with light markup and even lighter styles. It's great for simple sites like blogs or magazines.{{/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> +<pre class="prettyprint linenums"> +<ul class="pager"> + <li> + <a href="#">{{_i}}Previous{{/i}}</a> + </li> + <li> + <a href="#">{{_i}}Next{{/i}}</a> + </li> +</ul> +</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}}← Older{{/i}}</a></li> + <li class="next"><a href="#">{{_i}}Newer →{{/i}}</a></li> + </ul> +<pre class="prettyprint linenums"> +<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> +</pre> + </div> + </div><!-- /row --> +</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><span class="label">{{_i}}Default{{/i}}</span></code> + </td> + </tr> + <tr> + <td> + <span class="label label-success">{{_i}}New{{/i}}</span> + </td> + <td> + <code><span class="label label-success">{{/_i}}New{{/i}}</span></code> + </td> + </tr> + <tr> + <td> + <span class="label label-warning">{{_i}}Warning{{/i}}</span> + </td> + <td> + <code><span class="label label-warning">{{_i}}Warning{{/i}}</span></code> + </td> + </tr> + <tr> + <td> + <span class="label label-important">{{_i}}Important{{/i}}</span> + </td> + <td> + <code><span class="label label-important">{{_i}}Important{{/i}}</span></code> + </td> + </tr> + <tr> + <td> + <span class="label label-info">{{_i}}Info{{/i}}</span> + </td> + <td> + <code><span class="label label-info">{{_i}}Info{{/i}}</span></code> + </td> + </tr> + </tbody> + </table> +</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 primary">{{_i}}Action{{/i}}</a> <a href="#" class="btn">{{_i}}Action{{/i}}</a></p> + </div> + </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 primary">{{_i}}Action{{/i}}</a> <a href="#" class="btn">{{_i}}Action{{/i}}</a></p> + </div> + </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—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—like <code>.span2</code> or <code>.span3</code>—for control of thumbnail dimensions.{{/i}}</p> + </div> + </div> + + <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> +<pre class="prettyprint linenums"> +<ul class="thumbnails"> + <li class="span3"> + <a href="#" class="thumbnail"> + <img src="http://placehold.it/260x180" alt=""> + </a> + </li> + ... +</ul> +</pre> + <p>{{_i}}For custom HTML content in thumbnails, the markup changes slightly. To allow block level content anywhere, we swap the <code><a></code> for a <code><div></code> like so:{{/i}}</p> +<pre class="prettyprint linenums"> +<ul class="thumbnails"> + <li class="span3"> + <div class="thumbnail"> + <img src="http://placehold.it/260x180" alt=""> + <h5>{{_i}}Thumbnail label{{/i}}</h5> + <p>{{_i}}Thumbnail caption right here...{{/i}}</p> + </div> + </li> + ... +</ul> +</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> + + + +<!-- Alerts & Messages +================================================== --> +<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—no <code><p></code> is required by default, just the outter <code><div></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 »</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"> + <a class="close">×</a> + <strong>{{_i}}Warning!{{/i}}</strong> {{_i}}Best check yo self, you’re not looking too good.{{/i}} + </div> +<pre class="prettyprint linenums"> +<div class="alert"> + <a class="close">×</a> + <strong>{{_i}}Warning!{{/i}}</strong> {{_i}}Best check yo self, you’re not looking too good.{{/i}} +</div> +</pre> + <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"> + <a class="close">×</a> + <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> +<pre class="prettyprint linenums"> +<div class="alert alert-block"> + <a class="close">×</a> + <h4 class="alert-heading">{{_i}}Warning!{{/i}}</h4> + {{_i}}Best check yo self, you’re not...{{/i}} +</div> +</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"> + <a class="close">×</a> + <strong>{{_i}}Oh snap!{{/i}}</strong> {{_i}}Change a few things up and try submitting again.{{/i}} + </div> +<pre class="prettyprint linenums"> +<div class="alert alert-error"> + ... +</div> +</pre> + </div> + <div class="span4"> + <h3>{{_i}}Success{{/i}}</h3> + <div class="alert alert-success"> + <a class="close">×</a> + <strong>{{_i}}Well done!{{/i}}</strong> {{_i}}You successfully read this important alert message.{{/i}} + </div> +<pre class="prettyprint linenums"> +<div class="alert alert-success"> + ... +</div> +</pre> + </div> + <div class="span4"> + <h3>{{_i}}Information{{/i}}</h3> + <div class="alert alert-info"> + <a class="close">×</a> + <strong>{{_i}}Heads up!{{/i}}</strong> {{_i}}This alert needs your attention, but it’s not super important.{{/i}} + </div> +<pre class="prettyprint linenums"> +<div class="alert alert-info"> + ... +</div> +</pre> + </div> + </div> + +</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> + + <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> +<pre class="prettyprint linenums"> +<div class="progress"> + <div class="bar" + style="width: 60%;"></div> +</div> +</pre> + </div> + <div class="span4"> + <h3>{{_i}}Striped{{/i}}</h3> + <p>{{_i}}Uses a gradient to create a striped effect.{{/i}}</p> + <div class="progress progress-info progress-striped"> + <div class="bar" style="width: 20%;"></div> + </div> +<pre class="prettyprint linenums"> +<div class="progress progress-info + progress-striped"> + <div class="bar" + style="width: 20%;"></div> +</div> +</pre> + </div> + <div class="span4"> + <h3>{{_i}}Animated{{/i}}</h3> + <p>{{_i}}Takes the striped example and animates it.{{/i}}</p> + <div class="progress progress-danger progress-striped active"> + <div class="bar" style="width: 45%"></div> + </div> +<pre class="prettyprint linenums"> +<div class="progress progress-danger + progress-striped active"> + <div class="bar" + style="width: 40%;"></div> +</div> +</pre> + </div> + </div> + + <h2>{{_i}}Options and browser support{{/i}}</h2> + <div class="row"> + <div class="span4"> + <h3>{{_i}}Additional colors{{/i}}</h3> + <p>{{_i}}Progress bars utilize some of the same class names as buttons and alerts for similar styling.{{/i}}</p> + <ul> + <li><code>.progress-info</code></li> + <li><code>.progress-success</code></li> + <li><code>.progress-danger</code></li> + </ul> + <p>{{_i}}Alternatively, you can customize the LESS files and roll your own colors and sizes.{{/i}}</p> + </div> + <div class="span4"> + <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="span4"> + <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-8 or older versions of Firefox.{{/i}}</p> + <p>{{_i}}Opera does not support animations at this time.{{/i}}</p> + </div> + </div> + +</section> + + + + + +<!-- Miscellaneous +================================================== --> +<section id="misc"> + <div class="page-header"> + <h1>{{_i}}Miscellaneous{{/i}} <small>{{_i}}Wells, badges, and close icon{{/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> +<pre class="prettyprint linenums"> +<div class="well"> + ... +</div> +</pre> + </div><!--/span--> + <div class="span4" style="display: none;"> + <h2>{{_i}}Badges{{/i}}</h2> + <p>{{_i}}Use a badge on an element for an unread count or as a simple indicator.{{/i}}</p> +<pre class="prettyprint linenums"><span class="badge">3</div></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><a class="close" style="float: none;">×</a></p> +<pre class="prettyprint linenums"><a class="close">&times;</a></pre> + </div><!--/span--> + </div><!--/row--> +</section> diff --git a/docs/templates/pages/download.mustache b/docs/templates/pages/download.mustache new file mode 100644 index 000000000..da91b1159 --- /dev/null +++ b/docs/templates/pages/download.mustache @@ -0,0 +1,246 @@ +<!-- 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. Chose 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}}CSS reset{{/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.less"> {{_i}}Labels{{/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> + </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.less"> {{_i}}Responsive layouts{{/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 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}}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"> + </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>@baseFontSize</label> + <input type="text" class="span3" placeholder="13px"> + <label>@baseFontFamily</label> + <input type="text" class="span3" placeholder="'Helvetica Neue', Helvetica, Arial, sans-serif"> + <label>@baseLineHeight</label> + <input type="text" class="span3" placeholder="18px"> + </div><!-- /span --> + <div class="span3"> + <h3>{{_i}}Forms{{/i}}</h3> + <label>@primaryButtonColor</label> + <input type="text" class="span3" placeholder="@blue"> + <label>@placeholderText</label> + <input type="text" class="span3" placeholder="@grayLight"> + <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>@navbarLinkColor</label> + <input type="text" class="span3" placeholder="@grayLight"> + <label>@navbarLinkColorHover</label> + <input type="text" class="span3" placeholder="@white"> + </div><!-- /span --> + <div class="span3"> + <h3>{{_i}}Form states & 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="#">{{_i}}Customize and Download{{/i}}</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 new file mode 100644 index 000000000..850ac0fa6 --- /dev/null +++ b/docs/templates/pages/examples.mustache @@ -0,0 +1,56 @@ +<div class="alert"> + <strong>Heads up!</strong> This page is still under construction and is missing plenty of documentation. Hang tight! +</div> + +<!-- Masthead +================================================== --> +<header class="jumbotron subhead" id="overview"> + <h1>{{_i}}Bootstrap examples{{/i}}</h1> + <p class="lead">{{_i}}Use these examples as starting points for your work with Bootstrap. We encourage everyone 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 href="../examples/hero.html" class="thumbnail"> + <img src="http://placehold.it/360x240" alt=""> + </a> + <h3>Basic marketing site</h3> + <p></p> + </li> + <li class="span4"> + <a href="../examples/fluid.html" class="thumbnail"> + <img src="http://placehold.it/360x240" alt=""> + </a> + <h3>Fluid layout</h3> + <p></p> + </li> + <li class="span4"> + <a href="../examples/fluid-reverse.html" class="thumbnail"> + <img src="http://placehold.it/360x240" alt=""> + </a> + <h3>Fluid layout reversed</h3> + <p></p> + </li> + <li class="span4"> + <a href="../examples/container-app.html" class="thumbnail"> + <img src="http://placehold.it/360x240" alt=""> + </a> + <h3>Container application</h3> + <p></p> + </li> + <li class="span4"> + <a href="#" class="thumbnail"> + <img src="http://placehold.it/360x240" alt=""> + </a> + <h3>Fullscreen</h3> + <p></p> + </li> + <li class="span4"> + <a href="#" class="thumbnail"> + <img src="http://placehold.it/360x240" alt=""> + </a> + <h3>Simple layout</h3> + <p></p> + </li> +</ul> diff --git a/docs/templates/pages/index.mustache b/docs/templates/pages/index.mustache new file mode 100644 index 000000000..f7cadc081 --- /dev/null +++ b/docs/templates/pages/index.mustache @@ -0,0 +1,136 @@ +<!-- Masthead +================================================== --> +<header class="jumbotron masthead"> + <div class="inner"> + <h1>{{_i}}Bootstrap, from Twitter{{/i}}</h1> + <p>Simple and flexible HTML, CSS, and Javascript for popular user interface components and interactions.</p> + <p class="download-info"> + <a href="https://github.com/twitter/bootstrap/" class="btn btn-primary btn-large">{{_i}}View project on GitHub{{/i}}</a> + <a href="assets/bootstrap.zip" class="btn btn-large">{{_i}}Download Bootstrap{{/i}}</a> + </p> + </div> + + <ul class="quick-links"> + <li><a href="./upgrading.html">Upgrading from 1.4</a></li> + <li><a href="https://github.com/twitter/bootstrap/issues?state=open">{{_i}}Issues{{/i}}</a></li> + <li><a href="https://github.com/twitter/bootstrap/wiki/Roadmap">{{_i}}Roadmap{{/i}}</a></li> + <li><a href="https://github.com/twitter/bootstrap/wiki/Changelog">{{_i}}Changelog{{/i}}</a></li> + <li class="divider">·</li> + <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="114px" 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> + </li> + <li class="divider">·</li> + <li class="follow-btn"> + <a href="https://twitter.com/twbootstrap" class="twitter-follow-button" data-width="145px" data-link-color="#0069D6" data-show-count="false">{{_i}}Follow @twbootstrap{{/i}}</a> + </li> + <li class="tweet-btn"> + <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://twitter.github.com/bootstrap/" data-count="horizontal" data-via="twbootstrap" data-related="mdo:Creator of Twitter Bootstrap">Tweet</a> + </li> + </ul> +</header> + +<hr class="soften"> + +<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 level—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> + </div><!--/row--> + + <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="./examples.html">browse the examples</a>.{{/i}}</p> + <ul class="thumbnails example-sites"> + <li class="span4"> + <a class="thumbnail" href="http://kippt.com/" target="_blank"> + <img src="assets/img/example-sites/kippt.png" alt="Kippt"> + </a> + </li> + <li class="span4"> + <a class="thumbnail" href="http://www.fleetio.com/" target="_blank"> + <img src="assets/img/example-sites/fleetio.png" alt="Fleetio"> + </a> + </li> + <li class="span4"> + <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 -->
\ No newline at end of file diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache new file mode 100644 index 000000000..8841b1f7b --- /dev/null +++ b/docs/templates/pages/javascript.mustache @@ -0,0 +1,1352 @@ + <!-- Masthead + ================================================== --> + <header class="jumbotron subhead" id="overview"> + <h1>{{_i}}Javascript for Bootstrap{{/i}}</h1> + <p class="lead">{{_i}}Bring Bootstrap's components to life—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> + </ul> + </div> + </header> + + + <!-- 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"> + <label> + <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> + </label> + </div> + <div class="span3"> + <label> + <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> + </label> + </div> + <div class="span3"> + <label> + <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> + </label> + </div> + <div class="span3"> + <label> + <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> + </label> + </div> + </div> <!-- /row --> + <div class="row"> + <div class="span3"> + <label> + <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, uss CSS3 for animations, and data-attributes for local title storage.{{/i}}</p> + </label> + </div> + <div class="span3"> + <label> + <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> + </label> + </div> + <div class="span3"> + <label> + <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> + </label> + </div> + <div class="span3"> + <label> + <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> + </label> + </div> + </div> <!-- /row --> + <div class="row" style="margin-bottom: 9px;"> + <div class="span3"> + <label> + <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> + </label> + </div> + <div class="span3"> + <label> + <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> + </label> + </div> + <div class="span3"> + <label> + <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> + </label> + </div> + <div class="span3"> + <label> + <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> + </label> + </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> + <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="../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"> + <div class="modal-header"> + <a href="#" class="close" data-dismiss="modal">×</a> + <h3>{{_i}}Modal header{{/i}}</h3> + </div> + <div class="modal-body"> + <p>{{_i}}One fine body…{{/i}}</p> + </div> + <div class="modal-footer"> + <a href="#" class="btn btn-primary">{{_i}}Save changes{{/i}}</a> + <a href="#" class="btn">{{_i}}Close{{/i}}</a> + </div> + </div> + </div> <!-- /well --> + + <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> + <!-- sample modal content --> + <div id="myModal" class="modal hide fade"> + <div class="modal-header"> + <a class="close" data-dismiss="modal" >×</a> + <h3>{{_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> + + <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> + </div> + <div class="modal-footer"> + <a href="#" class="btn btn-primary">{{_i}}Save changes{{/i}}</a> + <a href="#" class="btn" data-dismiss="modal" >{{_i}}Close{{/i}}</a> + </div> + </div> + <a data-toggle="modal" href="#myModal" class="btn btn-primary btn-large">{{_i}}Launch demo modal{{/i}}</a> + + <hr> + + <h2>{{_i}}Using bootstrap-modal{{/i}}</h2> + <p>{{_i}}Call the modal via javascript:{{/i}}</p> + <pre class="prettyprint linenums">$('#myModal').modal(options)</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}}backdrop{{/i}}</td> + <td>{{_i}}boolean{{/i}}</td> + <td>{{_i}}true{{/i}}</td> + <td>{{_i}}Includes a modal-backdrop element{{/i}}</td> + </tr> + <tr> + <td>{{_i}}keyboard{{/i}}</td> + <td>{{_i}}boolean{{/i}}</td> + <td>{{_i}}true{{/i}}</td> + <td>{{_i}}Closes the modal when escape key is pressed{{/i}}</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"> +<a class="btn" data-toggle="modal" href="#myModal" >{{_i}}Launch Modal{{/i}}</a> +</pre> + +<pre class="prettyprint linenums"> +<div class="modal"> + <div class="modal-header"> + <a class="close" data-dismiss="modal">×</a> + <h3>Modal header</h3> + </div> + <div class="modal-body"> + <p>{{_i}}One fine body…{{/i}}</p> + </div> + <div class="modal-footer"> + <a href="#" class="btn btn-primary">{{_i}}Save changes{{/i}}</a> + <a href="#" class="btn">{{_i}}Close{{/i}}</a> + </div> +</div> +</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> + <h4>.modal('toggle')</h4> + <p>{{_i}}Manually toggles a modal.{{/i}}</p> + <pre class="prettyprint linenums">$('#myModal').modal('toggle')</pre> + <h4>.modal('show')</h4> + <p>{{_i}}Manually opens a modal.{{/i}}</p> + <pre class="prettyprint linenums">$('#myModal').modal('show')</pre> + <h4>.modal('hide')</h4> + <p>{{_i}}Manually hides a modal.{{/i}}</p> + <pre class="prettyprint linenums">$('#myModal').modal('hide')</pre> + <h3>{{_i}}Events{{/i}}</h3> + <p>{{_i}}Bootstrap's modal class exposes a few events for hooking into modal 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 the modal 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> instance method has been called.{{/i}}</td> + </tr> + <tr> + <td>{{_i}}hidden{{/i}}</td> + <td>{{_i}}This event is fired when the modal has finished being hidden from the user (will wait for css transitions to complete).{{/i}}</td> + </tr> + </tbody> + </table> + +<pre class="prettyprint linenums"> +$('#myModal').on('hidden', function () { + // {{_i}}do something…{{/i}} +})</pre> + </div> + </div> + </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="../js/bootstrap-dropdown.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a> + </div> + <div class="span9 columns"> + <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> + </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> + </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> + +<pre class="prettyprint linenums"> +<ul class="nav pills"> + <li class="active"><a href="#">Regular link</a></li> + <li class="dropdown" id="menu1"> + <a class="dropdown-toggle" data-toggle="dropdown" href="#menu1"> + {{_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></pre> + <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> + + + + <!-- 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="../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> + </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> + <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"><body data-spy="scroll" >...</body></pre> + <div class="alert alert-info"> + <strong>{{_i}}Heads up!{{/i}}</strong> + {{_i}}Navbar links must have resolvable id targets. For example, a <code><a href="#home">home</a></code> must correspond to something in the dom like <code><div id="home"></div></code>.{{/i}} + </div> + <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}}offset{{/i}}</td> + <td>{{_i}}number{{/i}}</td> + <td>{{_i}}10{{/i}}</td> + <td>{{_i}}Pixels to offset from top when calculating position of scroll.{{/i}}</td> + </tr> + </tbody> + </table> + </div> + </div> + </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="../js/bootstrap-tab.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a> + </div> + <div class="span9 columns"> + <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="tab" 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> + <hr> + <h2>{{_i}}Using bootstrap-tab.js{{/i}}</h2> + <p>{{_i}}Enable tabbable tabs via javascript:{{/i}}</p> + <pre class="prettyprint linenums">$('#myTab').tab('show')</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.{{/i}}</p> +<pre class="prettyprint linenums"> +<ul class="tabs"> + <li><a href="#home" data-toggle="tab">{{_i}}Home{{/i}}</a></li> + <li><a href="#profile" data-toggle="tab">{{_i}}Profile{{/i}}</a></li> + <li><a href="#messages" data-toggle="tab">{{_i}}Messages{{/i}}</a></li> + <li><a href="#ettings" data-toggle="tab">{{_i}}Settings{{/i}}</a></li> +</ul></pre> + <h3>{{_i}}Methods{{/i}}</h3> + <h4>$().tab</h4> + <p> + {{_i}}Activates a tab element and content container. Tab should have either a `data-target` or an `href` targeting a container node in the dom.{{/i}} + </p> +<pre class="prettyprint linenums"> +<ul class="tabs"> + <li class="active"><a href="#home">{{_i}}Home{{/i}}</a></li> + <li><a href="#profile">{{_i}}Profile{{/i}}</a></li> + <li><a href="#messages">{{_i}}Messages{{/i}}</a></li> + <li><a href="#settings">{{_i}}Settings{{/i}}</a></li> +</ul> + +<div class="tab-content"> + <div class="tab-pane active" id="home">...</div> + <div class="tab-pane" id="profile">...</div> + <div class="tab-pane" id="messages">...</div> + <div class="tab-pane" id="settings">...</div> +</div> + +<script> + $(function () { + $('.tabs a:last').tab('show') + }) +</script></pre> + <h3>{{_i}}Events{{/i}}</h3> + <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 on tab show, but before the new tab has been shown. Use <code>event.target</code> and <code>event.relatedTarget</code> to target the active tab and the previous active tab (if available) respectively.{{/i}}</td> + </tr> + <tr> + <td>{{_i}}shown{{/i}}</td> + <td>{{_i}}This event fires on tab show after a tab has been shown. Use <code>event.target</code> and <code>event.relatedTarget</code> to target the active tab and the previous active tab (if available) respectively.{{/i}}</td> + </tr> + </tbody> + </table> + + <pre class="prettyprint linenums"> +$('a[data-toggle="tab"]').on('shown', function (e) { + e.target // activated tab + e.relatedTarget // previous tab +})</pre> + </div> + </div> + </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, uss css3 for animations, and data-attributes for local title storage.{{/i}}</p> + <a href="../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> + <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 <a href="#" rel='tooltip' title='Another one here too'>really ironic</a> artisan whatever keytar, 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> + <pre class="prettyprint linenums">$('#example').tooltip({{_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{{/i}}</td> + <td>'top'</td> + <td>{{_i}}how to position the tooltip{{/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}}title{{/i}}</td> + <td>{{_i}}string | function{{/i}}</td> + <td>''</td> + <td>{{_i}}default title value if `title` tag isn't present{{/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}}delay{{/i}}</td> + <td>{{_i}}number | object{{/i}}</td> + <td>0</td> + <td> + <p>{{_i}}delay showing and hiding the tooltip (ms){{/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 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> + <h3>{{_i}}Methods{{/i}}</h3> + <h4>$().tooltip({{_i}}options{{/i}})</h4> + <p>{{_i}}Attaches a tooltip handler to an element collection.{{/i}}</p> + <h4>.tooltip('show')</h4> + <p>{{_i}}Reveals an elements tooltip.{{/i}}</p> + <pre class="prettyprint linenums">$('#element').tooltip('show')</pre> + <h4>.tooltip('hide')</h4> + <p>{{_i}}Hides an elements tooltip.{{/i}}</p> + <pre class="prettyprint linenums">$('#element').tooltip('hide')</pre> + <h4>.tooltip('toggle')</h4> + <p>{{_i}}Toggles an elements tooltip.{{/i}}</p> + <pre class="prettyprint linenums">$('#element').tooltip('toggle')</pre> + </div> + </div> + </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="#tooltip">Tooltip</a> to be included{{/i}}</p> + <a href="../js/bootstrap-popover.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a> + </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> + </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{{/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){{/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 the 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> + </div> + </section> + + + + <!-- 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="../js/bootstrap-alert.js" target="_blank" class="btn">{{_i}}Download{{/i}}</a> + </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> + <div class="alert fade in"> + <a class="close" data-dismiss="alert" href="#">×</a> + <strong>{{_i}}Holy guacamole!{{/i}}</strong> {{_i}}Best check yo self, you’re not looking too good.{{/i}} + </div> + <div class="alert alert-block alert-error fade in"> + <a class="close" data-dismiss="alert" href="#">×</a> + <h4 class="alert-heading">{{_i}}Oh snap! You got an error!{{/i}}</h4> + <p>{{_i}}Change this and that and try again. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cras mattis consectetur purus sit amet fermentum.{{/i}}</p> + <p> + <a class="btn btn-danger small" href="#">{{_i}}Take this action{{/i}}</a> <a class="btn small" href="#">{{_i}}Or do this{{/i}}</a> + </p> + </div> + <hr> + <h2>{{_i}}Using bootstrap-alerts.js{{/i}}</h2> + <p>{{_i}}Enable dismissal of an alert via javascript:{{/i}}</p> + <pre class="prettyprint linenums">$(".alert-message").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"><a class="close" data-dismiss="alert" href="#">&times;</a></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-message").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> + + + + <!-- 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="../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">$('.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"> +<!-- Add data-toggle="button" to activate toggling on a single button --> +<button class="btn" data-toggle="button">Single Toggle</button> + +<!-- Add data-toggle="buttons-checkbox" for checkbox style toggling on btn-group --> +<div class="btn-group" data-toggle="buttons-checkbox"> + <button class="btn">Left</button> + <button class="btn">Middle</button> + <button class="btn">Right</button> +</div> + +<!-- Add data-toggle="buttons-radio" for radio style toggling on btn-group --> +<div class="btn-group" data-toggle="buttons-radio"> + <button class="btn">Left</button> + <button class="btn">Middle</button> + <button class="btn">Right</button> +</div> +</pre> + <h3>{{_i}}Methods{{/i}}</h3> + <h4>$().button('toggle')</h4> + <p>{{_i}}Toggles push state. Gives btn the look that it's 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"><button class="btn" data-toggle="button" >…</button></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"><button class="btn" data-loading-text="loading stuff..." >...</button></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"><button class="btn" data-complete-text="finished!" >...</button> +<script> + $('.btn').button('complete') +</script></pre> + </div> + </div> + </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="../js/bootstrap-collapse.js" target="_blank" class="btn">{{_i}}Download file{{/i}}</a> + </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> + </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. + </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> + + + <hr> + <h2>{{_i}}Using bootstrap-collapse.js{{/i}}</h2> + <p>Enable via javascript:</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 collasabile 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"> +<button class="btn btn-danger" data-toggle="collapse" data-target="#demo"> + {{_i}}simple collapsible{{/i}} +</button> + +<div id="demo" class="collapse in"> … </div></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}} +<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 class="prettyprint linenums"> +$('#myCollapsible').on('hidden', function () { + // {{_i}}do something…{{/i}} +})</pre> + </div> + </div> + </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="../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> + </div> + </div> + </div> + <a class="left carousel-control" href="#myCarousel" data-slide="prev">‹</a> + <a class="right carousel-control" href="#myCarousel" data-slide="next">›</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 type to delay between automatically cycling an item.{{/i}}</td> + </tr> + </tbody> + </table> + <h3>{{_i}}Markup{{/i}}</h3> + <p>{{_i}}Data attributes are integral to the carousel plugin. Check out the example code below for the various markup types.{{/i}}</p> +<pre class="prettyprint linenums"> +<div class="carousel"> + <!-- Carousel items --> + <div class="carousel-inner"> + ... + </div> + <!-- Carousel nav --> + <a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a> + <a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a> +</div> +</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> +<pre class="prettyprint linenums"> +$('.myCarousel').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 modal class exposes a few events for hooking into modal 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 it's slide transition.{{/i}}</td> + </tr> + </tbody> + </table> + </div> + </div> + </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="../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> + <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: 100px;">{{_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> + </tr> + </tbody> + </table> + + <h3>{{_i}}Markup{{/i}}</h3> + <p>{{_i}}Add data attributes to register an element with typeahead functionality.{{/i}}</p> +<pre class="prettyprint linenums"> +<input type="text" data-provide="typeahead"> +</pre> + <h3>{{_i}}Methods{{/i}}</h3> + <h4>.typeahead({{_i}}options{{/i}})</h4> + <p>{{_i}}Initializes an input with a typahead.{{/i}}</p> + </div> + </div> + </section>
\ No newline at end of file diff --git a/docs/templates/pages/less.mustache b/docs/templates/pages/less.mustache new file mode 100644 index 000000000..eb262c78b --- /dev/null +++ b/docs/templates/pages/less.mustache @@ -0,0 +1,686 @@ +<div class="alert"> + <strong>Heads up!</strong> This page is still under construction and is missing plenty of documentation. Hang tight! +</div> + +<!-- 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 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 it's 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—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. Multiple, 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> + + <div class="row"> + <div class="span6"> + <h3>{{_i}}Hyperlinks{{/i}}</h3> + <table class="table table-bordered table-striped"> + <tbody> + <tr> + <td class="span2"><code>@linkColor</code></td> + <td>#08c</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="span2"><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="span2"><code>@baseFontSize</code></td> + <td>13px</td> + </tr> + <tr> + <td><code>@baseFontFamily</code></td> + <td><code>"Helvetica Neue", Helvetica, Arial, sans-serif</code></td> + <td></td> + </tr> + <tr> + <td><code>@baseLineHeight</code></td> + <td>18px</td> + </tr> + </tbody> + </table> + </div> + <div class="span6"> + <h3>{{_i}}Grayscale colors{{/i}}</h3> + <table class="table table-bordered table-striped"> + <tbody> + <tr> + <td class="span2"><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="span2"><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> + </div> + </div> <!-- /row --> + + <h3>{{_i}}Components{{/i}}</h3> + <div class="row"> + <div class="span6"> + <h4>Buttons</h4> + <table class="table table-bordered table-striped"> + <tbody> + <tr> + <td class="span3"><code>@primaryButtonBackground</code></td> + <td><code>@linkColor</code></td> + <td class="swatch-col"><span class="swatch" style="background-color: #08c;"></span></td> + </tr> + </tbody> + </table> + <h4>Forms</h4> + <table class="table table-bordered table-striped"> + <tbody> + <tr> + <td class="span3"><code>@placeholderText</code></td> + <td><code>@grayLight</code></td> + <td class="swatch-col"><span class="swatch" style="background-color: #999;"></span></td> + </tr> + </tbody> + </table> + <h4>Navbar</h4> + <table class="table table-bordered table-striped"> + <tbody> + <tr> + <td class="span3"><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> + </tbody> + </table> + </div> + <div class="span6"> + <h4>{{_i}}Form states and alerts{{/i}}</h4> + <table class="table table-bordered table-striped"> + <tbody> + <tr> + <td class="span3"><code>@warningText</code></td> + <td>#f3edd2</td> + <td class="swatch-col"><span class="swatch" style="background-color: #f3edd2;"></span></td> + </tr> + <tr> + <td><code>@warningBackground</code></td> + <td>#c09853</td> + <td><span class="swatch" style="background-color: #c09853;"></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> + </div> + </div><!-- /row --> + +</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: 5px, @width: 5px</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: 5px</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: 100</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}}Provide a fixed-width (set with <code>@siteWidth</code>) container for holding your content{{/i}}</td> + </tr> + <tr> + <td><code>.columns()</code></td> + <td><code>@columns: 1</code></td> + <td>{{_i}}Build a grid column that spans any number of columns (defaults to 1 column){{/i}}</td> + </tr> + <tr> + <td><code>.offset()</code></td> + <td><code>@columns: 1</code></td> + <td>{{_i}}Offset a grid column with left margin that spans any number of columns{{/i}}</td> + </tr> + <tr> + <td><code>.gridColumn()</code></td> + <td><em class="muted">none</em></td> + <td>{{_i}}Make an element float like a grid column{{/i}}</td> + </tr> + </tbody> + </table> + <h3>CSS3 properties</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: 5px</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: 0 1px 3px rgba(0,0,0,.25)</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 it's original size{{/i}}</td> + </tr> + <tr> + <td><code>.translate()</code></td> + <td><code>@x: 0, @y: 0</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 backgroud 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>.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: @gridColumnGutter</code></td> + <td>{{_i}}Make the content of any element use CSS3 columns{{/i}}</td> + </tr> + </tbody> + </table> + <h3>Backgrounds and gradients</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 with npm by running the following command:{{/i}}</p> + <pre>$ npm install less</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 ./lib/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><head></code>.{{/i}}</p> +<pre class="prettyprint"> +<link rel="stylesheet/less" href="/path/to/bootstrap.less"> +<script src="/path/to/less.js"></script> +</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 new file mode 100644 index 000000000..bfbd879d5 --- /dev/null +++ b/docs/templates/pages/scaffolding.mustache @@ -0,0 +1,324 @@ + <!-- Masthead + ================================================== --> + <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="#grid-system">{{_i}}Grid system{{/i}}</a></li> + <li><a href="#layouts">{{_i}}Layouts{{/i}}</a></li> + <li><a href="#responsive">{{_i}}Responsive design{{/i}}</a></li> + </ul> + </div> + </header> + + + +<!-- Grid system +================================================== --> +<section id="grid-system"> + <div class="page-header"> + <h1>{{_i}}Grid system <small>12 columns with a responsive twist</small>{{/i}}</h1> + </div> + + <h2>Default 940px grid</h2> + <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 as part of Bootstrap is a <strong>940px-wide, 12-column grid</strong>.{{/i}}</p> + <p>{{_i}}It also has four responsive variations for various devices and resolutions: phone, tablet portrait, table landscape and small desktops, and large widescreen desktops.{{/i}}</p> + </div> + <div class="span4"> +<pre class="prettyprint linenums"> +<div class="row"> + <div class="span4">...</div> + <div class="span8">...</div> +</div> +</pre> + </div> + <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> + </div><!-- /row --> + + <br> + + <h2>Offsetting columns</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 --> +<pre class="prettyprint linenums"> +<div class="row"> + <div class="span4">...</div> + <div class="span4 offset4">...</div> +</div> +</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> + <h4>{{_i}}Example{{/i}}</h4> + <div class="row show-grid"> + <div class="span6"> + {{_i}}Level 1 of column{{/i}} + <div class="row show-grid"> + <div class="span3"> + {{_i}}Level 2{{/i}} + </div> + <div class="span3"> + {{_i}}Level 2{{/i}} + </div> + </div> + </div> + </div> + </div> + <div class="span6"> +<pre class="prettyprint linenums"> +<div class="row"> + <div class="span12"> + {{_i}}Level 1 of column{{/i}} + <div class="row"> + <div class="span6">{{_i}}Level 2{{/i}}</div> + <div class="span6">{{_i}}Level 2{{/i}}</div> + </div> + </div> +</div> +</pre> + </div> + </div> + + <h2>{{_i}}Grid customization{{/i}}</h2> + <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> + <tr> + <td><code>@siteWidth</code></td> + <td><em>{{_i}}Computed sum of all columns and gutters{{/i}}</em></td> + <td>{{_i}}Counts number of columns and gutters to set width of the <code>.container-fixed()</code> mixin{{/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> + <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="#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> + <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> + </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><div class="container"></code>.{{/i}}</p> + <div class="minicon-layout"> + <div class="minicon-layout-body"></div> + </div> +<pre class="prettyprint linenums"> +<body> + <div class="container"> + ... + </div> +</body> +</pre> + </div><!-- /col --> + <div class="span6"> + <h2>{{_i}}Fluid layout{{/i}}</h2> + <p>{{_i}}<code><div class="container-fluid"></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="minicon-layout fluid"> + <div class="minicon-layout-sidebar"></div> + <div class="minicon-layout-body"></div> + </div> +<pre class="prettyprint linenums"> +<div class="container-fluid"> + <div class="row-fluid"> + <div class="span2"> + <!--{{_i}}Sidebar content{{/i}}--> + </div> + <div class="span10"> + <!--{{_i}}Body content{{/i}}--> + </div> + </div> +</div> +</pre> + </div><!-- /col --> + </div><!-- /row --> +</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"> + <img src="assets/img/responsive-illustrations.png" alt="Responsive devices"> + </div> + <div class="span8"> + <h2>{{_i}}Supported devices{{/i}}</h2> + <p>{{_i}}Bootstrap supports a handful of media queries to help make your projects more appropriate on different devices and screen resolutions. Here's what's included:{{/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}}Portrait tablets{{/i}}</td> + <td>480px to 768px</td> + <td class="muted" colspan="2">{{_i}}Fluid columns, no fixed widths{{/i}}</td> + </tr> + <tr> + <td>{{_i}}Landscape tablets{{/i}}</td> + <td>768px to 940px</td> + <td>44px</td> + <td>20px</td> + </tr> + <tr> + <td>{{_i}}Default{{/i}}</td> + <td>940px and up</td> + <td>60px</td> + <td>20px</td> + </tr> + <tr> + <td>{{_i}}Large display{{/i}}</td> + <td>1210px and up</td> + <td>70px</td> + <td>30px</td> + </tr> + </tbody> + </table> + + <h3>{{_i}}What they do{{/i}}</h3> + <p>{{_i}}Media queries allow for custom CSS based on a number of conditions—ratios, widths, display type, etc—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> + </div> + </div> + + <br> + + <!-- Media query code --> + <h2>{{_i}}Using the media queries{{/i}}</h2> + <div class="row"> + <div class="span5"> + <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{{/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> + <div class="span7"> +<pre class="prettyprint linenums"> + // {{_i}}Landscape phones and down{{/i}} + @media (max-width: 480px) { ... } + + // {{_i}}Landscape phone to portrait tablet{{/i}} + @media (max-width: 768px) { ... } + + // {{_i}}Portrait tablet to landscape and desktop{{/i}} + @media (min-width: 768px) and (max-width: 940px) { ... } + + // {{_i}}Large desktop{{/i}} + @media (min-width: 1200px) { .. } +</pre> + </div> + </div> +</section> diff --git a/docs/templates/pages/upgrading.mustache b/docs/templates/pages/upgrading.mustache new file mode 100644 index 000000000..a82896b3a --- /dev/null +++ b/docs/templates/pages/upgrading.mustache @@ -0,0 +1,198 @@ +<!-- 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><code></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}}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> + </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}}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><i class="icon cog"></></code>{{/i}}</li> + <li>{{_i}}Add another class, <code>.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><ul></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—just add <code>.stacked</code> to the <code><ul></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><span class="caret"></span></code> to show the dropdown arrow{{/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 deafult 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> + <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> + </ul> +</section> + + + +<!-- LESS +================================================== --> +<section id="less"> + <div class="page-header"> + <h1>{{_i}}Using LESS{{/i}}</h1> + </div> + <h3>{{_i}}Variables{{/i}}</h3> + <h3>{{_i}}Mixins{{/i}}</h3> +</section> + + + +<!-- Customize +================================================== --> +<section id="less"> + <div class="page-header"> + <h1>{{_i}}Customize page{{/i}}</h1> + </div> + <ul> + <li>{{_i}}New in 2.0{{/i}}</li> + </ul> +</section> + |
