2012-01-25 04:19:50 +01:00
<!-- Masthead
================================================== -->
<header class="jumbotron subhead" id="overview">
<h1>{{_i}}Components{{/i}}</h1>
<p class="lead">{{_i}}Dozens of reusable components are built into Bootstrap to provide navigation, alerts, popovers, and much more.{{/i}}</p>
<div class="subnav">
2012-01-31 06:29:50 +01:00
<ul class="nav nav-pills">
2012-01-28 07:52:45 +01:00
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Buttons{{/i}} <b class="caret"></b></a>
<ul class="dropdown-menu">
2012-02-02 07:51:01 +01:00
<li><a href="#buttonGroups">{{_i}}Button groups{{/i}}</a></li>
<li><a href="#buttonDropdowns">{{_i}}Button dropdowns{{/i}}</a></li>
2012-01-28 07:52:45 +01:00
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Navigation{{/i}} <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#navs">{{_i}}Nav, tabs, pills{{/i}}</a></li>
<li><a href="#navbar">{{_i}}Navbar{{/i}}</a></li>
<li><a href="#breadcrumbs">{{_i}}Breadcrumbs{{/i}}</a></li>
<li><a href="#pagination">{{_i}}Pagination{{/i}}</a></li>
</ul>
</li>
<li><a href="#labels">{{_i}}Labels{{/i}}</a></li>
2012-02-21 06:20:06 +01:00
<li><a href="#badges">{{_i}}Badges{{/i}}</a></li>
2012-02-13 05:07:25 +01:00
<li><a href="#typography">{{_i}}Typography{{/i}}</a></li>
2012-01-25 10:22:29 +01:00
<li><a href="#thumbnails">{{_i}}Thumbnails{{/i}}</a></li>
<li><a href="#alerts">{{_i}}Alerts{{/i}}</a></li>
<li><a href="#progress">{{_i}}Progress bars{{/i}}</a></li>
2012-01-28 07:52:45 +01:00
<li><a href="#misc">{{_i}}Miscellaneous{{/i}}</a></li>
2012-01-24 00:17:32 +01:00
</ul>
2012-01-25 04:19:50 +01:00
</div>
</header>
2012-01-24 00:17:32 +01:00
2012-01-23 23:14:16 +01:00
2012-01-25 04:19:50 +01:00
<!-- Button Groups
================================================== -->
<section id="buttonGroups">
<div class="page-header">
<h1>{{_i}}Button groups{{/i}} <small>{{_i}}Join buttons for more toolbar-like functionality{{/i}}</small></h1>
</div>
<div class="row">
<div class="span4">
<h3>{{_i}}Button groups{{/i}}</h3>
<p>{{_i}}Use button groups to join multiple buttons together as one composite component. Build them with a series of <code><a></code> or <code><button></code> elements.{{/i}}</p>
2012-02-11 08:50:45 +01:00
<h3>{{_i}}Best practices{{/i}}</h3>
<p>{{_i}}We recommend the following guidelines for using button groups and toolbars:{{/i}}</p>
<ul>
<li>{{_i}}Always use the same element in a single button group, <code><a></code> or <code><button></code>.{{/i}}</li>
<li>{{_i}}Don't mix buttons of different colors in the same button group.{{/i}}</li>
<li>{{_i}}Use icons in addition to or instead of text, but be sure include alt and title text where appropriate.{{/i}}</li>
</ul>
<p>{{_i}}<span class="label label-info">Related</span> Button groups with dropdowns (see below) should be called out separately and always include a dropdown caret to indicate intended behavior.{{/i}}</p>
</div>
<div class="span4">
<h3>{{_i}}Default example{{/i}}</h3>
<p>{{_i}}Here's how the HTML looks for a standard button group built with anchor tag buttons:{{/i}}</p>
<div class="">
<div class="btn-group" style="margin: 9px 0;">
2012-03-10 20:37:34 +01:00
<button class="btn">{{_i}}Left{{/i}}</button>
<button class="btn">{{_i}}Middle{{/i}}</button>
<button class="btn">{{_i}}Right{{/i}}</button>
2012-01-25 04:19:50 +01:00
</div>
</div>
2012-02-11 08:50:45 +01:00
<pre class="prettyprint linenums">
<div class="btn-group">
2012-03-10 20:37:34 +01:00
<button class="btn">1</button>
<button class="btn">2</button>
<button class="btn">3</button>
2012-02-11 08:50:45 +01:00
</div>
</pre>
<h3>{{_i}}Toolbar example{{/i}}</h3>
<p>{{_i}}Combine sets of <code><div class="btn-group"></code> into a <code><div class="btn-toolbar"></code> for more complex components.{{/i}}</p>
2012-01-28 04:49:56 +01:00
<div class="btn-toolbar">
<div class="btn-group">
2012-03-10 20:37:34 +01:00
<button class="btn">1</button>
<button class="btn">2</button>
<button class="btn">3</button>
<button class="btn">4</button>
2012-01-28 04:49:56 +01:00
</div>
<div class="btn-group">
2012-03-10 20:37:34 +01:00
<button class="btn">5</button>
<button class="btn">6</button>
<button class="btn">7</button>
2012-01-28 04:49:56 +01:00
</div>
<div class="btn-group">
2012-03-10 20:37:34 +01:00
<button class="btn">8</button>
2012-01-23 23:14:16 +01:00
</div>
</div>
<pre class="prettyprint linenums">
<div class="btn-toolbar">
<div class="btn-group">
...
</div>
</div>
</pre>
</div>
2012-01-25 04:19:50 +01:00
<div class="span4">
<h3>{{_i}}Checkbox and radio flavors{{/i}}</h3>
<p>{{_i}}Button groups can also function as radios, where only one button may be active, or checkboxes, where any number of buttons may be active. View <a href="./javascript.html#buttons">the Javascript docs</a> for that.{{/i}}</p>
<p><a class="btn js-btn" href="./javascript.html#buttons">{{_i}}Get the javascript »{{/i}}</a></p>
2012-02-21 22:52:02 +01:00
<h3>{{_i}}Dropdowns in button groups{{/i}}</h3>
<p><span class="label label-info">{{_i}}Heads up!{{/i}}</span> {{_i}}Buttons with dropdowns must be individually wrapped in their own <code>.btn-group</code> within a <code>.btn-toolbar</code> for proper rendering.{{/i}}</p>
2012-01-25 04:19:50 +01:00
</div>
</div>
</section>
2012-01-23 23:14:16 +01:00
2012-01-25 04:19:50 +01:00
<!-- Split button dropdowns
================================================== -->
2012-01-27 22:20:02 +01:00
<section id="buttonDropdowns">
2012-01-25 04:19:50 +01:00
<div class="page-header">
2012-02-22 07:01:39 +01:00
<h1>{{_i}}Button dropdown menus{{/i}} <small>{{_i}}Built on button groups to provide contextual menus{{/i}}</small></h1>
2012-01-25 04:19:50 +01:00
</div>
2012-01-30 16:49:28 +01:00
2012-02-22 07:01:39 +01:00
<h2>{{_i}}Button dropdowns{{/i}}</h2>
2012-01-30 16:49:28 +01:00
<div class="row">
<div class="span4">
2012-02-22 07:01:39 +01:00
<h3>{{_i}}Overview and examples{{/i}}</h3>
2012-01-30 16:49:28 +01:00
<p>{{_i}}Use any button to trigger a dropdown menu by placing it within a <code>.btn-group</code> and providing the proper menu markup.{{/i}}</p>
<div class="btn-toolbar" style="margin-top: 18px;">
<div class="btn-group">
2012-03-10 20:37:34 +01:00
<button class="btn dropdown-toggle" data-toggle="dropdown">{{_i}}Action{{/i}} <span class="caret"></span></button>
2012-01-30 16:49:28 +01:00
<ul class="dropdown-menu">
<li><a href="#">{{_i}}Action{{/i}}</a></li>
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
<li class="divider"></li>
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
</ul>
</div><!-- /btn-group -->
<div class="btn-group">
2012-03-10 20:37:34 +01:00
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">{{_i}}Action{{/i}} <span class="caret"></span></button>
2012-01-30 16:49:28 +01:00
<ul class="dropdown-menu">
<li><a href="#">{{_i}}Action{{/i}}</a></li>
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
<li class="divider"></li>
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
</ul>
</div><!-- /btn-group -->
<div class="btn-group">
2012-03-10 20:37:34 +01:00
<button class="btn btn-danger dropdown-toggle" data-toggle="dropdown">{{_i}}Danger{{/i}} <span class="caret"></span></button>
2012-01-30 16:49:28 +01:00
<ul class="dropdown-menu">
<li><a href="#">{{_i}}Action{{/i}}</a></li>
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
<li class="divider"></li>
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
</ul>
</div><!-- /btn-group -->
</div>
<div class="btn-toolbar">
2012-03-05 09:47:13 +01:00
<div class="btn-group">
2012-03-10 20:37:34 +01:00
<button class="btn btn-warning dropdown-toggle" data-toggle="dropdown">{{_i}}Warning{{/i}} <span class="caret"></span></button>
2012-03-05 09:47:13 +01:00
<ul class="dropdown-menu">
<li><a href="#">{{_i}}Action{{/i}}</a></li>
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
<li class="divider"></li>
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
</ul>
</div><!-- /btn-group -->
2012-01-30 16:49:28 +01:00
<div class="btn-group">
2012-03-10 20:37:34 +01:00
<button class="btn btn-success dropdown-toggle" data-toggle="dropdown">{{_i}}Success{{/i}} <span class="caret"></span></button>
2012-01-30 16:49:28 +01:00
<ul class="dropdown-menu">
<li><a href="#">{{_i}}Action{{/i}}</a></li>
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
<li class="divider"></li>
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
</ul>
</div><!-- /btn-group -->
<div class="btn-group">
2012-03-10 20:37:34 +01:00
<button class="btn btn-info dropdown-toggle" data-toggle="dropdown">{{_i}}Info{{/i}} <span class="caret"></span></button>
2012-01-30 16:49:28 +01:00
<ul class="dropdown-menu">
<li><a href="#">{{_i}}Action{{/i}}</a></li>
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
<li class="divider"></li>
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
</ul>
</div><!-- /btn-group -->
2012-02-13 09:41:28 +01:00
<div class="btn-group">
2012-03-10 20:37:34 +01:00
<button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown">{{_i}}Inverse{{/i}} <span class="caret"></span></button>
2012-02-13 09:41:28 +01:00
<ul class="dropdown-menu">
<li><a href="#">{{_i}}Action{{/i}}</a></li>
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
<li class="divider"></li>
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
</ul>
</div><!-- /btn-group -->
2012-02-13 00:49:04 +01:00
</div><!-- /btn-toolbar -->
2012-01-30 16:49:28 +01:00
</div>
<div class="span8">
<h3>{{_i}}Example markup{{/i}}</h3>
<p>{{_i}}Similar to a button group, our markup uses regular button markup, but with a handful of additions to refine the style and support Bootstrap's dropdown jQuery plugin.{{/i}}</p>
<pre class="prettyprint linenums">
<div class="btn-group">
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
{{_i}}Action{{/i}}
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<!-- {{_i}}dropdown menu links{{/i}} -->
</ul>
</div>
</pre>
</div>
</div>
2012-03-10 22:40:58 +01:00
<div class="row">
<div class="span4">
<h3>{{_i}}Works with all button sizes{{/i}}</h3>
2012-03-11 00:41:41 +01:00
<p>{{_i}}Button dropdowns work at any size. your button sizes to <code>.btn-large</code>, <code>.btn-small</code>, or <code>.btn-mini</code>.{{/i}}</p>
2012-03-10 22:40:58 +01:00
<div class="btn-toolbar" style="margin-top: 18px;">
<div class="btn-group">
<button class="btn btn-large dropdown-toggle" data-toggle="dropdown">{{_i}}Large button{{/i}} <span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#">{{_i}}Action{{/i}}</a></li>
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
<li class="divider"></li>
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
</ul>
</div><!-- /btn-group -->
<div class="btn-group">
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown">{{_i}}Small button{{/i}} <span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#">{{_i}}Action{{/i}}</a></li>
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
<li class="divider"></li>
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
</ul>
</div><!-- /btn-group -->
<div class="btn-group">
<button class="btn btn-mini dropdown-toggle" data-toggle="dropdown">{{_i}}Mini button{{/i}} <span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#">{{_i}}Action{{/i}}</a></li>
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
<li class="divider"></li>
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
</ul>
</div><!-- /btn-group -->
</div><!-- /btn-toolbar -->
</div><!--/span-->
<div class="span4">
2012-03-11 00:41:41 +01:00
<h3>{{_i}}Requires javascript{{/i}}</h3>
<p>{{_i}}Button dropdowns require the <a href="./javascript.html#dropdowns">Bootstrap dropdown plugin</a> to function.{{/i}}</p>
<p>{{_i}}In some cases—like mobile—dropdown menus will extend outside the viewport. You need to resolve the alignment manually or with custom javascript.{{/i}}</p>
2012-03-10 22:40:58 +01:00
</div><!--/span-->
</div><!--/row-->
2012-03-11 00:41:41 +01:00
<br>
2012-01-30 16:49:28 +01:00
2012-02-22 07:01:39 +01:00
<h2>{{_i}}Split button dropdowns{{/i}}</h2>
2012-01-25 04:19:50 +01:00
<div class="row">
<div class="span4">
2012-02-22 07:01:39 +01:00
<h3>{{_i}}Overview and examples{{/i}}</h3>
2012-01-25 04:19:50 +01:00
<p>{{_i}}Building on the button group styles and markup, we can easily create a split button. Split buttons feature a standard action on the left and a dropdown toggle on the right with contextual links.{{/i}}</p>
2012-01-28 04:49:56 +01:00
<div class="btn-toolbar" style="margin-top: 18px;">
<div class="btn-group">
2012-03-10 20:37:34 +01:00
<button class="btn">{{_i}}Action{{/i}}</button>
<button class="btn dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
2012-01-28 04:49:56 +01:00
<ul class="dropdown-menu">
<li><a href="#">{{_i}}Action{{/i}}</a></li>
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
<li class="divider"></li>
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
</ul>
</div><!-- /btn-group -->
<div class="btn-group">
2012-03-10 20:37:34 +01:00
<button class="btn btn-primary">{{_i}}Action{{/i}}</button>
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
2012-01-28 04:49:56 +01:00
<ul class="dropdown-menu">
<li><a href="#">{{_i}}Action{{/i}}</a></li>
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
<li class="divider"></li>
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
</ul>
</div><!-- /btn-group -->
<div class="btn-group">
2012-03-10 20:37:34 +01:00
<button class="btn btn-danger">{{_i}}Danger{{/i}}</button>
<button class="btn btn-danger dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
2012-01-28 04:49:56 +01:00
<ul class="dropdown-menu">
<li><a href="#">{{_i}}Action{{/i}}</a></li>
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
<li class="divider"></li>
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
</ul>
</div><!-- /btn-group -->
</div>
<div class="btn-toolbar">
2012-03-05 09:47:13 +01:00
<div class="btn-group">
2012-03-10 20:37:34 +01:00
<button class="btn btn-warning">{{_i}}Warning{{/i}}</button>
<button class="btn btn-warning dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
2012-03-05 09:47:13 +01:00
<ul class="dropdown-menu">
<li><a href="#">{{_i}}Action{{/i}}</a></li>
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
<li class="divider"></li>
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
</ul>
</div><!-- /btn-group -->
2012-01-28 04:49:56 +01:00
<div class="btn-group">
2012-03-10 20:37:34 +01:00
<button class="btn btn-success">{{_i}}Success{{/i}}</button>
<button class="btn btn-success dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
2012-01-28 04:49:56 +01:00
<ul class="dropdown-menu">
<li><a href="#">{{_i}}Action{{/i}}</a></li>
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
<li class="divider"></li>
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
</ul>
</div><!-- /btn-group -->
<div class="btn-group">
2012-03-10 20:37:34 +01:00
<button class="btn btn-info">{{_i}}Info{{/i}}</button>
<button class="btn btn-info dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
2012-01-28 04:49:56 +01:00
<ul class="dropdown-menu">
<li><a href="#">{{_i}}Action{{/i}}</a></li>
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
<li class="divider"></li>
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
</ul>
</div><!-- /btn-group -->
2012-03-05 09:47:13 +01:00
</div>
<div class="btn-toolbar">
2012-02-13 09:41:28 +01:00
<div class="btn-group">
2012-03-10 20:37:34 +01:00
<button class="btn btn-inverse">{{_i}}Inverse{{/i}}</button>
<button class="btn btn-inverse dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
2012-02-13 09:41:28 +01:00
<ul class="dropdown-menu">
<li><a href="#">{{_i}}Action{{/i}}</a></li>
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
<li class="divider"></li>
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
</ul>
</div><!-- /btn-group -->
2012-02-22 07:01:39 +01:00
</div><!-- /btn-toolbar -->
2012-03-12 20:44:47 +01:00
<h3>{{_i}}Sizes{{/i}}</h3>
2012-04-12 22:14:54 +02:00
<p>{{_i}}Utilize the extra button classes <code>.btn-mini</code>, <code>.btn-small</code>, or <code>.btn-large</code> for sizing.{{/i}}</p>
2012-02-22 07:01:39 +01:00
<div class="btn-toolbar">
<div class="btn-group">
2012-03-12 20:44:47 +01:00
<button class="btn btn-large">{{_i}}Large action{{/i}}</button>
<button class="btn btn-large dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#">{{_i}}Action{{/i}}</a></li>
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
<li class="divider"></li>
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
</ul>
</div><!-- /btn-group -->
</div><!-- /btn-toolbar -->
<div class="btn-toolbar">
<div class="btn-group">
<button class="btn btn-small">{{_i}}Small action{{/i}}</button>
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#">{{_i}}Action{{/i}}</a></li>
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
<li class="divider"></li>
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
</ul>
</div><!-- /btn-group -->
</div><!-- /btn-toolbar -->
<div class="btn-toolbar">
<div class="btn-group">
<button class="btn btn-mini">{{_i}}Mini action{{/i}}</button>
<button class="btn btn-mini dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
<ul class="dropdown-menu">
2012-02-22 07:01:39 +01:00
<li><a href="#">{{_i}}Action{{/i}}</a></li>
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
<li class="divider"></li>
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
</ul>
</div><!-- /btn-group -->
</div><!-- /btn-toolbar -->
<pre class="prettyprint linenums">
<div class="btn-group">
...
<ul class="dropdown-menu pull-right">
<!-- {{_i}}dropdown menu links{{/i}} -->
</ul>
</div>
</pre>
2012-01-23 23:14:16 +01:00
</div>
2012-01-25 04:19:50 +01:00
<div class="span8">
<h3>{{_i}}Example markup{{/i}}</h3>
2012-01-30 16:49:28 +01:00
<p>{{_i}}We expand on the normal button dropdowns to provide a second button action that operates as a separate dropdown trigger.{{/i}}</p>
2012-01-23 23:14:16 +01:00
<pre class="prettyprint linenums">
<div class="btn-group">
2012-03-10 20:37:34 +01:00
<button class="btn">{{_i}}Action{{/i}}</button>
<button class="btn dropdown-toggle" data-toggle="dropdown">
2012-01-23 23:14:16 +01:00
<span class="caret"></span>
2012-03-10 20:37:34 +01:00
</button>
2012-01-23 23:14:16 +01:00
<ul class="dropdown-menu">
2012-01-25 00:00:35 +01:00
<!-- {{_i}}dropdown menu links{{/i}} -->
2012-01-23 23:14:16 +01:00
</ul>
</div>
</pre>
2012-02-22 07:01:39 +01:00
<h3>{{_i}}Dropup menus{{/i}}</h3>
<p>{{_i}}Dropdown menus can also be toggled from the bottom up by adding a single class to the immediate parent of <code>.dropdown-menu</code>. It will flip the direction of the <code>.caret</code> and reposition the menu itself to move from the bottom up instead of top down.{{/i}}</p>
<div class="btn-toolbar" style="margin-top: 9px;">
<div class="btn-group dropup">
2012-03-10 20:37:34 +01:00
<button class="btn">{{_i}}Dropup{{/i}}</button>
<button class="btn dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
2012-02-22 07:01:39 +01:00
<ul class="dropdown-menu">
<li><a href="#">{{_i}}Action{{/i}}</a></li>
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
<li class="divider"></li>
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
</ul>
</div><!-- /btn-group -->
<div class="btn-group dropup">
2012-03-10 20:37:34 +01:00
<button class="btn primary">{{_i}}Right dropup{{/i}}</button>
<button class="btn primary dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
2012-02-22 07:01:39 +01:00
<ul class="dropdown-menu pull-right">
<li><a href="#">{{_i}}Action{{/i}}</a></li>
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
<li class="divider"></li>
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
</ul>
</div><!-- /btn-group -->
</div>
<pre class="prettyprint linenums">
<div class="btn-group dropup">
2012-03-10 20:37:34 +01:00
<button class="btn">{{_i}}Dropup{{/i}}</button>
<button class="btn dropdown-toggle" data-toggle="dropdown">
2012-02-22 07:01:39 +01:00
<span class="caret"></span>
2012-03-10 20:37:34 +01:00
</button>
2012-02-22 07:01:39 +01:00
<ul class="dropdown-menu">
<!-- {{_i}}dropdown menu links{{/i}} -->
</ul>
</div>
</pre>
2012-01-23 23:14:16 +01:00
</div>
2012-01-25 04:19:50 +01:00
</div>
</section>
2012-01-23 23:14:16 +01:00
<!-- Nav, Tabs, & Pills
================================================== -->
<section id="navs">
<div class="page-header">
2012-01-25 00:00:35 +01:00
<h1>{{_i}}Nav, tabs, and pills{{/i}} <small>{{_i}}Highly customizable list-style navigation{{/i}}</small></h1>
2012-01-23 23:14:16 +01:00
</div>
2012-01-25 00:00:35 +01:00
<h2>{{_i}}Lightweight defaults{{/i}} <small>{{_i}}Same markup, different classes{{/i}}</small></h2>
2012-01-23 23:14:16 +01:00
<div class="row">
<div class="span4">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Powerful base class{{/i}}</h3>
<p>{{_i}}All nav components here—tabs, pills, and lists—<strong>share the same base markup and styles</strong> through the <code>.nav</code> class.{{/i}}</p>
2012-02-05 09:16:25 +01:00
<h3>{{_i}}When to use{{/i}}</h3>
<p>{{_i}}Tabs and pills are great for sections of content or navigating between pages of related content.{{/i}}</p>
<h3>{{_i}}Component alignment{{/i}}</h3>
<p>{{_i}}To align nav links, use the <code>.pull-left</code> or <code>.pull-right</code> utility classes. Both classes will add a CSS float in the specified direction.{{/i}}</p>
2012-01-23 23:14:16 +01:00
</div>
<div class="span4">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Basic tabs{{/i}}</h3>
2012-01-31 08:54:10 +01:00
<p>{{_i}}Take a regular <code><ul></code> of links and add <code>.nav-tabs</code>:{{/i}}</p>
2012-01-31 06:29:50 +01:00
<ul class="nav nav-tabs">
2012-01-25 00:00:35 +01:00
<li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
<li><a href="#">{{_i}}Profile{{/i}}</a></li>
<li><a href="#">{{_i}}Messages{{/i}}</a></li>
2012-01-23 23:14:16 +01:00
</ul>
<pre class="prettyprint linenums">
2012-01-31 06:29:50 +01:00
<ul class="nav nav-tabs">
2012-01-23 23:14:16 +01:00
<li class="active">
2012-01-25 00:00:35 +01:00
<a href="#">{{_i}}Home{{/i}}</a>
2012-01-23 23:14:16 +01:00
</li>
<li><a href="#">...</a></li>
<li><a href="#">...</a></li>
</ul>
</pre>
</div>
<div class="span4">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Basic pills{{/i}}</h3>
2012-01-31 08:54:10 +01:00
<p>{{_i}}Take that same HTML, but use <code>.nav-pills</code> instead:{{/i}}</p>
2012-01-31 06:29:50 +01:00
<ul class="nav nav-pills">
2012-01-25 00:00:35 +01:00
<li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
<li><a href="#">{{_i}}Profile{{/i}}</a></li>
<li><a href="#">{{_i}}Messages{{/i}}</a></li>
2012-01-23 23:14:16 +01:00
</ul>
<pre class="prettyprint linenums">
2012-01-31 06:29:50 +01:00
<ul class="nav nav-pills">
2012-01-23 23:14:16 +01:00
<li class="active">
2012-01-25 00:00:35 +01:00
<a href="#">{{_i}}Home{{/i}}</a>
2012-01-23 23:14:16 +01:00
</li>
<li><a href="#">...</a></li>
<li><a href="#">...</a></li>
</ul>
</pre>
</div>
</div>
2012-01-25 00:00:35 +01:00
<h2>{{_i}}Stackable{{/i}} <small>{{_i}}Make tabs or pills vertical{{/i}}</small></h2>
2012-01-23 23:14:16 +01:00
<div class="row">
<div class="span4">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}How to stack 'em{{/i}}</h3>
2012-01-31 08:54:10 +01:00
<p>{{_i}}As tabs and pills are horizontal by default, just add a second class, <code>.nav-stacked</code>, to make them appear vertically stacked.{{/i}}</p>
2012-01-23 23:14:16 +01:00
</div>
<div class="span4">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Stacked tabs{{/i}}</h3>
2012-01-31 06:29:50 +01:00
<ul class="nav nav-tabs nav-stacked">
2012-01-25 00:00:35 +01:00
<li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
<li><a href="#">{{_i}}Profile{{/i}}</a></li>
<li><a href="#">{{_i}}Messages{{/i}}</a></li>
2012-01-23 23:14:16 +01:00
</ul>
<pre class="prettyprint linenums">
2012-01-31 06:29:50 +01:00
<ul class="nav nav-tabs nav-stacked">
2012-01-23 23:14:16 +01:00
...
</ul>
</pre>
</div>
<div class="span4">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Stacked pills{{/i}}</h3>
2012-01-31 06:29:50 +01:00
<ul class="nav nav-pills nav-stacked">
2012-01-25 00:00:35 +01:00
<li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
<li><a href="#">{{_i}}Profile{{/i}}</a></li>
<li><a href="#">{{_i}}Messages{{/i}}</a></li>
2012-01-23 23:14:16 +01:00
</ul>
<pre class="prettyprint linenums">
2012-01-31 06:29:50 +01:00
<ul class="nav nav-pills nav-stacked">
2012-01-23 23:14:16 +01:00
...
</ul>
</pre>
</div>
</div>
2012-01-25 00:00:35 +01:00
<h2>{{_i}}Dropdowns{{/i}} <small>{{_i}}For advanced nav components{{/i}}</small></h2>
2012-01-23 23:14:16 +01:00
<div class="row">
<div class="span4">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Rich menus made easy{{/i}}</h3>
<p>{{_i}}Dropdown menus in Bootstrap tabs and pills are super easy and require only a little extra HTML and a lightweight jQuery plugin.{{/i}}</p>
<p>{{_i}}Head over to the Javascript page to read the docs on <a href="./javascript.html#tabs">initializing dropdowns</a> in Bootstrap.{{/i}}</p>
2012-01-23 23:14:16 +01:00
</div>
<div class="span4">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Tabs with dropdowns{{/i}}</h3>
2012-01-31 06:29:50 +01:00
<ul class="nav nav-tabs">
2012-01-25 00:00:35 +01:00
<li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
2012-01-30 00:22:10 +01:00
<li><a href="#">{{_i}}Help{{/i}}</a></li>
2012-01-23 23:14:16 +01:00
<li class="dropdown">
2012-01-25 00:00:35 +01:00
<a class="dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
2012-01-23 23:14:16 +01:00
<ul class="dropdown-menu">
2012-01-25 00:00:35 +01:00
<li><a href="#">{{_i}}Action{{/i}}</a></li>
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
2012-01-23 23:14:16 +01:00
<li class="divider"></li>
2012-01-25 00:00:35 +01:00
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
2012-01-23 23:14:16 +01:00
</ul>
</li>
</ul>
<pre class="prettyprint linenums">
2012-01-31 06:29:50 +01:00
<ul class="nav nav-tabs">
2012-01-23 23:14:16 +01:00
<li class="dropdown">
<a class="dropdown-toggle"
data-toggle="dropdown"
href="#">
2012-01-25 00:00:35 +01:00
{{_i}}Dropdown{{/i}}
2012-01-23 23:14:16 +01:00
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
2012-01-25 00:00:35 +01:00
<!-- {{_i}}links{{/i}} -->
2012-01-23 23:14:16 +01:00
</ul>
</li>
</ul>
</pre>
</div>
<div class="span4">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Pills with dropdowns{{/i}}</h3>
2012-01-31 06:29:50 +01:00
<ul class="nav nav-pills">
2012-01-25 00:00:35 +01:00
<li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
2012-01-30 00:22:10 +01:00
<li><a href="#">{{_i}}Help{{/i}}</a></li>
2012-01-23 23:14:16 +01:00
<li class="dropdown">
2012-01-25 00:00:35 +01:00
<a class="dropdown-toggle" data-toggle="dropdown" href="#">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
2012-01-23 23:14:16 +01:00
<ul class="dropdown-menu">
2012-01-25 00:00:35 +01:00
<li><a href="#">{{_i}}Action{{/i}}</a></li>
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
2012-01-23 23:14:16 +01:00
<li class="divider"></li>
2012-01-25 00:00:35 +01:00
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
2012-01-23 23:14:16 +01:00
</ul>
</li>
</ul>
<pre class="prettyprint linenums">
2012-01-31 06:29:50 +01:00
<ul class="nav nav-pills">
2012-01-23 23:14:16 +01:00
<li class="dropdown">
<a class="dropdown-toggle"
data-toggle="dropdown"
href="#">
2012-01-25 00:00:35 +01:00
{{_i}}Dropdown{{/i}}
2012-01-23 23:14:16 +01:00
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
2012-01-25 00:00:35 +01:00
<!-- {{_i}}links{{/i}} -->
2012-01-23 23:14:16 +01:00
</ul>
</li>
</ul>
</pre>
</div>
</div>
2012-01-25 00:00:35 +01:00
<h2>{{_i}}Nav lists{{/i}} <small>{{_i}}Build simple stacked navs, great for sidebars{{/i}}</small></h2>
2012-01-23 23:14:16 +01:00
<div class="row">
<div class="span4">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Application-style navigation{{/i}}</h3>
<p>{{_i}}Nav lists provide a simple and easy way to build groups of nav links with optional headers. They're best used in sidebars like the Finder in OS X.{{/i}}</p>
<p>{{_i}}Structurally, they're built on the same core nav styles as tabs and pills, so usage and customization are straightforward.{{/i}}</p>
2012-02-20 21:38:49 +01:00
<hr>
2012-01-25 00:00:35 +01:00
<h4>{{_i}}With icons{{/i}}</h4>
<p>{{_i}}Nav lists are also easy to equip with icons. Add the proper <code><i></code> tag with class and you're set.{{/i}}</p>
2012-02-20 21:38:49 +01:00
<h4>{{_i}}Horizontal dividers{{/i}}</h4>
<p>{{_i}}Add a horizontal divider by creating an empty list item with the class <code>.divider</code>, like so:{{/i}}</p>
<pre class="prettyprint linenums">
<ul class="nav nav-list">
...
<li class="divider"></li>
...
</ul>
</pre>
2012-01-23 23:14:16 +01:00
</div>
<div class="span4">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Example nav list{{/i}}</h3>
2012-01-31 08:54:10 +01:00
<p>{{_i}}Take a list of links and add <code>class="nav nav-list"</code>:{{/i}}</p>
2012-01-23 23:14:16 +01:00
<div class="well" style="padding: 8px 0;">
2012-01-31 06:29:50 +01:00
<ul class="nav nav-list">
2012-01-25 00:00:35 +01:00
<li class="nav-header">{{_i}}List header{{/i}}</li>
<li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
<li><a href="#">{{_i}}Library{{/i}}</a></li>
<li><a href="#">{{_i}}Applications{{/i}}</a></li>
<li class="nav-header">{{_i}}Another list header{{/i}}</li>
<li><a href="#">{{_i}}Profile{{/i}}</a></li>
<li><a href="#">{{_i}}Settings{{/i}}</a></li>
2012-02-20 21:38:49 +01:00
<li class="divider"></li>
2012-01-25 00:00:35 +01:00
<li><a href="#">{{_i}}Help{{/i}}</a></li>
2012-01-23 23:14:16 +01:00
</ul>
</div> <!-- /well -->
<pre class="prettyprint linenums">
2012-01-31 06:29:50 +01:00
<ul class="nav nav-list">
2012-01-23 23:14:16 +01:00
<li class="nav-header">
2012-01-25 00:00:35 +01:00
{{_i}}List header{{/i}}
2012-01-23 23:14:16 +01:00
</li>
<li class="active">
2012-01-25 00:00:35 +01:00
<a href="#">{{_i}}Home{{/i}}</a>
2012-01-23 23:14:16 +01:00
</li>
<li>
2012-01-25 00:00:35 +01:00
<a href="#">{{_i}}Library{{/i}}</a>
2012-01-23 23:14:16 +01:00
</li>
...
</ul>
</pre>
</div>
<div class="span4">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Example with icons{{/i}}</h3>
<p>{{_i}}Same example, but with <code><i></code> tags for icons.{{/i}}</p>
2012-01-23 23:14:16 +01:00
<div class="well" style="padding: 8px 0;">
2012-01-31 06:29:50 +01:00
<ul class="nav nav-list">
2012-01-25 00:00:35 +01:00
<li class="nav-header">{{_i}}List header{{/i}}</li>
2012-01-31 09:11:19 +01:00
<li class="active"><a href="#"><i class="icon-white icon-home"></i> {{_i}}Home{{/i}}</a></li>
<li><a href="#"><i class="icon-book"></i> {{_i}}Library{{/i}}</a></li>
<li><a href="#"><i class="icon-pencil"></i> {{_i}}Applications{{/i}}</a></li>
2012-01-25 00:00:35 +01:00
<li class="nav-header">{{_i}}Another list header{{/i}}</li>
2012-01-31 09:11:19 +01:00
<li><a href="#"><i class="icon-user"></i> {{_i}}Profile{{/i}}</a></li>
<li><a href="#"><i class="icon-cog"></i> {{_i}}Settings{{/i}}</a></li>
2012-02-20 21:38:49 +01:00
<li class="divider"></li>
2012-01-31 09:11:19 +01:00
<li><a href="#"><i class="icon-flag"></i> {{_i}}Help{{/i}}</a></li>
2012-01-23 23:14:16 +01:00
</ul>
</div> <!-- /well -->
<pre class="prettyprint linenums">
2012-01-31 06:29:50 +01:00
<ul class="nav nav-list">
2012-01-23 23:14:16 +01:00
...
<li>
<a href="#">
2012-01-31 09:11:19 +01:00
<i class="icon-book"></i>
2012-01-25 00:00:35 +01:00
{{_i}}Library{{/i}}
2012-01-23 23:14:16 +01:00
</a>
</li>
...
</ul>
</pre>
</div>
</div>
2012-01-25 00:00:35 +01:00
<h2>{{_i}}Tabbable nav{{/i}} <small>{{_i}}Bring tabs to life via javascript{{/i}}</small></h2>
2012-01-23 23:14:16 +01:00
<div class="row">
<div class="span4">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}What's included{{/i}}</h3>
<p>{{_i}}Bring your tabs to life with a simple plugin to toggle between content via tabs. Bootstrap integrates tabbable tabs in four styles: top (default), right, bottom, and left.{{/i}}</p>
<p>{{_i}}Changing between them is easy and only requires changing very little markup.{{/i}}</p>
2012-03-29 02:35:06 +02:00
<hr>
<h4>{{_i}}Fade in tabs{{/i}}</h4>
<p>{{_i}}To make tabs fade in, add <code>.fade</code> to each <code>.tab-pane</code>.{{/i}}</p>
<hr>
<h4>{{_i}}Requires jQuery plugin{{/i}}</h4>
<p>{{_i}}All tabbable tabs are powered by our lightweight jQuery plugin. Read more about how to bring tabbable tabs to life <a href="./javascript.html#tabs">on the javascript docs page</a>.{{/i}}</p>
<p><a class="btn" href="./javascript.html#tabs">{{_i}}Get the javascript →{{/i}}</a></p>
2012-01-23 23:14:16 +01:00
</div>
2012-03-29 02:35:06 +02:00
<div class="span8">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Tabbable example{{/i}}</h3>
2012-03-29 02:35:06 +02:00
<p>{{_i}}To make tabs tabbable, create a <code>.tab-pane</code> with unique ID for every tab and wrap them in <code>.tab-content</code>.{{/i}}</p>
<div class="tabbable" style="margin-bottom: 18px;">
2012-01-31 06:29:50 +01:00
<ul class="nav nav-tabs">
2012-03-29 02:35:06 +02:00
<li class="active"><a href="#tab1" data-toggle="tab">{{_i}}Section 1{{/i}}</a></li>
<li><a href="#tab2" data-toggle="tab">{{_i}}Section 2{{/i}}</a></li>
<li><a href="#tab3" data-toggle="tab">{{_i}}Section 3{{/i}}</a></li>
2012-01-23 23:14:16 +01:00
</ul>
2012-03-29 02:35:06 +02:00
<div class="tab-content" style="padding-bottom: 9px; border-bottom: 1px solid #ddd;">
<div class="tab-pane active" id="tab1">
2012-01-25 00:00:35 +01:00
<p>{{_i}}I'm in Section 1.{{/i}}</p>
2012-01-23 23:14:16 +01:00
</div>
2012-03-29 02:35:06 +02:00
<div class="tab-pane" id="tab2">
2012-01-25 00:00:35 +01:00
<p>{{_i}}Howdy, I'm in Section 2.{{/i}}</p>
2012-01-23 23:14:16 +01:00
</div>
2012-03-29 02:35:06 +02:00
<div class="tab-pane" id="tab3">
2012-01-25 00:00:35 +01:00
<p>{{_i}}What up girl, this is Section 3.{{/i}}</p>
2012-01-23 23:14:16 +01:00
</div>
</div>
</div> <!-- /tabbable -->
2012-03-29 02:35:06 +02:00
<p>{{_i}}For right or left aligned tabs, wrap the <code>.nav-tabs</code> and <code>.tab-content</code> in <code>.tabbable</code>.{{/i}}</p>
2012-01-23 23:14:16 +01:00
2012-03-29 02:35:06 +02:00
<h3>{{_i}}Straightforward markup{{/i}}</h3>
<p>{{_i}}Using tabbable tabs requires a wrapping div, a set of tabs, and a set of tabbable panes of content.{{/i}}</p>
2012-01-23 23:14:16 +01:00
<pre class="prettyprint linenums">
2012-05-01 00:42:55 +02:00
<div class="tabbable"> <!-- Only required for left/right tabs -->
2012-01-31 06:29:50 +01:00
<ul class="nav nav-tabs">
2012-03-29 02:35:06 +02:00
<li class="active"><a href="#tab1" data-toggle="tab">{{_i}}Section 1{{/i}}</a></li>
<li><a href="#tab2" data-toggle="tab">{{_i}}Section 2{{/i}}</a></li>
2012-01-23 23:14:16 +01:00
</ul>
<div class="tab-content">
2012-03-29 02:35:06 +02:00
<div class="tab-pane active" id="tab1">
2012-01-25 00:00:35 +01:00
<p>{{_i}}I'm in Section 1.{{/i}}</p>
2012-01-23 23:14:16 +01:00
</div>
2012-03-29 02:35:06 +02:00
<div class="tab-pane" id="tab2">
2012-01-25 00:00:35 +01:00
<p>{{_i}}Howdy, I'm in Section 2.{{/i}}</p>
2012-01-23 23:14:16 +01:00
</div>
</div>
</div>
</pre>
2012-03-29 02:35:06 +02:00
</div>
</div>
2012-01-23 23:14:16 +01:00
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Tabbable in any direction{{/i}}</h3>
2012-01-23 23:14:16 +01:00
<div class="row">
<div class="span4">
2012-01-25 00:00:35 +01:00
<h4>{{_i}}Tabs on the bottom{{/i}}</h4>
<p>{{_i}}Flip the order of the HTML and add a class to put tabs on the bottom.{{/i}}</p>
2012-01-23 23:14:16 +01:00
<div class="tabbable tabs-below">
<div class="tab-content">
<div class="tab-pane active" id="A">
2012-01-25 00:00:35 +01:00
<p>{{_i}}I'm in Section A.{{/i}}</p>
2012-01-23 23:14:16 +01:00
</div>
<div class="tab-pane" id="B">
2012-01-25 00:00:35 +01:00
<p>{{_i}}Howdy, I'm in Section B.{{/i}}</p>
2012-01-23 23:14:16 +01:00
</div>
<div class="tab-pane" id="C">
2012-01-25 00:00:35 +01:00
<p>{{_i}}What up girl, this is Section C.{{/i}}</p>
2012-01-23 23:14:16 +01:00
</div>
</div>
2012-01-31 06:29:50 +01:00
<ul class="nav nav-tabs">
2012-01-25 00:00:35 +01:00
<li class="active"><a href="#A" data-toggle="tab">{{_i}}Section 1{{/i}}</a></li>
<li><a href="#B" data-toggle="tab">{{_i}}Section 2{{/i}}</a></li>
<li><a href="#C" data-toggle="tab">{{_i}}Section 3{{/i}}</a></li>
2012-01-23 23:14:16 +01:00
</ul>
</div> <!-- /tabbable -->
<pre class="prettyprint linenums" style="margin-top: 11px;">
2012-01-28 22:30:15 +01:00
<div class="tabbable tabs-below">
2012-01-23 23:14:16 +01:00
<div class="tab-content">
...
</div>
2012-01-31 06:29:50 +01:00
<ul class="nav nav-tabs">
...
</ul>
2012-01-23 23:14:16 +01:00
</div>
</pre>
</div>
<div class="span4">
2012-01-25 00:00:35 +01:00
<h4>{{_i}}Tabs on the left{{/i}}</h4>
<p>{{_i}}Swap the class to put tabs on the left.{{/i}}</p>
2012-01-23 23:14:16 +01:00
<div class="tabbable tabs-left">
2012-01-31 06:29:50 +01:00
<ul class="nav nav-tabs">
2012-01-25 00:00:35 +01:00
<li class="active"><a href="#lA" data-toggle="tab">{{_i}}Section 1{{/i}}</a></li>
<li><a href="#lB" data-toggle="tab">{{_i}}Section 2{{/i}}</a></li>
<li><a href="#lC" data-toggle="tab">{{_i}}Section 3{{/i}}</a></li>
2012-01-23 23:14:16 +01:00
</ul>
<div class="tab-content">
<div class="tab-pane active" id="lA">
2012-01-25 00:00:35 +01:00
<p>{{_i}}I'm in Section A.{{/i}}</p>
2012-01-23 23:14:16 +01:00
</div>
<div class="tab-pane" id="lB">
2012-01-25 00:00:35 +01:00
<p>{{_i}}Howdy, I'm in Section B.{{/i}}</p>
2012-01-23 23:14:16 +01:00
</div>
<div class="tab-pane" id="lC">
2012-01-25 00:00:35 +01:00
<p>{{_i}}What up girl, this is Section C.{{/i}}</p>
2012-01-23 23:14:16 +01:00
</div>
</div>
</div> <!-- /tabbable -->
<pre class="prettyprint linenums">
<div class="tabbable tabs-left">
2012-01-31 06:29:50 +01:00
<ul class="nav nav-tabs">
2012-01-23 23:14:16 +01:00
...
</ul>
<div class="tab-content">
...
</div>
</div>
</pre>
</div>
<div class="span4">
2012-01-25 00:00:35 +01:00
<h4>{{_i}}Tabs on the right{{/i}}</h4>
<p>{{_i}}Swap the class to put tabs on the right.{{/i}}</p>
2012-01-23 23:14:16 +01:00
<div class="tabbable tabs-right">
2012-01-31 06:29:50 +01:00
<ul class="nav nav-tabs">
2012-01-25 00:00:35 +01:00
<li class="active"><a href="#rA" data-toggle="tab">{{_i}}Section 1{{/i}}</a></li>
<li><a href="#rB" data-toggle="tab">{{_i}}Section 2{{/i}}</a></li>
<li><a href="#rC" data-toggle="tab">{{_i}}Section 3{{/i}}</a></li>
2012-01-23 23:14:16 +01:00
</ul>
<div class="tab-content">
<div class="tab-pane active" id="rA">
2012-01-25 00:00:35 +01:00
<p>{{_i}}I'm in Section A.{{/i}}</p>
2012-01-23 23:14:16 +01:00
</div>
<div class="tab-pane" id="rB">
2012-01-25 00:00:35 +01:00
<p>{{_i}}Howdy, I'm in Section B.{{/i}}</p>
2012-01-23 23:14:16 +01:00
</div>
<div class="tab-pane" id="rC">
2012-01-25 00:00:35 +01:00
<p>{{_i}}What up girl, this is Section C.{{/i}}</p>
2012-01-23 23:14:16 +01:00
</div>
</div>
</div> <!-- /tabbable -->
<pre class="prettyprint linenums">
<div class="tabbable tabs-right">
2012-01-31 06:29:50 +01:00
<ul class="nav nav-tabs">
2012-01-23 23:14:16 +01:00
...
</ul>
<div class="tab-content">
...
</div>
</div>
</pre>
</div>
</div>
</section>
<!-- Navbar
================================================== -->
<section id="navbar">
<div class="page-header">
2012-01-25 00:00:35 +01:00
<h1>{{_i}}Navbar{{/i}}</h1>
2012-01-23 23:14:16 +01:00
</div>
2012-01-25 00:00:35 +01:00
<h2>{{_i}}Static navbar example{{/i}}</h2>
<p>{{_i}}An example of a static (not fixed to the top) navbar with project name, navigation, and search form.{{/i}}</p>
2012-01-29 08:40:52 +01:00
<div class="navbar">
2012-01-23 23:14:16 +01:00
<div class="navbar-inner">
2012-02-22 08:15:43 +01:00
<div class="container">
2012-01-29 03:11:31 +01:00
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
2012-01-31 09:11:19 +01:00
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
2012-01-29 03:11:31 +01:00
</a>
2012-01-25 00:00:35 +01:00
<a class="brand" href="#">{{_i}}Project name{{/i}}</a>
2012-01-29 03:11:31 +01:00
<div class="nav-collapse">
<ul class="nav">
<li class="active"><a href="#">{{_i}}Home{{/i}}</a></li>
<li><a href="#">{{_i}}Link{{/i}}</a></li>
<li><a href="#">{{_i}}Link{{/i}}</a></li>
<li><a href="#">{{_i}}Link{{/i}}</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">{{_i}}Action{{/i}}</a></li>
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
<li class="divider"></li>
2012-02-12 23:09:13 +01:00
<li class="nav-header">Nav header</li>
2012-01-29 03:11:31 +01:00
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
2012-02-12 23:09:13 +01:00
<li><a href="#">{{_i}}One more separated link{{/i}}</a></li>
2012-01-29 03:11:31 +01:00
</ul>
</li>
</ul>
<form class="navbar-search pull-left" action="">
<input type="text" class="search-query span2" placeholder="Search">
</form>
<ul class="nav pull-right">
<li><a href="#">{{_i}}Link{{/i}}</a></li>
2012-01-30 10:09:34 +01:00
<li class="divider-vertical"></li>
2012-01-29 03:11:31 +01:00
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{_i}}Dropdown{{/i}} <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">{{_i}}Action{{/i}}</a></li>
<li><a href="#">{{_i}}Another action{{/i}}</a></li>
<li><a href="#">{{_i}}Something else here{{/i}}</a></li>
<li class="divider"></li>
<li><a href="#">{{_i}}Separated link{{/i}}</a></li>
</ul>
</li>
</ul>
</div><!-- /.nav-collapse -->
2012-01-23 23:14:16 +01:00
</div>
</div><!-- /navbar-inner -->
</div><!-- /navbar -->
<div class="row">
<div class="span8">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Navbar scaffolding{{/i}}</h3>
<p>{{_i}}The navbar requires only a few divs to structure it well for static or fixed display.{{/i}}</p>
2012-01-23 23:14:16 +01:00
<pre class="prettyprint linenums">
2012-01-29 08:40:52 +01:00
<div class="navbar">
2012-01-23 23:14:16 +01:00
<div class="navbar-inner">
<div class="container">
...
</div>
</div>
</div>
</pre>
2012-02-13 04:50:36 +01:00
<h3>{{_i}}Fixed navbar{{/i}}</h3>
2012-02-22 06:12:16 +01:00
<p>{{_i}}Fix the navbar to the top or bottom of the viewport with an additional class on the outermost div, <code>.navbar</code>.{{/i}}</p>
<div class="row">
<div class="span4">
2012-01-23 23:14:16 +01:00
<pre class="prettyprint linenums">
2012-01-27 22:20:02 +01:00
<div class="navbar navbar-fixed-top">
2012-01-23 23:14:16 +01:00
...
</div>
</pre>
2012-02-22 06:12:16 +01:00
</div><!--/span-->
<div class="span4">
<pre class="prettyprint linenums">
<div class="navbar navbar-fixed-bottom">
...
</div>
</pre>
</div><!--/span-->
</div><!--/row-->
2012-03-15 03:28:24 +01:00
<p>{{_i}}When you affix the navbar, remember to account for the hidden area underneath. Add 40px or more of padding to the <code><body></code>. Be sure to add this after the core Bootstrap CSS and before the optional responsive CSS.{{/i}}</p>
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Brand name{{/i}}</h3>
<p>{{_i}}A simple link to show your brand or project name only requires an anchor tag.{{/i}}</p>
2012-01-23 23:14:16 +01:00
<pre class="prettyprint linenums">
<a class="brand" href="#">
2012-01-25 00:00:35 +01:00
{{_i}}Project name{{/i}}
2012-01-23 23:14:16 +01:00
</a>
</pre>
2012-02-19 00:23:38 +01:00
<h3>{{_i}}Forms in navbar{{/i}}</h3>
<p>{{_i}}To properly style and position a form within the navbar, add the appropriate classes as shown below. For a default form, include <code>.navbar-form</code> and either <code>.pull-left</code> or <code>.pull-right</code> to properly align it.{{/i}}</p>
<pre class="prettyprint linenums">
<form class="navbar-form pull-left">
<input type="text" class="span2">
</form>
</pre>
2012-03-23 01:22:19 +01:00
<p>{{_i}}For a more customized search form, add <code>.navbar-search</code> to the <code>form</code> and <code>.search-query</code> to the input for specialized styles in the navbar.{{/i}}</p>
2012-01-23 23:14:16 +01:00
<pre class="prettyprint linenums">
2012-01-30 17:58:40 +01:00
<form class="navbar-search pull-left">
<input type="text" class="search-query" placeholder="{{_i}}Search{{/i}}">
2012-01-23 23:14:16 +01:00
</form>
</pre>
2012-01-29 03:39:36 +01:00
<h3>{{_i}}Optional responsive variation{{/i}}</h3>
2012-01-29 23:07:14 +01:00
<p>{{_i}}Depending on the amount of content in your topbar, you might want to implement the responsive options. To do so, wrap your nav content in a containing div, <code>.nav-collapse.collapse</code>, and add the navbar toggle button, <code>.btn-navbar</code>.{{/i}}</p>
2012-01-29 03:39:36 +01:00
<pre class="prettyprint linenums">
2012-01-29 08:40:52 +01:00
<div class="navbar">
2012-01-29 03:39:36 +01:00
<div class="navbar-inner">
<div class="container">
2012-02-17 05:30:00 +01:00
2012-02-02 07:51:01 +01:00
<!-- {{_i}}.btn-navbar is used as the toggle for collapsed navbar content{{/i}} -->
2012-01-29 03:39:36 +01:00
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
2012-01-31 09:11:19 +01:00
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
2012-01-29 03:39:36 +01:00
</a>
2012-02-17 05:30:00 +01:00
2012-02-02 07:51:01 +01:00
<!-- {{_i}}Be sure to leave the brand out there if you want it shown{{/i}} -->
2012-01-29 03:39:36 +01:00
<a class="brand" href="#">{{_i}}Project name{{/i}}</a>
2012-02-02 07:51:01 +01:00
<!-- {{_i}}Everything you want hidden at 940px or less, place within here{{/i}} -->
2012-01-30 01:54:51 +01:00
<div class="nav-collapse">
2012-01-29 03:39:36 +01:00
<!-- .nav, .navbar-search, .navbar-form, etc -->
</div>
</div>
</div>
</div>
</pre>
2012-01-29 07:03:14 +01:00
<div class="alert alert-info">
2012-04-19 18:28:40 +02:00
<strong>{{_i}}Heads up!{{/i}}</strong> The responsive navbar requires the <a href="./javascript.html#collapse">collapse plugin</a> and <a href="./scaffolding.html#responsive">responsive Bootstrap CSS file</a>.
2012-01-29 07:03:14 +01:00
</div>
2012-01-29 03:39:36 +01:00
2012-01-29 03:11:31 +01:00
</div><!-- /.span -->
2012-01-23 23:14:16 +01:00
<div class="span4">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Nav links{{/i}}</h3>
<p>{{_i}}Nav items are simple to add via unordered lists.{{/i}}</p>
2012-01-23 23:14:16 +01:00
<pre class="prettyprint linenums">
<ul class="nav">
<li class="active">
2012-01-25 00:00:35 +01:00
<a href="#">{{_i}}Home{{/i}}</a>
2012-01-23 23:14:16 +01:00
</li>
2012-01-25 00:00:35 +01:00
<li><a href="#">{{_i}}Link{{/i}}</a></li>
<li><a href="#">{{_i}}Link{{/i}}</a></li>
2012-01-23 23:14:16 +01:00
</ul>
2012-02-17 06:04:16 +01:00
</pre>
<p>{{_i}}You can easily add dividers to your nav links with an empty list item and a simple class. Just add this between links:{{/i}}</p>
<pre class="prettyprint linenums">
<ul class="nav">
...
<li class="divider-vertical"></li>
...
</ul>
2012-01-23 23:14:16 +01:00
</pre>
2012-02-05 09:11:21 +01:00
<h3>{{_i}}Component alignment{{/i}}</h3>
<p>{{_i}}To align a nav, search form, or text, use the <code>.pull-left</code> or <code>.pull-right</code> utility classes. Both classes will add a CSS float in the specified direction.{{/i}}</p>
2012-02-22 07:01:39 +01:00
<h3>{{_i}}Adding dropdown menus{{/i}}</h3>
2012-03-18 19:49:18 +01:00
<p>{{_i}}Adding dropdowns and dropups to the nav is super simple, but does require the use of <a href="./javascript.html#dropdowns">our javascript plugin</a>.{{/i}}</p>
2012-01-23 23:14:16 +01:00
<pre class="prettyprint linenums">
<ul class="nav">
<li class="dropdown">
<a href="#"
class="dropdown-toggle"
data-toggle="dropdown">
2012-01-25 00:00:35 +01:00
{{_i}}Account{{/i}}
2012-01-23 23:14:16 +01:00
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
...
</ul>
</li>
</ul>
</pre>
2012-02-17 05:30:00 +01:00
<p><a class="btn" href="./javascript.html#dropdowns">{{_i}}Get the javascript →{{/i}}</a></p>
2012-02-18 05:53:12 +01:00
<hr>
<h3>{{_i}}Text in the navbar{{/i}}</h3>
2012-03-26 18:25:31 +02:00
<p>{{_i}}Wrap strings of text in a <code><.navbar-text></code>, usually on a <code><p></code> tag for proper leading and color.{{/i}}</p>
2012-01-29 03:11:31 +01:00
</div><!-- /.span -->
</div><!-- /.row -->
2012-01-23 23:14:16 +01:00
</section>
<!-- Breadcrumbs
================================================== -->
<section id="breadcrumbs">
<div class="page-header">
2012-01-25 00:00:35 +01:00
<h1>{{_i}}Breadcrumbs{{/i}} <small></small></h1>
2012-01-23 23:14:16 +01:00
</div>
<div class="row">
<div class="span6">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Why use them{{/i}}</h3>
<p>{{_i}}Breadcrumb navigation is used as a way to show users where they are within an app or a site, but not for primary navigation. Keep their use sparse and succinct to be most effective.{{/i}}</p>
2012-01-23 23:14:16 +01:00
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Examples{{/i}}</h3>
<p>{{_i}}A single example shown as it might be displayed across multiple pages.{{/i}}</p>
2012-01-23 23:14:16 +01:00
<ul class="breadcrumb">
2012-01-25 00:00:35 +01:00
<li class="active">{{_i}}Home{{/i}}</li>
2012-01-23 23:14:16 +01:00
</ul>
<ul class="breadcrumb">
2012-01-25 00:00:35 +01:00
<li><a href="#">{{_i}}Home{{/i}}</a> <span class="divider">/</span></li>
<li class="active">{{_i}}Library{{/i}}</li>
2012-01-23 23:14:16 +01:00
</ul>
<ul class="breadcrumb">
2012-01-25 00:00:35 +01:00
<li><a href="#">{{_i}}Home{{/i}}</a> <span class="divider">/</span></li>
<li><a href="#">{{_i}}Library{{/i}}</a> <span class="divider">/</span></li>
<li class="active">{{_i}}Data{{/i}}</li>
2012-01-23 23:14:16 +01:00
</ul>
</div>
<div class="span6">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Markup{{/i}}</h3>
<p>{{_i}}HTML is your standard unordered list with links.{{/i}}</p>
2012-01-23 23:14:16 +01:00
<pre class="prettyprint linenums">
<ul class="breadcrumb">
<li>
2012-01-25 00:00:35 +01:00
<a href="#">{{_i}}Home{{/i}}</a> <span class="divider">/</span>
2012-01-23 23:14:16 +01:00
</li>
<li>
2012-01-25 00:00:35 +01:00
<a href="#">{{_i}}Library{{/i}}</a> <span class="divider">/</span>
2012-01-23 23:14:16 +01:00
</li>
2012-02-28 04:47:21 +01:00
<li class="active">{{_i}}Data{{/i}}</li>
2012-01-23 23:14:16 +01:00
</ul>
</pre>
</div>
</div>
</section>
<!-- Pagination
================================================== -->
<section id="pagination">
<div class="page-header">
2012-01-25 00:00:35 +01:00
<h1>{{_i}}Pagination{{/i}} <small>{{_i}}Two options for paging through content{{/i}}</small></h1>
2012-01-23 23:14:16 +01:00
</div>
2012-01-31 09:11:19 +01:00
<h2>{{_i}}Multicon-page pagination{{/i}}</h2>
2012-01-23 23:14:16 +01:00
<div class="row">
<div class="span4">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}When to use{{/i}}</h3>
<p>{{_i}}Ultra simplistic and minimally styled pagination inspired by Rdio, great for apps and search results. The large block is hard to miss, easily scalable, and provides large click areas.{{/i}}</p>
<h3>{{_i}}Stateful page links{{/i}}</h3>
<p>{{_i}}Links are customizable and work in a number of circumstances with the right class. <code>.disabled</code> for unclickable links and <code>.active</code> for current page.{{/i}}</p>
<h3>{{_i}}Flexible alignment{{/i}}</h3>
<p>{{_i}}Add either of two optional classes to change the alignment of pagination links: <code>.pagination-centered</code> and <code>.pagination-right</code>.{{/i}}</p>
2012-01-23 23:14:16 +01:00
</div>
<div class="span4">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Examples{{/i}}</h3>
<p>{{_i}}The default pagination component is flexible and works in a number of variations.{{/i}}</p>
2012-01-23 23:14:16 +01:00
<div class="pagination">
<ul>
<li class="disabled"><a href="#">«</a></li>
<li class="active"><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">»</a></li>
</ul>
</div>
<div class="pagination">
<ul>
<li><a href="#">«</a></li>
<li><a href="#">10</a></li>
<li class="active"><a href="#">11</a></li>
<li><a href="#">12</a></li>
<li><a href="#">»</a></li>
</ul>
</div>
<div class="pagination">
<ul>
2012-03-25 23:51:54 +02:00
<li><a href="#">«</a></li>
2012-01-23 23:14:16 +01:00
<li class="active"><a href="#">10</a></li>
<li class="disabled"><a href="#">...</a></li>
<li><a href="#">20</a></li>
2012-03-25 23:51:54 +02:00
<li><a href="#">»</a></li>
2012-01-23 23:14:16 +01:00
</ul>
</div>
<div class="pagination pagination-centered">
<ul>
<li class="active"><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
</ul>
</div>
</div>
<div class="span4">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Markup{{/i}}</h3>
<p>{{_i}}Wrapped in a <code><div></code>, pagination is just a <code><ul></code>.{{/i}}</p>
2012-01-23 23:14:16 +01:00
<pre class="prettyprint linenums">
<div class="pagination">
<ul>
<li><a href="#">Prev</a></li>
<li class="active">
<a href="#">1</a>
</li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">Next</a></li>
</ul>
</div>
</pre>
</div>
</div><!-- /row -->
2012-01-25 00:00:35 +01:00
<h2>{{_i}}Pager{{/i}} <small>{{_i}}For quick previous and next links{{/i}}</small></h2>
2012-01-23 23:14:16 +01:00
<div class="row">
<div class="span4">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}About pager{{/i}}</h3>
2012-02-02 08:30:37 +01:00
<p>{{_i}}The pager component is a set of links for simple pagination implementations with light markup and even lighter styles. It's great for simple sites like blogs or magazines.{{/i}}</p>
2012-03-06 08:50:03 +01:00
<h4>{{_i}}Optional disabled state{{/i}}</h4>
<p>{{_i}}Pager links also use the general <code>.disabled</code> class from the pagination.{{/i}}</p>
2012-01-23 23:14:16 +01:00
</div>
<div class="span4">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Default example{{/i}}</h3>
<p>{{_i}}By default, the pager centers links.{{/i}}</p>
2012-01-23 23:14:16 +01:00
<ul class="pager">
2012-01-25 00:00:35 +01:00
<li><a href="#">{{_i}}Previous{{/i}}</a></li>
<li><a href="#">{{_i}}Next{{/i}}</a></li>
2012-01-23 23:14:16 +01:00
</ul>
<pre class="prettyprint linenums">
<ul class="pager">
<li>
2012-01-25 00:00:35 +01:00
<a href="#">{{_i}}Previous{{/i}}</a>
2012-01-23 23:14:16 +01:00
</li>
<li>
2012-01-25 00:00:35 +01:00
<a href="#">{{_i}}Next{{/i}}</a>
2012-01-23 23:14:16 +01:00
</li>
</ul>
</pre>
</div>
<div class="span4">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Aligned links{{/i}}</h3>
<p>{{_i}}Alternatively, you can align each link to the sides:{{/i}}</p>
2012-01-23 23:14:16 +01:00
<ul class="pager">
2012-01-25 00:00:35 +01:00
<li class="previous"><a href="#">{{_i}}← Older{{/i}}</a></li>
<li class="next"><a href="#">{{_i}}Newer →{{/i}}</a></li>
2012-01-23 23:14:16 +01:00
</ul>
<pre class="prettyprint linenums">
<ul class="pager">
<li class="previous">
2012-01-25 00:00:35 +01:00
<a href="#">{{_i}}&larr; Older{{/i}}</a>
2012-01-23 23:14:16 +01:00
</li>
<li class="next">
2012-01-25 00:00:35 +01:00
<a href="#">{{_i}}Newer &rarr;{{/i}}</a>
2012-01-23 23:14:16 +01:00
</li>
</ul>
</pre>
</div>
</div><!-- /row -->
</section>
2012-01-28 07:52:45 +01:00
<!-- Labels
================================================== -->
<section id="labels">
<div class="page-header">
<h1>{{_i}}Inline labels{{/i}} <small>{{_i}}Label and annotate text{{/i}}</small></h1>
</div>
<table class="table table-bordered table-striped">
<thead>
<tr>
2012-01-28 09:34:54 +01:00
<th>{{_i}}Labels{{/i}}</th>
2012-01-28 07:52:45 +01:00
<th>{{_i}}Markup{{/i}}</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span class="label">{{_i}}Default{{/i}}</span>
</td>
<td>
<code><span class="label">{{_i}}Default{{/i}}</span></code>
</td>
</tr>
<tr>
<td>
2012-02-02 03:11:19 +01:00
<span class="label label-success">{{_i}}Success{{/i}}</span>
2012-01-28 07:52:45 +01:00
</td>
<td>
2012-05-14 02:43:56 +02:00
<code><span class="label label-success">{{_i}}Success{{/i}}</span></code>
2012-01-28 07:52:45 +01:00
</td>
</tr>
<tr>
<td>
2012-01-29 07:14:51 +01:00
<span class="label label-warning">{{_i}}Warning{{/i}}</span>
2012-01-28 07:52:45 +01:00
</td>
<td>
2012-01-29 07:14:51 +01:00
<code><span class="label label-warning">{{_i}}Warning{{/i}}</span></code>
2012-01-28 07:52:45 +01:00
</td>
</tr>
<tr>
<td>
2012-01-29 07:14:51 +01:00
<span class="label label-important">{{_i}}Important{{/i}}</span>
2012-01-28 07:52:45 +01:00
</td>
<td>
2012-01-29 07:14:51 +01:00
<code><span class="label label-important">{{_i}}Important{{/i}}</span></code>
2012-01-28 07:52:45 +01:00
</td>
</tr>
<tr>
<td>
2012-01-29 07:14:51 +01:00
<span class="label label-info">{{_i}}Info{{/i}}</span>
2012-01-28 07:52:45 +01:00
</td>
<td>
2012-01-29 07:14:51 +01:00
<code><span class="label label-info">{{_i}}Info{{/i}}</span></code>
2012-01-28 07:52:45 +01:00
</td>
</tr>
2012-02-13 09:41:28 +01:00
<tr>
<td>
<span class="label label-inverse">{{_i}}Inverse{{/i}}</span>
</td>
<td>
<code><span class="label label-inverse">{{_i}}Inverse{{/i}}</span></code>
</td>
</tr>
2012-01-28 07:52:45 +01:00
</tbody>
</table>
</section>
2012-02-21 06:20:06 +01:00
<!-- Badges
================================================== -->
<section id="badges">
<div class="page-header">
<h1>{{_i}}Badges{{/i}} <small>{{_i}}Indicators and unread counts{{/i}}</small></h1>
</div>
<div class="row">
<div class="span4">
<h3>About</h3>
<p>{{_i}}Badges are small, simple components for displaying an indicator or count of some sort. They're commonly found in email clients like Mail.app or on mobile apps for push notifications.{{/i}}</p>
</div><!-- /.span -->
<div class="span8">
<h3>Available classes</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>{{_i}}Name{{/i}}</th>
<th>{{_i}}Example{{/i}}</th>
<th>{{_i}}Markup{{/i}}</th>
</tr>
</thead>
<tbody>
<tr>
<td>
{{_i}}Default{{/i}}
</td>
<td>
<span class="badge">1</span>
</td>
<td>
<code><span class="badge">1</span></code>
</td>
</tr>
<tr>
<td>
{{_i}}Success{{/i}}
</td>
<td>
<span class="badge badge-success">2</span>
</td>
<td>
<code><span class="badge badge-success">2</span></code>
</td>
</tr>
<tr>
<td>
{{_i}}Warning{{/i}}
</td>
<td>
<span class="badge badge-warning">4</span>
</td>
<td>
<code><span class="badge badge-warning">4</span></code>
</td>
</tr>
<tr>
<td>
2012-03-23 13:35:46 +01:00
{{_i}}Important{{/i}}
2012-02-21 06:20:06 +01:00
</td>
<td>
2012-03-23 13:35:46 +01:00
<span class="badge badge-important">6</span>
2012-02-21 06:20:06 +01:00
</td>
<td>
2012-03-23 13:35:46 +01:00
<code><span class="badge badge-important">6</span></code>
2012-02-21 06:20:06 +01:00
</td>
</tr>
<tr>
<td>
{{_i}}Info{{/i}}
</td>
<td>
<span class="badge badge-info">8</span>
</td>
<td>
<code><span class="badge badge-info">8</span></code>
</td>
</tr>
<tr>
<td>
{{_i}}Inverse{{/i}}
</td>
<td>
<span class="badge badge-inverse">10</span>
</td>
<td>
<code><span class="badge badge-inverse">10</span></code>
</td>
</tr>
</tbody>
</table>
</div><!-- /.span -->
</div><!-- /.row -->
</section>
2012-02-13 05:07:25 +01:00
<!-- Typographic components
2012-02-12 23:47:09 +01:00
================================================== -->
2012-02-13 05:07:25 +01:00
<section id="typography">
2012-02-12 23:47:09 +01:00
<div class="page-header">
2012-02-13 05:07:25 +01:00
<h1>{{_i}}Typographic components{{/i}} <small>{{_i}}Page header and hero unit for segmenting content{{/i}}</small></h1>
2012-02-12 23:47:09 +01:00
</div>
2012-02-13 05:07:25 +01:00
<h2>{{_i}}Hero unit{{/i}}</h2>
2012-02-12 23:47:09 +01:00
<div class="row">
<div class="span4">
<p>{{_i}}Bootstrap provides a lightweight, flexible component called a hero unit to showcase content on your site. It works well on marketing and content-heavy sites.{{/i}}</p>
<h3>{{_i}}Markup{{/i}}</h3>
<p>{{_i}}Wrap your content in a <code>div</code> like so:{{/i}}</p>
<pre class="prettyprint linenums">
<div class="hero-unit">
<h1>{{_i}}Heading{{/i}}</h1>
<p>{{_i}}Tagline{{/i}}</p>
<p>
<a class="btn btn-primary btn-large">
{{_i}}Learn more{{/i}}
</a>
</p>
</div>
</pre>
</div>
<div class="span8">
<div class="hero-unit">
<h1>{{_i}}Hello, world!{{/i}}</h1>
<p>{{_i}}This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.{{/i}}</p>
<p><a class="btn btn-primary btn-large">{{_i}}Learn more{{/i}}</a></p>
</div>
</div>
2012-02-13 05:07:25 +01:00
</div><!-- /row -->
<h2>{{_i}}Page header{{/i}}</h2>
<div class="row">
<div class="span4">
2012-03-15 03:28:24 +01:00
<p>{{_i}}A simple shell for an <code>h1</code> to appropriately space out and segment sections of content on a page. It can utilize the <code>h1</code>'s default <code>small</code>, element as well most other components (with additional styles).{{/i}}</p>
2012-02-13 05:07:25 +01:00
</div>
<div class="span8">
2012-02-17 23:39:30 +01:00
<div class="page-header">
<h1>{{_i}}Example page header{{/i}} <small>{{_i}}Subtext for header{{/i}}</small></h1>
</div>
2012-02-13 05:07:25 +01:00
<pre class="prettyprint linenums">
2012-02-17 23:39:30 +01:00
<div class="page-header">
2012-02-13 05:07:25 +01:00
<h1>{{_i}}Example page header{{/i}}</h1>
</div>
</pre>
</div>
</div><!-- /row -->
2012-02-12 23:47:09 +01:00
</section>
2012-01-23 23:14:16 +01:00
<!-- Thumbnails
================================================== -->
<section id="thumbnails">
<div class="page-header">
2012-01-25 00:00:35 +01:00
<h1>{{_i}}Thumbnails{{/i}} <small>{{_i}}Grids of images, videos, text, and more{{/i}}</small></h1>
2012-01-23 23:14:16 +01:00
</div>
<div class="row">
<div class="span6">
2012-01-25 00:00:35 +01:00
<h2>{{_i}}Default thumbnails{{/i}}</h2>
<p>{{_i}}By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.{{/i}}</p>
2012-01-23 23:14:16 +01:00
<ul class="thumbnails">
<li class="span3">
<a href="#" class="thumbnail">
2012-01-29 07:48:25 +01:00
<img src="http://placehold.it/260x180" alt="">
2012-01-23 23:14:16 +01:00
</a>
</li>
<li class="span3">
<a href="#" class="thumbnail">
2012-01-29 07:48:25 +01:00
<img src="http://placehold.it/260x180" alt="">
2012-01-23 23:14:16 +01:00
</a>
</li>
<li class="span3">
<a href="#" class="thumbnail">
2012-01-29 07:48:25 +01:00
<img src="http://placehold.it/260x180" alt="">
2012-01-23 23:14:16 +01:00
</a>
</li>
<li class="span3">
<a href="#" class="thumbnail">
2012-01-29 07:48:25 +01:00
<img src="http://placehold.it/260x180" alt="">
2012-01-23 23:14:16 +01:00
</a>
</li>
</ul>
</div>
<div class="span6">
2012-01-25 00:00:35 +01:00
<h2>{{_i}}Highly customizable{{/i}}</h2>
<p>{{_i}}With a bit of extra markup, it's possible to add any kind of HTML content like headings, paragraphs, or buttons into thumbnails.{{/i}}</p>
2012-01-23 23:14:16 +01:00
<ul class="thumbnails">
<li class="span3">
<div class="thumbnail">
2012-01-29 07:48:25 +01:00
<img src="http://placehold.it/260x180" alt="">
2012-01-23 23:14:16 +01:00
<div class="caption">
2012-01-25 00:00:35 +01:00
<h5>{{_i}}Thumbnail label{{/i}}</h5>
2012-01-23 23:14:16 +01:00
<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>
2012-02-05 09:27:08 +01:00
<p><a href="#" class="btn btn-primary">{{_i}}Action{{/i}}</a> <a href="#" class="btn">{{_i}}Action{{/i}}</a></p>
2012-01-23 23:14:16 +01:00
</div>
</div>
</li>
<li class="span3">
<div class="thumbnail">
2012-01-29 07:48:25 +01:00
<img src="http://placehold.it/260x180" alt="">
2012-01-23 23:14:16 +01:00
<div class="caption">
2012-01-25 00:00:35 +01:00
<h5>{{_i}}Thumbnail label{{/i}}</h5>
2012-01-23 23:14:16 +01:00
<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>
2012-02-05 09:27:08 +01:00
<p><a href="#" class="btn btn-primary">{{_i}}Action{{/i}}</a> <a href="#" class="btn">{{_i}}Action{{/i}}</a></p>
2012-01-23 23:14:16 +01:00
</div>
</div>
</li>
</ul>
</div>
</div>
<div class="row">
<div class="span4">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Why use thumbnails{{/i}}</h3>
<p>{{_i}}Thumbnails (previously <code>.media-grid</code> up until v1.4) are great for grids of photos or videos, image search results, retail products, portfolios, and much more. They can be links or static content.{{/i}}</p>
2012-01-23 23:14:16 +01:00
</div>
<div class="span4">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Simple, flexible markup{{/i}}</h3>
<p>{{_i}}Thumbnail markup is simple—a <code>ul</code> with any number of <code>li</code> elements is all that is required. It's also super flexible, allowing for any type of content with just a bit more markup to wrap your contents.{{/i}}</p>
2012-01-23 23:14:16 +01:00
</div>
<div class="span4">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Uses grid column sizes{{/i}}</h3>
<p>{{_i}}Lastly, the thumbnails component uses existing grid system classes—like <code>.span2</code> or <code>.span3</code>—for control of thumbnail dimensions.{{/i}}</p>
2012-01-23 23:14:16 +01:00
</div>
</div>
<div class="row">
<div class="span6">
2012-01-25 00:00:35 +01:00
<h2>{{_i}}The markup{{/i}}</h2>
<p>{{_i}}As mentioned previously, the required markup for thumbnails is light and straightforward. Here's a look at the default setup <strong>for linked images</strong>:{{/i}}</p>
2012-01-23 23:14:16 +01:00
<pre class="prettyprint linenums">
<ul class="thumbnails">
<li class="span3">
<a href="#" class="thumbnail">
2012-01-29 07:48:25 +01:00
<img src="http://placehold.it/260x180" alt="">
2012-01-23 23:14:16 +01:00
</a>
</li>
...
</ul>
</pre>
2012-01-25 00:00:35 +01:00
<p>{{_i}}For custom HTML content in thumbnails, the markup changes slightly. To allow block level content anywhere, we swap the <code><a></code> for a <code><div></code> like so:{{/i}}</p>
2012-01-23 23:14:16 +01:00
<pre class="prettyprint linenums">
<ul class="thumbnails">
<li class="span3">
<div class="thumbnail">
2012-01-29 07:48:25 +01:00
<img src="http://placehold.it/260x180" alt="">
2012-01-25 00:00:35 +01:00
<h5>{{_i}}Thumbnail label{{/i}}</h5>
<p>{{_i}}Thumbnail caption right here...{{/i}}</p>
2012-01-23 23:14:16 +01:00
</div>
</li>
...
</ul>
</pre>
</div>
<div class="span6">
2012-01-25 00:00:35 +01:00
<h2>{{_i}}More examples{{/i}}</h2>
<p>{{_i}}Explore all your options with the various grid classes available to you. You can also mix and match different sizes.{{/i}}</p>
2012-01-23 23:14:16 +01:00
<ul class="thumbnails">
<li class="span4">
<a href="#" class="thumbnail">
2012-01-29 07:48:25 +01:00
<img src="http://placehold.it/360x268" alt="">
2012-01-23 23:14:16 +01:00
</a>
</li>
<li class="span2">
<a href="#" class="thumbnail">
2012-01-29 07:48:25 +01:00
<img src="http://placehold.it/160x120" alt="">
2012-01-23 23:14:16 +01:00
</a>
</li>
<li class="span2">
<a href="#" class="thumbnail">
2012-01-29 07:48:25 +01:00
<img src="http://placehold.it/160x120" alt="">
2012-01-23 23:14:16 +01:00
</a>
</li>
<li class="span2">
<a href="#" class="thumbnail">
2012-01-29 07:48:25 +01:00
<img src="http://placehold.it/160x120" alt="">
2012-01-23 23:14:16 +01:00
</a>
</li>
<li class="span2">
<a href="#" class="thumbnail">
2012-01-29 07:48:25 +01:00
<img src="http://placehold.it/160x120" alt="">
2012-01-23 23:14:16 +01:00
</a>
</li>
<li class="span2">
<a href="#" class="thumbnail">
2012-01-29 07:48:25 +01:00
<img src="http://placehold.it/160x120" alt="">
2012-01-23 23:14:16 +01:00
</a>
</li>
</ul>
</div>
</div>
</section>
2012-05-13 23:03:32 +02:00
<!-- Alerts
2012-01-23 23:14:16 +01:00
================================================== -->
<section id="alerts">
<div class="page-header">
2012-01-25 00:00:35 +01:00
<h1>{{_i}}Alerts{{/i}} <small>{{_i}}Styles for success, warning, and error messages{{/i}}</small></h1>
2012-01-23 23:14:16 +01:00
</div>
2012-01-25 00:00:35 +01:00
<h2>{{_i}}Lightweight defaults{{/i}}</h2>
2012-01-23 23:14:16 +01:00
<div class="row">
<div class="span4">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Rewritten base class{{/i}}</h3>
2012-02-02 08:30:37 +01:00
<p>{{_i}}With Bootstrap 2, we've simplified the base class: <code>.alert</code> instead of <code>.alert-message</code>. We've also reduced the minimum required markup—no <code><p></code> is required by default, just the outer <code><div></code>.{{/i}}</p>
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Single alert message{{/i}}</h3>
<p>{{_i}}For a more durable component with less code, we've removed the differentiating look for block alerts, messages that come with more padding and typically more text. The class also has changed to <code>.alert-block</code>.{{/i}}</p>
2012-01-23 23:14:16 +01:00
<hr>
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Goes great with javascript{{/i}}</h3>
<p>{{_i}}Bootstrap comes with a great jQuery plugin that supports alert messages, making dismissing them quick and easy.{{/i}}</p>
<p><a class="btn js-btn" href="./javascript.html#alerts">{{_i}}Get the plugin »</a>{{/i}}</p>
2012-01-23 23:14:16 +01:00
</div>
<div class="span8">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Example alerts{{/i}}</h3>
<p>{{_i}}Wrap your message and an optional close icon in a div with simple class.{{/i}}</p>
2012-01-23 23:14:16 +01:00
<div class="alert">
2012-05-13 23:01:57 +02:00
<button type="button" class="close" data-dismiss="alert">×</button>
2012-02-02 03:27:38 +01:00
<strong>{{_i}}Warning!{{/i}}</strong> {{_i}}Best check yo self, you're not looking too good.{{/i}}
2012-01-23 23:14:16 +01:00
</div>
<pre class="prettyprint linenums">
<div class="alert">
2012-03-26 05:41:59 +02:00
<button class="close" data-dismiss="alert">×</button>
2012-02-02 03:27:38 +01:00
<strong>{{_i}}Warning!{{/i}}</strong> {{_i}}Best check yo self, you're not looking too good.{{/i}}
2012-01-23 23:14:16 +01:00
</div>
</pre>
2012-05-15 18:41:06 +02:00
<p><span class="label label-info">{{_i}}Heads up!{{/i}}</span> {{_i}}iOS devices require an <code>href="#"</code> for the dismissal of alerts. Be sure to include it and the data attribute for anchor close icons. Alternatively, you may use a <code><button></code> element with the data attribute, which we have opted to do for our docs. When using <code><button></code>, you must include <code>type="button"</code> or your forms may not submit.{{/i}}</p>
2012-01-25 00:00:35 +01:00
<p>{{_i}}Easily extend the standard alert message with two optional classes: <code>.alert-block</code> for more padding and text controls and <code>.alert-heading</code> for a matching heading.{{/i}}</p>
2012-01-23 23:14:16 +01:00
<div class="alert alert-block">
2012-05-13 23:01:57 +02:00
<button type="button" class="close" data-dismiss="alert">×</button>
2012-01-25 00:00:35 +01:00
<h4 class="alert-heading">{{_i}}Warning!{{/i}}</h4>
2012-02-02 03:27:38 +01:00
<p>{{_i}}Best check yo self, you're not looking too good.{{/i}} Nulla vitae elit libero, a pharetra augue. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.</p>
2012-01-23 23:14:16 +01:00
</div>
<pre class="prettyprint linenums">
<div class="alert alert-block">
2012-03-26 04:47:13 +02:00
<a class="close" data-dismiss="alert" href="#">×</a>
2012-01-25 00:00:35 +01:00
<h4 class="alert-heading">{{_i}}Warning!{{/i}}</h4>
2012-02-02 03:27:38 +01:00
{{_i}}Best check yo self, you're not...{{/i}}
2012-01-23 23:14:16 +01:00
</div>
</pre>
</div>
</div>
2012-01-25 00:00:35 +01:00
<h2>{{_i}}Contextual alternatives{{/i}} <small>{{_i}}Add optional classes to change an alert's connotation{{/i}}</small></h2>
2012-01-23 23:14:16 +01:00
<div class="row">
<div class="span4">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Error or danger{{/i}}</h3>
2012-01-23 23:14:16 +01:00
<div class="alert alert-error">
2012-05-13 23:01:57 +02:00
<button type="button" class="close" data-dismiss="alert">×</button>
2012-01-25 00:00:35 +01:00
<strong>{{_i}}Oh snap!{{/i}}</strong> {{_i}}Change a few things up and try submitting again.{{/i}}
2012-01-23 23:14:16 +01:00
</div>
<pre class="prettyprint linenums">
<div class="alert alert-error">
...
</div>
</pre>
</div>
<div class="span4">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Success{{/i}}</h3>
2012-01-23 23:14:16 +01:00
<div class="alert alert-success">
2012-05-13 23:01:57 +02:00
<button type="button" class="close" data-dismiss="alert">×</button>
2012-01-25 00:00:35 +01:00
<strong>{{_i}}Well done!{{/i}}</strong> {{_i}}You successfully read this important alert message.{{/i}}
2012-01-23 23:14:16 +01:00
</div>
<pre class="prettyprint linenums">
<div class="alert alert-success">
...
</div>
</pre>
</div>
<div class="span4">
2012-01-25 00:00:35 +01:00
<h3>{{_i}}Information{{/i}}</h3>
2012-01-23 23:14:16 +01:00
<div class="alert alert-info">
2012-05-13 23:01:57 +02:00
<button type="button" class="close" data-dismiss="alert">×</button>
2012-02-02 03:27:38 +01:00
<strong>{{_i}}Heads up!{{/i}}</strong> {{_i}}This alert needs your attention, but it's not super important.{{/i}}
2012-01-23 23:14:16 +01:00
</div>
<pre class="prettyprint linenums">
<div class="alert alert-info">
...
</div>
</pre>
</div>
</div>
</section>
<!-- Progress bars
================================================== -->
2012-01-28 07:52:45 +01:00
<section id="progress">
<div class="page-header">
<h1>{{_i}}Progress bars{{/i}} <small>{{_i}}For loading, redirecting, or action status{{/i}}</small></h1>
</div>
2012-01-23 23:14:16 +01:00
2012-01-28 07:52:45 +01:00
<h2>{{_i}}Examples and markup{{/i}}</h2>
<div class="row">
<div class="span4">
<h3>{{_i}}Basic{{/i}}</h3>
<p>{{_i}}Default progress bar with a vertical gradient.{{/i}}</p>
<div class="progress">
<div class="bar" style="width: 60%;"></div>
</div>
2012-01-23 23:14:16 +01:00
<pre class="prettyprint linenums">
<div class="progress">
<div class="bar"
style="width: 60%;"></div>
</div>
</pre>
2012-01-28 07:52:45 +01:00
</div>
<div class="span4">
<h3>{{_i}}Striped{{/i}}</h3>
2012-03-11 03:03:59 +01:00
<p>{{_i}}Uses a gradient to create a striped effect (no IE).{{/i}}</p>
2012-03-06 08:00:37 +01:00
<div class="progress progress-striped">
2012-01-28 07:52:45 +01:00
<div class="bar" style="width: 20%;"></div>
</div>
2012-01-23 23:14:16 +01:00
<pre class="prettyprint linenums">
2012-03-06 08:00:37 +01:00
<div class="progress progress-striped">
2012-01-23 23:14:16 +01:00
<div class="bar"
style="width: 20%;"></div>
</div>
</pre>
2012-01-28 07:52:45 +01:00
</div>
<div class="span4">
<h3>{{_i}}Animated{{/i}}</h3>
2012-03-11 03:03:59 +01:00
<p>{{_i}}Takes the striped example and animates it (no IE).{{/i}}</p>
2012-03-06 08:00:37 +01:00
<div class="progress progress-striped active">
2012-01-28 07:52:45 +01:00
<div class="bar" style="width: 45%"></div>
</div>
2012-01-23 23:14:16 +01:00
<pre class="prettyprint linenums">
2012-03-06 08:00:37 +01:00
<div class="progress progress-striped
active">
2012-01-23 23:14:16 +01:00
<div class="bar"
style="width: 40%;"></div>
</div>
</pre>
2012-01-28 07:52:45 +01:00
</div>
</div>
<h2>{{_i}}Options and browser support{{/i}}</h2>
<div class="row">
2012-03-06 08:00:37 +01:00
<div class="span3">
2012-01-28 07:52:45 +01:00
<h3>{{_i}}Additional colors{{/i}}</h3>
2012-03-06 08:00:37 +01:00
<p>{{_i}}Progress bars use some of the same button and alert classes for consistent styles.{{/i}}</p>
<div class="progress progress-info" style="margin-bottom: 9px;">
<div class="bar" style="width: 20%"></div>
</div>
<div class="progress progress-success" style="margin-bottom: 9px;">
<div class="bar" style="width: 40%"></div>
</div>
<div class="progress progress-warning" style="margin-bottom: 9px;">
<div class="bar" style="width: 60%"></div>
</div>
<div class="progress progress-danger" style="margin-bottom: 9px;">
<div class="bar" style="width: 80%"></div>
</div>
2012-01-28 07:52:45 +01:00
</div>
2012-03-06 08:00:37 +01:00
<div class="span3">
<h3>{{_i}}Striped bars{{/i}}</h3>
<p>{{_i}}Similar to the solid colors, we have varied striped progress bars.{{/i}}</p>
<div class="progress progress-info progress-striped" style="margin-bottom: 9px;">
<div class="bar" style="width: 20%"></div>
</div>
<div class="progress progress-success progress-striped" style="margin-bottom: 9px;">
<div class="bar" style="width: 40%"></div>
</div>
<div class="progress progress-warning progress-striped" style="margin-bottom: 9px;">
<div class="bar" style="width: 60%"></div>
</div>
<div class="progress progress-danger progress-striped" style="margin-bottom: 9px;">
<div class="bar" style="width: 80%"></div>
</div>
</div>
<div class="span3">
2012-01-28 07:52:45 +01:00
<h3>{{_i}}Behavior{{/i}}</h3>
<p>{{_i}}Progress bars use CSS3 transitions, so if you dynamically adjust the width via javascript, it will smoothly resize.{{/i}}</p>
2012-01-29 07:14:51 +01:00
<p>{{_i}}If you use the <code>.active</code> class, your <code>.progress-striped</code> progress bars will animate the stripes left to right.{{/i}}</p>
2012-01-28 07:52:45 +01:00
</div>
2012-03-06 08:00:37 +01:00
<div class="span3">
2012-01-28 07:52:45 +01:00
<h3>{{_i}}Browser support{{/i}}</h3>
2012-03-11 03:03:59 +01:00
<p>{{_i}}Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE7-9 or older versions of Firefox.{{/i}}</p>
<p>{{_i}}Opera and IE do not support animations at this time.{{/i}}</p>
2012-01-28 07:52:45 +01:00
</div>
</div>
</section>
<!-- Miscellaneous
================================================== -->
<section id="misc">
<div class="page-header">
2012-02-19 00:17:25 +01:00
<h1>{{_i}}Miscellaneous{{/i}} <small>{{_i}}Lightweight utility components{{/i}}</small></h1>
2012-01-28 07:52:45 +01:00
</div>
<div class="row">
<div class="span4">
<h2>{{_i}}Wells{{/i}}</h2>
<p>{{_i}}Use the well as a simple effect on an element to give it an inset effect.{{/i}}</p>
<div class="well">
{{_i}}Look, I'm in a well!{{/i}}
</div>
<pre class="prettyprint linenums">
<div class="well">
...
</div>
</pre>
</div><!--/span-->
<div class="span4">
<h2>{{_i}}Close icon{{/i}}</h2>
<p>{{_i}}Use the generic close icon for dismissing content like modals and alerts.{{/i}}</p>
2012-03-27 08:36:34 +02:00
<p><button class="close" style="float: none;">×</button></p>
<pre class="prettyprint linenums"><button class="close">&times;</button></pre>
<p>{{_i}}iOS devices require an href="#" for click events if you rather use an anchor.{{/i}}</p>
<pre class="prettyprint linenums"><a class="close" href="#">&times;</a></pre>
2012-01-28 07:52:45 +01:00
</div><!--/span-->
</div><!--/row-->
</section>