diff options
| author | Mark Otto <[email protected]> | 2013-02-12 12:25:05 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-02-12 12:25:05 -0800 |
| commit | 8b9733b288a3daca0da04fe60e0b5a0ae8681362 (patch) | |
| tree | b3b84c413ec1e6c1282b01a2923372743948f4b9 /docs/templates | |
| parent | 5de8557398ec862ab94f48dc081865d8223de1cf (diff) | |
| download | bootstrap-8b9733b288a3daca0da04fe60e0b5a0ae8681362.tar.xz bootstrap-8b9733b288a3daca0da04fe60e0b5a0ae8681362.zip | |
nuke what we don't need for jekyll
Diffstat (limited to 'docs/templates')
| -rw-r--r-- | docs/templates/layout.mustache | 167 | ||||
| -rw-r--r-- | docs/templates/pages/components.mustache | 1818 | ||||
| -rw-r--r-- | docs/templates/pages/css.mustache | 2258 | ||||
| -rw-r--r-- | docs/templates/pages/customize.mustache | 370 | ||||
| -rw-r--r-- | docs/templates/pages/gallery.mustache | 119 | ||||
| -rw-r--r-- | docs/templates/pages/getting-started.mustache | 244 | ||||
| -rw-r--r-- | docs/templates/pages/index.mustache | 72 | ||||
| -rw-r--r-- | docs/templates/pages/javascript.mustache | 1694 |
8 files changed, 0 insertions, 6742 deletions
diff --git a/docs/templates/layout.mustache b/docs/templates/layout.mustache deleted file mode 100644 index 8614dea4b..000000000 --- a/docs/templates/layout.mustache +++ /dev/null @@ -1,167 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> - <head> - <meta charset="utf-8"> - <title>{{title}}</title> - <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <meta name="description" content=""> - <meta name="author" content=""> - - <!-- Bootstrap core CSS --> - <link href="assets/css/bootstrap.css" rel="stylesheet"> - - <!-- Documentation extras --> - <link href="assets/css/docs.css" rel="stylesheet"> - <link href="assets/js/google-code-prettify/prettify.css" rel="stylesheet"> - - <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> - <!--[if lt IE 9]> - <script src="assets/js/html5shiv.js"></script> - <script src="assets/js/respond/respond.min.js"></script> - <![endif]--> - - <!-- Favicons --> - <link rel="apple-touch-icon-precomposed" sizes="144x144" href="assets/ico/apple-touch-icon-144-precomposed.png"> - <link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png"> - <link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png"> - <link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png"> - <link rel="shortcut icon" href="assets/ico/favicon.png"> - - {{! Analytics for Bootstrap docs only }} - {{#production}} - <script type="text/javascript"> - var _gaq = _gaq || []; - _gaq.push(['_setAccount', 'UA-146052-10']); - _gaq.push(['_trackPageview']); - (function() { - var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; - ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; - var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); - })(); - </script> - {{/production}} - </head> - - <body data-spy="scroll" data-target=".bs-docs-sidebar"> - - <!-- Navbar - ================================================== --> - <div class="navbar navbar-inverse navbar-fixed-top"> - <div class="container"> - <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - </button> - <a class="brand" href="./index.html">Bootstrap</a> - <div class="nav-collapse collapse"> - <ul class="nav"> - <li class="{{index}}"> - <a href="./index.html">{{_i}}Home{{/i}}</a> - </li> - <li class="{{getting-started}}"> - <a href="./getting-started.html">{{_i}}Get started{{/i}}</a> - </li> - <li class="{{css}}"> - <a href="./css.html">{{_i}}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{{/i}}</a> - </li> - <li class="{{customize}}"> - <a href="./customize.html">{{_i}}Customize{{/i}}</a> - </li> - </ul> - </div> - </div> - </div> - -{{>body}} - - - - <!-- Footer - ================================================== --> - <footer class="footer"> - <div class="container"> - - <div class="bs-docs-social"> - <ul class="bs-docs-social-buttons"> - <li> - <iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=twitter&repo=bootstrap&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100px" height="20px"></iframe> - </li> - <li> - <iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=twitter&repo=bootstrap&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="102px" height="20px"></iframe> - </li> - <li class="follow-btn"> - <a href="https://twitter.com/twbootstrap" class="twitter-follow-button" data-link-color="#0069D6" data-show-count="true">{{_i}}Follow @twbootstrap{{/i}}</a> - </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> - </div> - - - <p>{{_i}}Designed and built with all the love in the world 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 <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License v2.0</a>, documentation under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.{{/i}}</p> - <p>{{_i}}<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> - <ul class="footer-links"> - <li><a href="http://blog.getbootstrap.com">{{_i}}Blog{{/i}}</a></li> - <li class="muted">·</li> - <li><a href="https://github.com/twitter/bootstrap/issues?state=open">{{_i}}Issues{{/i}}</a></li> - <li class="muted">·</li> - <li><a href="https://github.com/twitter/bootstrap/blob/master/CHANGELOG.md">{{_i}}Changelog{{/i}}</a></li> - </ul> - </div> - </footer> - - - - <!-- Bootstrap core JavaScript - ================================================== --> - <!-- Placed at the end of the document so the pages load faster --> - <script src="assets/js/jquery.js"></script> - <script src="assets/js/bootstrap-transition.js"></script> - <script src="assets/js/bootstrap-alert.js"></script> - <script src="assets/js/bootstrap-modal.js"></script> - <script src="assets/js/bootstrap-dropdown.js"></script> - <script src="assets/js/bootstrap-scrollspy.js"></script> - <script src="assets/js/bootstrap-tab.js"></script> - <script src="assets/js/bootstrap-tooltip.js"></script> - <script src="assets/js/bootstrap-popover.js"></script> - <script src="assets/js/bootstrap-button.js"></script> - <script src="assets/js/bootstrap-collapse.js"></script> - <script src="assets/js/bootstrap-carousel.js"></script> - <script src="assets/js/bootstrap-typeahead.js"></script> - <script src="assets/js/bootstrap-affix.js"></script> - - <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> - <script src="assets/js/holder/holder.js"></script> - <script src="assets/js/google-code-prettify/prettify.js"></script> - - <script src="assets/js/application.js"></script> - - {{#production}} - <!-- Analytics - ================================================== --> - <script> - var _gauges = _gauges || []; - (function() { - var t = document.createElement('script'); - t.type = 'text/javascript'; - t.async = true; - t.id = 'gauges-tracker'; - t.setAttribute('data-site-id', '4f0dc9fef5a1f55508000013'); - t.src = '//secure.gaug.es/track.js'; - var s = document.getElementsByTagName('script')[0]; - s.parentNode.insertBefore(t, s); - })(); - </script> - {{/production}} - - </body> -</html> diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache deleted file mode 100644 index 1562d9d4d..000000000 --- a/docs/templates/pages/components.mustache +++ /dev/null @@ -1,1818 +0,0 @@ -<!-- Subhead -================================================== --> -<header class="bs-docs-jumbotron subhead"> - <div class="container"> - <h1>Components</h1> - <p class="lead">Dozens of reusable components built to provide navigation, alerts, popovers, and more.</p> - </div> -</header> - - - <div class="container"> - - <!-- Docs nav - ================================================== --> - <div class="row"> - <div class="span3 bs-docs-sidebar"> - <ul class="nav nav-list bs-docs-sidenav"> - <li><a href="#dropdowns"><i class="glyphicon-chevron-right"></i> Dropdowns</a></li> - <li><a href="#buttonGroups"><i class="glyphicon-chevron-right"></i> Button groups</a></li> - <li><a href="#buttonDropdowns"><i class="glyphicon-chevron-right"></i> Button dropdowns</a></li> - <li><a href="#navs"><i class="glyphicon-chevron-right"></i> Navs</a></li> - <li><a href="#navbar"><i class="glyphicon-chevron-right"></i> Navbar</a></li> - <li><a href="#breadcrumbs"><i class="glyphicon-chevron-right"></i> Breadcrumbs</a></li> - <li><a href="#pagination"><i class="glyphicon-chevron-right"></i> Pagination</a></li> - <li><a href="#counters"><i class="glyphicon-chevron-right"></i> Counters</a></li> - <li><a href="#typography"><i class="glyphicon-chevron-right"></i> Typography</a></li> - <li><a href="#thumbnails"><i class="glyphicon-chevron-right"></i> Thumbnails</a></li> - <li><a href="#alerts"><i class="glyphicon-chevron-right"></i> Alerts</a></li> - <li><a href="#progress"><i class="glyphicon-chevron-right"></i> Progress bars</a></li> - <li><a href="#media"><i class="glyphicon-chevron-right"></i> Media object</a></li> - <li><a href="#misc"><i class="glyphicon-chevron-right"></i> Misc</a></li> - </ul> - </div> - <div class="span9"> - - - - <!-- Dropdowns - ================================================== --> - <section id="dropdowns"> - <div class="page-header"> - <h1>Dropdown menus</h1> - </div> - <p class="lead">Toggleable, contextual menu for displaying lists of links. Made interactive with the <a href="./javascript.html#dropdowns">dropdown JavaScript plugin</a>.</p> - - <h3>Example</h3> - <p>Wrap the dropdown's trigger and the dropdown menu within <code>.dropdown</code>, or another element that declares <code>position: relative;</code>. Then add the menu's HTML.</p> - <div class="bs-docs-example"> - <div class="dropdown clearfix"> - <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu" style="display: block; position: static; margin-bottom: 5px; *width: 180px;"> - <li><a tabindex="-1" href="#">Action</a></li> - <li><a tabindex="-1" href="#">Another action</a></li> - <li><a tabindex="-1" href="#">Something else here</a></li> - <li class="divider"></li> - <li><a tabindex="-1" href="#">Separated link</a></li> - </ul> - </div> - </div>{{! /example }} -<pre class="prettyprint linenums"> -<div class="dropdown"> - <!-- Link or button to toggle dropdown --> - <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu"> - <li><a tabindex="-1" href="#">Action</a></li> - <li><a tabindex="-1" href="#">Another action</a></li> - <li><a tabindex="-1" href="#">Something else here</a></li> - <li class="divider"></li> - <li><a tabindex="-1" href="#">Separated link</a></li> - </ul> -</div> -</pre> - - <h3>Aligning the menus</h3> - <p>Add <code>.pull-right</code> to a <code>.dropdown-menu</code> to right align the dropdown menu.</p> -<pre class="prettyprint linenums"> -<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="dLabel"> - ... -</ul> -</pre> - - <h3>Disabled menu options</h3> - <p>Add <code>.disabled</code> to a <code><li></code> in the dropdown to disable the link.</p> - <div class="bs-docs-example"> - <div class="dropdown clearfix"> - <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu" style="display: block; position: static; margin-bottom: 5px; *width: 180px;"> - <li><a tabindex="-1" href="#">Regular link</a></li> - <li class="disabled"><a tabindex="-1" href="#">Disabled link</a></li> - <li><a tabindex="-1" href="#">Another link</a></li> - </ul> - </div> - </div>{{! /example }} -<pre class="prettyprint linenums"> -<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu"> - <li><a tabindex="-1" href="#">{{_i}}Regular link{{/i}}</a></li> - <li class="disabled"><a tabindex="-1" href="#">{{_i}}Disabled link{{/i}}</a></li> - <li><a tabindex="-1" href="#">{{_i}}Another link{{/i}}</a></li> -</ul> -</pre> - </section> - - - - - <!-- Button Groups - ================================================== --> - <section id="buttonGroups"> - <div class="page-header"> - <h1>Button groups</h1> - </div> - <p class="lead">Group a series of buttons together on a single line with the button group. Add on optional JavaScript radio and checkbox style behavior with <a href="./javascript.html#buttons">our buttons plugin</a>.</p> - - <h3>Single button group</h3> - <p>Wrap a series of buttons with <code>.btn</code> in <code>.btn-group</code>.</p> - <div class="bs-docs-example"> - <div class="btn-group" style="margin: 9px 0 5px;"> - <button class="btn">Left</button> - <button class="btn">Middle</button> - <button class="btn">Right</button> - </div> - </div> -<pre class="prettyprint linenums"> -<div class="btn-group"> - <button class="btn">Left</button> - <button class="btn">Middle</button> - <button class="btn">Right</button> -</div> -</pre> - - <h3>Multiple button groups</h3> - <p>Combine sets of <code><div class="btn-group"></code> into a <code><div class="btn-toolbar"></code> for more complex components.</p> - <div class="bs-docs-example"> - <div class="btn-toolbar" style="margin: 0;"> - <div class="btn-group"> - <button class="btn">1</button> - <button class="btn">2</button> - <button class="btn">3</button> - <button class="btn">4</button> - </div> - <div class="btn-group"> - <button class="btn">5</button> - <button class="btn">6</button> - <button class="btn">7</button> - </div> - <div class="btn-group"> - <button class="btn">8</button> - </div> - </div> - </div> -<pre class="prettyprint linenums"> -<div class="btn-toolbar"> - <div class="btn-group"> - ... - </div> -</div> -</pre> - - <h3>Vertical button groups</h3> - <p>Make a set of buttons appear vertically stacked rather than horizontally.</p> - <div class="bs-docs-example"> - <div class="btn-group btn-group-vertical"> - <button type="button" class="btn"><i class="glyphicon-align-left"></i></button> - <button type="button" class="btn"><i class="glyphicon-align-center"></i></button> - <button type="button" class="btn"><i class="glyphicon-align-right"></i></button> - <button type="button" class="btn"><i class="glyphicon-align-justify"></i></button> - </div> - </div> -<pre class="prettyprint linenums"> -<div class="btn-group btn-group-vertical"> - ... -</div> -</pre> - - <h3>Justified button groups</h3> - <p>Make a group of buttons stretch at the same size to span the entire width of its parent. <strong>This only works with <code><a></code> elements</strong> as the <code><button></code> doesn't pick up these styles.</p> - <div class="bs-docs-example"> - <div class="btn-group btn-group-justified"> - <a href="#" class="btn">Left</a> - <a href="#" class="btn">Right</a> - <a href="#" class="btn">Middle</a> - </div> - </div> -<pre class="prettyprint linenums"> -<div class="btn-group btn-group-justified"> - ... -</div> -</pre> - - </section> - - - - <!-- Split button dropdowns - ================================================== --> - <section id="buttonDropdowns"> - <div class="page-header"> - <h1>Button dropdown menus</h1> - </div> - <p class="lead">Use any button to trigger a dropdown menu by placing it within a <code>.btn-group</code> and providing the proper menu markup. Requires the <a href="./javascript.html#dropdowns">Bootstrap dropdown plugin</a>.</p> - - <h3>Single or split button</h3> - <p>Turn a button into dropdown toggle, or add a second button to toggle the dropdown while retaining the primary button action.</p> - <div class="bs-docs-example"> - <div class="btn-toolbar" style="margin-bottom: 10px;"> - <div class="btn-group"> - <button class="btn dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button> - <ul class="dropdown-menu"> - <li><a href="#">Action</a></li> - <li><a href="#">Another action</a></li> - <li><a href="#">Something else here</a></li> - <li class="divider"></li> - <li><a href="#">Separated link</a></li> - </ul> - </div><!-- /btn-group --> - <div class="btn-group"> - <button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button> - <ul class="dropdown-menu"> - <li><a href="#">Action</a></li> - <li><a href="#">Another action</a></li> - <li><a href="#">Something else here</a></li> - <li class="divider"></li> - <li><a href="#">Separated link</a></li> - </ul> - </div><!-- /btn-group --> - <div class="btn-group"> - <button class="btn btn-danger dropdown-toggle" data-toggle="dropdown">Danger <span class="caret"></span></button> - <ul class="dropdown-menu"> - <li><a href="#">Action</a></li> - <li><a href="#">Another action</a></li> - <li><a href="#">Something else here</a></li> - <li class="divider"></li> - <li><a href="#">Separated link</a></li> - </ul> - </div><!-- /btn-group --> - <div class="btn-group"> - <button class="btn btn-warning dropdown-toggle" data-toggle="dropdown">Warning <span class="caret"></span></button> - <ul class="dropdown-menu"> - <li><a href="#">Action</a></li> - <li><a href="#">Another action</a></li> - <li><a href="#">Something else here</a></li> - <li class="divider"></li> - <li><a href="#">Separated link</a></li> - </ul> - </div><!-- /btn-group --> - <div class="btn-group"> - <button class="btn btn-success dropdown-toggle" data-toggle="dropdown">Success <span class="caret"></span></button> - <ul class="dropdown-menu"> - <li><a href="#">Action</a></li> - <li><a href="#">Another action</a></li> - <li><a href="#">Something else here</a></li> - <li class="divider"></li> - <li><a href="#">Separated link</a></li> - </ul> - </div><!-- /btn-group --> - </div> - - <div class="btn-toolbar" style="margin: 0;"> - <div class="btn-group"> - <button class="btn">Action</button> - <button class="btn dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button> - <ul class="dropdown-menu"> - <li><a href="#">Action</a></li> - <li><a href="#">Another action</a></li> - <li><a href="#">Something else here</a></li> - <li class="divider"></li> - <li><a href="#">Separated link</a></li> - </ul> - </div><!-- /btn-group --> - <div class="btn-group"> - <button class="btn btn-primary">Action</button> - <button class="btn btn-primary dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button> - <ul class="dropdown-menu"> - <li><a href="#">Action</a></li> - <li><a href="#">Another action</a></li> - <li><a href="#">Something else here</a></li> - <li class="divider"></li> - <li><a href="#">Separated link</a></li> - </ul> - </div><!-- /btn-group --> - <div class="btn-group"> - <button class="btn btn-danger">Danger</button> - <button class="btn btn-danger dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button> - <ul class="dropdown-menu"> - <li><a href="#">Action</a></li> - <li><a href="#">Another action</a></li> - <li><a href="#">Something else here</a></li> - <li class="divider"></li> - <li><a href="#">Separated link</a></li> - </ul> - </div><!-- /btn-group --> - <div class="btn-group"> - <button class="btn btn-warning">Warning</button> - <button class="btn btn-warning dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button> - <ul class="dropdown-menu"> - <li><a href="#">Action</a></li> - <li><a href="#">Another action</a></li> - <li><a href="#">Something else here</a></li> - <li class="divider"></li> - <li><a href="#">Separated link</a></li> - </ul> - </div><!-- /btn-group --> - <div class="btn-group"> - <button class="btn btn-success">Success</button> - <button class="btn btn-success dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button> - <ul class="dropdown-menu"> - <li><a href="#">Action</a></li> - <li><a href="#">Another action</a></li> - <li><a href="#">Something else here</a></li> - <li class="divider"></li> - <li><a href="#">Separated link</a></li> - </ul> - </div><!-- /btn-group --> - </div><!-- /btn-toolbar --> - </div> -<pre class="prettyprint linenums"> -<-- Single button --> -<div class="btn-group"> - <button type="button" class="btn dropdown-toggle" data-toggle="dropdown"> - Action - <span class="caret"></span> - </button> - <ul class="dropdown-menu"> - <!-- dropdown menu links --> - </ul> -</div> - -<-- Split button --> -<div class="btn-group"> - <button class="btn">Action</button> - <button class="btn dropdown-toggle" data-toggle="dropdown"> - <span class="caret"></span> - </button> - <ul class="dropdown-menu"> - <!-- dropdown menu links --> - </ul> -</div> -</pre> - - <h3>Works with all button sizes</h3> - <p>Button dropdowns work at any size: <code>.btn-large</code>, <code>.btn-small</code>, or <code>.btn-mini</code>.</p> - <div class="bs-docs-example"> - <div class="btn-toolbar" style="margin: 0;"> - <div class="btn-group"> - <button class="btn btn-large dropdown-toggle" data-toggle="dropdown">Large button <span class="caret"></span></button> - <ul class="dropdown-menu"> - <li><a href="#">Action</a></li> - <li><a href="#">Another action</a></li> - <li><a href="#">Something else here</a></li> - <li class="divider"></li> - <li><a href="#">Separated link</a></li> - </ul> - </div><!-- /btn-group --> - <div class="btn-group"> - <button class="btn btn-small dropdown-toggle" data-toggle="dropdown">Small button <span class="caret"></span></button> - <ul class="dropdown-menu"> - <li><a href="#">Action</a></li> - <li><a href="#">Another action</a></li> - <li><a href="#">Something else here</a></li> - <li class="divider"></li> - <li><a href="#">Separated link</a></li> - </ul> - </div><!-- /btn-group --> - <div class="btn-group"> - <button class="btn btn-mini dropdown-toggle" data-toggle="dropdown">Mini button <span class="caret"></span></button> - <ul class="dropdown-menu"> - <li><a href="#">Action</a></li> - <li><a href="#">Another action</a></li> - <li><a href="#">Something else here</a></li> - <li class="divider"></li> - <li><a href="#">Separated link</a></li> - </ul> - </div><!-- /btn-group --> - </div><!-- /btn-toolbar --> - </div>{{! /example }} - - <h3>Dropup buttons</h3> - <p>Trigger dropdown menus above elements by adding <code>.dropup</code> to the parent.</p> - <div class="bs-docs-example"> - <div class="btn-toolbar"> - <div class="btn-group dropup"> - <button class="btn">Dropup</button> - <button class="btn dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button> - <ul class="dropdown-menu"> - <li><a href="#">Action</a></li> - <li><a href="#">Another action</a></li> - <li><a href="#">Something else here</a></li> - <li class="divider"></li> - <li><a href="#">Separated link</a></li> - </ul> - </div><!-- /btn-group --> - <div class="btn-group dropup"> - <button class="btn primary">Right dropup</button> - <button class="btn primary dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button> - <ul class="dropdown-menu pull-right"> - <li><a href="#">Action</a></li> - <li><a href="#">Another action</a></li> - <li><a href="#">Something else here</a></li> - <li class="divider"></li> - <li><a href="#">Separated link</a></li> - </ul> - </div><!-- /btn-group --> - </div> - </div>{{! /example }} -<pre class="prettyprint linenums"> -<div class="btn-group dropup"> - <button class="btn">Dropup</button> - <button class="btn dropdown-toggle" data-toggle="dropdown"> - <span class="caret"></span> - </button> - <ul class="dropdown-menu"> - <!-- dropdown menu links --> - </ul> -</div> -</pre> - - </section> - - - - <!-- Navs - ================================================== --> - <section id="navs"> - <div class="page-header"> - <h1>Navs</small></h1> - </div> - - <p class="lead">Navs available in Bootstrap have shared markup, starting with the base <code>.nav</code> class, as well as shared states. Swap modifier classes to switch between each style.</p> - - <h2>Tabs</h2> - <p>Note the <code>.nav-tabs</code> class requires the <code>.nav</code> base class.</p> - <div class="bs-docs-example"> - <ul class="nav nav-tabs"> - <li class="active"><a href="#">Home</a></li> - <li><a href="#">Profile</a></li> - <li><a href="#">Messages</a></li> - </ul> - </div> -<pre class="prettyprint linenums"> -<ul class="nav nav-tabs"> - <li class="active"> - <a href="#">Home</a> - </li> - <li><a href="#">...</a></li> - <li><a href="#">...</a></li> -</ul> -</pre> - - <h2>List</h2> - <p>Swap the tabs class for <code>.nav-list</code>.</p> - <div class="bs-docs-example"> - <ul class="nav nav-list" style="max-width: 300px;"> - <li class="active"><a href="#">Home</a></li> - <li><a href="#">Profile</a></li> - <li><a href="#">Messages</a></li> - </ul> - </div> -<pre class="prettyprint linenums"> -<ul class="nav nav-list"> - <li class="active"> - <a href="#">Home</a> - </li> - <li><a href="#">...</a></li> - <li><a href="#">...</a></li> -</ul> -</pre> - - <h2>Pills</h2> - <p>Take that same HTML, but use <code>.nav-pills</code> instead:</p> - <div class="bs-docs-example"> - <ul class="nav nav-pills"> - <li class="active"><a href="#">Home</a></li> - <li><a href="#">Profile</a></li> - <li><a href="#">Messages</a></li> - </ul> - </div> -<pre class="prettyprint linenums"> -<ul class="nav nav-pills"> - <li class="active"> - <a href="#">Home</a> - </li> - <li><a href="#">...</a></li> - <li><a href="#">...</a></li> -</ul> -</pre> - <p>Pills are also vertically stackable. Just add <code>.nav-stacked</code>.</p> - <div class="bs-docs-example"> - <ul class="nav nav-pills nav-stacked" style="max-width: 300px;"> - <li class="active"><a href="#">Home</a></li> - <li><a href="#">Profile</a></li> - <li><a href="#">Messages</a></li> - </ul> - </div> -<pre class="prettyprint linenums"> -<ul class="nav nav-pills nav-stacked"> - ... -</ul> -</pre> - - <h2>Options</h2> - - <h3>Justified links</h3> - <p>Easily make tabs or pills equal widths of their parent with <code>.nav-justified</code>.</p> - <div class="bs-docs-example"> - <ul class="nav nav-tabs nav-justified"> - <li class="active"><a href="#">Home</a></li> - <li><a href="#">Profile</a></li> - <li><a href="#">Messages</a></li> - </ul> - <br> - <ul class="nav nav-pills nav-justified"> - <li class="active"><a href="#">Home</a></li> - <li><a href="#">Profile</a></li> - <li><a href="#">Messages</a></li> - </ul> - </div> -<pre class="prettyprint linenums"> -<ul class="nav nav-tabs nav-justified"> - ... -</ul> - -<ul class="nav nav-pills nav-justified"> - ... -</ul> -</pre> - - <h3>Disabled state</h3> - <p>For any nav component (tabs, pills, or list), add <code>.disabled</code> for <strong>gray links and no hover effects</strong>. Links will remain clickable, however, unless you remove the <code>href</code> attribute. Alternatively, you could implement custom JavaScript to prevent those clicks.</p> - <div class="bs-docs-example"> - <ul class="nav nav-pills"> - <li><a href="#">Clickable link</a></li> - <li><a href="#">Clickable link</a></li> - <li class="disabled"><a href="#">Disabled link</a></li> - </ul> - </div> -<pre class="prettyprint linenums"> -<ul class="nav nav-pills"> - ... - <li class="disabled"><a href="#">Home</a></li> - ... -</ul> -</pre> - - <h3>Component alignment</h3> - <p>To align nav links, use the <code>.pull-left</code> or <code>.pull-right</code> utility classes. Both classes will add a CSS float in the specified direction.</p> - - - <hr class="bs-docs-separator"> - - - <h2>Dropdowns</h2> - <p>Add dropdown menus with a little extra HTML and the <a href="./javascript.html#dropdowns">dropdowns JavaScript plugin</a>.</p> - - <h3>Tabs with dropdowns</h3> - <div class="bs-docs-example"> - <ul class="nav nav-tabs"> - <li class="active"><a href="#">Home</a></li> - <li><a href="#">Help</a></li> - <li class="dropdown"> - <a class="dropdown-toggle" data-toggle="dropdown" href="#">Dropdown <b class="caret"></b></a> - <ul class="dropdown-menu"> - <li><a href="#">Action</a></li> - <li><a href="#">Another action</a></li> - <li><a href="#">Something else here</a></li> - <li class="divider"></li> - <li><a href="#">Separated link</a></li> - </ul> - </li> - </ul> - </div> -<pre class="prettyprint linenums"> -<ul class="nav nav-tabs"> - <li class="dropdown"> - <a class="dropdown-toggle" - data-toggle="dropdown" - href="#"> - Dropdown - <b class="caret"></b> - </a> - <ul class="dropdown-menu"> - <!-- links --> - </ul> - </li> -</ul> -</pre> - - <h3>Pills with dropdowns</h3> - <div class="bs-docs-example"> - <ul class="nav nav-pills"> - <li class="active"><a href="#">Home</a></li> - <li><a href="#">Help</a></li> - <li class="dropdown"> - <a class="dropdown-toggle" data-toggle="dropdown" href="#">Dropdown <b class="caret"></b></a> - <ul class="dropdown-menu"> - <li><a href="#">Action</a></li> - <li><a href="#">Another action</a></li> - <li><a href="#">Something else here</a></li> - <li class="divider"></li> - <li><a href="#">Separated link</a></li> - </ul> - </li> - </ul> - </div>{{! /example }} -<pre class="prettyprint linenums"> -<ul class="nav nav-pills"> - <li class="dropdown"> - <a class="dropdown-toggle" - data-toggle="dropdown" - href="#"> - Dropdown - <b class="caret"></b> - </a> - <ul class="dropdown-menu"> - <!-- links --> - </ul> - </li> -</ul> -</pre> - - </section> - - - - <!-- Navbar - ================================================== --> - <section id="navbar"> - <div class="page-header"> - <h1>Navbar</h1> - </div> - - - <h2>Basic navbar</h2> - <p>To start, navbars are static (not fixed to the top) and include support for a project name and basic navigation. Place one anywhere within a <code>.container</code>, which sets the width of your site and content.</p> - <div class="bs-docs-example"> - <div class="navbar"> - <a class="brand" href="#">Title</a> - <ul class="nav"> - <li class="active"><a href="#">Home</a></li> - <li><a href="#">Link</a></li> - <li><a href="#">Link</a></li> - </ul> - </div> - </div>{{! /example }} -<pre class="prettyprint linenums"> -<div class="navbar"> - <a class="brand" href="#">Title</a> - <ul class="nav"> - <li class="active"><a href="#">Home</a></li> - <li><a href="#">Link</a></li> - <li><a href="#">Link</a></li> - </ul> -</div> -</pre> - - - <hr class="bs-docs-separator"> - - - <h2>Navbar components</h2> - - <h3>Brand</h3> - <p>A simple link to show your brand or project name only requires an anchor tag.</p> - <div class="bs-docs-example"> - <div class="navbar"> - <a class="brand" href="#">Title</a> - </div> - </div>{{! /example }} -<pre class="prettyprint linenums"> -<a class="brand" href="#">Project name</a> -</pre> - - <h3>Nav links</h3> - <p>Nav items are simple to add via unordered lists.</p> - <div class="bs-docs-example"> - <div class="navbar"> - <ul class="nav"> - <li class="active"><a href="#">Home</a></li> - <li><a href="#">Link</a></li> - <li><a href="#">Link</a></li> - </ul> - </div> - </div>{{! /example }} -<pre class="prettyprint linenums"> -<ul class="nav"> - <li class="active"> - <a href="#">Home</a> - </li> - <li><a href="#">Link</a></li> - <li><a href="#">Link</a></li> -</ul> -</pre> - <p>You can easily add dividers to your nav links with an empty list item and a simple class. Just add the appropriate class to <code><li></code> elements between links. Dividers will be horizontal to start, but at resolutions above 768px they become vertical with the navigation.</p> - <div class="bs-docs-example"> - <div class="navbar"> - <div class="navbar-inner"> - <ul class="nav"> - <li class="active"><a href="#">Home</a></li> - <li class="divider"></li> - <li><a href="#">Link</a></li> - <li class="divider"></li> - <li><a href="#">Link</a></li> - <li class="divider"></li> - </ul> - </div> - </div> - </div>{{! /example }} -<pre class="prettyprint linenums"> -<ul class="nav"> - ... - <li class="divider"></li> - ... -</ul> -</pre> - - <h3>Forms</h3> - <p>To properly style and position a form within the navbar, add the appropriate classes as shown below. For a default form, include <code>.navbar-form</code> and either <code>.pull-left</code> or <code>.pull-right</code> to properly align it.</p> - <div class="bs-docs-example"> - <div class="navbar"> - <form class="navbar-form pull-left"> - <input type="text" style="width: 200px;"> - <button type="submit" class="btn">Submit</button> - </form> - </div> - </div>{{! /example }} -<pre class="prettyprint linenums"> -<form class="pull-left"> - <input type="text" style="width: 200px;"> - <button type="submit" class="btn">Submit</button> -</form> -</pre> - - <h3>Component alignment</h3> - <p>Align nav links, search form, or text, use the <code>.pull-left</code> or <code>.pull-right</code> utility classes. Both classes will add a CSS float in the specified direction.</p> - - <h3>Using dropdowns</h3> - <p>Add dropdowns and dropups to the nav with a bit of markup and the <a href="./javascript.html#dropdowns">dropdowns JavaScript plugin</a>.</p> -<pre class="prettyprint linenums"> -<ul class="nav"> - <li class="dropdown"> - <a href="#" class="dropdown-toggle" data-toggle="dropdown"> - Account - <b class="caret"></b> - </a> - <ul class="dropdown-menu"> - ... - </ul> - </li> -</ul> -</pre> - <p>Visit the <a href="./javascript.html#dropdowns">JavaScript dropdowns documentation</a> for more markup and information on calling dropdowns.</p> - - <h3>Text</h3> - <p>Wrap strings of text in an element with <code>.navbar-text</code>, usually on a <code><p></code> tag for proper leading and color.</p> - - - <hr class="bs-docs-separator"> - - - <h2>Optional display variations</h2> - <p>Fix the navbar to the top or bottom of the viewport with an additional class on the outermost div, <code>.navbar</code>.</p> - - <h3>Fixed to top</h3> - <p>Add <code>.navbar-fixed-top</code> and remember to account for the hidden area underneath it by adding at least 40px <code>padding</code> to the <code><body></code>. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.</p> - <div class="bs-docs-example bs-navbar-top-example"> - <div class="navbar navbar-fixed-top" style="position: absolute;"> - <div class="container" style="width: auto;"> - <a class="brand" href="#">Title</a> - <ul class="nav"> - <li class="active"><a href="#">Home</a></li> - <li><a href="#">Link</a></li> - <li><a href="#">Link</a></li> - </ul> - </div> - </div> - </div>{{! /example }} -<pre class="prettyprint linenums"> -<div class="navbar navbar-fixed-top"> - ... -</div> -</pre> - - <h3>Fixed to bottom</h3> - <p>Add <code>.navbar-fixed-bottom</code> instead.</p> - <div class="bs-docs-example bs-navbar-bottom-example"> - <div class="navbar navbar-fixed-bottom" style="position: absolute;"> - <div class="container" style="width: auto;"> - <a class="brand" href="#">Title</a> - <ul class="nav"> - <li class="active"><a href="#">Home</a></li> - <li><a href="#">Link</a></li> - <li><a href="#">Link</a></li> - </ul> - </div> - </div> - </div>{{! /example }} -<pre class="prettyprint linenums"> -<div class="navbar navbar-fixed-bottom"> - ... -</div> -</pre> - - <h3>Static top navbar</h3> - <p>Create a full-width navbar that scrolls away with the page by adding <code>.navbar-static-top</code>. Unlike the <code>.navbar-fixed-top</code> class, you do not need to change any padding on the <code>body</code>.</p> - <div class="bs-docs-example bs-navbar-top-example"> - <div class="navbar navbar-static-top" style="margin: -1px -1px 0;"> - <div class="container" style="width: auto;"> - <a class="brand" href="#">Title</a> - <ul class="nav"> - <li class="active"><a href="#">Home</a></li> - <li><a href="#">Link</a></li> - <li><a href="#">Link</a></li> - </ul> - </div> - </div> - </div>{{! /example }} -<pre class="prettyprint linenums"> -<div class="navbar navbar-static-top"> - ... -</div> -</pre> - - - <hr class="bs-docs-separator"> - - - <h2>Responsive navbar</h2> - <p>To implement a collapsing responsive navbar, wrap your navbar content in a containing div, <code>.nav-collapse.collapse</code>, and add the navbar toggle button, <code>.btn-navbar</code>.</p> - <div class="bs-docs-example"> - <div class="navbar"> - <div class="container"> - <a class="btn btn-navbar" data-toggle="collapse" data-target=".navbar-responsive-collapse"> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - </a> - <a class="brand" href="#">Title</a> - <div class="nav-collapse collapse navbar-responsive-collapse"> - <ul class="nav"> - <li class="active"><a href="#">Home</a></li> - <li><a href="#">Link</a></li> - <li><a href="#">Link</a></li> - <li class="dropdown"> - <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> - <ul class="dropdown-menu"> - <li><a href="#">Action</a></li> - <li><a href="#">Another action</a></li> - <li><a href="#">Something else here</a></li> - <li class="divider"></li> - <li class="nav-header">Nav header</li> - <li><a href="#">Separated link</a></li> - <li><a href="#">One more separated link</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="#">Link</a></li> - <li class="divider"></li> - <li class="dropdown"> - <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> - <ul class="dropdown-menu"> - <li><a href="#">Action</a></li> - <li><a href="#">Another action</a></li> - <li><a href="#">Something else here</a></li> - <li class="divider"></li> - <li><a href="#">Separated link</a></li> - </ul> - </li> - </ul> - </div><!-- /.nav-collapse --> - </div> - - </div><!-- /navbar --> - </div>{{! /example }} -<pre class="prettyprint linenums"> -<div class="navbar"> - <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="#">Project name</a> - - <!-- Everything you want hidden at 940px or less, place within here --> - <div class="nav-collapse collapse"> - <!-- .nav, .navbar-search, .navbar-form, etc --> - </div> - - </div> -</div> -</pre> - <div class="alert alert-info"> - <strong>Heads up!</strong> The responsive navbar requires the <a href="./javascript.html#collapse">collapse plugin</a> and <a href="./scaffolding.html#responsive">responsive Bootstrap CSS file</a>. - </div> - - - <hr class="bs-docs-separator"> - - - <h2>Inverted variation</h2> - <p>Modify the look of the navbar by adding <code>.navbar-inverse</code>.</p> - <div class="bs-docs-example"> - <div class="navbar navbar-inverse" style="position: static;"> - <div class="container"> - <a class="btn btn-navbar" data-toggle="collapse" data-target=".navbar-inverse-collapse"> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - <span class="icon-bar"></span> - </a> - <a class="brand" href="#">Title</a> - <div class="nav-collapse collapse navbar-inverse-collapse"> - <ul class="nav"> - <li class="active"><a href="#">Home</a></li> - <li><a href="#">Link</a></li> - <li><a href="#">Link</a></li> - <li class="dropdown"> - <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> - <ul class="dropdown-menu"> - <li><a href="#">Action</a></li> - <li><a href="#">Another action</a></li> - <li><a href="#">Something else here</a></li> - <li class="divider"></li> - <li class="nav-header">Nav header</li> - <li><a href="#">Separated link</a></li> - <li><a href="#">One more separated link</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="#">Link</a></li> - <li class="divider"></li> - <li class="dropdown"> - <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> - <ul class="dropdown-menu"> - <li><a href="#">Action</a></li> - <li><a href="#">Another action</a></li> - <li><a href="#">Something else here</a></li> - <li class="divider"></li> - <li><a href="#">Separated link</a></li> - </ul> - </li> - </ul> - </div><!-- /.nav-collapse --> - </div> - </div><!-- /navbar --> - </div>{{! /example }} -<pre class="prettyprint linenums"> -<div class="navbar navbar-inverse"> - ... -</div> -</pre> - - </section> - - - - <!-- Breadcrumbs - ================================================== --> - <section id="breadcrumbs"> - <div class="page-header"> - <h1>Breadcrumbs <small></small></h1> - </div> - <p class="lead">Indicate the current page's location within a navigational hierarchy.</p> - - <div class="bs-docs-example"> - <ul class="breadcrumb"> - <li class="active">Home</li> - </ul> - <ul class="breadcrumb"> - <li><a href="#">Home</a></li> - <li class="active">Library</li> - </ul> - <ul class="breadcrumb" style="margin-bottom: 5px;"> - <li><a href="#">Home</a></li> - <li><a href="#">Library</a></li> - <li class="active">Data</li> - </ul> - </div> -<pre class="prettyprint linenums"> -<ul class="breadcrumb"> - <li><a href="#">Home</a></li> - <li><a href="#">Library</a></li> - <li class="active">Data</li> -</ul> -</pre> - - </section> - - - - <!-- Pagination - ================================================== --> - <section id="pagination"> - <div class="page-header"> - <h1>Pagination</h1> - </div> - <p class="lead">Provide pagination links for your site or app with the multi-page pagination component, or the simpler <a href="./components.html#pagination-pager">pager alternative</a>.</p> - - <h2>Standard pagination</h2> - <p>Simple pagination inspired by Rdio, great for apps and search results. The large block is hard to miss, easily scalable, and provides large click areas.</p> - <div class="bs-docs-example"> - <ul class="pagination"> - <li><a href="#">«</a></li> - <li><a href="#">1</a></li> - <li><a href="#">2</a></li> - <li><a href="#">3</a></li> - <li><a href="#">4</a></li> - <li><a href="#">5</a></li> - <li><a href="#">»</a></li> - </ul> - </div> -<pre class="prettyprint linenums"> -<ul class="pagination"> - <li><a href="#">Prev</a></li> - <li><a href="#">1</a></li> - <li><a href="#">2</a></li> - <li><a href="#">3</a></li> - <li><a href="#">4</a></li> - <li><a href="#">5</a></li> - <li><a href="#">Next</a></li> -</ul> -</pre> - - <h3>Disabled and active states</h3> - <p>Links are customizable for different circumstances. Use <code>.disabled</code> for unclickable links and <code>.active</code> to indicate the current page.</p> - <div class="bs-docs-example"> - <ul class="pagination"> - <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="#">5</a></li> - <li><a href="#">»</a></li> - </ul> - </div> -<pre class="prettyprint linenums"> -<ul class="pagination"> - <li class="disabled"><a href="#">&laquo;</a></li> - <li class="active"><a href="#">1</a></li> - ... -</ul> -</pre> - <p>You can optionally swap out active or disabled anchors for spans to remove click functionality while retaining intended styles.</p> -<pre class="prettyprint linenums"> -<ul class="pagination"> - <li class="disabled"><span>&laquo;</span></li> - <li class="active"><span>1</span></li> - ... -</ul> -</pre> - - <h3>Sizes</h3> - <p>Fancy larger or smaller pagination? Add <code>.pagination-large</code>, <code>.pagination-small</code>, or <code>.pagination-mini</code> for additional sizes.</p> - <div class="bs-docs-example"> - <div> - <ul class="pagination pagination-large"> - <li><a href="#">«</a></li> - <li><a href="#">1</a></li> - <li><a href="#">2</a></li> - <li><a href="#">3</a></li> - <li><a href="#">4</a></li> - <li><a href="#">5</a></li> - <li><a href="#">»</a></li> - </ul> - </div> - <div> - <ul class="pagination"> - <li><a href="#">«</a></li> - <li><a href="#">1</a></li> - <li><a href="#">2</a></li> - <li><a href="#">3</a></li> - <li><a href="#">4</a></li> - <li><a href="#">5</a></li> - <li><a href="#">»</a></li> - </ul> - </div> - <div> - <ul class="pagination pagination-small"> - <li><a href="#">«</a></li> - <li><a href="#">1</a></li> - <li><a href="#">2</a></li> - <li><a href="#">3</a></li> - <li><a href="#">4</a></li> - <li><a href="#">5</a></li> - <li><a href="#">»</a></li> - </ul> - </div> - <div> - <ul class="pagination pagination-mini"> - <li><a href="#">«</a></li> - <li><a href="#">1</a></li> - <li><a href="#">2</a></li> - <li><a href="#">3</a></li> - <li><a href="#">4</a></li> - <li><a href="#">5</a></li> - <li><a href="#">»</a></li> - </ul> - </div> - </div> -<pre class="prettyprint linenums"> -<ul class="pagination pagination-large"> - ... -</ul> -<ul class="pagination"> - ... -</ul> -<ul class="pagination pagination-small"> - ... -</ul> -<ul class="pagination pagination-mini"> - ... -</ul> -</pre> - - <h2 id="pagination-pager">Pager</h2> - <p>Quick previous and next links for simple pagination implementations with light markup and styles. It's great for simple sites like blogs or magazines.</p> - - <h3>Default example</h3> - <p>By default, the pager centers links.</p> - <div class="bs-docs-example"> - <ul class="pager"> - <li><a href="#">Previous</a></li> - <li><a href="#">Next</a></li> - </ul> - </div> -<pre class="prettyprint linenums"> -<ul class="pager"> - <li><a href="#">Previous</a></li> - <li><a href="#">Next</a></li> -</ul> -</pre> - - <h3>Aligned links</h3> - <p>Alternatively, you can align each link to the sides:</p> - <div class="bs-docs-example"> - <ul class="pager"> - <li class="previous"><a href="#">← Older</a></li> - <li class="next"><a href="#">Newer →</a></li> - </ul> - </div> -<pre class="prettyprint linenums"> -<ul class="pager"> - <li class="previous"> - <a href="#">&larr; Older</a> - </li> - <li class="next"> - <a href="#">Newer &rarr;</a> - </li> -</ul> -</pre> - - <h3>Optional disabled state</h3> - <p>Pager links also use the general <code>.disabled</code> utility class from the pagination.</p> - <div class="bs-docs-example"> - <ul class="pager"> - <li class="previous disabled"><a href="#">← Older</a></li> - <li class="next"><a href="#">Newer →</a></li> - </ul> - </div> -<pre class="prettyprint linenums"> -<ul class="pager"> - <li class="previous disabled"> - <a href="#">&larr; Older</a> - </li> - ... -</ul> -</pre> - - </section> - - - - <!-- Counters - ================================================== --> - <section id="counters"> - <div class="page-header"> - <h1>Counters</h1> - </div> - <p class="lead">Easily highlight new or unread items by adding a <code><span class="counter"></code> to links, Bootstrap navs, and more.</p> - - <div class="bs-docs-example"> - <a href="#">Inbox <span class="counter">42</span></a> - </div> -<pre class="prettyprint linenums"> -<a href="#"> - Inbox - <span class="counter">42</span> -</a> -</pre> - - <h4>Self collapsing</h4> - <p>When there are no new or unread items, counters will simply collapse (via CSS's <code>:empty</code> selector) provided no content exists within.</p> - - <h4>Adapts to active nav states</h4> - <p>Built-in styles are included for placing counters in active states in pill and list navigations.</p> - <div class="bs-docs-example"> - <ul class="nav nav-pills"> - <li class="active"><a href="#">Home <span class="counter">42</span></a></li> - <li><a href="#">Profile</a></li> - <li><a href="#">Messages <span class="counter">3</span></a></li> - </ul> - <br> - <ul class="nav nav-list" style="max-width: 260px;"> - <li class="active"> - <a href="#"> - <span class="counter pull-right">42</span> - Home - </a> - </li> - <li><a href="#">Profile</a></li> - <li> - <a href="#"> - <span class="counter pull-right">3</span> - Messages - </a> - </li> - </ul> - </div> -<pre class="prettyprint linenums"> -<ul class="nav nav-list"> - <li class="active"> - <a href="#">Home</a> - </li> - <li><a href="#">...</a></li> - <li><a href="#">...</a></li> -</ul> -</pre> - - </section> - - - - <!-- Typographic components - ================================================== --> - <section id="typography"> - <div class="page-header"> - <h1>Typographic components</h1> - </div> - - <h2>Jumbotron</h2> - <p>A lightweight, flexible component to showcase key content on your site. It works well on marketing and content-heavy sites.</p> - <div class="bs-docs-example"> - <div class="jumbotron"> - <h1>Hello, world!</h1> - <p>This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p> - <p><a class="btn btn-primary btn-large">Learn more</a></p> - </div> - </div> -<pre class="prettyprint linenums"> -<div class="jumbotron"> - <h1>Heading</h1> - <p>Tagline</p> - <p> - <a class="btn btn-primary btn-large"> - Learn more - </a> - </p> -</div> -</pre> - - <h2>Page header</h2> - <p>A simple shell for an <code>h1</code> to appropriately space out and segment sections of content on a page. It can utilize the <code>h1</code>'s default <code>small</code>, element as well most other components (with additional styles).</p> - <div class="bs-docs-example"> - <div class="page-header"> - <h1>Example page header <small>Subtext for header</small></h1> - </div> - </div> -<pre class="prettyprint linenums"> -<div class="page-header"> - <h1>Example page header <small>Subtext for header</small></h1> -</div> -</pre> - - </section> - - - - <!-- Thumbnails - ================================================== --> - <section id="thumbnails"> - <div class="page-header"> - <h1>Thumbnails</h1> - </div> - <p class="lead">Extend Bootstrap's <a href="./css.html#gridSystem">grid system</a> with the thumbnail component to easily display grids of images, videos, text, and more.</p> - - <h3>Default thumbnails</h3> - <p>By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.</p> - <div class="bs-docs-example"> - <div class="row"> - <div class="span3"> - <a href="#" class="thumbnail"> - <img data-src="holder.js/260x180" alt=""> - </a> - </div> - <div class="span3"> - <a href="#" class="thumbnail"> - <img data-src="holder.js/260x180" alt=""> - </a> - </div> - <div class="span3"> - <a href="#" class="thumbnail"> - <img data-src="holder.js/260x180" alt=""> - </a> - </div> - <div class="span3"> - <a href="#" class="thumbnail"> - <img data-src="holder.js/260x180" alt=""> - </a> - </div> - </div> - </div>{{! /.bs-docs-example }} -<pre class="prettyprint linenums"> -<div class="row"> - <div class="span3"> - <a href="#" class="thumbnail"> - <img src="holder.js/260x180" alt=""> - </a> - </div> - ... -</div> -</pre> - - <h3>Custom content thumbnails</h3> - <p>With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.</p> - <div class="bs-docs-example"> - <div class="row"> - <div class="span4"> - <div class="thumbnail"> - <img data-src="holder.js/300x200" alt=""> - <div class="caption"> - <h3>Thumbnail label</h3> - <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p> - <p><a href="#" class="btn btn-primary">Action</a> <a href="#" class="btn">Action</a></p> - </div> - </div> - </div> - <div class="span4"> - <div class="thumbnail"> - <img data-src="holder.js/300x200" alt=""> - <div class="caption"> - <h3>Thumbnail label</h3> - <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p> - <p><a href="#" class="btn btn-primary">Action</a> <a href="#" class="btn">Action</a></p> - </div> - </div> - </div> - <div class="span4"> - <div class="thumbnail"> - <img data-src="holder.js/300x200" alt=""> - <div class="caption"> - <h3>Thumbnail label</h3> - <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p> - <p><a href="#" class="btn btn-primary">Action</a> <a href="#" class="btn">Action</a></p> - </div> - </div> - </div> - </div> - </div>{{! /.bs-docs-example }} -<pre class="prettyprint linenums"> -<div class="row"> - <div class="span4"> - <div class="thumbnail"> - <img data-src="holder.js/300x200" alt=""> - <h3>Thumbnail label</h3> - <p>Thumbnail caption...</p> - </div> - </div> - ... -</div> -</pre> - - </section> - - - - - <!-- Alerts - ================================================== --> - <section id="alerts"> - <div class="page-header"> - <h1>Alerts</h1> - </div> - <p class="lead">Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages. For inline dismissal, use the <a href="./javascript.html#alerts">alerts jQuery plugin</a>.</p> - - <h3>Default alert</h3> - <p>Wrap any text and an optional dismiss button in <code>.alert</code> for a basic warning alert message. <strong>To ensure proper behavior across all devices</strong>, be sure to use <code><button></code> element with the <code>data-dismiss="alert"</code> data attribute.</p> - <div class="bs-docs-example"> - <div class="alert"> - <button type="button" class="close" data-dismiss="alert">×</button> - <strong>Warning!</strong> Best check yo self, you're not looking too good. - </div> - </div> -<pre class="prettyprint linenums"> -<div class="alert"> - <button type="button" class="close" data-dismiss="alert">&times;</button> - <strong>Warning!</strong> Best check yo self, you're not looking too good. -</div> -</pre> - - <h3>Block alerts</h3> - <p>For longer messages, increase the padding on the top and bottom of the alert wrapper by adding <code>.alert-block</code>.</p> - <div class="bs-docs-example"> - <div class="alert alert-block"> - <button type="button" class="close" data-dismiss="alert">×</button> - <h4>Warning!</h4> - <p>Best check yo self, you're not looking too good. Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.</p> - </div> - </div> -<pre class="prettyprint linenums"> -<div class="alert alert-block"> - <button type="button" class="close" data-dismiss="alert">&times;</button> - <h4>Warning!</h4> - Best check yo self, you're not... -</div> -</pre> - - <h3>Contextual alternatives</h3> - <p>Add optional classes to change an alert's connotation.</p> - <div class="bs-docs-example"> - <div class="alert alert-error"> - <button type="button" class="close" data-dismiss="alert">×</button> - <strong>Oh snap!</strong> Change a few things up and try submitting again. - </div> - <div class="alert alert-success"> - <button type="button" class="close" data-dismiss="alert">×</button> - <strong>Well done!</strong> You successfully read this important alert message. - </div> - <div class="alert alert-info"> - <button type="button" class="close" data-dismiss="alert">×</button> - <strong>Heads up!</strong> This alert needs your attention, but it's not super important. - </div> - </div> -<pre class="prettyprint linenums"> -<div class="alert alert-error">... </div> -<div class="alert alert-success">...</div> -<div class="alert alert-info">...</div> -</pre> - </section> - - - - - <!-- Progress bars - ================================================== --> - <section id="progress"> - <div class="page-header"> - <h1>Progress bars</h1> - </div> - <p class="lead">Provide up-to-date feedback on the progress of a workflow or action with simple yet flexible progress bars.</p> - - <p>Progress bars use CSS3 transitions and animations to achieve some of their effects. These features are not supported in IE8-9 or older versions of Firefox. Internet Explorer 10 and below, as well as Opera 12, do not support animations.</p> - - <h3>Basic</h3> - <p>Default progress bar with a vertical gradient.</p> - <div class="bs-docs-example"> - <div class="progress"> - <div class="progress-bar" style="width: 60%;"></div> - </div> - </div> -<pre class="prettyprint linenums"> -<div class="progress"> - <div class="progress-bar" style="width: 60%;"></div> -</div> -</pre> - - <h3>Additional colors</h3> - <p>Progress bars use some of the same button and alert classes for consistent styles.</p> - <div class="bs-docs-example"> - <div class="progress" style="margin-bottom: 9px;"> - <div class="progress-bar progress-bar-info" style="width: 20%"></div> - </div> - <div class="progress" style="margin-bottom: 9px;"> - <div class="progress-bar progress-bar-success" style="width: 40%"></div> - </div> - <div class="progress" style="margin-bottom: 9px;"> - <div class="progress-bar progress-bar-warning" style="width: 60%"></div> - </div> - <div class="progress"> - <div class="progress-bar progress-bar-danger" style="width: 80%"></div> - </div> - </div> -<pre class="prettyprint linenums"> -<div class="progress"> - <div class="progress-bar progress-bar-info" style="width: 20%"></div> -</div> -<div class="progress"> - <div class="progress-bar progress-bar-success" style="width: 40%"></div> -</div> -<div class="progress"> - <div class="progress-bar progress-bar-warning" style="width: 60%"></div> -</div> -<div class="progress"> - <div class="progress-bar progress-bar-danger" style="width: 80%"></div> -</div> -</pre> - - <h3>Striped</h3> - <p>Uses a gradient to create a striped effect. Not available in IE8.</p> - <div class="bs-docs-example"> - <div class="progress progress-striped" style="margin-bottom: 9px;"> - <div class="progress-bar progress-bar-info" style="width: 20%"></div> - </div> - <div class="progress progress-striped" style="margin-bottom: 9px;"> - <div class="progress-bar progress-bar-success" style="width: 40%"></div> - </div> - <div class="progress progress-striped" style="margin-bottom: 9px;"> - <div class="progress-bar progress-bar-warning" style="width: 60%"></div> - </div> - <div class="progress progress-striped"> - <div class="progress-bar progress-bar-danger" style="width: 80%"></div> - </div> - </div> -<pre class="prettyprint linenums"> -<div class="progress progress-striped"> - <div class="progress-bar progress-bar-info" style="width: 20%"></div> -</div> -<div class="progress progress-striped"> - <div class="progress-bar progress-bar-success" style="width: 40%"></div> -</div> -<div class="progress progress-striped"> - <div class="progress-bar progress-bar-warning" style="width: 60%"></div> -</div> -<div class="progress progress-striped"> - <div class="progress-bar progress-bar-danger" style="width: 80%"></div> -</div> -</pre> - - <h3>Animated</h3> - <p>Add <code>.active</code> to <code>.progress-striped</code> to animate the stripes right to left. Not available in all versions of IE.</p> - <div class="bs-docs-example"> - <div class="progress progress-striped active"> - <div class="progress-bar" style="width: 45%"></div> - </div> - </div> -<pre class="prettyprint linenums"> -<div class="progress progress-striped active"> - <div class="progress-bar" style="width: 40%;"></div> -</div> -</pre> - - <h3>Stacked</h3> - <p>Place multiple bars into the same <code>.progress</code> to stack them.</p> - <div class="bs-docs-example"> - <div class="progress"> - <div class="progress-bar progress-bar-success" style="width: 35%"></div> - <div class="progress-bar progress-bar-warning" style="width: 20%"></div> - <div class="progress-bar progress-bar-danger" style="width: 10%"></div> - </div> - </div> -<pre class="prettyprint linenums"> -<div class="progress"> - <div class="progress-bar progress-bar-success" style="width: 35%;"></div> - <div class="progress-bar progress-bar-warning" style="width: 20%;"></div> - <div class="progress-bar progress-bar-danger" style="width: 10%;"></div> -</div> -</pre> - - </section> - - - - - <!-- Media object - ================================================== --> - <section id="media"> - <div class="page-header"> - <h1>Media object</h1> - </div> - <p class="lead">Abstract object styles for building various types of components (like blog comments, Tweets, etc) that feature a left- or right-aligned image alongside textual content.</p> - - <h3>Default example</h3> - <p>The default media allow to float a media object (images, video, audio) to the left or right of a content block.</p> - <div class="bs-docs-example"> - <div class="media"> - <a class="pull-left" href="#"> - <img class="media-object" data-src="holder.js/64x64"> - </a> - <div class="media-body"> - <h4 class="media-heading">Media heading</h4> - Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus. - </div> - </div> - <div class="media"> - <a class="pull-left" href="#"> - <img class="media-object" data-src="holder.js/64x64"> - </a> - <div class="media-body"> - <h4 class="media-heading">Media heading</h4> - Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus. - <div class="media"> - <a class="pull-left" href="#"> - <img class="media-object" data-src="holder.js/64x64"> - </a> - <div class="media-body"> - <h4 class="media-heading">Media heading</h4> - Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus. - </div> - </div> - </div> - </div> - </div>{{! /.bs-docs-example }} -<pre class="prettyprint linenums"> -<div class="media"> - <a class="pull-left" href="#"> - <img class="media-object" data-src="holder.js/64x64"> - </a> - <div class="media-body"> - <h4 class="media-heading">Media heading</h4> - ... - - <!-- Nested media object --> - <div class="media"> - ... - </div> - </div> -</div> -</pre> - - <h3>Media list</h3> - <p>With a bit of extra markup, you can use media inside list (useful for comment threads or articles lists).</p> - <div class="bs-docs-example"> - <ul class="media-list"> - <li class="media"> - <a class="pull-left" href="#"> - <img class="media-object" data-src="holder.js/64x64"> - </a> - <div class="media-body"> - <h4 class="media-heading">Media heading</h4> - <p>Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.</p> - <!-- Nested media object --> - <div class="media"> - <a class="pull-left" href="#"> - <img class="media-object" data-src="holder.js/64x64"> - </a> - <div class="media-body"> - <h4 class="media-heading">Nested media heading</h4> - Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. - <!-- Nested media object --> - <div class="media"> - <a class="pull-left" href="#"> - <img class="media-object" data-src="holder.js/64x64"> - </a> - <div class="media-body"> - <h4 class="media-heading">Nested media heading</h4> - Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. - </div> - </div> - </div> - </div> - <!-- Nested media object --> - <div class="media"> - <a class="pull-left" href="#"> - <img class="media-object" data-src="holder.js/64x64"> - </a> - <div class="media-body"> - <h4 class="media-heading">Nested media heading</h4> - Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. - </div> - </div> - </div> - </li> - <li class="media"> - <a class="pull-right" href="#"> - <img class="media-object" data-src="holder.js/64x64"> - </a> - <div class="media-body"> - <h4 class="media-heading">Media heading</h4> - Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. - </div> - </li> - </ul> - </div> -<pre class="prettyprint linenums"> -<ul class="media-list"> - <li class="media"> - <a class="pull-left" href="#"> - <img class="media-object" data-src="holder.js/64x64"> - </a> - <div class="media-body"> - <h4 class="media-heading">Media heading</h4> - ... - - <!-- Nested media object --> - <div class="media"> - ... - </div> - </div> - </li> -</ul> -</pre> - -</section> - - - - - - <!-- Miscellaneous - ================================================== --> - <section id="misc"> - <div class="page-header"> - <h1>Miscellaneous <small>Lightweight utility components</small></h1> - </div> - - <h2>Wells</h2> - <p>Use the well as a simple effect on an element to give it an inset effect.</p> - <div class="bs-docs-example"> - <div class="well"> - Look, I'm in a well! - </div> - </div> -<pre class="prettyprint linenums"> -<div class="well"> - ... -</div> -</pre> - <h3>Optional classes</h3> - <p>Control padding and rounded corners with two optional modifier classes.</p> - <div class="bs-docs-example"> - <div class="well well-large"> - Look, I'm in a well! - </div> - </div> -<pre class="prettyprint linenums"> -<div class="well well-large"> - ... -</div> -</pre> - <div class="bs-docs-example"> - <div class="well well-small"> - Look, I'm in a well! - </div> - </div> -<pre class="prettyprint linenums"> -<div class="well well-small"> - ... -</div> -</pre> - - <h2>Close icon</h2> - <p>Use the generic close icon for dismissing content like modals and alerts.</p> - <div class="bs-docs-example"> - <p><button class="close" style="float: none;">×</button></p> - </div> - <pre class="prettyprint linenums"><button class="close">&times;</button></pre> - <p>iOS devices require an <code>href="#"</code> for click events if you would rather use an anchor.</p> - <pre class="prettyprint linenums"><a class="close" href="#">&times;</a></pre> - - <h2>Helper classes</h2> - <p>Simple, focused classes for small display or behavior tweaks.</p> - - <h4>.pull-left</h4> - <p>Float an element left</p> -<pre class="prettyprint linenums"> -class="pull-left" -</pre> -<pre class="prettyprint linenums"> -.pull-left { - float: left; -} -</pre> - - <h4>.pull-right</h4> - <p>Float an element right</p> -<pre class="prettyprint linenums"> -class="pull-right" -</pre> -<pre class="prettyprint linenums"> -.pull-right { - float: right; -} -</pre> - - <h4>.muted</h4> - <p>Change an element's color to <code>#999</code></p> -<pre class="prettyprint linenums"> -class="muted" -</pre> -<pre class="prettyprint linenums"> -.muted { - color: #999; -} -</pre> - - <h4>.clearfix</h4> - <p>Clear the <code>float</code> on any element. Utilizes <a href="http://nicolasgallagher.com/micro-clearfix-hack/">the micro clearfix</a> as popularized by Nicolas Gallagher.</p> -<pre class="prettyprint linenums"> -class="clearfix" -</pre> -<pre class="prettyprint linenums"> -.clearfix { - &:before, - &:after { - content: " "; - display: table; - } - &:after { - clear: both; - } -} -</pre> - - </section> - - - - </div>{{! /span9 }} - </div>{{! row}} - - </div>{{! /.container }} diff --git a/docs/templates/pages/css.mustache b/docs/templates/pages/css.mustache deleted file mode 100644 index 0471001dd..000000000 --- a/docs/templates/pages/css.mustache +++ /dev/null @@ -1,2258 +0,0 @@ -<!-- Subhead -================================================== --> -<header class="bs-docs-jumbotron subhead"> - <div class="container"> - <h1>CSS</h1> - <p class="lead">Fundamental HTML elements styled and enhanced with extensible classes.</p> - </div> -</header> - - - <div class="container"> - - <!-- Docs nav - ================================================== --> - <div class="row"> - <div class="span3 bs-docs-sidebar"> - <ul class="nav nav-list bs-docs-sidenav"> - <li><a href="#global"><i class="glyphicon-chevron-right"></i> Global settings</a></li> - <li><a href="#typography"><i class="glyphicon-chevron-right"></i> Typography</a></li> - <li><a href="#code"><i class="glyphicon-chevron-right"></i> Code</a></li> - <li><a href="#gridSystem"><i class="glyphicon-chevron-right"></i> Grid system</a></li> - <li><a href="#tables"><i class="glyphicon-chevron-right"></i> Tables</a></li> - <li><a href="#forms"><i class="glyphicon-chevron-right"></i> Forms</a></li> - <li><a href="#buttons"><i class="glyphicon-chevron-right"></i> Buttons</a></li> - <li><a href="#images"><i class="glyphicon-chevron-right"></i> Images</a></li> - <li><a href="#icons"><i class="glyphicon-chevron-right"></i> Glyphicons</a></li> - <li><a href="#responsive-utilities"><i class="glyphicon-chevron-right"></i> Responsive utilities</a></li> - </ul> - </div> - <div class="span9"> - - - - <!-- Global Bootstrap settings - ================================================== --> - <section id="global"> - <div class="page-header"> - <h1>Global settings</h1> - </div> - <p class="lead">Get the lowdown on the key pieces of Bootstrap's infrastructure, including our approach to better, faster, stronger web development.</p> - - <h3>Requires HTML5 doctype</h3> - <p>Bootstrap makes use of certain HTML elements and CSS properties that require the use of the HTML5 doctype. Include it at the beginning of all your projects.</p> -<pre class="prettyprint linenums"> -<!DOCTYPE html> -<html lang="en"> - ... -</html> -</pre> - - <h3>Mobile first</h3> - <p>With Bootstrap 2, we added optional mobile friendly styles for key aspects of the framework. With Bootstrap 3, we've rewritten the project to be mobile friendly from the start. Instead of adding on optional mobile styles, they're baked right into the core. In fact, <strong>Bootstrap is mobile first</strong>. Mobile first styles can be found throughout the entire library instead of in separate files.</p> - <p>To ensure proper rendering and touch zooming, <strong>add the viewport meta tag</strong> to your <code><head></code>.</p> - <pre class="prettyprint linenums"><meta name="viewport" content="width=device-width, initial-scale=1.0"></pre> - - <h3>Typography and links</h3> - <p>Bootstrap sets basic global display, typography, and link styles. Specifically, we:</p> - <ul> - <li>Remove <code>margin</code> on the body</li> - <li>Set <code>background-color: white;</code> on the <code>body</code></li> - <li>Use the <code>@font-family-base</code>, <code>@font-size-base</code>, and <code>@line-height-base</code> attributes as our typographic base</li> - <li>Set the global link color via <code>@link-color</code> and apply link underlines only on <code>:hover</code></li> - </ul> - <p>These styles can be found within <strong>scaffolding.less</strong>.</p> - - <h3>Normalize reset</h3> - <p>For improved cross-browser rendering, we use <a href="http://necolas.github.com/normalize.css/" target="_blank">Normalize</a>, a project by <a href="http://twitter.com/necolas" target="_blank">Nicolas Gallagher</a> and <a href="http://twitter.com/jon_neal" target="_blank">Jonathan Neal</a>.</p> - - </section> - - - - - <!-- Typography - ================================================== --> - <section id="typography"> - <div class="page-header"> - <h1>Typography</h1> - </div> - - {{! Headings }} - <h2 id="headings">Headings</h2> - <p>All HTML headings, <code><h1></code> through <code><h6></code> are available.</p> - <div class="bs-docs-example"> - <h1>h1. Heading 1</h1> - <h2>h2. Heading 2</h2> - <h3>h3. Heading 3</h3> - <h4>h4. Heading 4</h4> - <h5>h5. Heading 5</h5> - <h6>h6. Heading 6</h6> - </div> - - {{! Body copy }} - <h2 id="body-copy">Body copy</h2> - <p>Bootstrap's global default <code>font-size</code> is <strong>14px</strong>, with a <code>line-height</code> of <strong>20px</strong>. This is applied to the <code><body></code> and all paragraphs. In addition, <code><p></code> (paragraphs) receive a bottom margin of half their line-height (10px by default).</p> - <div class="bs-docs-example"> - <p>Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula.</p> - <p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec ullamcorper nulla non metus auctor fringilla. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec ullamcorper nulla non metus auctor fringilla.</p> - <p>Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</p> - </div> - <pre class="prettyprint"><p>...</p></pre> - - {{! Body copy .lead }} - <h3>Lead body copy</h3> - <p>Make a paragraph stand out by adding <code>.lead</code>.</p> - <div class="bs-docs-example"> - <p class="lead">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.</p> - </div> - <pre class="prettyprint"><p class="lead">...</p></pre> - - {{! Using LESS }} - <h3>Built with Less</h3> - <p>The typographic scale is based on two LESS variables in <strong>variables.less</strong>: <code>@font-size-base</code> and <code>@line-height-base</code>. The first is the base font-size used throughout and the second is the base line-height. We use those variables and some simple math to create the margins, paddings, and line-heights of all our type and more. Customize them and Bootstrap adapts.</p> - - - {{! Emphasis }} - <h2 id="emphasis">Emphasis</h2> - <p>Make use of HTML's default emphasis tags with lightweight styles.</p> - - <h3><code><small></code></h3> - <p>For de-emphasizing inline or blocks of text, <small>use the small tag.</small></p> - <div class="bs-docs-example"> - <p><small>This line of text is meant to be treated as fine print.</small></p> - </div> -<pre class="prettyprint"> -<p> - <small>This line of text is meant to be treated as fine print.</small> -</p> -</pre> - - <h3>Bold</h3> - <p>For emphasizing a snippet of text with a heavier font-weight.</p> - <div class="bs-docs-example"> - <p>The following snippet of text is <strong>rendered as bold text</strong>.</p> - </div> - <pre class="prettyprint"><strong>rendered as bold text</strong></pre> - - <h3>Italics</h3> - <p>For emphasizing a snippet of text with italics.</p> - <div class="bs-docs-example"> - <p>The following snippet of text is <em>rendered as italicized text</em>.</p> - </div> - <pre class="prettyprint"><em>rendered as italicized text</em></pre> - - <p>Feel free to use <code><b></code> and <code><i></code> in HTML5. <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.</p> - - <h3>Alignment classes</h3> - <p>Easily realign text to components with text alignment classes.</p> - <div class="bs-docs-example"> - <p class="text-left">Left aligned text.</p> - <p class="text-center">Center aligned text.</p> - <p class="text-right">Right aligned text.</p> - </div> -<pre class="prettyprint linenums"> -<p class="text-left">Left aligned text.</p> -<p class="text-center">Center aligned text.</p> -<p class="text-right">Right aligned text.</p> -</pre> - - <h3>Emphasis classes</h3> - <p>Convey meaning through color with a handful of emphasis utility classes.</p> - <div class="bs-docs-example"> - <p class="muted">Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.</p> - <p class="text-warning">Etiam porta sem malesuada magna mollis euismod.</p> - <p class="text-error">Donec ullamcorper nulla non metus auctor fringilla.</p> - <p class="text-success">Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p> - </div> -<pre class="prettyprint linenums"> -<p class="muted">Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.</p> -<p class="text-warning">Etiam porta sem malesuada magna mollis euismod.</p> -<p class="text-error">Donec ullamcorper nulla non metus auctor fringilla.</p> -<p class="text-success">Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p> -</pre> - - - {{! Abbreviations }} - <h2 id="abbreviations">Abbreviations</h2> - <p>Stylized implementation of HTML's <code><abbr></code> element for abbreviations and acronyms to show the expanded version on hover. Abbreviations with a <code>title</code> attribute have a light dotted bottom border and a help cursor on hover, providing additional context on hover.</p> - - <h3><code><abbr></code></h3> - <p>For expanded text on long hover of an abbreviation, include the <code>title</code> attribute.</p> - <div class="bs-docs-example"> - <p>An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.</p> - </div> - <pre class="prettyprint"><abbr title="attribute">attr</abbr></pre> - - <h3><code><abbr class="initialism"></code></h3> - <p>Add <code>.initialism</code> to an abbreviation for a slightly smaller font-size.</p> - <div class="bs-docs-example"> - <p><abbr title="HyperText Markup Language" class="initialism">HTML</abbr> is the best thing since sliced bread.</p> - </div> - <pre class="prettyprint"><abbr title="HyperText Markup Language" class="initialism">HTML</abbr></pre> - - - {{! Addresses }} - <h2 id="addresses">Addresses</h2> - <p>Present contact information for the nearest ancestor or the entire body of work.</p> - - <h3><code><address></code></h3> - <p>Preserve formatting by ending all lines with <code><br></code>.</p> - <div class="bs-docs-example"> - <address> - <strong>Twitter, Inc.</strong><br> - 795 Folsom Ave, Suite 600<br> - San Francisco, CA 94107<br> - <abbr title="Phone">P:</abbr> (123) 456-7890 - </address> - <address> - <strong>Full Name</strong><br> - <a href="mailto:#">[email protected]</a> - </address> - </div> -<pre class="prettyprint linenums"> -<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>Full Name</strong><br> - <a href="mailto:#">[email protected]</a> -</address> -</pre> - - - {{! Blockquotes }} - <h2 id="blockquotes">Blockquotes</h2> - <p>For quoting blocks of content from another source within your document.</p> - - <h3>Default blockquote</h3> - <p>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>.</p> - <div class="bs-docs-example"> - <blockquote> - <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p> - </blockquote> - </div> -<pre class="prettyprint linenums"> -<blockquote> - <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p> -</blockquote> -</pre> - - <h3>Blockquote options</h3> - <p>Style and content changes for simple variations on a standard blockquote.</p> - - <h4>Naming a source</h4> - <p>Add <code><small></code> tag for identifying the source. Wrap the name of the source work in <code><cite></code>.</p> - <div class="bs-docs-example"> - <blockquote> - <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p> - <small>Someone famous in <cite title="Source Title">Source Title</cite></small> - </blockquote> - </div> -<pre class="prettyprint linenums"> -<blockquote> - <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p> - <small>Someone famous <cite title="Source Title">Source Title</cite></small> -</blockquote> -</pre> - - <h4>Alternate displays</h4> - <p>Use <code>.pull-right</code> for a floated, right-aligned blockquote.</p> - <div class="bs-docs-example" style="overflow: hidden;"> - <blockquote class="pull-right"> - <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p> - <small>Someone famous in <cite title="Source Title">Source Title</cite></small> - </blockquote> - </div> -<pre class="prettyprint linenums"> -<blockquote class="pull-right"> - ... -</blockquote> -</pre> - - - <!-- Lists --> - <h2 id="lists">Lists</h2> - - <h3>Unordered</h3> - <p>A list of items in which the order does <em>not</em> explicitly matter.</p> - <div class="bs-docs-example"> - <ul> - <li>Lorem ipsum dolor sit amet</li> - <li>Consectetur adipiscing elit</li> - <li>Integer molestie lorem at massa</li> - <li>Facilisis in pretium nisl aliquet</li> - <li>Nulla volutpat aliquam velit - <ul> - <li>Phasellus iaculis neque</li> - <li>Purus sodales ultricies</li> - <li>Vestibulum laoreet porttitor sem</li> - <li>Ac tristique libero volutpat at</li> - </ul> - </li> - <li>Faucibus porta lacus fringilla vel</li> - <li>Aenean sit amet erat nunc</li> - <li>Eget porttitor lorem</li> - </ul> - </div> -<pre class="prettyprint linenums"> -<ul> - <li>...</li> -</ul> -</pre> - - <h3>Ordered</h3> - <p>A list of items in which the order <em>does</em> explicitly matter.</p> - <div class="bs-docs-example"> - <ol> - <li>Lorem ipsum dolor sit amet</li> - <li>Consectetur adipiscing elit</li> - <li>Integer molestie lorem at massa</li> - <li>Facilisis in pretium nisl aliquet</li> - <li>Nulla volutpat aliquam velit</li> - <li>Faucibus porta lacus fringilla vel</li> - <li>Aenean sit amet erat nunc</li> - <li>Eget porttitor lorem</li> - </ol> - </div> -<pre class="prettyprint linenums"> -<ol> - <li>...</li> -</ol> -</pre> - - <h3>Unstyled</h3> - <p>Remove the default <code>list-style</code> and left padding on list items (immediate children only).</p> - <div class="bs-docs-example"> - <ul class="list-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> -<pre class="prettyprint linenums"> -<ul class="list-unstyled"> - <li>...</li> -</ul> -</pre> - - <h3>Inline</h3> - <p>Place all list items on a single line with <code>inline-block</code> and some light padding.</p> - <div class="bs-docs-example"> - <ul class="list-inline"> - <li>Lorem ipsum</li> - <li>Phasellus iaculis</li> - <li>Nulla volutpat</li> - </ul> - </div> -<pre class="prettyprint linenums"> -<ul class="list-inline"> - <li>...</li> -</ul> -</pre> - - <h3>Description</h3> - <p>A list of terms with their associated descriptions.</p> - <div class="bs-docs-example"> - <dl> - <dt>Description lists</dt> - <dd>A description list is perfect for defining terms.</dd> - <dt>Euismod</dt> - <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd> - <dd>Donec id elit non mi porta gravida at eget metus.</dd> - <dt>Malesuada porta</dt> - <dd>Etiam porta sem malesuada magna mollis euismod.</dd> - </dl> - </div> -<pre class="prettyprint linenums"> -<dl> - <dt>...</dt> - <dd>...</dd> -</dl> -</pre> - - <h4>Horizontal description</h4> - <p>Make terms and descriptions in <code><dl></code> line up side-by-side.</p> - <div class="bs-docs-example"> - <dl class="dl-horizontal"> - <dt>Description lists</dt> - <dd>A description list is perfect for defining terms.</dd> - <dt>Euismod</dt> - <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd> - <dd>Donec id elit non mi porta gravida at eget metus.</dd> - <dt>Malesuada porta</dt> - <dd>Etiam porta sem malesuada magna mollis euismod.</dd> - <dt>Felis euismod semper eget lacinia</dt> - <dd>Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</dd> - </dl> - </div> -<pre class="prettyprint linenums"> -<dl class="dl-horizontal"> - <dt>...</dt> - <dd>...</dd> -</dl> -</pre> - <h5>Auto-truncating</h5> - <p> - Horizontal description lists will truncate terms that are too long to fit in the left column fix <code>text-overflow</code>. In narrower viewports, they will change to the default stacked layout. - </p> - </section> - - - - <!-- Grid system - ================================================== --> - <section id="gridSystem"> - <div class="page-header"> - <h1>Grid system</h1> - </div> - - <h2>Live grid example</h2> - <p>The default Bootstrap grid system utilizes <strong>12 columns</strong>, making for a 940px wide container without <a href="./scaffolding.html#responsive">responsive features</a> enabled. With the responsive CSS file added, the grid adapts to be 724px and 1170px wide depending on your viewport. Below 767px viewports, the columns become fluid and stack vertically.</p> - <div class="bs-docs-grid"> - <div class="row show-grid"> - <div class="span1">1</div> - <div class="span1">1</div> - <div class="span1">1</div> - <div class="span1">1</div> - <div class="span1">1</div> - <div class="span1">1</div> - <div class="span1">1</div> - <div class="span1">1</div> - <div class="span1">1</div> - <div 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="span6">6</div> - <div class="span6">6</div> - </div> - </div> - - <h3>Basic grid HTML</h3> - <p>For a simple two column layout, create a <code>.row</code> and add the appropriate number of <code>.span*</code> columns. As this is a 12-column grid, each <code>.span*</code> spans a number of those 12 columns, and should always add up to 12 for each row (or the number of columns in the parent).</p> -<pre class="prettyprint linenums"> -<div class="row"> - <div class="span4">...</div> - <div class="span8">...</div> -</div> -</pre> - <p>Given this example, we have <code>.span4</code> and <code>.span8</code>, making for 12 total columns and a complete row.</p> - - <h2>Offsetting columns</h2> - <p>Move columns to the right using <code>.offset*</code> classes. Each class increases the left margin of a column by a whole column. For example, <code>.offset4</code> moves <code>.span4</code> over four columns.</p> - <div class="bs-docs-grid"> - <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="span6 offset6">6 offset 6</div> - </div><!-- /row --> - </div> -<pre class="prettyprint linenums"> -<div class="row"> - <div class="span4">...</div> - <div class="span4 offset4">...</div> -</div> -</pre> - - - <h2>Nesting columns</h2> - <p>To nest your content with the default grid, add a new <code>.row</code> and set of <code>.span*</code> columns within an existing <code>.span*</code> column. Nested rows should include a set of columns that add up to 12.</p> - <div class="row show-grid"> - <div class="span9"> - Level 1: 9 columns - <div class="row show-grid"> - <div class="span6"> - Level 2: 6 columns - </div> - <div class="span6"> - Level 2: 6 columns - </div> - </div> - </div> - </div> -<pre class="prettyprint linenums"> -<div class="row"> - <div class="span9"> - Level 1: 9 columns - <div class="row"> - <div class="span6">Level 2: 6 columns</div> - <div class="span6">Level 2: 6 columns</div> - </div> - </div> -</div> -</pre> - </section> - - - - - - <!-- Code - ================================================== --> - <section id="code"> - <div class="page-header"> - <h1>Code</h1> - </div> - - <h2>Inline</h2> - <p>Wrap inline snippets of code with <code><code></code>.</p> -<div class="bs-docs-example"> - For example, <code><section></code> should be wrapped as inline. -</div> -<pre class="prettyprint linenums"> -For example, <code>&lt;section&gt;</code> should be wrapped as inline. -</pre> - - <h2>Basic block</h2> - <p>Use <code><pre></code> for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.</p> -<div class="bs-docs-example"> - <pre><p>Sample text here...</p></pre> -</div> -<pre class="prettyprint linenums" style="margin-bottom: 9px;"> -<pre> - &lt;p&gt;Sample text here...&lt;/p&gt; -</pre> -</pre> - <p>You may optionally add the <code>.pre-scrollable</code> class which will set a max-height of 350px and provide a y-axis scrollbar.</p> - </section> - - - - <!-- Tables - ================================================== --> - <section id="tables"> - <div class="page-header"> - <h1>Tables</h1> - </div> - - <h2>Default styles</h2> - <p>For basic styling—light padding and only horizontal dividers—add the base class <code>.table</code> to any <code><table></code>.</p> - <div class="bs-docs-example"> - <table class="table"> - <thead> - <tr> - <th>#</th> - <th>First Name</th> - <th>Last Name</th> - <th>Username</th> - </tr> - </thead> - <tbody> - <tr> - <td>1</td> - <td>Mark</td> - <td>Otto</td> - <td>@mdo</td> - </tr> - <tr> - <td>2</td> - <td>Jacob</td> - <td>Thornton</td> - <td>@fat</td> - </tr> - <tr> - <td>3</td> - <td>Larry</td> - <td>the Bird</td> - <td>@twitter</td> - </tr> - </tbody> - </table> - </div>{{! /example }} -<pre class="prettyprint linenums"> -<table class="table"> - … -</table> -</pre> - - - <h2>Optional classes</h2> - <p>Add any of the following classes to the <code>.table</code> base class.</p> - - <h3><code>.table-striped</code></h3> - <p>Adds zebra-striping to any table row within the <code><tbody></code> via the <code>:nth-child</code> CSS selector (not available in IE8).</p> - <div class="bs-docs-example"> - <table class="table table-striped"> - <thead> - <tr> - <th>#</th> - <th>First Name</th> - <th>Last Name</th> - <th>Username</th> - </tr> - </thead> - <tbody> - <tr> - <td>1</td> - <td>Mark</td> - <td>Otto</td> - <td>@mdo</td> - </tr> - <tr> - <td>2</td> - <td>Jacob</td> - <td>Thornton</td> - <td>@fat</td> - </tr> - <tr> - <td>3</td> - <td>Larry</td> - <td>the Bird</td> - <td>@twitter</td> - </tr> - </tbody> - </table> - </div>{{! /example }} -<pre class="prettyprint linenums" style="margin-bottom: 18px;"> -<table class="table table-striped"> - … -</table> -</pre> - - <h3><code>.table-bordered</code></h3> - <p>Add borders and rounded corners to the table.</p> - <div class="bs-docs-example"> - <table class="table table-bordered"> - <thead> - <tr> - <th>#</th> - <th>First Name</th> - <th>Last Name</th> - <th>Username</th> - </tr> - </thead> - <tbody> - <tr> - <td rowspan="2">1</td> - <td>Mark</td> - <td>Otto</td> - <td>@mdo</td> - </tr> - <tr> - <td>Mark</td> - <td>Otto</td> - <td>@TwBootstrap</td> - </tr> - <tr> - <td>2</td> - <td>Jacob</td> - <td>Thornton</td> - <td>@fat</td> - </tr> - <tr> - <td>3</td> - <td colspan="2">Larry the Bird</td> - <td>@twitter</td> - </tr> - </tbody> - </table> - </div>{{! /example }} -<pre class="prettyprint linenums"> -<table class="table table-bordered"> - … -</table> -</pre> - - <h3><code>.table-hover</code></h3> - <p>Enable a hover state on table rows within a <code><tbody></code>.</p> - <div class="bs-docs-example"> - <table class="table table-hover"> - <thead> - <tr> - <th>#</th> - <th>First Name</th> - <th>Last Name</th> - <th>Username</th> - </tr> - </thead> - <tbody> - <tr> - <td>1</td> - <td>Mark</td> - <td>Otto</td> - <td>@mdo</td> - </tr> - <tr> - <td>2</td> - <td>Jacob</td> - <td>Thornton</td> - <td>@fat</td> - </tr> - <tr> - <td>3</td> - <td colspan="2">Larry the Bird</td> - <td>@twitter</td> - </tr> - </tbody> - </table> - </div>{{! /example }} -<pre class="prettyprint linenums" style="margin-bottom: 18px;"> -<table class="table table-hover"> - … -</table> -</pre> - - <h3><code>.table-condensed</code></h3> - <p>Makes tables more compact by cutting cell padding in half.</p> - <div class="bs-docs-example"> - <table class="table table-condensed"> - <thead> - <tr> - <th>#</th> - <th>First Name</th> - <th>Last Name</th> - <th>Username</th> - </tr> - </thead> - <tbody> - <tr> - <td>1</td> - <td>Mark</td> - <td>Otto</td> - <td>@mdo</td> - </tr> - <tr> - <td>2</td> - <td>Jacob</td> - <td>Thornton</td> - <td>@fat</td> - </tr> - <tr> - <td>3</td> - <td colspan="2">Larry the Bird</td> - <td>@twitter</td> - </tr> - </tbody> - </table> - </div>{{! /example }} -<pre class="prettyprint linenums" style="margin-bottom: 18px;"> -<table class="table table-condensed"> - … -</table> -</pre> - - - <h2>Optional row classes</h2> - <p>Use contextual classes to color table rows.</p> - <table class="table table-bordered table-striped"> - <colgroup> - <col class="span1"> - <col class="span7"> - </colgroup> - <thead> - <tr> - <th>Class</th> - <th>Description</th> - </tr> - </thead> - <tbody> - <tr> - <td> - <code>.success</code> - </td> - <td>Indicates a successful or positive action.</td> - </tr> - <tr> - <td> - <code>.error</code> - </td> - <td>Indicates a dangerous or potentially negative action.</td> - </tr> - <tr> - <td> - <code>.warning</code> - </td> - <td>Indicates a warning that might need attention.</td> - </tr> - <tr> - <td> - <code>.info</code> - </td> - <td>Used as an alternative to the default styles.</td> - </tr> - </tbody> - </table> - <div class="bs-docs-example"> - <table class="table"> - <thead> - <tr> - <th>#</th> - <th>Product</th> - <th>Payment Taken</th> - <th>Status</th> - </tr> - </thead> - <tbody> - <tr class="success"> - <td>1</td> - <td>TB - Monthly</td> - <td>01/04/2012</td> - <td>Approved</td> - </tr> - <tr class="error"> - <td>2</td> - <td>TB - Monthly</td> - <td>02/04/2012</td> - <td>Declined</td> - </tr> - <tr class="warning"> - <td>3</td> - <td>TB - Monthly</td> - <td>03/04/2012</td> - <td>Pending</td> - </tr> - <tr class="info"> - <td>4</td> - <td>TB - Monthly</td> - <td>04/04/2012</td> - <td>Call in to confirm</td> - </tr> - </tbody> - </table> - </div>{{! /example }} -<pre class="prettyprint linenums"> -... - <tr class="success"> - <td>1</td> - <td>TB - Monthly</td> - <td>01/04/2012</td> - <td>Approved</td> - </tr> -... -</pre> - - - <h2>Supported table markup</h2> - <p>List of supported table HTML elements and how they should be used.</p> - <table class="table table-bordered table-striped"> - <colgroup> - <col class="span1"> - <col class="span7"> - </colgroup> - <thead> - <tr> - <th>Tag</th> - <th>Description</th> - </tr> - </thead> - <tbody> - <tr> - <td> - <code><table></code> - </td> - <td> - Wrapping element for displaying data in a tabular format - </td> - </tr> - <tr> - <td> - <code><thead></code> - </td> - <td> - Container element for table header rows (<code><tr></code>) to label table columns - </td> - </tr> - <tr> - <td> - <code><tbody></code> - </td> - <td> - Container element for table rows (<code><tr></code>) in the body of the table - </td> - </tr> - <tr> - <td> - <code><tr></code> - </td> - <td> - Container element for a set of table cells (<code><td></code> or <code><th></code>) that appears on a single row - </td> - </tr> - <tr> - <td> - <code><td></code> - </td> - <td> - Default table cell - </td> - </tr> - <tr> - <td> - <code><th></code> - </td> - <td> - Special table cell for column (or row, depending on scope and placement) labels - </td> - </tr> - <tr> - <td> - <code><caption></code> - </td> - <td> - Description or summary of what the table holds, especially useful for screen readers - </td> - </tr> - </tbody> - </table> -<pre class="prettyprint linenums"> -<table> - <caption>...</caption> - <thead> - <tr> - <th>...</th> - <th>...</th> - </tr> - </thead> - <tbody> - <tr> - <td>...</td> - <td>...</td> - </tr> - </tbody> -</table> -</pre> - - </section> - - - - <!-- Forms - ================================================== --> - <section id="forms"> - <div class="page-header"> - <h1>Forms</h1> - </div> - - <h2 id="forms-default">Default styles</h2> - <p>Individual form controls automatically receive some global styling. By default, inputs are set to <code>width: 100%;</code>.</p> - <form class="bs-docs-example"> - <fieldset> - <legend>Legend</legend> - <label>Label name</label> - <input type="text" placeholder="Type something…"> - <p class="help-block">Example block-level help text here.</p> - <div class="checkbox"> - <label> - <input type="checkbox"> Check me out - </label> - </div> - <button type="submit" class="btn">Submit</button> - </fieldset> - </form>{{! /example }} -<pre class="prettyprint linenums"> -<form> - <fieldset> - <legend>Legend</legend> - <label>Label name</label> - <input type="text" placeholder="Type something…"> - <span class="help-block">Example block-level help text here.</span> - <div class="checkbox"> - <label> - <input type="checkbox"> Check me out - </label> - </div> - <button type="submit" class="btn">Submit</button> - </fieldset> -</form> -</pre> - - - <h2 id="forms-layouts">Optional layouts</h2> - <p>Included with Bootstrap are optional form layouts for common use cases.</p> - - <h3>Inline form</h3> - <p>Add <code>.form-inline</code> for left-aligned labels and inline-block controls for a compact layout.</p> - <form class="bs-docs-example form-inline"> - <input type="text" class="span3" placeholder="Email"> - <input type="password" class="span3" placeholder="Password"> - <div class="checkbox"> - <label> - <input type="checkbox"> Remember me - </label> - </div> - <button type="submit" class="btn">Sign in</button> - </form>{{! /example }} -<pre class="prettyprint linenums"> -<form class="form-inline"> - <input type="text" class="span3" placeholder="Email"> - <input type="password" class="span3" placeholder="Password"> - <div class="checkbox"> - <label> - <input type="checkbox"> Remember me - </label> - </div> - <button type="submit" class="btn">Sign in</button> -</form> -</pre> - - <h3>Horizontal form</h3> - <p>Right align labels and float them to the left to make them appear on the same line as controls. Requires the most markup changes from a default form:</p> - <ul> - <li>Add <code>.form-horizontal</code> to the form</li> - <li>Wrap labels and controls in <code>.control-group</code></li> - <li>Add <code>.control-label</code> to the label</li> - <li>Wrap any associated controls in <code>.controls</code> for proper alignment</li> - </ul> - <form class="bs-docs-example form-horizontal"> - <div class="control-group"> - <label class="control-label" for="inputEmail">Email</label> - <div class="controls"> - <input type="text" id="inputEmail" placeholder="Email"> - </div> - </div> - <div class="control-group"> - <label class="control-label" for="inputPassword">Password</label> - <div class="controls"> - <input type="password" id="inputPassword" placeholder="Password"> - <div class="checkbox"> - <label> - <input type="checkbox"> Remember me - </label> - </div> - </div> - </div> - <div class="control-group"> - <div class="controls"> - <button type="submit" class="btn">Sign in</button> - </div> - </div> - </form> -<pre class="prettyprint linenums"> -<form class="form-horizontal"> - <div class="control-group"> - <label class="control-label" for="inputEmail">Email</label> - <div class="controls"> - <input type="text" id="inputEmail" placeholder="Email"> - </div> - </div> - <div class="control-group"> - <label class="control-label" for="inputPassword">Password</label> - <div class="controls"> - <input type="password" id="inputPassword" placeholder="Password"> - </div> - </div> - <div class="control-group"> - <div class="controls"> - <div class="checkbox"> - <label> - <input type="checkbox"> Remember me - </label> - </div> - <button type="submit" class="btn">Sign in</button> - </div> - </div> -</form> -</pre> - - - <h2 id="forms-controls">Supported form controls</h2> - <p>Examples of standard form controls supported in an example form layout.</p> - - <h3>Inputs</h3> - <p>Most common form control, text-based input fields. Includes support for all HTML5 types: text, password, datetime, datetime-local, date, month, time, week, number, email, url, search, tel, and color.</p> - <p>Requires the use of a specified <code>type</code> at all times.</p> - <form class="bs-docs-example form-inline"> - <input type="text" placeholder="Text input"> - </form> -<pre class="prettyprint linenums"> -<input type="text" placeholder="Text input"> -</pre> - - <h3>Textarea</h3> - <p>Form control which supports multiple lines of text. Change <code>rows</code> attribute as necessary.</p> - <form class="bs-docs-example form-inline"> - <textarea rows="3"></textarea> - </form> -<pre class="prettyprint linenums"> -<textarea rows="3"></textarea> -</pre> - - <h3>Checkboxes and radios</h3> - <p>Checkboxes are for selecting one or several options in a list while radios are for selecting one option from many.</p> - <h4>Default (stacked)</h4> - <form class="bs-docs-example"> - <div class="checkbox"> - <label> - <input type="checkbox" value=""> - Option one is this and that—be sure to include why it's great - </label> - </div> - <br> - <div class="radio"> - <label> - <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked> - Option one is this and that—be sure to include why it's great - </label> - </div> - <div class="radio"> - <label> - <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2"> - Option two can be something else and selecting it will deselect option one - </label> - </div> - </form> -<pre class="prettyprint linenums"> -<div class="checkbox"> - <label> - <input type="checkbox" value=""> - Option one is this and that—be sure to include why it's great - </label> -</div> - -<div class="radio"> - <label> - <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked> - Option one is this and that—be sure to include why it's great - </label> -</div> -<div class="radio"> - <label> - <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2"> - Option two can be something else and selecting it will deselect option one - </label> -</div> -</pre> - - <h4>Inline checkboxes</h4> - <p>Use <code>.checkbox-inline</code> or <code>.radio-inline</code> class to a series of checkboxes or radios for controls appear on the same line.</p> - <form class="bs-docs-example"> - <label class="checkbox-inline"> - <input type="checkbox" id="inlineCheckbox1" value="option1"> 1 - </label> - <label class="checkbox-inline"> - <input type="checkbox" id="inlineCheckbox2" value="option2"> 2 - </label> - <label class="checkbox-inline"> - <input type="checkbox" id="inlineCheckbox3" value="option3"> 3 - </label> - </form> -<pre class="prettyprint linenums"> -<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> -</pre> - - <h3>Selects</h3> - <p>Use the default option or specify a <code>multiple="multiple"</code> to show multiple options at once.</p> - <form class="bs-docs-example"> - <select> - <option>1</option> - <option>2</option> - <option>3</option> - <option>4</option> - <option>5</option> - </select> - <br> - <select multiple="multiple"> - <option>1</option> - <option>2</option> - <option>3</option> - <option>4</option> - <option>5</option> - </select> - </form> -<pre class="prettyprint linenums"> -<select> - <option>1</option> - <option>2</option> - <option>3</option> - <option>4</option> - <option>5</option> -</select> - -<select multiple="multiple"> - <option>1</option> - <option>2</option> - <option>3</option> - <option>4</option> - <option>5</option> -</select> -</pre> - - - - <h2>Form control states</h2> - <p>Provide feedback to users or visitors with basic feedback states on form controls and labels.</p> - - <h3 id="forms-input-focus">Input focus</h3> - <p>We remove the default <code>outline</code> styles on some form controls and apply a <code>box-shadow</code> in its place for <code>:focus</code>.</p> - <form class="bs-docs-example form-inline"> - <input class="focused" id="focusedInput" type="text" value="This is focused..."> - </form> -<pre class="prettyprint linenums"> -<input id="focusedInput" type="text" value="This is focused..."> -</pre> - - <h3 id="forms-invalid-inputs">Invalid inputs</h3> - <p>Style inputs via default browser functionality with <code>:invalid</code>. Specify a <code>type</code>, add the <code>required</code> attribute if the field is not optional, and (if applicable) specify a <code>pattern</code>.</p> - <p>This is not available in versions of Internet Explorer 7-9 due to lack of support for CSS pseudo selectors.</p> - <form class="bs-docs-example form-inline"> - <input class="span3" type="email" placeholder="[email protected]" required> - </form> -<pre class="prettyprint linenums"> -<input class="span3" type="email" required> -</pre> - - <h3 id="forms-disabled-inputs">Disabled inputs</h3> - <p>Add the <code>disabled</code> attribute on an input to prevent user input and trigger a slightly different look.</p> - <form class="bs-docs-example form-inline"> - <input class="input-xlarge" id="disabledInput" type="text" placeholder="Disabled input here…" disabled> - </form> -<pre class="prettyprint linenums"> -<input class="input-xlarge" id="disabledInput" type="text" placeholder="Disabled input here..." disabled> -</pre> - - <h3 id="forms-disabled-fieldsets">Disabled fieldsets</h3> - <p>Add the <code>disabled</code> attribute to a <code><fieldset></code> to disable all the controls within the <code><fieldset></code> at once. Link buttons (with the <code><a></code> element) will be aesthetically disabled, but you will need custom JavaScript to disable their behavior.</p> - <form class="bs-docs-example form-inline"> - <fieldset disabled> - <div> - <input type="text" class="span4" placeholder="Disabled input"> - </div> - <div> - <select class="span4"> - <option>Disabled select</option> - </select> - </div> - <div class="checkbox"> - <label> - <input type="checkbox"> Can't check this - </label> - </div> - <button type="submit" class="btn btn-primary">Submit</button> - </fieldset> - </form> -<pre class="prettyprint linenums"> -<form class="form-inline"> - <fieldset disabled> - <input type="text" class="span4" placeholder="Disabled input"> - <select class="span4"> - <option>Disabled select</option> - </select> - <div class="checkbox"> - <label> - <input type="checkbox"> Can't check this - </label> - </div> - <button type="submit" class="btn btn-primary">Submit</button> - </fieldset> -</form> -</pre> - - <h3 id="forms-validation">Validation states</h3> - <p>Bootstrap includes validation styles for error, warning, info, and success messages. To use:</p> - <ul> - <li>Add <code>.has-warning</code>, <code>.has-error</code>, or <code>.has-success</code> to the parent element</li> - <li>Add .input-with-feedback to the field(s) in question</li> - </ul> - <p>Validation styles are applied on a per-input basis. With horizontal forms, the <code><label class="control-label"></code> will always be styled.</p> - - <form class="bs-docs-example form-horizontal"> - <div class="control-group has-warning"> - <label class="control-label" for="inputWarning">Input with warning</label> - <div class="controls"> - <input type="text" class="input-with-feedback" id="inputWarning"> - </div> - </div> - <div class="control-group has-error"> - <label class="control-label" for="inputError">Input with error</label> - <div class="controls"> - <input type="text" class="input-with-feedback" id="inputError"> - </div> - </div> - <div class="control-group has-success"> - <label class="control-label" for="inputSuccess">Input with success</label> - <div class="controls"> - <input type="text" class="input-with-feedback" id="inputSuccess"> - </div> - </div> - </form> -<pre class="prettyprint linenums"> -<div class="control-group has-warning"> - <label class="control-label" for="inputWarning">Input with warning</label> - <div class="controls"> - <input type="text" class="input-with-feedback" id="inputWarning"> - </div> -</div> -<div class="control-group has-error"> - <label class="control-label" for="inputError">Input with error</label> - <div class="controls"> - <input type="text" class="input-with-feedback" id="inputError"> - </div> -</div> -<div class="control-group has-success"> - <label class="control-label" for="inputSuccess">Input with success</label> - <div class="controls"> - <input type="text" class="input-with-feedback id="inputSuccess""> - </div> -</div> -</pre> - - - - <h2 id="forms-extending">Extending form controls</h2> - <p>Adding on top of existing browser controls, Bootstrap includes other useful form components.</p> - - <h3>Input groups</h3> - <p>Add text or buttons before, after, or on both sides of any text-based input. Use <code>.input-group</code> with a <code>.add-on</code> to prepend or append elements to an <code><input></code>.</p> - <p>Avoid using <code><select></code> elements here as they cannot be fully styled in WebKit browsers.</p> - <form class="bs-docs-example"> - <div class="input-group span9"> - <span class="input-group-addon">@</span> - <input type="text" placeholder="Username"> - </div> - <br> - <div class="input-group span6"> - <input type="text"> - <span class="input-group-addon">.00</span> - </div> - <br> - <div class="input-group span3"> - <span class="input-group-addon">$</span> - <input type="text"> - <span class="input-group-addon">.00</span> - </div> - </form> -<pre class="prettyprint linenums"> -<div class="input-group span9"> - <span class="input-group-addon">@</span> - <input type="text" placeholder="Username"> -</div> - -<div class="input-group span6"> - <input type="text"> - <span class="input-group-addon">.00</span> -</div> - -<div class="input-group span3"> - <span class="input-group-addon">$</span> - <input type="text"> - <span class="input-group-addon">.00</span> -</div> -</pre> - - <h4>Optional sizes</h4> - <p>Add the relative form sizing classes to the `.input-group-addon`.</p> - <form class="bs-docs-example"> - <div class="input-group span9"> - <span class="input-group-addon input-large">@</span> - <input type="text" class="input-large" placeholder="Username"> - </div> - <br> - <div class="input-group span9"> - <span class="input-group-addon">@</span> - <input type="text" placeholder="Username"> - </div> - <br> - <div class="input-group span9"> - <span class="input-group-addon input-small">@</span> - <input type="text" class="input-small" placeholder="Username"> - </div> - </form> -<pre class="prettyprint linenums"> -<div class="input-group span9"> - <span class="input-group-addon input-large">@</span> - <input type="text" class="input-large" placeholder="Username"> -</div> -<div class="input-group span9"> - <span class="input-group-addon">@</span> - <input type="text" placeholder="Username"> -</div> -<div class="input-group span9"> - <span class="input-group-addon input-small">@</span> - <input type="text" class="input-small" placeholder="Username"> -</div> -</pre> - - <h4>Buttons instead of text</h4> - <p>Buttons in input groups are a bit different and require one extra level of nesting. Instead of <code>.input-group-addon</code>, you'll need to use <code>.input-group-btn</code> to wrap the buttons. This is required due to default browser styles that cannot be overridden.</p> - <form class="bs-docs-example"> - <div class="input-group span7"> - <span class="input-group-btn"> - <button class="btn" type="button">Go!</button> - </span> - <input type="text"> - </div> - <br> - <div class="input-group span7"> - <input type="text"> - <span class="input-group-btn"> - <button class="btn" type="button">Go!</button> - </span> - </div> - </form> -<pre class="prettyprint linenums"> -<div class="input-group span7"> - <span class="input-group-btn"> - <button class="btn" type="button">Go!</button> - </span> - <input type="text"> -</div> - -<div class="input-group span7"> - <input type="text"> - <span class="input-group-btn"> - <button class="btn" type="button">Go!</button> - </span> -</div> -</pre> - - <h4>Button dropdowns</h4> - <p></p> - <form class="bs-docs-example"> - <div class="input-group span7"> - <div class="input-group-btn btn-group"> - <button class="btn dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button> - <ul class="dropdown-menu"> - <li><a href="#">Action</a></li> - <li><a href="#">Another action</a></li> - <li><a href="#">Something else here</a></li> - <li class="divider"></li> - <li><a href="#">Separated link</a></li> - </ul> - </div><!-- /btn-group --> - <input type="text"> - </div><!-- /input-group --> - <br> - <div class="input-group span7"> - <input type="text"> - <div class="input-group-btn btn-group"> - <button class="btn dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button> - <ul class="dropdown-menu"> - <li><a href="#">Action</a></li> - <li><a href="#">Another action</a></li> - <li><a href="#">Something else here</a></li> - <li class="divider"></li> - <li><a href="#">Separated link</a></li> - </ul> - </div><!-- /btn-group --> - </div><!-- /input-group --> - </form> -<pre class="prettyprint linenums"> -<div class="input-group span7"> - <div class="input-group-btn btn-group"> - <button class="btn dropdown-toggle" data-toggle="dropdown"> - Action - <span class="caret"></span> - </button> - <ul class="dropdown-menu"> - ... - </ul> - </div> - <input type="text"> -</div> - -<div class="input-group span7"> - <input type="text"> - <div class="input-group-btn btn-group"> - <button class="btn dropdown-toggle" data-toggle="dropdown"> - Action - <span class="caret"></span> - </button> - <ul class="dropdown-menu"> - ... - </ul> - </div> -</div> -</pre> - - <h4>Segmented dropdown groups</h4> - <form class="bs-docs-example"> - <div class="input-group span7"> - <div class="input-group-btn btn-group"> - <button class="btn" tabindex="-1">Action</button> - <button class="btn dropdown-toggle" data-toggle="dropdown" tabindex="-1"> - <span class="caret"></span> - </button> - <ul class="dropdown-menu"> - <li><a href="#">Action</a></li> - <li><a href="#">Another action</a></li> - <li><a href="#">Something else here</a></li> - <li class="divider"></li> - <li><a href="#">Separated link</a></li> - </ul> - </div> - <input type="text" class="span3"> - </div> - - <br> - - <div class="input-group span7"> - <input type="text"> - <div class="input-group-btn btn-group"> - <button class="btn" tabindex="-1">Action</button> - <button class="btn dropdown-toggle" data-toggle="dropdown" tabindex="-1"> - <span class="caret"></span> - </button> - <ul class="dropdown-menu"> - <li><a href="#">Action</a></li> - <li><a href="#">Another action</a></li> - <li><a href="#">Something else here</a></li> - <li class="divider"></li> - <li><a href="#">Separated link</a></li> - </ul> - </div> - </div> - </form> -<pre class="prettyprint linenums"> -<div class="input-prepend"> - <div class="btn-group">...</div> - <input type="text" class="span3"> -</div> -<div class="input-append"> - <input type="text" class="span3"> - <div class="btn-group">...</div> -</div> -</pre> - - <h3 id="forms-extending-sizes">Control sizing</h3> - <p>Use relative sizing classes like <code>.input-large</code> or match your inputs to the grid column sizes using <code>.span*</code> classes.</p> - - <h4>Relative sizing</h4> - <p>Create larger or smaller form controls that match button sizes.</p> - <form class="bs-docs-example" style="padding-bottom: 15px;"> - <div class="controls docs-input-sizes"> - <input class="input-large" type="text" placeholder=".input-large"> - <input type="text" placeholder="Default input"> - <input class="input-small" type="text" placeholder=".input-small"> - </div> - </form> -<pre class="prettyprint linenums"> -<input class="input-large" type="text" placeholder=".input-large"> -<input type="text" placeholder="Default input"> -<input class="input-small" type="text" placeholder=".input-small"> -</pre> - - <h4>Column sizing</h4> - <p>Use <code>.span1</code> to <code>.span12</code> for setting widths on inputs that match Bootstrap's grid system.</p> - <form class="bs-docs-example" style="padding-bottom: 15px;"> - <div class="controls docs-input-sizes"> - <input class="span1" type="text" placeholder=".span1"> - <input class="span2" type="text" placeholder=".span2"> - <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> - </div> - </form> -<pre class="prettyprint linenums"> -<input class="span1" type="text" placeholder=".span1"> -<input class="span2" type="text" placeholder=".span2"> -<input class="span3" type="text" placeholder=".span3"> -<select class="span1"> - ... -</select> -<select class="span2"> - ... -</select> -<select class="span3"> - ... -</select> -</pre> - <p>If you need multiple inputs on the same line, wrap them in the standard grid markup (with <code>.row</code> and <code>.span*</code> classes). Each input should have it's own column and will expand to fill the available width automatically.</p> - <form class="bs-docs-example" style="padding-bottom: 15px;"> - <div class="row"> - <div class="span4"> - <input type="text" placeholder=".span4"> - </div> - <div class="span4"> - <input type="text" placeholder=".span4"> - </div> - <div class="span4"> - <input type="text" placeholder=".span4"> - </div> - </div> - </form> -<pre class="prettyprint linenums"> -<div class="row"> - <div class="span4"> - <input type="text" placeholder=".span4"> - </div> - <div class="span4"> - <input type="text" placeholder=".span4"> - </div> - <div class="span4"> - <input type="text" placeholder=".span4"> - </div> -</div> -</pre> - - <h3>Uneditable inputs</h3> - <p>Present data in a form that's not editable without using actual form markup.</p> - <form class="bs-docs-example"> - <span class="input-xlarge uneditable-input">Some value here</span> - </form> -<pre class="prettyprint linenums"> -<span class="input-xlarge uneditable-input">Some value here</span> -</pre> - - <h3>Form actions</h3> - <p>End a form with a group of actions (buttons). When placed within a <code>.form-horizontal</code>, the buttons will automatically indent to line up with the form controls.</p> - <form class="bs-docs-example"> - <div class="form-actions"> - <button type="submit" class="btn btn-primary">Save changes</button> - <button type="button" class="btn">Cancel</button> - </div> - </form> -<pre class="prettyprint linenums"> -<div class="form-actions"> - <button type="submit" class="btn btn-primary">Save changes</button> - <button type="button" class="btn">Cancel</button> -</div> -</pre> - - <h3>Help text</h3> - <p>Inline and block level support for help text that appears around form controls.</p> - <h4>Inline help</h4> - <form class="bs-docs-example form-inline"> - <input type="text"> <span class="help-inline">Inline help text</span> - </form> -<pre class="prettyprint linenums"> -<input type="text"><span class="help-inline">Inline help text</span> -</pre> - - <h4>Block help</h4> - <form class="bs-docs-example form-inline"> - <input type="text"> - <span class="help-block">A longer block of help text that breaks onto a new line and may extend beyond one line.</span> - </form> -<pre class="prettyprint linenums"> -<input type="text"><span class="help-block">A longer block of help text that breaks onto a new line and may extend beyond one line.</span> -</pre> - - </section> - - - - <!-- Buttons - ================================================== --> - <section id="buttons"> - <div class="page-header"> - <h1>Buttons</h1> - </div> - - <h2>Default buttons</h2> - <p>Button styles can be applied to anything with the <code>.btn</code> class applied. However, typically you'll want to apply these to only <code><a></code> and <code><button></code> elements for the best rendering.</p> - <table class="table table-bordered table-striped"> - <thead> - <tr> - <th>Button</th> - <th>class=""</th> - <th>Description</th> - </tr> - </thead> - <tbody> - <tr> - <td><button type="button" class="btn btn-default">Default</button></td> - <td><code>btn</code></td> - <td>Standard gray button with gradient</td> - </tr> - <tr> - <td><button type="button" class="btn btn-primary">Primary</button></td> - <td><code>btn btn-primary</code></td> - <td>Provides extra visual weight and identifies the primary action in a set of buttons</td> - </tr> - <tr> - <td><button type="button" class="btn btn-success">Success</button></td> - <td><code>btn btn-success</code></td> - <td>Indicates a successful or positive action</td> - </tr> - <tr> - <td><button type="button" class="btn btn-info">Info</button></td> - <td><code>btn btn-info</code></td> - <td>Contextual button for informational alert messages</td> - </tr> - <tr> - <td><button type="button" class="btn btn-warning">Warning</button></td> - <td><code>btn btn-warning</code></td> - <td>Indicates caution should be taken with this action</td> - </tr> - <tr> - <td><button type="button" class="btn btn-danger">Danger</button></td> - <td><code>btn btn-danger</code></td> - <td>Indicates a dangerous or potentially negative action</td> - </tr> - <tr> - <td><button type="button" class="btn btn-link">Link</button></td> - <td><code>btn btn-link</code></td> - <td>Deemphasize a button by making it look like a link while maintaining button behavior</td> - </tr> - </tbody> - </table> - - <h4>Cross browser compatibility</h4> - <p>IE9 doesn't crop background gradients on rounded corners, so we remove it. Related, IE9 jankifies disabled <code>button</code> elements, rendering text gray with a nasty text-shadow that we cannot fix.</p> - - - <h2>Button sizes</h2> - <p>Fancy larger or smaller buttons? Add <code>.btn-large</code>, <code>.btn-small</code>, or <code>.btn-mini</code> for additional sizes.</p> - <div class="bs-docs-example"> - <p> - <button type="button" class="btn btn-large btn-primary">Large button</button> - <button type="button" class="btn btn-large">Large button</button> - </p> - <p> - <button type="button" class="btn btn-primary">Default button</button> - <button type="button" class="btn">Default button</button> - </p> - <p> - <button type="button" class="btn btn-small btn-primary">Small button</button> - <button type="button" class="btn btn-small">Small button</button> - </p> - <p> - <button type="button" class="btn btn-mini btn-primary">Mini button</button> - <button type="button" class="btn btn-mini">Mini button</button> - </p> - </div> -<pre class="prettyprint linenums"> -<p> - <button class="btn btn-large btn-primary" type="button">Large button</button> - <button class="btn btn-large" type="button">Large button</button> -</p> -<p> - <button class="btn btn-primary" type="button">Default button</button> - <button class="btn" type="button">Default button</button> -</p> -<p> - <button class="btn btn-small btn-primary" type="button">Small button</button> - <button class="btn btn-small" type="button">Small button</button> -</p> -<p> - <button class="btn btn-mini btn-primary" type="button">Mini button</button> - <button class="btn btn-mini" type="button">Mini button</button> -</p> -</pre> - <p>Create block level buttons—those that span the full width of a parent— by adding <code>.btn-block</code>.</p> - <div class="bs-docs-example"> - <div class="well" style="max-width: 400px; margin: 0 auto 10px;"> - <button type="button" class="btn btn-large btn-block btn-primary">Block level button</button> - <button type="button" class="btn btn-large btn-block">Block level button</button> - </div> - </div> -<pre class="prettyprint linenums"> -<button class="btn btn-large btn-block btn-primary" type="button">Block level button</button> -<button class="btn btn-large btn-block" type="button">Block level button</button> -</pre> - - - <h2>Disabled state</h2> - <p>Make buttons look unclickable by fading them back 50%.</p> - - <h3>Anchor element</h3> - <p>Add the <code>.disabled</code> class to <code><a></code> buttons.</p> - <p class="bs-docs-example"> - <a href="#" class="btn btn-large btn-primary disabled">Primary link</a> - <a href="#" class="btn btn-large disabled">Link</a> - </p> -<pre class="prettyprint linenums"> -<a href="#" class="btn btn-large btn-primary disabled">Primary link</a> -<a href="#" class="btn btn-large disabled">Link</a> -</pre> - <p> - We use <code>.disabled</code> as a utility class here, similar to the common <code>.active</code> class, so no prefix is required. Also, this class is only for aesthetic; you must use custom JavaScript to disable links here. - </p> - - <h3>Button element</h3> - <p>Add the <code>disabled</code> attribute to <code><button></code> buttons.</p> - <p class="bs-docs-example"> - <button type="button" class="btn btn-large btn-primary disabled" disabled="disabled">Primary button</button> - <button type="button" class="btn btn-large" disabled>Button</button> - </p> -<pre class="prettyprint linenums"> -<button type="button" class="btn btn-large btn-primary disabled" disabled="disabled">Primary button</button> -<button type="button" class="btn btn-large" disabled>Button</button> -</pre> - - - <h2>One class, multiple tags</h2> - <p>Use the <code>.btn</code> class on an <code><a></code>, <code><button></code>, or <code><input></code> element.</p> - <form class="bs-docs-example"> - <a class="btn" href="">Link</a> - <button class="btn" type="submit">Button</button> - <input class="btn" type="button" value="Input"> - <input class="btn" type="submit" value="Submit"> - </form> -<pre class="prettyprint linenums"> -<a class="btn" href="">Link</a> -<button class="btn" type="submit">Button</button> -<input class="btn" type="button" value="Input"> -<input class="btn" type="submit" value="Submit"> -</pre> - <p>As a best practice, try to match the element for your context to ensure matching cross-browser rendering. If you have an <code>input</code>, use an <code><input type="submit"></code> for your button.</p> - - </section> - - - - <!-- Images - ================================================== --> - <section id="images"> - <div class="page-header"> - <h1>Images</h1> - </div> - - <p>Add classes to an <code><img></code> element to easily style images in any project. Rounded corners are not available in IE8.</p> - <div class="bs-docs-example bs-docs-example-images"> - <img data-src="holder.js/140x140" class="img-rounded"> - <img data-src="holder.js/140x140" class="img-circle"> - <img data-src="holder.js/140x140" class="img-thumbnail"> - </div> -<pre class="prettyprint linenums"> -<img src="..." class="img-rounded"> -<img src="..." class="img-circle"> -<img src="..." class="img-thumbnail"> -</pre> - - </section> - - - - <!-- Icons - ================================================== --> - <section id="icons"> - <div class="page-header"> - <h1>Icons font <small>by <a href="http://glyphicons.com" target="_blank">Glyphicons</a></small></h1> - </div> - - <h2>Included glyphs</h2> - <p>Bootstrap comes with all 160 of <a href="http://glyphicons.com" target="_blank">Glyphicons</a> Halflings set, all available in font formats for easy coloring, sizing, and placement.</p> - - <ul class="the-icons clearfix"> - <li><i class="glyphicon-glass"></i> glyphicon-glass</li> - <li><i class="glyphicon-music"></i> glyphicon-music</li> - <li><i class="glyphicon-search"></i> glyphicon-search</li> - <li><i class="glyphicon-envelope"></i> glyphicon-envelope</li> - <li><i class="glyphicon-heart"></i> glyphicon-heart</li> - <li><i class="glyphicon-star"></i> glyphicon-star</li> - <li><i class="glyphicon-star-empty"></i> glyphicon-star-empty</li> - <li><i class="glyphicon-user"></i> glyphicon-user</li> - <li><i class="glyphicon-film"></i> glyphicon-film</li> - <li><i class="glyphicon-th-large"></i> glyphicon-th-large</li> - <li><i class="glyphicon-th"></i> glyphicon-th</li> - <li><i class="glyphicon-th-list"></i> glyphicon-th-list</li> - <li><i class="glyphicon-ok"></i> glyphicon-ok</li> - <li><i class="glyphicon-remove"></i> glyphicon-remove</li> - <li><i class="glyphicon-zoom-in"></i> glyphicon-zoom-in</li> - <li><i class="glyphicon-zoom-out"></i> glyphicon-zoom-out</li> - <li><i class="glyphicon-off"></i> glyphicon-off</li> - <li><i class="glyphicon-signal"></i> glyphicon-signal</li> - <li><i class="glyphicon-cog"></i> glyphicon-cog</li> - <li><i class="glyphicon-trash"></i> glyphicon-trash</li> - <li><i class="glyphicon-home"></i> glyphicon-home</li> - <li><i class="glyphicon-file"></i> glyphicon-file</li> - <li><i class="glyphicon-time"></i> glyphicon-time</li> - <li><i class="glyphicon-road"></i> glyphicon-road</li> - <li><i class="glyphicon-download-alt"></i> glyphicon-download-alt</li> - <li><i class="glyphicon-download"></i> glyphicon-download</li> - <li><i class="glyphicon-upload"></i> glyphicon-upload</li> - <li><i class="glyphicon-inbox"></i> glyphicon-inbox</li> - - <li><i class="glyphicon-play-circle"></i> glyphicon-play-circle</li> - <li><i class="glyphicon-repeat"></i> glyphicon-repeat</li> - <li><i class="glyphicon-refresh"></i> glyphicon-refresh</li> - <li><i class="glyphicon-list-alt"></i> glyphicon-list-alt</li> - <li><i class="glyphicon-lock"></i> glyphicon-lock</li> - <li><i class="glyphicon-flag"></i> glyphicon-flag</li> - <li><i class="glyphicon-headphones"></i> glyphicon-headphones</li> - <li><i class="glyphicon-volume-off"></i> glyphicon-volume-off</li> - <li><i class="glyphicon-volume-down"></i> glyphicon-volume-down</li> - <li><i class="glyphicon-volume-up"></i> glyphicon-volume-up</li> - <li><i class="glyphicon-qrcode"></i> glyphicon-qrcode</li> - <li><i class="glyphicon-barcode"></i> glyphicon-barcode</li> - <li><i class="glyphicon-tag"></i> glyphicon-tag</li> - <li><i class="glyphicon-tags"></i> glyphicon-tags</li> - <li><i class="glyphicon-book"></i> glyphicon-book</li> - <li><i class="glyphicon-bookmark"></i> glyphicon-bookmark</li> - <li><i class="glyphicon-print"></i> glyphicon-print</li> - <li><i class="glyphicon-camera"></i> glyphicon-camera</li> - <li><i class="glyphicon-font"></i> glyphicon-font</li> - <li><i class="glyphicon-bold"></i> glyphicon-bold</li> - <li><i class="glyphicon-italic"></i> glyphicon-italic</li> - <li><i class="glyphicon-text-height"></i> glyphicon-text-height</li> - <li><i class="glyphicon-text-width"></i> glyphicon-text-width</li> - <li><i class="glyphicon-align-left"></i> glyphicon-align-left</li> - <li><i class="glyphicon-align-center"></i> glyphicon-align-center</li> - <li><i class="glyphicon-align-right"></i> glyphicon-align-right</li> - <li><i class="glyphicon-align-justify"></i> glyphicon-align-justify</li> - <li><i class="glyphicon-list"></i> glyphicon-list</li> - - <li><i class="glyphicon-indent-left"></i> glyphicon-indent-left</li> - <li><i class="glyphicon-indent-right"></i> glyphicon-indent-right</li> - <li><i class="glyphicon-facetime-video"></i> glyphicon-facetime-video</li> - <li><i class="glyphicon-picture"></i> glyphicon-picture</li> - <li><i class="glyphicon-pencil"></i> glyphicon-pencil</li> - <li><i class="glyphicon-map-marker"></i> glyphicon-map-marker</li> - <li><i class="glyphicon-adjust"></i> glyphicon-adjust</li> - <li><i class="glyphicon-tint"></i> glyphicon-tint</li> - <li><i class="glyphicon-edit"></i> glyphicon-edit</li> - <li><i class="glyphicon-share"></i> glyphicon-share</li> - <li><i class="glyphicon-check"></i> glyphicon-check</li> - <li><i class="glyphicon-move"></i> glyphicon-move</li> - <li><i class="glyphicon-step-backward"></i> glyphicon-step-backward</li> - <li><i class="glyphicon-fast-backward"></i> glyphicon-fast-backward</li> - <li><i class="glyphicon-backward"></i> glyphicon-backward</li> - <li><i class="glyphicon-play"></i> glyphicon-play</li> - <li><i class="glyphicon-pause"></i> glyphicon-pause</li> - <li><i class="glyphicon-stop"></i> glyphicon-stop</li> - <li><i class="glyphicon-forward"></i> glyphicon-forward</li> - <li><i class="glyphicon-fast-forward"></i> glyphicon-fast-forward</li> - <li><i class="glyphicon-step-forward"></i> glyphicon-step-forward</li> - <li><i class="glyphicon-eject"></i> glyphicon-eject</li> - <li><i class="glyphicon-chevron-left"></i> glyphicon-chevron-left</li> - <li><i class="glyphicon-chevron-right"></i> glyphicon-chevron-right</li> - <li><i class="glyphicon-plus-sign"></i> glyphicon-plus-sign</li> - <li><i class="glyphicon-minus-sign"></i> glyphicon-minus-sign</li> - <li><i class="glyphicon-remove-sign"></i> glyphicon-remove-sign</li> - <li><i class="glyphicon-ok-sign"></i> glyphicon-ok-sign</li> - - <li><i class="glyphicon-question-sign"></i> glyphicon-question-sign</li> - <li><i class="glyphicon-info-sign"></i> glyphicon-info-sign</li> - <li><i class="glyphicon-screenshot"></i> glyphicon-screenshot</li> - <li><i class="glyphicon-remove-circle"></i> glyphicon-remove-circle</li> - <li><i class="glyphicon-ok-circle"></i> glyphicon-ok-circle</li> - <li><i class="glyphicon-ban-circle"></i> glyphicon-ban-circle</li> - <li><i class="glyphicon-arrow-left"></i> glyphicon-arrow-left</li> - <li><i class="glyphicon-arrow-right"></i> glyphicon-arrow-right</li> - <li><i class="glyphicon-arrow-up"></i> glyphicon-arrow-up</li> - <li><i class="glyphicon-arrow-down"></i> glyphicon-arrow-down</li> - <li><i class="glyphicon-share-alt"></i> glyphicon-share-alt</li> - <li><i class="glyphicon-resize-full"></i> glyphicon-resize-full</li> - <li><i class="glyphicon-resize-small"></i> glyphicon-resize-small</li> - <li><i class="glyphicon-plus"></i> glyphicon-plus</li> - <li><i class="glyphicon-minus"></i> glyphicon-minus</li> - <li><i class="glyphicon-asterisk"></i> glyphicon-asterisk</li> - <li><i class="glyphicon-exclamation-sign"></i> glyphicon-exclamation-sign</li> - <li><i class="glyphicon-gift"></i> glyphicon-gift</li> - <li><i class="glyphicon-leaf"></i> glyphicon-leaf</li> - <li><i class="glyphicon-fire"></i> glyphicon-fire</li> - <li><i class="glyphicon-eye-open"></i> glyphicon-eye-open</li> - <li><i class="glyphicon-eye-close"></i> glyphicon-eye-close</li> - <li><i class="glyphicon-warning-sign"></i> glyphicon-warning-sign</li> - <li><i class="glyphicon-plane"></i> glyphicon-plane</li> - <li><i class="glyphicon-calendar"></i> glyphicon-calendar</li> - <li><i class="glyphicon-random"></i> glyphicon-random</li> - <li><i class="glyphicon-comment"></i> glyphicon-comment</li> - <li><i class="glyphicon-magnet"></i> glyphicon-magnet</li> - - <li><i class="glyphicon-chevron-up"></i> glyphicon-chevron-up</li> - <li><i class="glyphicon-chevron-down"></i> glyphicon-chevron-down</li> - <li><i class="glyphicon-retweet"></i> glyphicon-retweet</li> - <li><i class="glyphicon-shopping-cart"></i> glyphicon-shopping-cart</li> - <li><i class="glyphicon-folder-close"></i> glyphicon-folder-close</li> - <li><i class="glyphicon-folder-open"></i> glyphicon-folder-open</li> - <li><i class="glyphicon-resize-vertical"></i> glyphicon-resize-vertical</li> - <li><i class="glyphicon-resize-horizontal"></i> glyphicon-resize-horizontal</li> - <li><i class="glyphicon-hdd"></i> glyphicon-hdd</li> - <li><i class="glyphicon-bullhorn"></i> glyphicon-bullhorn</li> - <li><i class="glyphicon-bell"></i> glyphicon-bell</li> - <li><i class="glyphicon-certificate"></i> glyphicon-certificate</li> - <li><i class="glyphicon-thumbs-up"></i> glyphicon-thumbs-up</li> - <li><i class="glyphicon-thumbs-down"></i> glyphicon-thumbs-down</li> - <li><i class="glyphicon-hand-right"></i> glyphicon-hand-right</li> - <li><i class="glyphicon-hand-left"></i> glyphicon-hand-left</li> - <li><i class="glyphicon-hand-up"></i> glyphicon-hand-up</li> - <li><i class="glyphicon-hand-down"></i> glyphicon-hand-down</li> - <li><i class="glyphicon-circle-arrow-right"></i> glyphicon-circle-arrow-right</li> - <li><i class="glyphicon-circle-arrow-left"></i> glyphicon-circle-arrow-left</li> - <li><i class="glyphicon-circle-arrow-up"></i> glyphicon-circle-arrow-up</li> - <li><i class="glyphicon-circle-arrow-down"></i> glyphicon-circle-arrow-down</li> - <li><i class="glyphicon-globe"></i> glyphicon-globe</li> - <li><i class="glyphicon-wrench"></i> glyphicon-wrench</li> - <li><i class="glyphicon-tasks"></i> glyphicon-tasks</li> - <li><i class="glyphicon-filter"></i> glyphicon-filter</li> - <li><i class="glyphicon-briefcase"></i> glyphicon-briefcase</li> - <li><i class="glyphicon-fullscreen"></i> glyphicon-fullscreen</li> - - <li><i class="glyphicon-dashboard"></i> glyphicon-dashboard</li> - <li><i class="glyphicon-paperclip"></i> glyphicon-paperclip</li> - <li><i class="glyphicon-heart-empty"></i> glyphicon-heart-empty</li> - <li><i class="glyphicon-link"></i> glyphicon-link</li> - <li><i class="glyphicon-phone"></i> glyphicon-phone</li> - <li><i class="glyphicon-pushpin"></i> glyphicon-pushpin</li> - <li><i class="glyphicon-euro"></i> glyphicon-euro</li> - <li><i class="glyphicon-usd"></i> glyphicon-usd</li> - <li><i class="glyphicon-gbp"></i> glyphicon-gbp</li> - <li><i class="glyphicon-sort"></i> glyphicon-sort</li> - <li><i class="glyphicon-sort-by-alphabet"></i> glyphicon-sort-by-alphabet</li> - <li><i class="glyphicon-sort-by-alphabet-alt"></i> glyphicon-sort-by-alphabet-alt</li> - <li><i class="glyphicon-sort-by-order"></i> glyphicon-sort-by-order</li> - <li><i class="glyphicon-sort-by-order-alt"></i> glyphicon-sort-by-order-alt</li> - <li><i class="glyphicon-sort-by-attributes"></i> glyphicon-sort-by-attributes</li> - <li><i class="glyphicon-sort-by-attributes-alt"></i> glyphicon-sort-by-attributes-alt</li> - <li><i class="glyphicon-unchecked"></i> glyphicon-unchecked</li> - <li><i class="glyphicon-expand"></i> glyphicon-expand</li> - <li><i class="glyphicon-collapse"></i> glyphicon-collapse</li> - <li><i class="glyphicon-collapse-top"></i> glyphicon-collapse-top</li> - - </ul> - - <h3>Glyphicons attribution</h3> - <p><a href="http://glyphicons.com/">Glyphicons</a> Halflings are normally not available for free, but an arrangement between Bootstrap and the Glyphicons creator have made this possible at no cost to you as developers. As a thank you, we ask you to include an optional link back to <a href="http://glyphicons.com/">Glyphicons</a> whenever practical.</p> - - - <h2>How to use</h2> - <p>Add the appropriate class to any inline element. All icon classes are prefixed with <code>glyphicon-</code> for easy styling. To use, place the following code just about anywhere:</p> -<pre class="prettyprint linenums"> -<i class="glyphicon-search"></i> -</pre> - <p>Want to change the icon color? Just change the <code>color</code> of the parent element.</p> - <p>When using beside strings of text, as in buttons or nav links, be sure to leave a space after the icon for proper spacing.</p> - - - <h2>Icon examples</h2> - <p>Use them in buttons, button groups for a toolbar, navigation, or prepended form inputs.</p> - - <h4>Buttons</h4> - - <h5>Button group in a button toolbar</h5> - <div class="bs-docs-example"> - <div class="btn-toolbar"> - <div class="btn-group"> - <a class="btn" href="#"><i class="glyphicon-align-left"></i></a> - <a class="btn" href="#"><i class="glyphicon-align-center"></i></a> - <a class="btn" href="#"><i class="glyphicon-align-right"></i></a> - <a class="btn" href="#"><i class="glyphicon-align-justify"></i></a> - </div> - </div> - </div>{{! /bs-docs-example }} -<pre class="prettyprint linenums"> -<div class="btn-toolbar"> - <div class="btn-group"> - - <a class="btn" href="#"><i class="glyphicon-align-left"></i></a> - <a class="btn" href="#"><i class="glyphicon-align-center"></i></a> - <a class="btn" href="#"><i class="glyphicon-align-right"></i></a> - <a class="btn" href="#"><i class="glyphicon-align-justify"></i></a> - </div> -</div> -</pre> - - <h5>Dropdown in a button group</h5> - <div class="bs-docs-example"> - <div class="btn-group"> - <a class="btn btn-primary" href="#"><i class="glyphicon-user icon-white"></i> User</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="glyphicon-pencil"></i> Edit</a></li> - <li><a href="#"><i class="glyphicon-trash"></i> Delete</a></li> - <li><a href="#"><i class="glyphicon-ban-circle"></i> Ban</a></li> - <li class="divider"></li> - <li><a href="#"><i class="i"></i> Make admin</a></li> - </ul> - </div> - </div>{{! /bs-docs-example }} -<pre class="prettyprint linenums"> -<div class="btn-group"> - <a class="btn btn-primary" href="#"><i class="glyphicon-user icon-white"></i> User</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="glyphicon-pencil"></i> Edit</a></li> - <li><a href="#"><i class="glyphicon-trash"></i> Delete</a></li> - <li><a href="#"><i class="glyphicon-ban-circle"></i> Ban</a></li> - <li class="divider"></li> - <li><a href="#"><i class="i"></i> Make admin</a></li> - </ul> -</div> -</pre> - - <h5>Large button</h5> - <div class="bs-docs-example"> - <a class="btn btn-large" href="#"><i class="icon-star"></i> Star</a> - </div>{{! /bs-docs-example }} -<pre class="prettyprint linenums"> -<a class="btn btn-large" href="#"><i class="icon-star"></i> Star</a> -</pre> - - <h5>Small button</h5> - <div class="bs-docs-example"> - <a class="btn btn-small" href="#"><i class="glyphicon-star"></i></a> - </div>{{! /bs-docs-example }} -<pre class="prettyprint linenums"> -<a class="btn btn-small" href="#"><i class="glyphicon-star"></i></a> -</pre> - - - <h4>Navigation</h4> - <div class="bs-docs-example"> - <ul class="nav nav-list"> - <li class="active"><a href="#"><i class="glyphicon-home icon-white"></i> Home</a></li> - <li><a href="#"><i class="glyphicon-book"></i> Library</a></li> - <li><a href="#"><i class="glyphicon-pencil"></i> Applications</a></li> - <li><a href="#"><i class="i"></i> Misc</a></li> - </ul> - </div>{{! /bs-docs-example }} -<pre class="prettyprint linenums"> -<ul class="nav nav-list"> - <li class="active"><a href="#"><i class="glyphicon-home icon-white"></i> Home</a></li> - <li><a href="#"><i class="glyphicon-book"></i> Library</a></li> - <li><a href="#"><i class="glyphicon-pencil"></i> Applications</a></li> - <li><a href="#"><i class="i"></i> Misc</a></li> -</ul> -</pre> - - <h4>Form fields</h4> - <form class="bs-docs-example form-horizontal"> - <div class="control-group"> - <label class="control-label" for="inputIcon">Email address</label> - <div class="controls"> - <div class="input-group"> - <span class="input-group-addon"><i class="glyphicon-envelope"></i></span> - <input class="span2" id="inputIcon" type="text"> - </div> - </div> - </div> - </form> -<pre class="prettyprint linenums"> -<div class="control-group"> - <label class="control-label" for="inputIcon">Email address</label> - <div class="controls"> - <div class="input-group"> - <span class="input-group-addon"><i class="glyphicon-envelope"></i></span> - <input class="span2" id="inputIcon" type="text"> - </div> - </div> -</div> -</pre> - - </section> - - - - <!-- Responsive design - ================================================== --> - <section id="responsive-utilities"> - <div class="page-header"> - <h1>Responsive utilities</h1> - </div> - <p class="lead">For faster mobile-friendly development, use these utility classes for showing and hiding content by device via media query.</p> - - <table class="table table-bordered table-striped responsive-utilities"> - <thead> - <tr> - <th>Class</th> - <th>Phones <small>767px and below</small></th> - <th>Tablets <small>979px to 768px</small></th> - <th>Desktops <small>Default</small></th> - </tr> - </thead> - <tbody> - <tr> - <th><code>.visible-phone</code></th> - <td class="is-visible">Visible</td> - <td class="is-hidden">Hidden</td> - <td class="is-hidden">Hidden</td> - </tr> - <tr> - <th><code>.visible-tablet</code></th> - <td class="is-hidden">Hidden</td> - <td class="is-visible">Visible</td> - <td class="is-hidden">Hidden</td> - </tr> - <tr> - <th><code>.visible-desktop</code></th> - <td class="is-hidden">Hidden</td> - <td class="is-hidden">Hidden</td> - <td class="is-visible">Visible</td> - </tr> - <tr> - <th><code>.hidden-phone</code></th> - <td class="is-hidden">Hidden</td> - <td class="is-visible">Visible</td> - <td class="is-visible">Visible</td> - </tr> - <tr> - <th><code>.hidden-tablet</code></th> - <td class="is-visible">Visible</td> - <td class="is-hidden">Hidden</td> - <td class="is-visible">Visible</td> - </tr> - <tr> - <th><code>.hidden-desktop</code></th> - <td class="is-visible">Visible</td> - <td class="is-visible">Visible</td> - <td class="is-hidden">Hidden</td> - </tr> - </tbody> - </table> - - <h3>When to use</h3> - <p>Use on a limited basis and avoid creating entirely different versions of the same site. Instead, use them to complement each device's presentation. Responsive utilities should not be used with tables, and as such are not supported.</p> - - <h3>Responsive utilities test case</h3> - <p>Resize your browser or load on different devices to test the above classes.</p> - <h4>Visible on...</h4> - <p>Green checkmarks indicate that class is visible in your current viewport.</p> - <ul class="responsive-utilities-test"> - <li>Phone<span class="visible-phone">✔ Phone</span></li> - <li>Tablet<span class="visible-tablet">✔ Tablet</span></li> - <li>Desktop<span class="visible-desktop">✔ Desktop</span></li> - </ul> - <h4>Hidden on...</h4> - <p>Here, green checkmarks indicate that class is hidden in your current viewport.</p> - <ul class="responsive-utilities-test hidden-on"> - <li>Phone<span class="hidden-phone">✔ Phone</span></li> - <li>Tablet<span class="hidden-tablet">✔ Tablet</span></li> - <li>Desktop<span class="hidden-desktop">✔ Desktop</span></li> - </ul> - - </section> - - - - </div>{{! /span9 }} - </div>{{! row}} - - </div>{{! /.container }} diff --git a/docs/templates/pages/customize.mustache b/docs/templates/pages/customize.mustache deleted file mode 100644 index 93c393f83..000000000 --- a/docs/templates/pages/customize.mustache +++ /dev/null @@ -1,370 +0,0 @@ -<!-- Masthead -================================================== --> -<header class="bs-docs-jumbotron subhead"> - <div class="container"> - <h1>Customize and download</h1> - <p class="lead"><a href="https://github.com/twitter/bootstrap/zipball/master">Download Bootstrap</a> or customize variables, components, JavaScript plugins, and more.</p> - </div> -</header> - - - <div class="container"> - - <!-- Docs nav - ================================================== --> - <div class="row"> - <div class="span3 bs-docs-sidebar"> - <ul class="nav nav-list bs-docs-sidenav"> - <li><a href="#components"><i class="glyphicon-chevron-right"></i> 1. Choose components</a></li> - <li><a href="#plugins"><i class="glyphicon-chevron-right"></i> 2. Select jQuery plugins</a></li> - <li><a href="#variables"><i class="glyphicon-chevron-right"></i> 3. Customize variables</a></li> - <li><a href="#download"><i class="glyphicon-chevron-right"></i> 4. Download</a></li> - </ul> - </div> - <div class="span9"> - - - <!-- Customize form - ================================================== --> - <form> - <section class="download" id="components"> - <div class="page-header"> - <a class="btn btn-small pull-right toggle-all" href="#">Toggle all</a> - <h1> - 1. Choose components - </h1> - </div> - <div class="row download-builder"> - <div class="span3"> - <h3>Scaffolding</h3> - <label class="checkbox"><input checked="checked" type="checkbox" value="reset.less"> Normalize and reset</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="scaffolding.less"> Body type and links</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="grid.less"> Grid system</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="layouts.less"> Layouts</label> - <h3>Base CSS</h3> - <label class="checkbox"><input checked="checked" type="checkbox" value="type.less"> Headings, body, etc</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="code.less"> Code and pre</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="labels-badges.less"> Labels and badges</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="tables.less"> Tables</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="forms.less"> Forms</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="buttons.less"> Buttons</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="sprites.less"> Icons</label> - </div><!-- /span --> - <div class="span3"> - <h3>Components</h3> - <label class="checkbox"><input checked="checked" type="checkbox" value="button-groups.less"> Button groups and dropdowns</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="navs.less"> Navs, tabs, and pills</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="navbar.less"> Navbar</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="breadcrumbs.less"> Breadcrumbs</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="pagination.less"> Pagination</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="pager.less"> Pager</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="thumbnails.less"> Thumbnails</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="alerts.less"> Alerts</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="progress-bars.less"> Progress bars</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="hero-unit.less"> Hero unit</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="media.less"> Media component</label> - <h3>JS Components</h3> - <label class="checkbox"><input checked="checked" type="checkbox" value="tooltip.less"> Tooltips</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="popovers.less"> Popovers</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="modals.less"> Modals</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="dropdowns.less"> Dropdowns</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="accordion.less"> Collapse</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="carousel.less"> Carousel</label> - </div><!-- /span --> - <div class="span3"> - <h3>Miscellaneous</h3> - <label class="checkbox"><input checked="checked" type="checkbox" value="wells.less"> Wells</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="close.less"> Close icon</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="utilities.less"> Utilities</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="component-animations.less"> Component animations</label> - <h3>Responsive</h3> - <label class="checkbox"><input checked="checked" type="checkbox" value="responsive-utilities.less"> Visible/hidden classes</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="responsive-767px-max.less"> Narrow tablets and below (<767px)</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="responsive-768px-979px.less"> Tablets to desktops (767-979px)</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="responsive-1200px-min.less"> Large desktops (>1200px)</label> - <label class="checkbox"><input checked="checked" type="checkbox" value="responsive-navbar.less"> Responsive navbar</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="#">Toggle all</a> - <h1> - 2. Select jQuery plugins - </h1> - </div> - <div class="row download-builder"> - <div class="span3"> - <label class="checkbox"> - <input type="checkbox" checked="true" value="bootstrap-transition.js"> - Transitions <small>(required for any animation)</small> - </label> - <label class="checkbox"> - <input type="checkbox" checked="true" value="bootstrap-modal.js"> - Modals - </label> - <label class="checkbox"> - <input type="checkbox" checked="true" value="bootstrap-dropdown.js"> - Dropdowns - </label> - <label class="checkbox"> - <input type="checkbox" checked="true" value="bootstrap-scrollspy.js"> - Scrollspy - </label> - <label class="checkbox"> - <input type="checkbox" checked="true" value="bootstrap-tab.js"> - Togglable tabs - </label> - <label class="checkbox"> - <input type="checkbox" checked="true" value="bootstrap-tooltip.js"> - Tooltips - </label> - <label class="checkbox"> - <input type="checkbox" checked="true" value="bootstrap-popover.js"> - Popovers <small>(requires Tooltips)</small> - </label> - </div><!-- /span --> - <div class="span3"> - <label class="checkbox"> - <input type="checkbox" checked="true" value="bootstrap-affix.js"> - Affix - </label> - <label class="checkbox"> - <input type="checkbox" checked="true" value="bootstrap-alert.js"> - Alert messages - </label> - <label class="checkbox"> - <input type="checkbox" checked="true" value="bootstrap-button.js"> - Buttons - </label> - <label class="checkbox"> - <input type="checkbox" checked="true" value="bootstrap-collapse.js"> - Collapse - </label> - <label class="checkbox"> - <input type="checkbox" checked="true" value="bootstrap-carousel.js"> - Carousel - </label> - <label class="checkbox"> - <input type="checkbox" checked="true" value="bootstrap-typeahead.js"> - Typeahead - </label> - </div><!-- /span --> - <div class="span3"> - <h4 class="muted">Heads up!</h4> - <p class="muted">All checked plugins will be compiled into a single file, bootstrap.js. All plugins require the latest version of <a href="http://jquery.com/" target="_blank">jQuery</a> to be included.</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="#">Reset to defaults</a> - <h1> - 3. Customize variables - </h1> - </div> - <div class="row download-builder"> - <div class="span3"> - <h3>Scaffolding</h3> - <label>@body-background</label> - <input type="text" class="span3" placeholder="#fff"> - <label>@text-color</label> - <input type="text" class="span3" placeholder="@grayDark"> - - <h3>Links</h3> - <label>@link-color</label> - <input type="text" class="span3" placeholder="#08c"> - <label>@link-color-hover</label> - <input type="text" class="span3" placeholder="darken(@link-color, 15%)"> - - <h3>Grid system</h3> - <label>@grid-columns</label> - <input type="text" class="span3" placeholder="12"> - <label>@grid-column-width</label> - <input type="text" class="span3" placeholder="60px"> - <label>@grid-gutter-width</label> - <input type="text" class="span3" placeholder="20px"> - <label>@grid-column-width-1200</label> - <input type="text" class="span3" placeholder="70px"> - <label>@grid-gutter-width-1200</label> - <input type="text" class="span3" placeholder="30px"> - <label>@grid-column-width-768</label> - <input type="text" class="span3" placeholder="42px"> - <label>@grid-gutter-width-768</label> - <input type="text" class="span3" placeholder="20px"> - - </div><!-- /span --> - <div class="span3"> - - <h3>Typography</h3> - <label>@font-family-sans-serif</label> - <input type="text" class="span3" placeholder="'Helvetica Neue', Helvetica, Arial, sans-serif"> - <label>@font-family-serif</label> - <input type="text" class="span3" placeholder="Georgia, 'Times New Roman', Times, serif"> - <label>@font-family-monospace</label> - <input type="text" class="span3" placeholder="Menlo, Monaco, 'Courier New', monospace"> - - <label>@font-size-base</label> - <input type="text" class="span3" placeholder="14px"> - <label>@font-family-base</label> - <input type="text" class="span3" placeholder="@font-family-sans-serif"> - <label>@line-height-base</label> - <input type="text" class="span3" placeholder="20px"> - - <label>@headings-font-family</label> - <input type="text" class="span3" placeholder="inherit"> - <label>@headings-font-weight</label> - <input type="text" class="span3" placeholder="bold"> - <label>@headingsColor</label> - <input type="text" class="span3" placeholder="inherit"> - - <label>@font-size-large</label> - <input type="text" class="span3" placeholder="@font-size-base * 1.25"> - <label>@font-size-small</label> - <input type="text" class="span3" placeholder="@font-size-base * 0.85"> - <label>@font-size-mini</label> - <input type="text" class="span3" placeholder="@font-size-base * 0.75"> - - <label>@padding-large</label> - <input type="text" class="span3" placeholder="11px 19px"> - <label>@padding-small</label> - <input type="text" class="span3" placeholder="2px 10px"> - <label>@padding-mini</label> - <input type="text" class="span3" placeholder="1px 6px"> - - <label>@border-radius-base</label> - <input type="text" class="span3" placeholder="4px"> - <label>@border-radius-large</label> - <input type="text" class="span3" placeholder="6px"> - <label>@border-radius-small</label> - <input type="text" class="span3" placeholder="3px"> - - <label>@hero-background</label> - <input type="text" class="span3" placeholder="@grayLighter"> - <label>@hero-heading-color</label> - <input type="text" class="span3" placeholder="inherit"> - <label>@hero-lead-color</label> - <input type="text" class="span3" placeholder="inherit"> - - <h3>Tables</h3> - <label>@table-background</label> - <input type="text" class="span3" placeholder="transparent"> - <label>@table-background-accent</label> - <input type="text" class="span3" placeholder="#f9f9f9"> - <label>@table-background-hover</label> - <input type="text" class="span3" placeholder="#f5f5f5"> - <label>@table-border</label> - <input type="text" class="span3" placeholder="#ddd"> - - <h3>Forms</h3> - <label>@input-color-placeholder</label> - <input type="text" class="span3" placeholder="@grayLight"> - <label>@input-background</label> - <input type="text" class="span3" placeholder="#fff"> - <label>@input-border</label> - <input type="text" class="span3" placeholder="#ccc"> - <label>@input-border-radius</label> - <input type="text" class="span3" placeholder="3px"> - <label>@input-background-disabled</label> - <input type="text" class="span3" placeholder="@grayLighter"> - <label>@form-actions-background</label> - <input type="text" class="span3" placeholder="#f5f5f5"> - <label>@btn-backround-primary</label> - <input type="text" class="span3" placeholder="@link-color"> - <label>@btn-backround-primary-highlight</label> - <input type="text" class="span3" placeholder="darken(#fff, 10%)"> - - </div><!-- /span --> - <div class="span3"> - - <h3>Form states & alerts</h3> - <label>@state-warning-text</label> - <input type="text" class="span3" placeholder="#c09853"> - <label>@state-warning-background</label> - <input type="text" class="span3" placeholder="#fcf8e3"> - <label>@state-error-text</label> - <input type="text" class="span3" placeholder="#b94a48"> - <label>@state-error-background</label> - <input type="text" class="span3" placeholder="#f2dede"> - <label>@state-success-text</label> - <input type="text" class="span3" placeholder="#468847"> - <label>@state-success-background</label> - <input type="text" class="span3" placeholder="#dff0d8"> - <label>@state-info-text</label> - <input type="text" class="span3" placeholder="#3a87ad"> - <label>@state-info-background</label> - <input type="text" class="span3" placeholder="#d9edf7"> - - <h3>Navbar</h3> - <label>@navbar-height</label> - <input type="text" class="span3" placeholder="40px"> - <label>@navbar-background</label> - <input type="text" class="span3" placeholder="@grayDarker"> - <label>@navbar-background-highlight</label> - <input type="text" class="span3" placeholder="@grayDark"> - <label>@navbar-text</label> - <input type="text" class="span3" placeholder="@grayLight"> - <label>@navbar-brand-color</label> - <input type="text" class="span3" placeholder="@navbar-link-color"> - <label>@navbar-link-color</label> - <input type="text" class="span3" placeholder="@grayLight"> - <label>@navbar-link-color-hover</label> - <input type="text" class="span3" placeholder="#fff"> - <label>@navbar-link-color-active</label> - <input type="text" class="span3" placeholder="@navbar-link-color-hover"> - <label>@navbar-link-background-hover</label> - <input type="text" class="span3" placeholder="transparent"> - <label>@navbar-link-background-active</label> - <input type="text" class="span3" placeholder="@navbar-background"> - <label>@navbarSearchBackground</label> - <input type="text" class="span3" placeholder="lighten(@navbar-background, 25%)"> - <label>@navbarSearchBackgroundFocus</label> - <input type="text" class="span3" placeholder="#fff"> - <label>@navbarSearchBorder</label> - <input type="text" class="span3" placeholder="darken(@navbarSearchBackground, 30%)"> - <label>@navbarSearchPlaceholderColor</label> - <input type="text" class="span3" placeholder="#ccc"> - - <label>@navbar-collapse-width</label> - <input type="text" class="span3" placeholder="979px"> - <label>@navbar-collapse-width-desktop</label> - <input type="text" class="span3" placeholder="@navbar-collapse-width + 1"> - - <h3>Dropdowns</h3> - <label>@dropdown-background</label> - <input type="text" class="span3" placeholder="#fff"> - <label>@dropdown-border</label> - <input type="text" class="span3" placeholder="rgba(0,0,0,.2)"> - <label>@dropdown-link-color</label> - <input type="text" class="span3" placeholder="@grayDark"> - <label>@dropdown-link-color-hover</label> - <input type="text" class="span3" placeholder="#fff"> - <label>@dropdown-link-background-hover</label> - <input type="text" class="span3" placeholder="@link-color"> - </div><!-- /span --> - </div><!-- /row --> - </section> - - <section class="download" id="download"> - <div class="page-header"> - <h1> - 4. Download - </h1> - </div> - <div class="download-btn"> - <a class="btn btn-primary" href="#" {{#production}}onclick="_gaq.push(['_trackEvent', 'Customize', 'Download', 'Customize and Download']);"{{/production}}>Customize and Download</a> - <h4>What's included?</h4> - <p>Downloads include compiled CSS, compiled and minified CSS, and compiled jQuery plugins, all nicely packed up into a zipball for your convenience.</p> - </div> - </section><!-- /download --> - </form> - - - - </div>{{! /span9 }} - </div>{{! row}} - - </div>{{! /.container }} diff --git a/docs/templates/pages/gallery.mustache b/docs/templates/pages/gallery.mustache deleted file mode 100644 index a3ba5d3de..000000000 --- a/docs/templates/pages/gallery.mustache +++ /dev/null @@ -1,119 +0,0 @@ -<!-- Subhead -================================================== --> -<header class="bs-docs-jumbotron subhead"> - <div class="container"> - <h1>Gallery</h1> - <p class="lead">Showcase of sites using Bootstrap.</p> - </div> -</header> - - -<div class="container"> - - <section class="bs-docs-gallery"> - <div class="row"> - <div class="span4"> - <a class="thumbnail" href="https://gosquared.com"> - <img src="assets/img/example-sites/example-gosquared.jpg"> - </a> - </div> - <div class="span4"> - <a class="thumbnail" href="https://easel.com"> - <img src="assets/img/example-sites/example-easel.jpg"> - </a> - </div> - <div class="span4"> - <a class="thumbnail" href="https://tonx.com"> - <img src="assets/img/example-sites/example-tonx.jpg"> - </a> - </div> - <div class="span4"> - <a class="thumbnail" href="https://jshint.com"> - <img src="assets/img/example-sites/example-jshint.jpg"> - </a> - </div> - <div class="span4"> - <a class="thumbnail" href="https://synco.fm"> - <img src="assets/img/example-sites/example-synco.jpg"> - </a> - </div> - <div class="span4"> - <a class="thumbnail" href="https://yourkarma.com"> - <img src="assets/img/example-sites/example-karma.jpg"> - </a> - </div> - <div class="span4"> - <a class="thumbnail" href="http://metrotwit.com"> - <img src="assets/img/example-sites/example-metrotwit.jpg"> - </a> - </div> - <div class="span4"> - <a class="thumbnail" href="http://codecademy.com"> - <img src="assets/img/example-sites/example-codecademy.jpg"> - </a> - </div> - <div class="span4"> - <a class="thumbnail" href="http://jetstrap.com"> - <img src="assets/img/example-sites/example-jetstrap.jpg"> - </a> - </div> - <div class="span4"> - <a class="thumbnail" href="http://divshot.com"> - <img src="assets/img/example-sites/example-divshot.jpg"> - </a> - </div> - <div class="span4"> - <a class="thumbnail" href="http://translate.twttr.com"> - <img src="assets/img/example-sites/example-twitter-translation-center.jpg"> - </a> - </div> - <div class="span4"> - <a class="thumbnail" href="http://soundready.fm"> - <img src="assets/img/example-sites/example-soundready.jpg"> - </a> - </div> - <div class="span4"> - <a class="thumbnail" href="http://breakingnews.com"> - <img src="assets/img/example-sites/example-breakingnews.jpg"> - </a> - </div> - <div class="span4"> - <a class="thumbnail" href="http://desk.com"> - <img src="assets/img/example-sites/example-desk.jpg"> - </a> - </div> - <div class="span4"> - <a class="thumbnail" href="http://jumpstartui.com"> - <img src="assets/img/example-sites/example-jumpstart-ui.jpg"> - </a> - </div> - <div class="span4"> - <a class="thumbnail" href="http://atheycreek.com"> - <img src="assets/img/example-sites/example-athey-creek.jpg"> - </a> - </div> - - <div class="span4"> - <a class="thumbnail" href="http://fleetio.com"> - <img src="assets/img/example-sites/example-fleetio.jpg"> - </a> - </div> - <div class="span4"> - <a class="thumbnail" href="http://breakingnews.com"> - <img src="assets/img/example-sites/example-breakingnews.jpg"> - </a> - </div> - <div class="span4"> - <a class="thumbnail" href="http://adoptahydrant.com"> - <img src="assets/img/example-sites/example-adoptahydrant.jpg"> - </a> - </div> - <div class="span4"> - <a class="thumbnail" href="http://8020select.com"> - <img src="assets/img/example-sites/example-8020select.jpg"> - </a> - </div> - </div>{{! /.row }} - </section> - -</div>{{! /.container }} diff --git a/docs/templates/pages/getting-started.mustache b/docs/templates/pages/getting-started.mustache deleted file mode 100644 index fb23b7605..000000000 --- a/docs/templates/pages/getting-started.mustache +++ /dev/null @@ -1,244 +0,0 @@ -<!-- Subhead -================================================== --> -<header class="bs-docs-jumbotron subhead"> - <div class="container"> - <h1>Getting started</h1> - <p class="lead">Overview of the project, its contents, and how to get started with a simple template.</p> - </div> -</header> - - - <div class="container"> - - <!-- Docs nav - ================================================== --> - <div class="row"> - <div class="span3 bs-docs-sidebar"> - <ul class="nav nav-list bs-docs-sidenav"> - <li><a href="#download-bootstrap"><i class="glyphicon-chevron-right"></i> Download</a></li> - <li><a href="#file-structure"><i class="glyphicon-chevron-right"></i> File structure</a></li> - <li><a href="#contents"><i class="glyphicon-chevron-right"></i> What's included</a></li> - <li><a href="#html-template"><i class="glyphicon-chevron-right"></i> HTML template</a></li> - <li><a href="#examples"><i class="glyphicon-chevron-right"></i> Examples</a></li> - <li><a href="#what-next"><i class="glyphicon-chevron-right"></i> What next?</a></li> - </ul> - </div> - <div class="span9"> - - - - <!-- Download - ================================================== --> - <section id="download-bootstrap"> - <div class="page-header"> - <h1>1. Download</h1> - </div> - <p class="lead">Before downloading, be sure to have a code editor (we recommend <a href="http://sublimetext.com/2">Sublime Text 2</a>) and some working knowledge of HTML and CSS. We won't walk through the source files here, but they are available for download. We'll focus on getting started with the compiled Bootstrap files.</p> - - <div class="row"> - <div class="span6"> - <h2>Download compiled</h2> - <p><strong>Fastest way to get started:</strong> get the compiled and minified versions of our CSS, JS, and images. No docs or original source files.</p> - <p><a class="btn btn-large btn-primary" href="assets/bootstrap.zip" {{#production}}onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download compiled']);"{{/production}}>Download Bootstrap</a></p> - </div> - <div class="span6"> - <h2>Download source</h2> - <p>Get the original files for all CSS and JavaScript, along with a local copy of the docs by downloading the latest version directly from GitHub.</p> - <p><a class="btn btn-large" href="https://github.com/twitter/bootstrap/zipball/master" {{#production}}onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download source']);"{{/production}}>Download Bootstrap source</a></p> - </div> - </div> - </section> - - - - <!-- File structure - ================================================== --> - <section id="file-structure"> - <div class="page-header"> - <h1>2. File structure</h1> - </div> - <p class="lead">Within the download you'll find the following file structure and contents, logically grouping common assets and providing both compiled and minified variations.</p> - <p>Once downloaded, unzip the compressed folder to see the structure of (the compiled) Bootstrap. You'll see something like this:</p> -<pre class="prettyprint"> - bootstrap/ - ├── css/ - │ ├── bootstrap.css - │ ├── bootstrap.min.css - ├── js/ - │ ├── bootstrap.js - │ ├── bootstrap.min.js - └── fonts/ - ├── glyphiconshalflings-regular.eot - ├── glyphiconshalflings-regular.otf - ├── glyphiconshalflings-regular.svg - ├── glyphiconshalflings-regular.ttf - └── glyphiconshalflings-regular.woff -</pre> - <p>This is the most basic form of Bootstrap: compiled files for quick drop-in usage in nearly any web project. We provide compiled CSS and JS (<code>bootstrap.*</code>), as well as compiled and minified CSS and JS (<code>bootstrap.min.*</code>). The image files are compressed using <a href="http://imageoptim.com/">ImageOptim</a>, a Mac app for compressing PNGs.</p> - <p>Please note that <strong>all JavaScript plugins require jQuery</strong> to be included.</p> - </section> - - - - <!-- Contents - ================================================== --> - <section id="contents"> - <div class="page-header"> - <h1>3. What's included</h1> - </div> - <p class="lead">Bootstrap comes equipped with HTML, CSS, and JS for all sorts of things, but they can be summarized with a handful of categories visible at the top of the <a href="http://getbootstrap.com">Bootstrap documentation</a>.</p> - - <h2>Docs sections</h2> - <p>In addition to the getting started documentation you're reading now, the Bootstrap docs are broken into a few key pages.</p> - - <h4><a href="http://twitter.github.com/bootstrap/css.html">Core CSS</a></h4> - <p>Global styles for the body, Normalize, links, grid system, tables, forms, buttons, icons, and more.</p> - <h4><a href="http://twitter.github.com/bootstrap/components.html">Components</a></h4> - <p>Basic styles for common interface components like tabs and pills, navbar, alerts, page headers, and more. Head here to see what kind of custom components Bootstrap has to offer beyond basic HTML elements.</p> - <h4><a href="http://twitter.github.com/bootstrap/javascript.html">JavaScript plugins</a></h4> - <p>Similar to Components, these JavaScript plugins are interactive components for things like tooltips, popovers, modals, and more.</p> - </section> - - - - <!-- HTML template - ================================================== --> - <section id="html-template"> - <div class="page-header"> - <h1>4. Basic HTML template</h1> - </div> - <p class="lead">With a brief intro into the contents out of the way, we can focus on putting Bootstrap to use. To do that, we'll utilize a basic HTML template that includes everything we mentioned in the <a href="./getting-started.html#file-structure">File structure</a>.</p> - <p>Now, here's a look at a <strong>typical HTML file</strong>:</p> -<pre class="prettyprint linenums"> -<!DOCTYPE html> -<html> - <head> - <title>Bootstrap 101 Template</title> - <meta name="viewport" content="width=device-width, initial-scale=1.0"> - </head> - <body> - <h1>Hello, world!</h1> - <script src="http://code.jquery.com/jquery.js"></script> - </body> -</html> -</pre> - <p>To make this <strong>a Bootstrapped template</strong>, just include the appropriate CSS and JS files:</p> -<pre class="prettyprint linenums"> -<!DOCTYPE html> -<html> - <head> - <title>Bootstrap 101 Template</title> - <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <!-- Bootstrap --> - <link href="css/bootstrap.min.css" rel="stylesheet" media="screen"> - </head> - <body> - <h1>Hello, world!</h1> - <script src="http://code.jquery.com/jquery.js"></script> - <script src="js/bootstrap.min.js"></script> - </body> -</html> -</pre> - <p><strong>And you're set!</strong> With those two files added, you can begin to develop any site or application with Bootstrap.</p> - - <hr> - - <h4>Responsive features in IE8</h4> - <p>Internet Explorer 8 lacks support for media queries, the method by which we deliver responsive CSS to folks. To enable that, you need to include a third party tool (which we include in the project repository) called <a href="https://github.com/scottjehl/Respond">Respond.js</a>.</p> -<pre class="prettyprint linenums"> -<!--[if lt IE 9]> - <script src="assets/js/respond/respond.js"></script> -<![endif]--> -</pre> - </section> - - - - <!-- Examples - ================================================== --> - <section id="examples"> - <div class="page-header"> - <h1>5. Examples</h1> - </div> - <p class="lead">Move beyond the base template with a few example layouts. We encourage folks to iterate on these examples and not simply use them as an end result.</p> - <div class="row bs-docs-examples"> - <div class="span4"> - <a class="thumbnail" href="examples/starter-template.html"> - <img src="assets/img/examples/bootstrap-example-starter.png" alt=""> - </a> - <h4>Starter template</h4> - <p>A barebones HTML document with all the Bootstrap CSS and JavaScript included.</p> - </div> - <div class="span4"> - <a class="thumbnail" href="examples/jumbotron.html"> - <img src="assets/img/examples/bootstrap-example-marketing.png" alt=""> - </a> - <h4>Basic marketing site</h4> - <p>Featuring a hero unit for a primary message and three supporting elements.</p> - </div> - <div class="span4"> - <a class="thumbnail" href="examples/jumbotron-narrow.html"> - <img src="assets/img/examples/bootstrap-example-jumbotron-narrow.png" alt=""> - </a> - <h4>Narrow marketing</h4> - <p>Slim, lightweight marketing template for small projects or teams.</p> - </div> - <div class="span4"> - <a class="thumbnail" href="examples/justified-nav.html"> - <img src="assets/img/examples/bootstrap-example-justified-nav.png" alt=""> - </a> - <h4>{{_i}}Justified nav{{/i}}</h4> - <p>{{_i}}Marketing page with equal-width navigation links in a modified navbar.{{/i}}</p> - </div> - <div class="span4"> - <a class="thumbnail" href="examples/signin.html"> - <img src="assets/img/examples/bootstrap-example-signin.png" alt=""> - </a> - <h4>Sign in</h4> - <p>Barebones sign in form with custom, larger form controls and a flexible layout.</p> - </div> - <div class="span4"> - <a class="thumbnail" href="examples/sticky-footer.html"> - <img src="assets/img/examples/bootstrap-example-sticky-footer.png" alt=""> - </a> - <h4>Sticky footer</h4> - <p>Pin a fixed-height footer to the bottom of the user's viewport.</p> - </div> - <div class="span4"> - <a class="thumbnail" href="examples/sticky-footer.html"> - <img src="assets/img/examples/bootstrap-example-sticky-footer.png" alt=""> - </a> - <h4>Sticky footer w/ navbar</h4> - <p>Add a fixed navbar to the default sticky footer template.</p> - </div> - <div class="span4"> - <a class="thumbnail" href="examples/carousel.html"> - <img src="assets/img/examples/bootstrap-example-carousel.png" alt=""> - </a> - <h4>Carousel jumbotron</h4> - <p>An interactive riff on the basic marketing site featuring a prominent carousel.</p> - </div> - </div> - </section> - - - - - <!-- Next - ================================================== --> - <section id="what-next"> - <div class="page-header"> - <h1>What next?</h1> - </div> - <p class="lead">Head to the docs for information, examples, and code snippets, or take the next leap and customize Bootstrap for any upcoming project.</p> - <a class="btn btn-large btn-primary" href="./css.html" {{#production}}onclick="_gaq.push(['_trackEvent', 'Getting started', 'Next steps', 'Visit docs']);"{{/production}}>Visit the Bootstrap docs</a> - <a class="btn btn-large" href="./customize.html" style="margin-left: 5px;" {{#production}}onclick="_gaq.push(['_trackEvent', 'Getting started', 'Next steps', 'Customize']);"{{/production}}>Customize Bootstrap</a> - </section> - - - - - </div>{{! /span9 }} - </div>{{! row}} - - </div>{{! /.container }} diff --git a/docs/templates/pages/index.mustache b/docs/templates/pages/index.mustache deleted file mode 100644 index 95f3a73dc..000000000 --- a/docs/templates/pages/index.mustache +++ /dev/null @@ -1,72 +0,0 @@ -<div class="bs-docs-jumbotron masthead"> - <div class="container"> - <h1>Bootstrap</h1> - <p class="lead">Sleek, intuitive, and powerful mobile-first front-end framework for faster and easier web development.</p> - <p> - <a href="assets/bootstrap.zip" class="btn btn-large" {{#production}}onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Download', 'Download 3.0.0']);"{{/production}}>Download Bootstrap</a> - </p> - <ul class="masthead-links"> - <li> - <a href="http://github.com/twitter/bootstrap" {{#production}}onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Jumbotron links', 'GitHub project']);"{{/production}}>GitHub project</a> - </li> - <li> - <a href="./getting-started.html#examples" {{#production}}onclick="_gaq.push(['_trackEvent', 'Jumbotron actions', 'Jumbotron links', 'Examples']);"{{/production}}>Examples</a> - </li> - <li>Version 3.0.0</li> - </ul> - </div> -</div> - -<div class="container"> - - <div class="marketing"> - - <h1>Introducing Bootstrap.</h1> - <p class="marketing-byline">Need reasons to love Bootstrap? Look no further.</p> - - <div class="row"> - <div class="span4"> - <img class="marketing-img" src="assets/img/bs-docs-twitter-github.png"> - <h2>By nerds, for nerds.</h2> - <p>Built at Twitter by <a href="http://twitter.com/mdo">@mdo</a> and <a href="http://twitter.com/fat">@fat</a>, Bootstrap utilizes <a href="http://lesscss.org">LESS CSS</a>, is compiled via <a href="http://nodejs.org">Node</a>, and is managed through <a href="http://github.com">GitHub</a> to help nerds do awesome stuff on the web.</p> - </div> - <div class="span4"> - <img class="marketing-img" src="assets/img/bs-docs-responsive-illustrations.png"> - <h2>Made for everyone.</h2> - <p>Bootstrap 3 has been rebuilt from the ground up to push the Web forward. It looks and behaves great on the latest smartphones, tablets, and desktops (including support for IE8+).</p> - </div> - <div class="span4"> - <img class="marketing-img" src="assets/img/bs-docs-bootstrap-features.png"> - <h2>Packed with features.</h2> - <p>A 12-column responsive <a href="./scaffolding.html#gridSystem">grid</a>, dozens of components, <a href="./javascript.html">JavaScript plugins</a>, typography, form controls, and even a <a href="./customize.html">web-based Customizer</a> to make Bootstrap your own.</p> - </div> - </div> - - <h1>Built with Bootstrap.</h1> - <p class="marketing-byline">For more sites built with Bootstrap, <a href="./gallery.html">visit the gallery</a> or <a href="./getting-started.html#examples">browse the examples</a>.</p> - <div class="row example-sites"> - <div class="span3"> - <a class="thumbnail" href="http://delicious.com"> - <img src="assets/img/example-sites/example-delicious.jpg"> - </a> - </div> - <div class="span3"> - <a class="thumbnail" href="http://soundready.fm/" target="_blank"> - <img src="assets/img/example-sites/example-soundready.jpg" alt="SoundReady.fm"> - </a> - </div> - <div class="span3"> - <a class="thumbnail" href="http://kippt.com/" target="_blank"> - <img src="assets/img/example-sites/example-kippt.jpg" alt="Kippt"> - </a> - </div> - <div class="span3"> - <a class="thumbnail" href="http://www.gathercontent.com/" target="_blank"> - <img src="assets/img/example-sites/example-gathercontent.jpg" alt="Gather Content"> - </a> - </div> - </div> - - </div>{{! /.marketing }} - -</div>{{! /.container }} diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache deleted file mode 100644 index 7dd97087b..000000000 --- a/docs/templates/pages/javascript.mustache +++ /dev/null @@ -1,1694 +0,0 @@ -<!-- Subhead -================================================== --> -<header class="bs-docs-jumbotron subhead"> - <div class="container"> - <h1>JavaScript</h1> - <p class="lead">Bring Bootstrap's components to life—now with 13 custom jQuery plugins. - </div> -</header> - - <div class="container"> - - <!-- Docs nav - ================================================== --> - <div class="row"> - <div class="span3 bs-docs-sidebar"> - <ul class="nav nav-list bs-docs-sidenav"> - <li><a href="#overview"><i class="glyphicon-chevron-right"></i> Overview</a></li> - <li><a href="#transitions"><i class="glyphicon-chevron-right"></i> Transitions</a></li> - <li><a href="#modals"><i class="glyphicon-chevron-right"></i> Modal</a></li> - <li><a href="#dropdowns"><i class="glyphicon-chevron-right"></i> Dropdown</a></li> - <li><a href="#scrollspy"><i class="glyphicon-chevron-right"></i> Scrollspy</a></li> - <li><a href="#tabs"><i class="glyphicon-chevron-right"></i> Tab</a></li> - <li><a href="#tooltips"><i class="glyphicon-chevron-right"></i> Tooltip</a></li> - <li><a href="#popovers"><i class="glyphicon-chevron-right"></i> Popover</a></li> - <li><a href="#alerts"><i class="glyphicon-chevron-right"></i> Alert</a></li> - <li><a href="#buttons"><i class="glyphicon-chevron-right"></i> Button</a></li> - <li><a href="#collapse"><i class="glyphicon-chevron-right"></i> Collapse</a></li> - <li><a href="#carousel"><i class="glyphicon-chevron-right"></i> Carousel</a></li> - <li><a href="#typeahead"><i class="glyphicon-chevron-right"></i> Typeahead</a></li> - <li><a href="#affix"><i class="glyphicon-chevron-right"></i> Affix</a></li> - </ul> - </div> - <div class="span9"> - - - <!-- Overview - ================================================== --> - <section id="overview"> - <div class="page-header"> - <h1>JavaScript in Bootstrap</h1> - </div> - - <h3>Individual or compiled</h3> - <p>Plugins can be included individually (though some have required dependencies), or all at once. Both <strong>bootstrap.js</strong> and <strong>bootstrap.min.js</strong> contain all plugins in a single file.</p> - - <h3>Data attributes</h3> - <p>You can use all Bootstrap plugins purely through the markup API without writing a single line of JavaScript. This is Bootstrap's first class API and should be your first consideration when using a plugin.</p> - - <p>That said, in some situations it may be desirable to turn this functionality off. Therefore, we also provide the ability to disable the data attribute API by unbinding all events on the body namespaced with `'data-api'`. This looks like this: - <pre class="prettyprint linenums">$('body').off('.data-api')</pre> - - <p>Alternatively, to target a specific plugin, just include the plugin's name as a namespace along with the data-api namespace like this:</p> - <pre class="prettyprint linenums">$('body').off('.alert.data-api')</pre> - - <h3>Programmatic API</h3> - <p>We also believe you should be able to use all Bootstrap plugins purely through the JavaScript API. All public APIs are single, chainable methods, and return the collection acted upon.</p> - <pre class="prettyprint linenums">$(".btn.danger").button("toggle").addClass("fat")</pre> - <p>All methods should accept an optional options object, a string which targets a particular method, or nothing (which initiates a plugin with default behavior):</p> -<pre class="prettyprint linenums"> -$("#myModal").modal() // initialized with defaults -$("#myModal").modal({ keyboard: false }) // initialized with no keyboard -$("#myModal").modal('show') // initializes and invokes show immediately</p> -</pre> - <p>Each plugin also exposes its raw constructor on a `Constructor` property: <code>$.fn.popover.Constructor</code>. If you'd like to get a particular plugin instance, retrieve it directly from an element: <code>$('[rel=popover]').data('popover')</code>.</p> - - <h3>No conflict</h3> - <p>Sometimes it is necessary to use Bootstrap plugins with other UI frameworks. In these circumstances, namespace collisions can occasionally occur. If this happens, you may call <code>.noConflict</code> on the plugin you wish to revert the value of.</p> - -<pre class="prettyprint linenums"> -var bootstrapButton = $.fn.button.noConflict() // return $.fn.button to previously assigned value -$.fn.bootstrapBtn = bootstrapButton // give $().bootstrapBtn the bootstrap functionality -</pre> - - <h3>Events</h3> - <p>Bootstrap provides custom events for most plugin's unique actions. Generally, these come in an infinitive and past participle form - where the infinitive (ex. <code>show</code>) is triggered at the start of an event, and its past participle form (ex. <code>shown</code>) is trigger on the completion of an action.</p> - <p>All infinitive events provide <code>preventDefault</code> functionality. This provides the ability to stop the execution of an action before it starts.</p> -<pre class="prettyprint linenums"> -$('#myModal').on('show', function (e) { - if (!data) return e.preventDefault() // stops modal from being shown -}) -</pre> - </section> - - - - <!-- Transitions - ================================================== --> - <section id="transitions"> - <div class="page-header"> - <h1>Transitions <small>bootstrap-transition.js</small></h1> - </div> - <h3>About transitions</h3> - <p>For simple transition effects, include bootstrap-transition.js once alongside the other JS files. If you're using the compiled (or minified) bootstrap.js, there is no need to include this—it's already there.</p> - <h3>Use cases</h3> - <p>A few examples of the transition plugin:</p> - <ul> - <li>Sliding or fading in modals</li> - <li>Fading out tabs</li> - <li>Fading out alerts</li> - <li>Sliding carousel panes</li> - </ul> - - {{! Ideas: include docs for .fade.in, .slide.in, etc }} - </section> - - - - <!-- Modal - ================================================== --> - <section id="modals"> - <div class="page-header"> - <h1>Modals <small>bootstrap-modal.js</small></h1> - </div> - - - <h2>Examples</h2> - <p>Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults.</p> - - <h3>Static example</h3> - <p>A rendered modal with header, body, and set of actions in the footer.</p> - <div class="bs-docs-example bs-docs-example-modal"> - - <div class="modal"> - <div class="modal-dialog"> - <div class="modal-content"> - <div class="modal-header"> - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> - <h4 class="modal-title">Modal title</h4> - </div> - <div class="modal-body"> - <p>One fine body…</p> - </div> - <div class="modal-footer"> - <a href="#" class="btn">Close</a> - <a href="#" class="btn btn-primary">Save changes</a> - </div> - </div><!-- /.modal-content --> - </div><!-- /.modal-dalog --> - </div><!-- /.modal --> - - </div>{{! /example }} -<pre class="prettyprint linenums"> -<div class="modal fade"> - <div class="modal-dialog"> - <div class="modal-content"> - - <div class="modal-header"> - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button> - <h4 class="modal-title">Modal title</h4> - </div> - <div class="modal-body"> - <p>One fine body…</p> - </div> - <div class="modal-footer"> - <a href="#" class="btn">Close</a> - <a href="#" class="btn btn-primary">Save changes</a> - </div> - - </div> - </div> -</div> -</pre> - - <h3>Live demo</h3> - <p>Toggle a modal via JavaScript by clicking the button below. It will slide down and fade in from the top of the page.</p> - <!-- sample modal content --> - <div id="myModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> - <div class="modal-dialog"> - <div class="modal-content"> - - <div class="modal-header"> - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> - <h4 class="modal-title" id="myModalLabel">Modal Heading</h4> - </div> - <div class="modal-body"> - <h4>Text in a modal</h4> - <p>Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p> - - <h4>Popover in a modal</h4> - <p>This <a href="#" role="button" class="btn popover-test" title="A Title" data-content="And here's some amazing content. It's very engaging. right?">button</a> should trigger a popover on click.</p> - - <h4>Tooltips in a modal</h4> - <p><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.</p> - - <hr> - - <h4>Overflowing text to show optional scrollbar</h4> - <p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p> - <p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p> - <p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p> - <p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p> - <p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p> - <p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p> - </div> - <div class="modal-footer"> - <button class="btn" data-dismiss="modal">Close</button> - <button class="btn btn-primary">Save changes</button> - </div> - - </div><!-- /.modal-content --> - </div><!-- /.modal-dalog --> - </div><!-- /.modal --> - - <div class="bs-docs-example" style="padding-bottom: 24px;"> - <a data-toggle="modal" href="#myModal" class="btn btn-primary btn-large">Launch demo modal</a> - </div>{{! /example }} -<pre class="prettyprint linenums"> -<!-- Button to trigger modal --> -<a href="#myModal" role="button" class="btn" data-toggle="modal">Launch demo modal</a> - -<!-- Modal --> -<div id="myModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> - <div class="modal-dialog"> - <div class="modal-content"> - - <div class="modal-header"> - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button> - <h4 class="modal-title">Modal title</h4> - </div> - <div class="modal-body"> - ... - </div> - <div class="modal-footer"> - <a href="#" class="btn">Close</a> - <a href="#" class="btn btn-primary">Save changes</a> - </div> - - </div> - </div> -</div> -</pre> - - - <h2>Usage</h2> - - <h3>Via data attributes</h3> - <p>Activate a modal without writing JavaScript. Set <code>data-toggle="modal"</code> on a controller element, like a button, along with a <code>data-target="#foo"</code> or <code>href="#foo"</code> to target a specific modal to toggle.</p> - <pre class="prettyprint linenums"><button type="button" data-toggle="modal" data-target="#myModal">Launch modal</button></pre> - - <h3>Via JavaScript</h3> - <p>Call a modal with id <code>myModal</code> with a single line of JavaScript:</p> - <pre class="prettyprint linenums">$('#myModal').modal(options)</pre> - - <h3>Options</h3> - <p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-backdrop=""</code>.</p> - <table class="table table-bordered table-striped"> - <thead> - <tr> - <th style="width: 100px;">Name</th> - <th style="width: 50px;">type</th> - <th style="width: 50px;">default</th> - <th>description</th> - </tr> - </thead> - <tbody> - <tr> - <td>backdrop</td> - <td>boolean</td> - <td>true</td> - <td>Includes a modal-backdrop element. Alternatively, specify <code>static</code> for a backdrop which doesn't close the modal on click.</td> - </tr> - <tr> - <td>keyboard</td> - <td>boolean</td> - <td>true</td> - <td>Closes the modal when escape key is pressed</td> - </tr> - <tr> - <td>show</td> - <td>boolean</td> - <td>true</td> - <td>Shows the modal when initialized.</td> - </tr> - <tr> - <td>remote</td> - <td>path</td> - <td>false</td> - <td><p>If a remote url is provided, content will be loaded via jQuery's <code>load</code> method and injected into the <code>.modal-body</code>. If you're using the data api, you may alternatively use the <code>href</code> tag to specify the remote source. An example of this is shown below:</p> - <pre class="prettyprint linenums"><code><a data-toggle="modal" href="remote.html" data-target="#modal">click me</a></code></pre></td> - </tr> - </tbody> - </table> - - <h3>Methods</h3> - <h4>.modal(options)</h4> - <p>Activates your content as a modal. Accepts an optional options <code>object</code>.</p> -<pre class="prettyprint linenums"> -$('#myModal').modal({ - keyboard: false -}) -</pre> - <h4>.modal('toggle')</h4> - <p>Manually toggles a modal.</p> - <pre class="prettyprint linenums">$('#myModal').modal('toggle')</pre> - <h4>.modal('show')</h4> - <p>Manually opens a modal.</p> - <pre class="prettyprint linenums">$('#myModal').modal('show')</pre> - <h4>.modal('hide')</h4> - <p>Manually hides a modal.</p> - <pre class="prettyprint linenums">$('#myModal').modal('hide')</pre> - <h3>Events</h3> - <p>Bootstrap's modal class exposes a few events for hooking into modal functionality.</p> - <table class="table table-bordered table-striped"> - <thead> - <tr> - <th style="width: 150px;">Event</th> - <th>Description</th> - </tr> - </thead> - <tbody> - <tr> - <td>show</td> - <td>This event fires immediately when the <code>show</code> instance method is called.</td> - </tr> - <tr> - <td>shown</td> - <td>This event is fired when the modal has been made visible to the user (will wait for css transitions to complete).</td> - </tr> - <tr> - <td>hide</td> - <td>This event is fired immediately when the <code>hide</code> instance method has been called.</td> - </tr> - <tr> - <td>hidden</td> - <td>This event is fired when the modal has finished being hidden from the user (will wait for css transitions to complete).</td> - </tr> - </tbody> - </table> -<pre class="prettyprint linenums"> -$('#myModal').on('hidden', function () { - // do something… -}) -</pre> - </section> - - - - <!-- Dropdowns - ================================================== --> - <section id="dropdowns"> - <div class="page-header"> - <h1>Dropdowns <small>bootstrap-dropdown.js</small></h1> - </div> - - - <h2>Examples</h2> - <p>Add dropdown menus to nearly anything with this simple plugin, including the navbar, tabs, and pills.</p> - - <h3>Within a navbar</h3> - <div class="bs-docs-example"> - <div id="navbar-example" class="navbar navbar-static"> - <div class="navbar-inner"> - <div class="container" style="width: auto;"> - <a class="brand" href="#">Project Name</a> - <ul class="nav" role="navigation"> - <li class="dropdown"> - <a id="drop1" href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> - <ul class="dropdown-menu" role="menu" aria-labelledby="drop1"> - <li role="presentation"><a role="menuitem" tabindex="-1" href="http://google.com">Action</a></li> - <li role="presentation"><a role="menuitem" tabindex="-1" href="#anotherAction">Another action</a></li> - <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Something else here</a></li> - <li role="presentation" class="divider"></li> - <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Separated link</a></li> - </ul> - </li> - <li class="dropdown"> - <a href="#" id="drop2" role="button" class="dropdown-toggle" data-toggle="dropdown">Dropdown 2 <b class="caret"></b></a> - <ul class="dropdown-menu" role="menu" aria-labelledby="drop2"> - <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Action</a></li> - <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Another action</a></li> - <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Something else here</a></li> - <li role="presentation" class="divider"></li> - <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Separated link</a></li> - </ul> - </li> - </ul> - <ul class="nav pull-right"> - <li id="fat-menu" class="dropdown"> - <a href="#" id="drop3" role="button" class="dropdown-toggle" data-toggle="dropdown">Dropdown 3 <b class="caret"></b></a> - <ul class="dropdown-menu" role="menu" aria-labelledby="drop3"> - <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Action</a></li> - <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Another action</a></li> - <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Something else here</a></li> - <li role="presentation" class="divider"></li> - <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Separated link</a></li> - </ul> - </li> - </ul> - </div> - </div> - </div> <!-- /navbar-example --> - </div> {{! /example }} - - <h3>Within tabs</h3> - <div class="bs-docs-example"> - <ul class="nav nav-pills"> - <li class="active"><a href="#">Regular link</a></li> - <li class="dropdown"> - <a class="dropdown-toggle" id="drop4" role="button" data-toggle="dropdown" href="#">Dropdown <b class="caret"></b></a> - <ul id="menu1" class="dropdown-menu" role="menu" aria-labelledby="drop4"> - <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Action</a></li> - <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Another action</a></li> - <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Something else here</a></li> - <li role="presentation" class="divider"></li> - <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Separated link</a></li> - </ul> - </li> - <li class="dropdown"> - <a class="dropdown-toggle" id="drop5" role="button" data-toggle="dropdown" href="#">Dropdown 2 <b class="caret"></b></a> - <ul id="menu2" class="dropdown-menu" role="menu" aria-labelledby="drop5"> - <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Action</a></li> - <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Another action</a></li> - <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Something else here</a></li> - <li role="presentation" class="divider"></li> - <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Separated link</a></li> - </ul> - </li> - <li class="dropdown"> - <a class="dropdown-toggle" id="drop5" role="button" data-toggle="dropdown" href="#">Dropdown 3 <b class="caret"></b></a> - <ul id="menu3" class="dropdown-menu" role="menu" aria-labelledby="drop5"> - <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Action</a></li> - <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Another action</a></li> - <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Something else here</a></li> - <li role="presentation" class="divider"></li> - <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Separated link</a></li> - </ul> - </li> - </ul> <!-- /tabs --> - </div> {{! /example }} - - - <hr class="bs-docs-separator"> - - - <h2>Usage</h2> - - <h3>Via data attributes</h3> - <p>Add <code>data-toggle="dropdown"</code> to a link or button to toggle a dropdown.</p> -<pre class="prettyprint linenums"> -<div class="dropdown"> - <a class="dropdown-toggle" data-toggle="dropdown" href="#">Dropdown trigger</a> - <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"> - ... - </ul> -</div> -</pre> - <p>To keep URLs intact, use the <code>data-target</code> attribute instead of <code>href="#"</code>.</p> -<pre class="prettyprint linenums"> -<div class="dropdown"> - <a class="dropdown-toggle" id="dLabel" role="button" data-toggle="dropdown" data-target="#" href="/page.html"> - Dropdown - <b class="caret"></b> - </a> - <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"> - ... - </ul> -</div> -</pre> - - <h3>Via JavaScript</h3> - <p>Call the dropdowns via JavaScript:</p> - <pre class="prettyprint linenums">$('.dropdown-toggle').dropdown()</pre> - - <h3>Options</h3> - <p><em>None</em></p> - - <h3>Methods</h3> - <h4>$().dropdown('toggle')</h4> - <p>A programmatic api for toggling menus for a given navbar or tabbed navigation.</p> - </section> - - - - <!-- ScrollSpy - ================================================== --> - <section id="scrollspy"> - <div class="page-header"> - <h1>ScrollSpy <small>bootstrap-scrollspy.js</small></h1> - </div> - - - <h2>Example in navbar</h2> - <p>The ScrollSpy plugin is for automatically updating nav targets based on scroll position. Scroll the area below the navbar and watch the active class change. The dropdown sub items will be highlighted as well.</p> - <div class="bs-docs-example"> - <div id="navbarExample" class="navbar navbar-static"> - <div class="navbar-inner"> - <div class="container" style="width: auto;"> - <a class="brand" href="#">Project Name</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">Dropdown <b class="caret"></b></a> - <ul class="dropdown-menu"> - <li><a href="#one">one</a></li> - <li><a href="#two">two</a></li> - <li class="divider"></li> - <li><a href="#three">three</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> - </div>{{! /example }} - - - <hr class="bs-docs-separator"> - - - <h2>Usage</h2> - - <h3>Via data attributes</h3> - <p>To easily add scrollspy behavior to your topbar navigation, just add <code>data-spy="scroll"</code> to the element you want to spy on (most typically this would be the body) and <code>data-target=".navbar"</code> to select which nav to use. You'll want to use scrollspy with a <code>.nav</code> component.</p> - <pre class="prettyprint linenums"><body data-spy="scroll" data-target=".navbar">...</body></pre> - - <h3>Via JavaScript</h3> - <p>Call the scrollspy via JavaScript:</p> - <pre class="prettyprint linenums">$('#navbar').scrollspy()</pre> - - <div class="alert alert-info"> - <strong>Heads up!</strong> - 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>. - </div> - - <h3>Methods</h3> - <h4>.scrollspy('refresh')</h4> - <p>When using scrollspy in conjunction with adding or removing of elements from the DOM, you'll need to call the refresh method like so:</p> -<pre class="prettyprint linenums"> -$('[data-spy="scroll"]').each(function () { - var $spy = $(this).scrollspy('refresh') -}); -</pre> - - <h3>Options</h3> - <p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-offset=""</code>.</p> - <table class="table table-bordered table-striped"> - <thead> - <tr> - <th style="width: 100px;">Name</th> - <th style="width: 100px;">type</th> - <th style="width: 50px;">default</th> - <th>description</th> - </tr> - </thead> - <tbody> - <tr> - <td>offset</td> - <td>number</td> - <td>10</td> - <td>Pixels to offset from top when calculating position of scroll.</td> - </tr> - </tbody> - </table> - - <h3>Events</h3> - <table class="table table-bordered table-striped"> - <thead> - <tr> - <th style="width: 150px;">Event</th> - <th>Description</th> - </tr> - </thead> - <tbody> - <tr> - <td>activate</td> - <td>This event fires whenever a new item becomes activated by the scrollspy.</td> - </tr> - </tbody> - </table> - </section> - - - - <!-- Tabs - ================================================== --> - <section id="tabs"> - <div class="page-header"> - <h1>Togglable tabs <small>bootstrap-tab.js</small></h1> - </div> - - - <h2>Example tabs</h2> - <p>Add quick, dynamic tab functionality to transition through panes of local content, even via dropdown menus.</p> - <div class="bs-docs-example"> - <ul id="myTab" class="nav nav-tabs"> - <li class="active"><a href="#home" data-toggle="tab">Home</a></li> - <li><a href="#profile" data-toggle="tab">Profile</a></li> - <li class="dropdown"> - <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> - <ul class="dropdown-menu"> - <li><a href="#dropdown1" data-toggle="tab">@fat</a></li> - <li><a href="#dropdown2" data-toggle="tab">@mdo</a></li> - </ul> - </li> - </ul> - <div id="myTabContent" class="tab-content"> - <div class="tab-pane fade in active" id="home"> - <p>Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.</p> - </div> - <div class="tab-pane fade" id="profile"> - <p>Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.</p> - </div> - <div class="tab-pane fade" id="dropdown1"> - <p>Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.</p> - </div> - <div class="tab-pane fade" id="dropdown2"> - <p>Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan.</p> - </div> - </div> - </div>{{! /example }} - - - <hr class="bs-docs-separator"> - - - <h2>Usage</h2> - <p>Enable tabbable tabs via JavaScript (each tab needs to be activated individually):</p> -<pre class="prettyprint linenums"> -$('#myTab a').click(function (e) { - e.preventDefault(); - $(this).tab('show'); -})</pre> - <p>You can activate individual tabs in several ways:</p> -<pre class="prettyprint linenums"> -$('#myTab a[href="#profile"]').tab('show'); // Select tab by name -$('#myTab a:first').tab('show'); // Select first tab -$('#myTab a:last').tab('show'); // Select last tab -$('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed) -</pre> - - <h3>Markup</h3> - <p>You can activate a tab or pill navigation without writing any JavaScript by simply specifying <code>data-toggle="tab"</code> or <code>data-toggle="pill"</code> on an element. Adding the <code>nav</code> and <code>nav-tabs</code> classes to the tab <code>ul</code> will apply the Bootstrap tab styling.</p> -<pre class="prettyprint linenums"> -<ul class="nav nav-tabs"> - <li><a href="#home" data-toggle="tab">Home</a></li> - <li><a href="#profile" data-toggle="tab">Profile</a></li> - <li><a href="#messages" data-toggle="tab">Messages</a></li> - <li><a href="#settings" data-toggle="tab">Settings</a></li> -</ul></pre> - <p>To make tabs fade in, add <code>.fade</code> to each <code>.tab-pane</code>.</p> - - <h3>Methods</h3> - <h4>$().tab</h4> - <p> - Activates a tab element and content container. Tab should have either a <code>data-target</code> or an <code>href</code> targeting a container node in the DOM. - </p> -<pre class="prettyprint linenums"> -<ul class="nav nav-tabs" id="myTab"> - <li class="active"><a href="#home">Home</a></li> - <li><a href="#profile">Profile</a></li> - <li><a href="#messages">Messages</a></li> - <li><a href="#settings">Settings</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 () { - $('#myTab a:last').tab('show'); - }) -</script> -</pre> - - <h3>Events</h3> - <table class="table table-bordered table-striped"> - <thead> - <tr> - <th style="width: 150px;">Event</th> - <th>Description</th> - </tr> - </thead> - <tbody> - <tr> - <td>show</td> - <td>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.</td> - </tr> - <tr> - <td>shown</td> - <td>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.</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> - </section> - - - <!-- Tooltips - ================================================== --> - <section id="tooltips"> - <div class="page-header"> - <h1>Tooltips <small>bootstrap-tooltip.js</small></h1> - </div> - - - <h2>Examples</h2> - <p>Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, use CSS3 for animations, and data-attributes for local title storage.</p> - <p>Hover over the links below to see tooltips:</p> - <div class="bs-docs-example tooltip-demo"> - <p class="muted" style="margin-bottom: 0;">Tight pants next level keffiyeh <a href="#" data-toggle="tooltip" title="Default tooltip">you probably</a> haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel <a href="#" data-toggle="tooltip" title="Another tooltip">have a</a> terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan <a href="#" data-toggle="tooltip" title="Another one here too">whatever keytar</a>, scenester farm-to-table banksy Austin <a href="#" data-toggle="tooltip" title="The last tip!">twitter handle</a> freegan cred raw denim single-origin coffee viral. - </p> - </div>{{! /example }} - - <h3>Four directions</h3> - <div class="bs-docs-example tooltip-demo"> - <ul class="bs-docs-tooltip-examples"> - <li><a href="#" data-toggle="tooltip" data-placement="top" title="Tooltip on top">Tooltip on top</a></li> - <li><a href="#" data-toggle="tooltip" data-placement="right" title="Tooltip on right">Tooltip on right</a></li> - <li><a href="#" data-toggle="tooltip" data-placement="bottom" title="Tooltip on bottom">Tooltip on bottom</a></li> - <li><a href="#" data-toggle="tooltip" data-placement="left" title="Tooltip on left">Tooltip on left</a></li> - </ul> - </div>{{! /example }} - - - <h3>{{_i}}Tooltips in input groups{{/i}}</h3> - <p>{{_i}}When using tooltips and popovers with the Bootstrap input groups, you'll have to set the <code>container</code> (documented below) option to avoid unwanted side effects.{{/i}}</p> - - <hr class="bs-docs-separator"> - - - <h2>Usage</h2> - <p>Trigger the tooltip via JavaScript:</p> - <pre class="prettyprint linenums">$('#example').tooltip(options)</pre> - - <h3>Options</h3> - <p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-animation=""</code>.</p> - <table class="table table-bordered table-striped"> - <thead> - <tr> - <th style="width: 100px;">Name</th> - <th style="width: 100px;">type</th> - <th style="width: 50px;">default</th> - <th>description</th> - </tr> - </thead> - <tbody> - <tr> - <td>animation</td> - <td>boolean</td> - <td>true</td> - <td>apply a css fade transition to the tooltip</td> - </tr> - <tr> - <td>html</td> - <td>boolean</td> - <td>false</td> - <td>Insert html into the tooltip. If false, jquery's <code>text</code> method will be used to insert content into the dom. Use text if you're worried about XSS attacks.</td> - </tr> - <tr> - <td>placement</td> - <td>string | function</td> - <td>'top'</td> - <td>how to position the tooltip - top | bottom | left | right</td> - </tr> - <tr> - <td>selector</td> - <td>string</td> - <td>false</td> - <td>If a selector is provided, tooltip objects will be delegated to the specified targets.</td> - </tr> - <tr> - <td>title</td> - <td>string | function</td> - <td>''</td> - <td>default title value if `title` tag isn't present</td> - </tr> - <tr> - <td>trigger</td> - <td>string</td> - <td>'hover focus'</td> - <td>how tooltip is triggered - click | hover | focus | manual. Note you case pass trigger mutliple, space seperated, trigger types.</td> - </tr> - <tr> - <td>delay</td> - <td>number | object</td> - <td>0</td> - <td> - <p>delay showing and hiding the tooltip (ms) - does not apply to manual trigger type</p> - <p>If a number is supplied, delay is applied to both hide/show</p> - <p>Object structure is: <code>delay: { show: 500, hide: 100 }</code></p> - </td> - </tr> - <tr> - <td>container</td> - <td>string | false</td> - <td>false</td> - <td> - <p>Appends the tooltip to a specific element <code>container: 'body'</code></p> - </td> - </tr> - </tbody> - </table> - <div class="alert alert-info"> - <strong>Heads up!</strong> - Options for individual tooltips can alternatively be specified through the use of data attributes. - </div> - - <h3>Markup</h3> - <pre class="prettyprint linenums"><a href="#" data-toggle="tooltip" title="first tooltip">hover over me</a></pre> - - <h3>Methods</h3> - <h4>$().tooltip(options)</h4> - <p>Attaches a tooltip handler to an element collection.</p> - <h4>.tooltip('show')</h4> - <p>Reveals an element's tooltip.</p> - <pre class="prettyprint linenums">$('#element').tooltip('show')</pre> - <h4>.tooltip('hide')</h4> - <p>Hides an element's tooltip.</p> - <pre class="prettyprint linenums">$('#element').tooltip('hide')</pre> - <h4>.tooltip('toggle')</h4> - <p>Toggles an element's tooltip.</p> - <pre class="prettyprint linenums">$('#element').tooltip('toggle')</pre> - <h4>.tooltip('destroy')</h4> - <p>Hides and destroys an element's tooltip.</p> - <pre class="prettyprint linenums">$('#element').tooltip('destroy')</pre> - </section> - - - - <!-- Popovers - ================================================== --> - <section id="popovers"> - <div class="page-header"> - <h1>Popovers <small>bootstrap-popover.js</small></h1> - </div> - - <h2>Examples</h2> - <p>Add small overlays of content, like those on the iPad, to any element for housing secondary information. Hover over the button to trigger the popover. <strong>Requires <a href="#tooltips">Tooltip</a> to be included.</strong></p> - - <h3>Static popover</h3> - <p>Four options are available: top, right, bottom, and left aligned.</p> - <div class="bs-docs-example bs-docs-example-popover"> - <div class="popover top"> - <div class="arrow"></div> - <h3 class="popover-title">Popover top</h3> - <div class="popover-content"> - <p>Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p> - </div> - </div> - - <div class="popover right"> - <div class="arrow"></div> - <h3 class="popover-title">Popover right</h3> - <div class="popover-content"> - <p>Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p> - </div> - </div> - - <div class="popover bottom"> - <div class="arrow"></div> - <h3 class="popover-title">Popover bottom</h3> - <div class="popover-content"> - <p>Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p> - </div> - </div> - - <div class="popover left"> - <div class="arrow"></div> - <h3 class="popover-title">Popover left</h3> - <div class="popover-content"> - <p>Sed posuere consectetur est at lobortis. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.</p> - </div> - </div> - - <div class="clearfix"></div> - </div> - <p>No markup shown as popovers are generated from JavaScript and content within a <code>data</code> attribute.</p> - - <h3>Live demo</h3> - <div class="bs-docs-example" style="padding-bottom: 24px;"> - <a href="#" class="btn btn-large btn-danger" data-toggle="popover" title="A Title" data-content="And here's some amazing content. It's very engaging. right?">Click to toggle popover</a> - </div> - - <h4>Four directions</h4> - <div class="bs-docs-example tooltip-demo"> - <ul class="bs-docs-tooltip-examples"> - <li><a href="#" class="btn" data-toggle="popover" data-placement="top" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus." title="Popover on top">Popover on top</a></li> - <li><a href="#" class="btn" data-toggle="popover" data-placement="right" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus." title="Popover on right">Popover on right</a></li> - <li><a href="#" class="btn" data-toggle="popover" data-placement="bottom" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus." title="Popover on bottom">Popover on bottom</a></li> - <li><a href="#" class="btn" data-toggle="popover" data-placement="left" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus." title="Popover on left">Popover on left</a></li> - </ul> - </div>{{! /example }} - - - <hr class="bs-docs-separator"> - - - <h2>Usage</h2> - <p>Enable popovers via JavaScript:</p> - <pre class="prettyprint linenums">$('#example').popover(options)</pre> - - <h3>Options</h3> - <p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-animation=""</code>.</p> - <table class="table table-bordered table-striped"> - <thead> - <tr> - <th style="width: 100px;">Name</th> - <th style="width: 100px;">type</th> - <th style="width: 50px;">default</th> - <th>description</th> - </tr> - </thead> - <tbody> - <tr> - <td>animation</td> - <td>boolean</td> - <td>true</td> - <td>apply a css fade transition to the tooltip</td> - </tr> - <tr> - <td>html</td> - <td>boolean</td> - <td>false</td> - <td>Insert html into the popover. If false, jquery's <code>text</code> method will be used to insert content into the dom. Use text if you're worried about XSS attacks.</td> - </tr> - <tr> - <td>placement</td> - <td>string | function</td> - <td>'right'</td> - <td>how to position the popover - top | bottom | left | right</td> - </tr> - <tr> - <td>selector</td> - <td>string</td> - <td>false</td> - <td>if a selector is provided, tooltip objects will be delegated to the specified targets</td> - </tr> - <tr> - <td>trigger</td> - <td>string</td> - <td>'click'</td> - <td>how popover is triggered - click | hover | focus | manual</td> - </tr> - <tr> - <td>title</td> - <td>string | function</td> - <td>''</td> - <td>default title value if `title` attribute isn't present</td> - </tr> - <tr> - <td>content</td> - <td>string | function</td> - <td>''</td> - <td>default content value if `data-content` attribute isn't present</td> - </tr> - <tr> - <td>delay</td> - <td>number | object</td> - <td>0</td> - <td> - <p>delay showing and hiding the popover (ms) - does not apply to manual trigger type</p> - <p>If a number is supplied, delay is applied to both hide/show</p> - <p>Object structure is: <code>delay: { show: 500, hide: 100 }</code></p> - </td> - </tr> - <tr> - <td>{{_i}}container{{/i}}</td> - <td>{{_i}}string | false{{/i}}</td> - <td>{{_i}}false{{/i}}</td> - <td> - <p>{{_i}}Appends the popover to a specific element <code>container: 'body'</code>{{/i}}</p> - </td> - </tr> - </tbody> - </table> - <div class="alert alert-info"> - <strong>Heads up!</strong> - Options for individual popovers can alternatively be specified through the use of data attributes. - </div> - - <h3>Markup</h3> - <p>For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.</p> - - <h3>Methods</h3> - <h4>$().popover(options)</h4> - <p>Initializes popovers for an element collection.</p> - <h4>.popover('show')</h4> - <p>Reveals an elements popover.</p> - <pre class="prettyprint linenums">$('#element').popover('show')</pre> - <h4>.popover('hide')</h4> - <p>Hides an elements popover.</p> - <pre class="prettyprint linenums">$('#element').popover('hide')</pre> - <h4>.popover('toggle')</h4> - <p>Toggles an elements popover.</p> - <pre class="prettyprint linenums">$('#element').popover('toggle')</pre> - <h4>.popover('destroy')</h4> - <p>Hides and destroys an element's popover.</p> - <pre class="prettyprint linenums">$('#element').popover('destroy')</pre> - </section> - - - - <!-- Alert - ================================================== --> - <section id="alerts"> - <div class="page-header"> - <h1>Alert messages <small>bootstrap-alert.js</small></h1> - </div> - - - <h2>Example alerts</h2> - <p>Add dismiss functionality to all alert messages with this plugin.</p> - <div class="bs-docs-example"> - <div class="alert fade in"> - <button type="button" class="close" data-dismiss="alert">×</button> - <strong>Holy guacamole!</strong> Best check yo self, you're not looking too good. - </div> - </div>{{! /example }} - - <div class="bs-docs-example"> - <div class="alert alert-block alert-error fade in"> - <button type="button" class="close" data-dismiss="alert">×</button> - <h4 class="alert-heading">Oh snap! You got an error!</h4> - <p>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.</p> - <p> - <a class="btn btn-danger" href="#">Take this action</a> <a class="btn" href="#">Or do this</a> - </p> - </div> - </div>{{! /example }} - - - <hr class="bs-docs-separator"> - - - <h2>Usage</h2> - <p>Enable dismissal of an alert via JavaScript:</p> - <pre class="prettyprint linenums">$(".alert").alert()</pre> - - <h3>Markup</h3> - <p>Just add <code>data-dismiss="alert"</code> to your close button to automatically give an alert close functionality.</p> - <pre class="prettyprint linenums"><a class="close" data-dismiss="alert" href="#">&times;</a></pre> - - <h3>Methods</h3> - <h4>$().alert()</h4> - <p>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.</p> - <h4>.alert('close')</h4> - <p>Closes an alert.</p> - <pre class="prettyprint linenums">$(".alert").alert('close')</pre> - - - <h3>Events</h3> - <p>Bootstrap's alert class exposes a few events for hooking into alert functionality.</p> - <table class="table table-bordered table-striped"> - <thead> - <tr> - <th style="width: 150px;">Event</th> - <th>Description</th> - </tr> - </thead> - <tbody> - <tr> - <td>close</td> - <td>This event fires immediately when the <code>close</code> instance method is called.</td> - </tr> - <tr> - <td>closed</td> - <td>This event is fired when the alert has been closed (will wait for css transitions to complete).</td> - </tr> - </tbody> - </table> -<pre class="prettyprint linenums"> -$('#my-alert').bind('closed', function () { - // do something… -}) -</pre> - </section> - - - - <!-- Buttons - ================================================== --> - <section id="buttons"> - <div class="page-header"> - <h1>Buttons <small>bootstrap-button.js</small></h1> - </div> - - <h2>Example uses</h2> - <p>Do more with buttons. Control button states or create groups of buttons for more components like toolbars.</p> - - <h4>Stateful</h4> - <p>Add <code>data-loading-text="Loading..."</code> to use a loading state on a button.</p> - <div class="bs-docs-example" style="padding-bottom: 24px;"> - <button type="button" id="fat-btn" data-loading-text="loading..." class="btn btn-primary"> - Loading state - </button> - </div>{{! /example }} - <pre class="prettyprint linenums"><button type="button" class="btn btn-primary" data-loading-text="Loading...">Loading state</button></pre> - - <h4>Single toggle</h4> - <p>Add <code>data-toggle="button"</code> to activate toggling on a single button.</p> - <div class="bs-docs-example" style="padding-bottom: 24px;"> - <button type="button" class="btn btn-primary" data-toggle="button">Single Toggle</button> - </div>{{! /example }} - <pre class="prettyprint linenums"><button type="button" class="btn btn-primary" data-toggle="button">Single Toggle</button></pre> - - <h4>Checkbox</h4> - <p>Add <code>data-toggle="buttons-checkbox"</code> for checkbox style toggling on btn-group.</p> - <div class="bs-docs-example" style="padding-bottom: 24px;"> - <div class="btn-group" data-toggle="buttons-checkbox"> - <button type="button" class="btn btn-primary">Left</button> - <button type="button" class="btn btn-primary">Middle</button> - <button type="button" class="btn btn-primary">Right</button> - </div> - </div>{{! /example }} -<pre class="prettyprint linenums"> -<div class="btn-group" data-toggle="buttons-checkbox"> - <button type="button" class="btn btn-primary">Left</button> - <button type="button" class="btn btn-primary">Middle</button> - <button type="button" class="btn btn-primary">Right</button> -</div> -</pre> - - <h4>Radio</h4> - <p>Add <code>data-toggle="buttons-radio"</code> for radio style toggling on btn-group.</p> - <div class="bs-docs-example" style="padding-bottom: 24px;"> - <div class="btn-group" data-toggle="buttons-radio"> - <button type="button" class="btn btn-primary">Left</button> - <button type="button" class="btn btn-primary">Middle</button> - <button type="button" class="btn btn-primary">Right</button> - </div> - </div>{{! /example }} -<pre class="prettyprint linenums"> -<div class="btn-group" data-toggle="buttons-radio"> - <button type="button" class="btn btn-primary">Left</button> - <button type="button" class="btn btn-primary">Middle</button> - <button type="button" class="btn btn-primary">Right</button> -</div> -</pre> - - - <hr class="bs-docs-separator"> - - - <h2>Usage</h2> - <p>Enable buttons via JavaScript:</p> - <pre class="prettyprint linenums">$('.nav-tabs').button()</pre> - - <h3>Markup</h3> - <p>Data attributes are integral to the button plugin. Check out the example code below for the various markup types.</p> - - <h3>Options</h3> - <p><em>None</em></p> - - <h3>Methods</h3> - <h4>$().button('toggle')</h4> - <p>Toggles push state. Gives the button the appearance that it has been activated.</p> - <div class="alert alert-info"> - <strong>Heads up!</strong> - You can enable auto toggling of a button by using the <code>data-toggle</code> attribute. - </div> - <pre class="prettyprint linenums"><button type="button" class="btn" data-toggle="button" >…</button></pre> - <h4>$().button('loading')</h4> - <p>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>. - </p> - <pre class="prettyprint linenums"><button type="button" class="btn" data-loading-text="loading stuff..." >...</button></pre> - <div class="alert alert-info"> - <strong>Heads up!</strong> - <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>. - </div> - <h4>$().button('reset')</h4> - <p>Resets button state - swaps text to original text.</p> - <h4>$().button(string)</h4> - <p>Resets button state - swaps text to any data defined text state.</p> -<pre class="prettyprint linenums"><button type="button" class="btn" data-complete-text="finished!" >...</button> -<script> - $('.btn').button('complete') -</script> -</pre> - </section> - - - - <!-- Collapse - ================================================== --> - <section id="collapse"> - <div class="page-header"> - <h1>Collapse <small>bootstrap-collapse.js</small></h1> - </div> - - <h3>About</h3> - <p>Get base styles and flexible support for collapsible components like accordions and navigation.</p> - <p class="muted"><strong>*</strong> Requires the Transitions plugin to be included.</p> - - <h2>Example accordion</h2> - <p>Using the collapse plugin, we built a simple accordion style widget:</p> - - <div class="bs-docs-example"> - <div class="accordion" id="accordion2"> - <div class="accordion-group"> - <div class="accordion-heading"> - <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne"> - Collapsible Group Item #1 - </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"> - Collapsible Group Item #2 - </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"> - Collapsible Group Item #3 - </a> - </div> - <div id="collapseThree" class="accordion-body collapse"> - <div class="accordion-inner"> - Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. - </div> - </div> - </div> - </div> - </div>{{! /example }} -<pre class="prettyprint linenums"> -<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"> - Collapsible Group Item #1 - </a> - </div> - <div id="collapseOne" class="accordion-body collapse in"> - <div class="accordion-inner"> - Anim pariatur cliche... - </div> - </div> - </div> - <div class="accordion-group"> - <div class="accordion-heading"> - <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo"> - Collapsible Group Item #2 - </a> - </div> - <div id="collapseTwo" class="accordion-body collapse"> - <div class="accordion-inner"> - Anim pariatur cliche... - </div> - </div> - </div> -</div> -... -</pre> - <p>You can also use the plugin without the accordion markup. Make a button toggle the expanding and collapsing of another element.</p> -<pre class="prettyprint linenums"> -<button type="button" class="btn btn-danger" data-toggle="collapse" data-target="#demo"> - simple collapsible -</button> - -<div id="demo" class="collapse in"> … </div> -</pre> - - - <hr class="bs-docs-separator"> - - - <h2>Usage</h2> - - <h3>Via data attributes</h3> - <p>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>.</p> - <p>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.</p> - - <h3>Via JavaScript</h3> - <p>Enable manually with:</p> - <pre class="prettyprint linenums">$(".collapse").collapse()</pre> - - <h3>Options</h3> - <p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-parent=""</code>.</p> - <table class="table table-bordered table-striped"> - <thead> - <tr> - <th style="width: 100px;">Name</th> - <th style="width: 50px;">type</th> - <th style="width: 50px;">default</th> - <th>description</th> - </tr> - </thead> - <tbody> - <tr> - <td>parent</td> - <td>selector</td> - <td>false</td> - <td>If selector then all collapsible elements under the specified parent will be closed when this collapsible item is shown. (similar to traditional accordion behavior)</td> - </tr> - <tr> - <td>toggle</td> - <td>boolean</td> - <td>true</td> - <td>Toggles the collapsible element on invocation</td> - </tr> - </tbody> - </table> - - - <h3>Methods</h3> - <h4>.collapse(options)</h4> - <p>Activates your content as a collapsible element. Accepts an optional options <code>object</code>. -<pre class="prettyprint linenums"> -$('#myCollapsible').collapse({ - toggle: false -}) -</pre> - <h4>.collapse('toggle')</h4> - <p>Toggles a collapsible element to shown or hidden.</p> - <h4>.collapse('show')</h4> - <p>Shows a collapsible element.</p> - <h4>.collapse('hide')</h4> - <p>Hides a collapsible element.</p> - - <h3>Events</h3> - <p>Bootstrap's collapse class exposes a few events for hooking into collapse functionality.</p> - <table class="table table-bordered table-striped"> - <thead> - <tr> - <th style="width: 150px;">Event</th> - <th>Description</th> - </tr> - </thead> - <tbody> - <tr> - <td>show</td> - <td>This event fires immediately when the <code>show</code> instance method is called.</td> - </tr> - <tr> - <td>shown</td> - <td>This event is fired when a collapse element has been made visible to the user (will wait for css transitions to complete).</td> - </tr> - <tr> - <td>hide</td> - <td> - This event is fired immediately when the <code>hide</code> method has been called. - </td> - </tr> - <tr> - <td>hidden</td> - <td>This event is fired when a collapse element has been hidden from the user (will wait for css transitions to complete).</td> - </tr> - </tbody> - </table> -<pre class="prettyprint linenums"> -$('#myCollapsible').on('hidden', function () { - // do something… -})</pre> - </section> - - - - <!-- Carousel - ================================================== --> - <section id="carousel"> - <div class="page-header"> - <h1>Carousel <small>bootstrap-carousel.js</small></h1> - </div> - - <h2>Example carousel</h2> - <p>The slideshow below shows a generic plugin and component for cycling through elements like a carousel.</p> - <div class="bs-docs-example"> - <div id="myCarousel" class="carousel slide"> - <ol class="carousel-indicators"> - <li data-target="#myCarousel" data-slide-to="0" class="active"></li> - <li data-target="#myCarousel" data-slide-to="1"></li> - <li data-target="#myCarousel" data-slide-to="2"></li> - </ol> - <div class="carousel-inner"> - <div class="item active"> - <img src="assets/img/bootstrap-mdo-sfmoma-01.jpg" alt=""> - <div class="carousel-caption"> - <h3>First slide label</h3> - <p>Nulla vitae elit libero, a pharetra augue. Maecenas faucibus mollis interdum. Cum sociis natoque penatibus et magnis dis parturient montes.</p> - </div> - </div> - <div class="item"> - <img src="assets/img/bootstrap-mdo-sfmoma-02.jpg" alt=""> - <div class="carousel-caption"> - <h3>Second slide label</h3> - <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean lacinia bibendum nulla sed consectetur. Nullam quis risus eget urna mollis ornare.</p> - </div> - </div> - <div class="item"> - <img src="assets/img/bootstrap-mdo-sfmoma-03.jpg" alt=""> - <div class="carousel-caption"> - <h3>Third slide label</h3> - <p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Integer posuere erat a ante venenatis dapibus posuere velit aliquet.</p> - </div> - </div> - </div> - <a class="left carousel-control" href="#myCarousel" data-slide="prev"> - <span class="control">‹</span> - </a> - <a class="right carousel-control" href="#myCarousel" data-slide="next"> - <span class="control">›</span> - </a> - </div> - </div>{{! /example }} -<pre class="prettyprint linenums"> -<div id="myCarousel" class="carousel slide"> - <ol class="carousel-indicators"> - <li data-target="#myCarousel" data-slide-to="0" class="active"></li> - <li data-target="#myCarousel" data-slide-to="1"></li> - <li data-target="#myCarousel" data-slide-to="2"></li> - </ol> - <!-- Carousel items --> - <div class="carousel-inner"> - <div class="active item">…</div> - <div class="item">…</div> - <div class="item">…</div> - </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> - - <div class="alert alert-warning"> - <strong>Heads up!</strong> - When implementing this carousel, remove the images we have provided and replace them with your own. - </div> - - - <hr class="bs-docs-separator"> - - - <h2>Usage</h2> - - <h3>Via data attributes</h3> - <p>Use data attributes to easily control the position of the carousel. <code>data-slide</code> accepts the keywords <code>prev</code> or <code>next</code>, which alters the slide position relative to it's current position. Alternatively, use <code>data-slide-to</code> to pass a raw slide index to the carousel <code>data-slide-to="2"</code>, which jump's the slide position to a particular index beginning with <code>0</code>.</p> - - <h3>Via JavaScript</h3> - <p>Call carousel manually with:</p> - <pre class="prettyprint linenums">$('.carousel').carousel()</pre> - - <h3>Options</h3> - <p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-interval=""</code>.</p> - <table class="table table-bordered table-striped"> - <thead> - <tr> - <th style="width: 100px;">Name</th> - <th style="width: 50px;">type</th> - <th style="width: 50px;">default</th> - <th>description</th> - </tr> - </thead> - <tbody> - <tr> - <td>interval</td> - <td>number</td> - <td>5000</td> - <td>The amount of time to delay between automatically cycling an item. If false, carousel will not automatically cycle.</td> - </tr> - <tr> - <td>pause</td> - <td>string</td> - <td>"hover"</td> - <td>Pauses the cycling of the carousel on mouseenter and resumes the cycling of the carousel on mouseleave.</td> - </tr> - </tbody> - </table> - - <h3>Methods</h3> - <h4>.carousel(options)</h4> - <p>Initializes the carousel with an optional options <code>object</code> and starts cycling through items.</p> -<pre class="prettyprint linenums"> -$('.carousel').carousel({ - interval: 2000 -}) -</pre> - <h4>.carousel('cycle')</h4> - <p>Cycles through the carousel items from left to right.</p> - <h4>.carousel('pause')</h4> - <p>Stops the carousel from cycling through items.</p> - <h4>.carousel(number)</h4> - <p>Cycles the carousel to a particular frame (0 based, similar to an array).</p> - <h4>.carousel('prev')</h4> - <p>Cycles to the previous item.</p> - <h4>.carousel('next')</h4> - <p>Cycles to the next item.</p> - - <h3>Events</h3> - <p>Bootstrap's carousel class exposes two events for hooking into carousel functionality.</p> - <table class="table table-bordered table-striped"> - <thead> - <tr> - <th style="width: 150px;">Event</th> - <th>Description</th> - </tr> - </thead> - <tbody> - <tr> - <td>slide</td> - <td>This event fires immediately when the <code>slide</code> instance method is invoked.</td> - </tr> - <tr> - <td>slid</td> - <td>This event is fired when the carousel has completed its slide transition.</td> - </tr> - </tbody> - </table> - </section> - - - - <!-- Typeahead - ================================================== --> - <section id="typeahead"> - <div class="page-header"> - <h1>Typeahead <small>bootstrap-typeahead.js</small></h1> - </div> - - - <h2>Example</h2> - <p>A basic, easily extended plugin for quickly creating elegant typeaheads with any form text input.</p> - <div class="bs-docs-example" style="background-color: #f5f5f5;"> - <input type="text" class="span3" style="margin: 0 auto;" data-provide="typeahead" data-items="4" data-source='["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Dakota","North Carolina","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"]'> - </div>{{! /example }} - <pre class="prettyprint linenums"><input type="text" data-provide="typeahead"></pre> - <p>You'll want to set <code>autocomplete="off"</code> to prevent default browser menus from appearing over the Bootstrap typeahead dropdown.</p> - - <hr class="bs-docs-separator"> - - - <h2>Usage</h2> - - <h3>Via data attributes</h3> - <p>Add data attributes to register an element with typeahead functionality as shown in the example above.</p> - - <h3>Via JavaScript</h3> - <p>Call the typeahead manually with:</p> - <pre class="prettyprint linenums">$('.typeahead').typeahead()</pre> - - <h3>Options</h3> - <p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-source=""</code>.</p> - <table class="table table-bordered table-striped"> - <thead> - <tr> - <th style="width: 100px;">Name</th> - <th style="width: 50px;">type</th> - <th style="width: 100px;">default</th> - <th>description</th> - </tr> - </thead> - <tbody> - <tr> - <td>source</td> - <td>array, function</td> - <td>[ ]</td> - <td>The data source to query against. May be an array of strings or a function. The function is passed two arguments, the <code>query</code> value in the input field and the <code>process</code> callback. The function may be used synchronously by returning the data source directly or asynchronously via the <code>process</code> callback's single argument.</td> - </tr> - <tr> - <td>items</td> - <td>number</td> - <td>8</td> - <td>The max number of items to display in the dropdown.</td> - </tr> - <tr> - <td>minLength</td> - <td>number</td> - <td>1</td> - <td>The minimum character length needed before triggering autocomplete suggestions</td> - </tr> - <tr> - <td>matcher</td> - <td>function</td> - <td>case insensitive</td> - <td>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.</td> - </tr> - <tr> - <td>sorter</td> - <td>function</td> - <td>exact match,<br> case sensitive,<br> case insensitive</td> - <td>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>.</td> - </tr> - <tr> - <td>updater</td> - <td>function</td> - <td>returns selected item</td> - <td>The method used to return selected item. Accepts a single argument, the <code>item</code> and has the scope of the typeahead instance.</td> - </tr> - <tr> - <td>highlighter</td> - <td>function</td> - <td>highlights all default matches</td> - <td>Method used to highlight autocomplete results. Accepts a single argument <code>item</code> and has the scope of the typeahead instance. Should return html.</td> - </tr> - </tbody> - </table> - - <h3>Methods</h3> - <h4>.typeahead(options)</h4> - <p>Initializes an input with a typeahead.</p> - </section> - - - - <!-- Affix - ================================================== --> - <section id="affix"> - <div class="page-header"> - <h1>Affix <small>bootstrap-affix.js</small></h1> - </div> - - <h2>Example</h2> - <p>The subnavigation on the left is a live demo of the affix plugin.</p> - - <hr class="bs-docs-separator"> - - <h2>Usage</h2> - - <h3>Via data attributes</h3> - <p>To easily add affix behavior to any element, just add <code>data-spy="affix"</code> to the element you want to spy on. Then use offsets to define when to toggle the pinning of an element on and off.</p> - - <pre class="prettyprint linenums"><div data-spy="affix" data-offset-top="200">...</div></pre> - - <div class="alert alert-info"> - <strong>Heads up!</strong> - You must manage the position of a pinned element and the behavior of its immediate parent. Position is controlled by <code>affix</code>, <code>affix-top</code>, and <code>affix-bottom</code>. Remember to check for a potentially collapsed parent when the affix kicks in as it's removing content from the normal flow of the page. - </div> - - <h3>Via JavaScript</h3> - <p>Call the affix plugin via JavaScript:</p> - <pre class="prettyprint linenums">$('#navbar').affix()</pre> - - <h3>Methods</h3> - <h4>.affix('refresh')</h4> - <p>When using affix in conjunction with adding or removing of elements from the DOM, you'll want to call the refresh method:</p> -<pre class="prettyprint linenums"> -$('[data-spy="affix"]').each(function () { - $(this).affix('refresh') -}); -</pre> - <h3>Options</h3> - <p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-offset-top="200"</code>.</p> - - <table class="table table-bordered table-striped"> - <thead> - <tr> - <th style="width: 100px;">Name</th> - <th style="width: 100px;">type</th> - <th style="width: 50px;">default</th> - <th>description</th> - </tr> - </thead> - <tbody> - <tr> - <td>offset</td> - <td>number | function | object</td> - <td>10</td> - <td>Pixels to offset from screen when calculating position of scroll. If a single number is provided, the offset will be applied in both top and left directions. To listen for a single direction, or multiple unique offsets, just provide an object <code>offset: { x: 10 }</code>. Use a function when you need to dynamically provide an offset (useful for some responsive designs).</td> - </tr> - </tbody> - </table> - </section> - - - - </div>{{! /span9 }} - </div>{{! row}} - - </div>{{! /.container }} |
