mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
d53af49afe
* Buttons and progress bars now make use of more semantic global @brand- colors * Progress bars have been rewritten to reduce the number of possible selectors * Instead of .progress .bar, it's .progress-bar for individual bars of color, ultimately making for less CSS
2078 lines
84 KiB
HTML
2078 lines
84 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Components · Bootstrap</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">
|
|
|
|
</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="">
|
|
<a href="./index.html">Home</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="./getting-started.html">Get started</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="./css.html">CSS</a>
|
|
</li>
|
|
<li class="active">
|
|
<a href="./components.html">Components</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="./javascript.html">JavaScript</a>
|
|
</li>
|
|
<li class="">
|
|
<a href="./customize.html">Customize</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 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>
|
|
|
|
<h2>Example</h2>
|
|
<p>Toggleable, contextual menu for displaying lists of links. Made interactive with the <a href="./javascript.html#dropdowns">dropdown JavaScript plugin</a>.</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>
|
|
<pre class="prettyprint linenums">
|
|
<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>
|
|
</pre>
|
|
|
|
<h2>Markup</h2>
|
|
<p>Looking at just the dropdown menu, here's the required HTML. You need to wrap the dropdown's trigger and the dropdown menu within <code>.dropdown</code>, or another element that declares <code>position: relative;</code>. Then just create the menu.</p>
|
|
|
|
<pre class="prettyprint linenums">
|
|
<div class="dropdown">
|
|
<!-- Link or button to toggle dropdown -->
|
|
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
|
|
<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>
|
|
|
|
<h2>Options</h2>
|
|
<p>Align menus to the right and add include additional levels of dropdowns.</p>
|
|
|
|
<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>
|
|
<pre class="prettyprint linenums">
|
|
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu">
|
|
<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>
|
|
</pre>
|
|
</section>
|
|
|
|
|
|
|
|
|
|
<!-- Button Groups
|
|
================================================== -->
|
|
<section id="buttonGroups">
|
|
<div class="page-header">
|
|
<h1>Button groups</h1>
|
|
</div>
|
|
|
|
<h2>Examples</h2>
|
|
<p>Two basic options, along with two more specific variations.</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>
|
|
|
|
|
|
<hr class="bs-docs-separator">
|
|
|
|
|
|
<h4>Checkbox and radio flavors</h4>
|
|
<p>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.</p>
|
|
|
|
<h4>Dropdowns in button groups</h4>
|
|
<p>Buttons with dropdowns must be individually wrapped in their own <code>.btn-group</code> within a <code>.btn-toolbar</code> for proper rendering.</p>
|
|
</section>
|
|
|
|
|
|
|
|
<!-- Split button dropdowns
|
|
================================================== -->
|
|
<section id="buttonDropdowns">
|
|
<div class="page-header">
|
|
<h1>Button dropdown menus</h1>
|
|
</div>
|
|
|
|
|
|
<h2>Overview and examples</h2>
|
|
<p>Use any button to trigger a dropdown menu by placing it within a <code>.btn-group</code> and providing the proper menu markup.</p>
|
|
<div class="bs-docs-example">
|
|
<div class="btn-toolbar" style="margin: 0;">
|
|
<div class="btn-group">
|
|
<button class="btn dropdown-toggle" data-toggle="dropdown">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><!-- /btn-toolbar -->
|
|
</div>
|
|
<pre class="prettyprint linenums">
|
|
<div class="btn-group">
|
|
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
|
|
Action
|
|
<span class="caret"></span>
|
|
</a>
|
|
<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>
|
|
|
|
<h3>Requires JavaScript</h3>
|
|
<p>Button dropdowns require the <a href="./javascript.html#dropdowns">Bootstrap dropdown plugin</a> to function.</p>
|
|
<p>In some cases—like mobile—dropdown menus will extend outside the viewport. You need to resolve the alignment manually or with custom JavaScript.</p>
|
|
|
|
|
|
<hr class="bs-docs-separator">
|
|
|
|
|
|
<h2>Split button dropdowns</h2>
|
|
<p>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.</p>
|
|
<div class="bs-docs-example">
|
|
<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">
|
|
<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>Sizes</h3>
|
|
<p>Utilize the extra button classes <code>.btn-mini</code>, <code>.btn-small</code>, or <code>.btn-large</code> for sizing.</p>
|
|
<div class="bs-docs-example">
|
|
<div class="btn-toolbar">
|
|
<div class="btn-group">
|
|
<button class="btn btn-large">Large action</button>
|
|
<button class="btn btn-large 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 class="btn-toolbar">
|
|
<div class="btn-group">
|
|
<button class="btn btn-small">Small action</button>
|
|
<button class="btn btn-small 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 class="btn-toolbar">
|
|
<div class="btn-group">
|
|
<button class="btn btn-mini">Mini action</button>
|
|
<button class="btn btn-mini 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">
|
|
<div class="btn-group">
|
|
<button class="btn btn-mini">Action</button>
|
|
<button class="btn btn-mini dropdown-toggle" data-toggle="dropdown">
|
|
<span class="caret"></span>
|
|
</button>
|
|
<ul class="dropdown-menu">
|
|
<!-- dropdown menu links -->
|
|
</ul>
|
|
</div>
|
|
</pre>
|
|
|
|
<h3>Dropup menus</h3>
|
|
<p>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.</p>
|
|
<div class="bs-docs-example">
|
|
<div class="btn-toolbar" style="margin: 0;">
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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 this between links:</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-vertical"></li>
|
|
<li><a href="#">Link</a></li>
|
|
<li class="divider-vertical"></li>
|
|
<li><a href="#">Link</a></li>
|
|
<li class="divider-vertical"></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<pre class="prettyprint linenums">
|
|
<ul class="nav">
|
|
...
|
|
<li class="divider-vertical"></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>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
<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-vertical"></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>
|
|
<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-vertical"></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>
|
|
<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>
|
|
|
|
<h2>Examples</h2>
|
|
<p>A single example shown as it might be displayed across multiple pages.</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 <small>Two options for paging through content</small></h1>
|
|
</div>
|
|
|
|
<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>
|
|
|
|
|
|
<hr class="bs-docs-separator">
|
|
|
|
|
|
<h2>Options</h2>
|
|
|
|
<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>
|
|
|
|
|
|
<hr class="bs-docs-separator">
|
|
|
|
|
|
<h2>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>
|
|
|
|
<h3>Basic usage</h3>
|
|
<p>Counters are used to indicator unread or new items. Add a <code><span class="counter"></code> to links, Bootstrap navs, and more.</p>
|
|
<div class="bs-docs-example">
|
|
<a href="#">Inbox</a> <span class="counter">42</span>
|
|
</div>
|
|
<pre class="prettyprint linenums">
|
|
<a href="#">Inbox</a> <span class="counter">42</span>
|
|
</pre>
|
|
|
|
<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>
|
|
|
|
<h3>Easily collapsible</h3>
|
|
<p>For easy implementation, counters will simply collapse (via CSS's <code>:empty</code> selector) when no content exists within.</p>
|
|
|
|
</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 <small>Grids of images, videos, text, and more</small></h1>
|
|
</div>
|
|
|
|
<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>
|
|
<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>
|
|
<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 <small>Styles for contextual feedback messages</small></h1>
|
|
</div>
|
|
|
|
<h2>Default alert</h2>
|
|
<p>Wrap any text and an optional dismiss button in <code>.alert</code> for a basic warning alert message.</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>Dismiss buttons</h3>
|
|
<p>Mobile Safari and Mobile Opera browsers, in addition to the <code>data-dismiss="alert"</code> attribute, require an <code>href="#"</code> for the dismissal of alerts when using an <code><a></code> tag.</p>
|
|
<pre class="prettyprint linenums"><a href="#" class="close" data-dismiss="alert">&times;</a></pre>
|
|
<p>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.</p>
|
|
<pre class="prettyprint linenums"><button type="button" class="close" data-dismiss="alert">&times;</button></pre>
|
|
|
|
<h3>Dismiss alerts via JavaScript</h3>
|
|
<p>Use the <a href="./javascript.html#alerts">alerts jQuery plugin</a> for quick and easy dismissal of alerts.</p>
|
|
|
|
|
|
<h2>Options</h2>
|
|
<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>
|
|
|
|
|
|
<h2>Contextual alternatives</h2>
|
|
<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>
|
|
|
|
<h2>Examples and markup</h2>
|
|
|
|
<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>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">
|
|
<div class="progress-bar" style="width: 20%;"></div>
|
|
</div>
|
|
</div>
|
|
<pre class="prettyprint linenums">
|
|
<div class="progress progress-striped">
|
|
<div class="progress-bar" style="width: 20%;"></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>
|
|
|
|
|
|
<hr class="bs-docs-separator">
|
|
|
|
|
|
<h2>Options</h2>
|
|
|
|
<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 bars</h3>
|
|
<p>Similar to the solid colors, we have varied striped progress bars.</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>
|
|
|
|
|
|
<hr class="bs-docs-separator">
|
|
|
|
|
|
<h2>Browser support</h2>
|
|
<p>Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE8-9 or older versions of Firefox.</p>
|
|
<p>Versions earlier than Internet Explorer 10 and Opera 12 do not support animations.</p>
|
|
|
|
</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>
|
|
|
|
<h2>Default example</h2>
|
|
<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>
|
|
<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>
|
|
|
|
|
|
<hr class="bs-docs-separator">
|
|
|
|
|
|
<h2>Media list</h2>
|
|
<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>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 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">Follow @twbootstrap</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>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>.</p>
|
|
<p>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>.</p>
|
|
<p><a href="http://glyphicons.com">Glyphicons Free</a> licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
|
|
<ul class="footer-links">
|
|
<li><a href="http://blog.getbootstrap.com">Blog</a></li>
|
|
<li class="muted">·</li>
|
|
<li><a href="https://github.com/twitter/bootstrap/issues?state=open">Issues</a></li>
|
|
<li class="muted">·</li>
|
|
<li><a href="https://github.com/twitter/bootstrap/wiki">Roadmap and changelog</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>
|
|
|
|
|
|
</body>
|
|
</html>
|