components.html 56 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Bootstrap, from Twitter</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta name="description" content="">
  8. <meta name="author" content="">
  9. <!-- Le styles -->
  10. <link href="assets/css/bootstrap.css" rel="stylesheet">
  11. <link href="assets/css/bootstrap-responsive.css" rel="stylesheet">
  12. <link href="assets/css/docs.css" rel="stylesheet">
  13. <link href="assets/js/google-code-prettify/prettify.css" rel="stylesheet">
  14. <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
  15. <!--[if lt IE 9]>
  16. <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
  17. <![endif]-->
  18. <!-- Le fav and touch icons -->
  19. <link rel="shortcut icon" href="assets/ico/favicon.ico">
  20. <link rel="apple-touch-icon" href="assets/ico/apple-touch-icon.png">
  21. <link rel="apple-touch-icon" sizes="72x72" href="assets/ico/apple-touch-icon-72x72.png">
  22. <link rel="apple-touch-icon" sizes="114x114" href="assets/ico/apple-touch-icon-114x114.png">
  23. </head>
  24. <body data-spy="scroll" data-target=".subnav" data-offset="50">
  25. <!-- Navbar
  26. ================================================== -->
  27. <div class="navbar navbar-fixed-top">
  28. <div class="navbar-inner">
  29. <div class="container">
  30. <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
  31. <span class="icon-bar"></span>
  32. <span class="icon-bar"></span>
  33. <span class="icon-bar"></span>
  34. </a>
  35. <a class="brand" href="./index.html">Bootstrap</a>
  36. <div class="nav-collapse">
  37. <ul class="nav">
  38. <li class="">
  39. <a href="./index.html">Overview</a>
  40. </li>
  41. <li class="">
  42. <a href="./scaffolding.html">Scaffolding</a>
  43. </li>
  44. <li class="">
  45. <a href="./base-css.html">Base CSS</a>
  46. </li>
  47. <li class="active">
  48. <a href="./components.html">Components</a>
  49. </li>
  50. <li class="">
  51. <a href="./javascript.html">Javascript plugins</a>
  52. </li>
  53. <li class="">
  54. <a href="./less.html">Using LESS</a>
  55. </li>
  56. <li class="divider-vertical"></li>
  57. <li class="">
  58. <a href="./download.html">Customize</a>
  59. </li>
  60. <li class="">
  61. <a href="./examples.html">Examples</a>
  62. </li>
  63. </ul>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. <div class="container">
  69. <!-- Masthead
  70. ================================================== -->
  71. <header class="jumbotron subhead" id="overview">
  72. <h1>Components</h1>
  73. <p class="lead">Dozens of reusable components are built into Bootstrap to provide navigation, alerts, popovers, and much more.</p>
  74. <div class="subnav">
  75. <ul class="nav nav-pills">
  76. <li class="dropdown">
  77. <a class="dropdown-toggle" data-toggle="dropdown" href="#">Buttons <b class="caret"></b></a>
  78. <ul class="dropdown-menu">
  79. <li><a href="#buttonGroups">Button groups</a></li>
  80. <li><a href="#buttonDropdowns">Button dropdowns</a></li>
  81. </ul>
  82. </li>
  83. <li class="dropdown">
  84. <a class="dropdown-toggle" data-toggle="dropdown" href="#">Navigation <b class="caret"></b></a>
  85. <ul class="dropdown-menu">
  86. <li><a href="#navs">Nav, tabs, pills</a></li>
  87. <li><a href="#navbar">Navbar</a></li>
  88. <li><a href="#breadcrumbs">Breadcrumbs</a></li>
  89. <li><a href="#pagination">Pagination</a></li>
  90. </ul>
  91. </li>
  92. <li><a href="#labels">Labels</a></li>
  93. <li><a href="#thumbnails">Thumbnails</a></li>
  94. <li><a href="#alerts">Alerts</a></li>
  95. <li><a href="#progress">Progress bars</a></li>
  96. <li><a href="#misc">Miscellaneous</a></li>
  97. </ul>
  98. </div>
  99. </header>
  100. <!-- Button Groups
  101. ================================================== -->
  102. <section id="buttonGroups">
  103. <div class="page-header">
  104. <h1>Button groups <small>Join buttons for more toolbar-like functionality</small></h1>
  105. </div>
  106. <div class="row">
  107. <div class="span4">
  108. <h3>Button groups</h3>
  109. <p>Use button groups to join multiple buttons together as one composite component. Build them with a series of <code>&lt;a&gt;</code> or <code>&lt;button&gt;</code> elements.</p>
  110. <h3>Best practices</h3>
  111. <p>We recommend the following guidelines for using button groups and toolbars:</p>
  112. <ul>
  113. <li>Always use the same element in a single button group, <code>&lt;a&gt;</code> or <code>&lt;button&gt;</code>.</li>
  114. <li>Don't mix buttons of different colors in the same button group.</li>
  115. <li>Use icons in addition to or instead of text, but be sure include alt and title text where appropriate.</li>
  116. </ul>
  117. <p><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.</p>
  118. </div>
  119. <div class="span4">
  120. <h3>Default example</h3>
  121. <p>Here's how the HTML looks for a standard button group built with anchor tag buttons:</p>
  122. <div class="">
  123. <div class="btn-group" style="margin: 9px 0;">
  124. <a class="btn" href="#">Left</a>
  125. <a class="btn" href="#">Middle</a>
  126. <a class="btn" href="#">Right</a>
  127. </div>
  128. </div>
  129. <pre class="prettyprint linenums">
  130. &lt;div class="btn-group"&gt;
  131. &lt;a class="btn" href="#"&gt;1&lt;/a&gt;
  132. &lt;a class="btn" href="#"&gt;2&lt;/a&gt;
  133. &lt;a class="btn" href="#"&gt;3&lt;/a&gt;
  134. &lt;/div&gt;
  135. </pre>
  136. <h3>Toolbar example</h3>
  137. <p>Combine sets of <code>&lt;div class="btn-group"&gt;</code> into a <code>&lt;div class="btn-toolbar"&gt;</code> for more complex components.</p>
  138. <div class="btn-toolbar">
  139. <div class="btn-group">
  140. <a class="btn" href="#">1</a>
  141. <a class="btn" href="#">2</a>
  142. <a class="btn" href="#">3</a>
  143. <a class="btn" href="#">4</a>
  144. </div>
  145. <div class="btn-group">
  146. <a class="btn" href="#">5</a>
  147. <a class="btn" href="#">6</a>
  148. <a class="btn" href="#">7</a>
  149. </div>
  150. <div class="btn-group">
  151. <a class="btn" href="#">8</a>
  152. </div>
  153. </div>
  154. <pre class="prettyprint linenums">
  155. &lt;div class="btn-toolbar"&gt;
  156. &lt;div class="btn-group"&gt;
  157. ...
  158. &lt;/div&gt;
  159. &lt;/div&gt;
  160. </pre>
  161. </div>
  162. <div class="span4">
  163. <h3>Checkbox and radio flavors</h3>
  164. <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>
  165. <p><a class="btn js-btn" href="./javascript.html#buttons">Get the javascript &raquo;</a></p>
  166. <hr>
  167. <h4 class="muted">Heads up</h4>
  168. <p class="muted">CSS for button groups is in a separate file, button-groups.less.</p>
  169. </div>
  170. </div>
  171. </section>
  172. <!-- Split button dropdowns
  173. ================================================== -->
  174. <section id="buttonDropdowns">
  175. <div class="page-header">
  176. <h1>Buttons dropdowns <small>Contextual dropdown menus built on button groups</small></h1>
  177. </div>
  178. <div class="row">
  179. <div class="span4">
  180. <h3>Button dropdowns</h3>
  181. <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>
  182. <div class="btn-toolbar" style="margin-top: 18px;">
  183. <div class="btn-group">
  184. <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">Action <span class="caret"></span></a>
  185. <ul class="dropdown-menu">
  186. <li><a href="#">Action</a></li>
  187. <li><a href="#">Another action</a></li>
  188. <li><a href="#">Something else here</a></li>
  189. <li class="divider"></li>
  190. <li><a href="#">Separated link</a></li>
  191. </ul>
  192. </div><!-- /btn-group -->
  193. <div class="btn-group">
  194. <a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#">Action <span class="caret"></span></a>
  195. <ul class="dropdown-menu">
  196. <li><a href="#">Action</a></li>
  197. <li><a href="#">Another action</a></li>
  198. <li><a href="#">Something else here</a></li>
  199. <li class="divider"></li>
  200. <li><a href="#">Separated link</a></li>
  201. </ul>
  202. </div><!-- /btn-group -->
  203. <div class="btn-group">
  204. <a class="btn btn-danger dropdown-toggle" data-toggle="dropdown" href="#">Danger <span class="caret"></span></a>
  205. <ul class="dropdown-menu">
  206. <li><a href="#">Action</a></li>
  207. <li><a href="#">Another action</a></li>
  208. <li><a href="#">Something else here</a></li>
  209. <li class="divider"></li>
  210. <li><a href="#">Separated link</a></li>
  211. </ul>
  212. </div><!-- /btn-group -->
  213. </div>
  214. <div class="btn-toolbar">
  215. <div class="btn-group">
  216. <a class="btn btn-success dropdown-toggle" data-toggle="dropdown" href="#">Success <span class="caret"></span></a>
  217. <ul class="dropdown-menu">
  218. <li><a href="#">Action</a></li>
  219. <li><a href="#">Another action</a></li>
  220. <li><a href="#">Something else here</a></li>
  221. <li class="divider"></li>
  222. <li><a href="#">Separated link</a></li>
  223. </ul>
  224. </div><!-- /btn-group -->
  225. <div class="btn-group">
  226. <a class="btn btn-info dropdown-toggle" data-toggle="dropdown" href="#">Info <span class="caret"></span></a>
  227. <ul class="dropdown-menu">
  228. <li><a href="#">Action</a></li>
  229. <li><a href="#">Another action</a></li>
  230. <li><a href="#">Something else here</a></li>
  231. <li class="divider"></li>
  232. <li><a href="#">Separated link</a></li>
  233. </ul>
  234. </div><!-- /btn-group -->
  235. </div>
  236. </div>
  237. <div class="span8">
  238. <h3>Example markup</h3>
  239. <p>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.</p>
  240. <pre class="prettyprint linenums">
  241. &lt;div class="btn-group"&gt;
  242. &lt;a class="btn dropdown-toggle" data-toggle="dropdown" href="#"&gt;
  243. Action
  244. &lt;span class="caret"&gt;&lt;/span&gt;
  245. &lt;/a&gt;
  246. &lt;ul class="dropdown-menu"&gt;
  247. &lt;!-- dropdown menu links --&gt;
  248. &lt;/ul&gt;
  249. &lt;/div&gt;
  250. </pre>
  251. </div>
  252. </div>
  253. <div class="row">
  254. <div class="span4">
  255. <h3>Split button dropdowns</h3>
  256. <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>
  257. <div class="btn-toolbar" style="margin-top: 18px;">
  258. <div class="btn-group">
  259. <a class="btn" href="#">Action</a>
  260. <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
  261. <ul class="dropdown-menu">
  262. <li><a href="#">Action</a></li>
  263. <li><a href="#">Another action</a></li>
  264. <li><a href="#">Something else here</a></li>
  265. <li class="divider"></li>
  266. <li><a href="#">Separated link</a></li>
  267. </ul>
  268. </div><!-- /btn-group -->
  269. <div class="btn-group">
  270. <a class="btn btn-primary" href="#">Action</a>
  271. <a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
  272. <ul class="dropdown-menu">
  273. <li><a href="#">Action</a></li>
  274. <li><a href="#">Another action</a></li>
  275. <li><a href="#">Something else here</a></li>
  276. <li class="divider"></li>
  277. <li><a href="#">Separated link</a></li>
  278. </ul>
  279. </div><!-- /btn-group -->
  280. <div class="btn-group">
  281. <a class="btn btn-danger" href="#">Danger</a>
  282. <a class="btn btn-danger dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
  283. <ul class="dropdown-menu">
  284. <li><a href="#">Action</a></li>
  285. <li><a href="#">Another action</a></li>
  286. <li><a href="#">Something else here</a></li>
  287. <li class="divider"></li>
  288. <li><a href="#">Separated link</a></li>
  289. </ul>
  290. </div><!-- /btn-group -->
  291. </div>
  292. <div class="btn-toolbar">
  293. <div class="btn-group">
  294. <a class="btn btn-success" href="#">Success</a>
  295. <a class="btn btn-success dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
  296. <ul class="dropdown-menu">
  297. <li><a href="#">Action</a></li>
  298. <li><a href="#">Another action</a></li>
  299. <li><a href="#">Something else here</a></li>
  300. <li class="divider"></li>
  301. <li><a href="#">Separated link</a></li>
  302. </ul>
  303. </div><!-- /btn-group -->
  304. <div class="btn-group">
  305. <a class="btn btn-info" href="#">Info</a>
  306. <a class="btn btn-info dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
  307. <ul class="dropdown-menu">
  308. <li><a href="#">Action</a></li>
  309. <li><a href="#">Another action</a></li>
  310. <li><a href="#">Something else here</a></li>
  311. <li class="divider"></li>
  312. <li><a href="#">Separated link</a></li>
  313. </ul>
  314. </div><!-- /btn-group -->
  315. </div>
  316. </div>
  317. <div class="span8">
  318. <h3>Example markup</h3>
  319. <p>We expand on the normal button dropdowns to provide a second button action that operates as a separate dropdown trigger.</p>
  320. <pre class="prettyprint linenums">
  321. &lt;div class="btn-group"&gt;
  322. &lt;a class="btn" href="#"&gt;Action&lt;/a&gt;
  323. &lt;a class="btn dropdown-toggle" data-toggle="dropdown" href="#"&gt;
  324. &lt;span class="caret"&gt;&lt;/span&gt;
  325. &lt;/a&gt;
  326. &lt;ul class="dropdown-menu"&gt;
  327. &lt;!-- dropdown menu links --&gt;
  328. &lt;/ul&gt;
  329. &lt;/div&gt;
  330. </pre>
  331. </div>
  332. </div>
  333. </section>
  334. <!-- Nav, Tabs, & Pills
  335. ================================================== -->
  336. <section id="navs">
  337. <div class="page-header">
  338. <h1>Nav, tabs, and pills <small>Highly customizable list-style navigation</small></h1>
  339. </div>
  340. <h2>Lightweight defaults <small>Same markup, different classes</small></h2>
  341. <div class="row">
  342. <div class="span4">
  343. <h3>Powerful base class</h3>
  344. <p>All nav components here&mdash;tabs, pills, and lists&mdash;<strong>share the same base markup and styles</strong> through the <code>.nav</code> class.</p>
  345. <h3>When to use</h3>
  346. <p>Tabs and pills are great for sections of content or navigating between pages of related content.</p>
  347. <h3>Component alignment</h3>
  348. <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>
  349. </div>
  350. <div class="span4">
  351. <h3>Basic tabs</h3>
  352. <p>Take a regular <code>&lt;ul&gt;</code> of links and add <code>.nav-tabs</code>:</p>
  353. <ul class="nav nav-tabs">
  354. <li class="active"><a href="#">Home</a></li>
  355. <li><a href="#">Profile</a></li>
  356. <li><a href="#">Messages</a></li>
  357. </ul>
  358. <pre class="prettyprint linenums">
  359. &lt;ul class="nav nav-tabs"&gt;
  360. &lt;li class="active"&gt;
  361. &lt;a href="#"&gt;Home&lt;/a&gt;
  362. &lt;/li&gt;
  363. &lt;li&gt;&lt;a href="#"&gt;...&lt;/a&gt;&lt;/li&gt;
  364. &lt;li&gt;&lt;a href="#"&gt;...&lt;/a&gt;&lt;/li&gt;
  365. &lt;/ul&gt;
  366. </pre>
  367. </div>
  368. <div class="span4">
  369. <h3>Basic pills</h3>
  370. <p>Take that same HTML, but use <code>.nav-pills</code> instead:</p>
  371. <ul class="nav nav-pills">
  372. <li class="active"><a href="#">Home</a></li>
  373. <li><a href="#">Profile</a></li>
  374. <li><a href="#">Messages</a></li>
  375. </ul>
  376. <pre class="prettyprint linenums">
  377. &lt;ul class="nav nav-pills"&gt;
  378. &lt;li class="active"&gt;
  379. &lt;a href="#"&gt;Home&lt;/a&gt;
  380. &lt;/li&gt;
  381. &lt;li&gt;&lt;a href="#"&gt;...&lt;/a&gt;&lt;/li&gt;
  382. &lt;li&gt;&lt;a href="#"&gt;...&lt;/a&gt;&lt;/li&gt;
  383. &lt;/ul&gt;
  384. </pre>
  385. </div>
  386. </div>
  387. <h2>Stackable <small>Make tabs or pills vertical</small></h2>
  388. <div class="row">
  389. <div class="span4">
  390. <h3>How to stack 'em</h3>
  391. <p>As tabs and pills are horizontal by default, just add a second class, <code>.nav-stacked</code>, to make them appear vertically stacked.</p>
  392. </div>
  393. <div class="span4">
  394. <h3>Stacked tabs</h3>
  395. <ul class="nav nav-tabs nav-stacked">
  396. <li class="active"><a href="#">Home</a></li>
  397. <li><a href="#">Profile</a></li>
  398. <li><a href="#">Messages</a></li>
  399. </ul>
  400. <pre class="prettyprint linenums">
  401. &lt;ul class="nav nav-tabs nav-stacked"&gt;
  402. ...
  403. &lt;/ul&gt;
  404. </pre>
  405. </div>
  406. <div class="span4">
  407. <h3>Stacked pills</h3>
  408. <ul class="nav nav-pills nav-stacked">
  409. <li class="active"><a href="#">Home</a></li>
  410. <li><a href="#">Profile</a></li>
  411. <li><a href="#">Messages</a></li>
  412. </ul>
  413. <pre class="prettyprint linenums">
  414. &lt;ul class="nav nav-pills nav-stacked"&gt;
  415. ...
  416. &lt;/ul&gt;
  417. </pre>
  418. </div>
  419. </div>
  420. <h2>Dropdowns <small>For advanced nav components</small></h2>
  421. <div class="row">
  422. <div class="span4">
  423. <h3>Rich menus made easy</h3>
  424. <p>Dropdown menus in Bootstrap tabs and pills are super easy and require only a little extra HTML and a lightweight jQuery plugin.</p>
  425. <p>Head over to the Javascript page to read the docs on <a href="./javascript.html#tabs">initializing dropdowns</a> in Bootstrap.</p>
  426. </div>
  427. <div class="span4">
  428. <h3>Tabs with dropdowns</h3>
  429. <ul class="nav nav-tabs">
  430. <li class="active"><a href="#">Home</a></li>
  431. <li><a href="#">Profile</a></li>
  432. <li class="dropdown">
  433. <a class="dropdown-toggle" data-toggle="dropdown" href="#">Dropdown <b class="caret"></b></a>
  434. <ul class="dropdown-menu">
  435. <li><a href="#">Action</a></li>
  436. <li><a href="#">Another action</a></li>
  437. <li><a href="#">Something else here</a></li>
  438. <li class="divider"></li>
  439. <li><a href="#">Separated link</a></li>
  440. </ul>
  441. </li>
  442. </ul>
  443. <pre class="prettyprint linenums">
  444. &lt;ul class="nav nav-tabs"&gt;
  445. &lt;li class="dropdown"&gt;
  446. &lt;a class="dropdown-toggle"
  447. data-toggle="dropdown"
  448. href="#"&gt;
  449. Dropdown
  450. &lt;b class="caret"&gt;&lt;/b&gt;
  451. &lt;/a&gt;
  452. &lt;ul class="dropdown-menu"&gt;
  453. &lt;!-- links --&gt;
  454. &lt;/ul&gt;
  455. &lt;/li&gt;
  456. &lt;/ul&gt;
  457. </pre>
  458. </div>
  459. <div class="span4">
  460. <h3>Pills with dropdowns</h3>
  461. <ul class="nav nav-pills">
  462. <li class="active"><a href="#">Home</a></li>
  463. <li><a href="#">Profile</a></li>
  464. <li class="dropdown">
  465. <a class="dropdown-toggle" data-toggle="dropdown" href="#">Dropdown <b class="caret"></b></a>
  466. <ul class="dropdown-menu">
  467. <li><a href="#">Action</a></li>
  468. <li><a href="#">Another action</a></li>
  469. <li><a href="#">Something else here</a></li>
  470. <li class="divider"></li>
  471. <li><a href="#">Separated link</a></li>
  472. </ul>
  473. </li>
  474. </ul>
  475. <pre class="prettyprint linenums">
  476. &lt;ul class="nav nav-pills"&gt;
  477. &lt;li class="dropdown"&gt;
  478. &lt;a class="dropdown-toggle"
  479. data-toggle="dropdown"
  480. href="#"&gt;
  481. Dropdown
  482. &lt;b class="caret"&gt;&lt;/b&gt;
  483. &lt;/a&gt;
  484. &lt;ul class="dropdown-menu"&gt;
  485. &lt;!-- links --&gt;
  486. &lt;/ul&gt;
  487. &lt;/li&gt;
  488. &lt;/ul&gt;
  489. </pre>
  490. </div>
  491. </div>
  492. <h2>Nav lists <small>Build simple stacked navs, great for sidebars</small></h2>
  493. <div class="row">
  494. <div class="span4">
  495. <h3>Application-style navigation</h3>
  496. <p>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.</p>
  497. <p>Structurally, they're built on the same core nav styles as tabs and pills, so usage and customization are straightforward.</p>
  498. <h4>With icons</h4>
  499. <p>Nav lists are also easy to equip with icons. Add the proper <code>&lt;i&gt;</code> tag with class and you're set.</p>
  500. </div>
  501. <div class="span4">
  502. <h3>Example nav list</h3>
  503. <p>Take a list of links and add <code>class="nav nav-list"</code>:</p>
  504. <div class="well" style="padding: 8px 0;">
  505. <ul class="nav nav-list">
  506. <li class="nav-header">List header</li>
  507. <li class="active"><a href="#">Home</a></li>
  508. <li><a href="#">Library</a></li>
  509. <li><a href="#">Applications</a></li>
  510. <li class="nav-header">Another list header</li>
  511. <li><a href="#">Profile</a></li>
  512. <li><a href="#">Settings</a></li>
  513. <li><a href="#">Help</a></li>
  514. </ul>
  515. </div> <!-- /well -->
  516. <pre class="prettyprint linenums">
  517. &lt;ul class="nav nav-list"&gt;
  518. &lt;li class="nav-header"&gt;
  519. List header
  520. &lt;/li&gt;
  521. &lt;li class="active"&gt;
  522. &lt;a href="#"&gt;Home&lt;/a&gt;
  523. &lt;/li&gt;
  524. &lt;li&gt;
  525. &lt;a href="#"&gt;Library&lt;/a&gt;
  526. &lt;/li&gt;
  527. ...
  528. &lt;/ul&gt;
  529. </pre>
  530. </div>
  531. <div class="span4">
  532. <h3>Example with icons</h3>
  533. <p>Same example, but with <code>&lt;i&gt;</code> tags for icons.</p>
  534. <div class="well" style="padding: 8px 0;">
  535. <ul class="nav nav-list">
  536. <li class="nav-header">List header</li>
  537. <li class="active"><a href="#"><i class="icon-white icon-home"></i> Home</a></li>
  538. <li><a href="#"><i class="icon-book"></i> Library</a></li>
  539. <li><a href="#"><i class="icon-pencil"></i> Applications</a></li>
  540. <li class="nav-header">Another list header</li>
  541. <li><a href="#"><i class="icon-user"></i> Profile</a></li>
  542. <li><a href="#"><i class="icon-cog"></i> Settings</a></li>
  543. <li><a href="#"><i class="icon-flag"></i> Help</a></li>
  544. </ul>
  545. </div> <!-- /well -->
  546. <pre class="prettyprint linenums">
  547. &lt;ul class="nav nav-list"&gt;
  548. ...
  549. &lt;li&gt;
  550. &lt;a href="#"&gt;
  551. &lt;i class="icon-book"&gt;&lt;/i&gt;
  552. Library
  553. &lt;/a&gt;
  554. &lt;/li&gt;
  555. ...
  556. &lt;/ul&gt;
  557. </pre>
  558. </div>
  559. </div>
  560. <h2>Tabbable nav <small>Bring tabs to life via javascript</small></h2>
  561. <div class="row">
  562. <div class="span4">
  563. <h3>What's included</h3>
  564. <p>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.</p>
  565. <p>Changing between them is easy and only requires changing very little markup.</p>
  566. </div>
  567. <div class="span4">
  568. <h3>Tabbable example</h3>
  569. <p>To make tabs tabbable, wrap the <code>.nav-tabs</code> in another div with class <code>.tabbable</code>.</p>
  570. <div class="tabbable" style="margin-bottom: 9px;">
  571. <ul class="nav nav-tabs">
  572. <li class="active"><a href="#1" data-toggle="tab">Section 1</a></li>
  573. <li><a href="#2" data-toggle="tab">Section 2</a></li>
  574. <li><a href="#3" data-toggle="tab">Section 3</a></li>
  575. </ul>
  576. <div class="tab-content">
  577. <div class="tab-pane active" id="1">
  578. <p>I'm in Section 1.</p>
  579. </div>
  580. <div class="tab-pane" id="2">
  581. <p>Howdy, I'm in Section 2.</p>
  582. </div>
  583. <div class="tab-pane" id="3">
  584. <p>What up girl, this is Section 3.</p>
  585. </div>
  586. </div>
  587. </div> <!-- /tabbable -->
  588. </div>
  589. <div class="span4">
  590. <h3>Custom jQuery plugin</h3>
  591. <p>All tabbable tabs are powered by our lightweight jQuery plugin. Read more about how to bring tabbable tabs to life on the javascript docs page.</p>
  592. <p><a class="btn" href="./javascript.html#tabs">Get the javascript &rarr;</a></p>
  593. </div>
  594. </div>
  595. <h3>Straightforward markup</h3>
  596. <p>Using tabbable tabs requires a wrapping div, a set of tabs, and a set of tabbable panes of content.</p>
  597. <pre class="prettyprint linenums">
  598. &lt;div class="tabbable"&gt;
  599. &lt;ul class="nav nav-tabs"&gt;
  600. &lt;li class="active"&gt;&lt;a href="#1" data-toggle="tab"&gt;Section 1&lt;/a&gt;&lt;/li&gt;
  601. &lt;li&gt;&lt;a href="#2" data-toggle="tab"&gt;Section 2&lt;/a&gt;&lt;/li&gt;
  602. &lt;/ul&gt;
  603. &lt;div class="tab-content"&gt;
  604. &lt;div class="tab-pane active" id="1"&gt;
  605. &lt;p&gt;I'm in Section 1.&lt;/p&gt;
  606. &lt;/div&gt;
  607. &lt;div class="tab-pane" id="2"&gt;
  608. &lt;p&gt;Howdy, I'm in Section 2.&lt;/p&gt;
  609. &lt;/div&gt;
  610. &lt;/div&gt;
  611. &lt;/div&gt;
  612. </pre>
  613. <h3>Tabbable in any direction</h3>
  614. <div class="row">
  615. <div class="span4">
  616. <h4>Tabs on the bottom</h4>
  617. <p>Flip the order of the HTML and add a class to put tabs on the bottom.</p>
  618. <div class="tabbable tabs-below">
  619. <div class="tab-content">
  620. <div class="tab-pane active" id="A">
  621. <p>I'm in Section A.</p>
  622. </div>
  623. <div class="tab-pane" id="B">
  624. <p>Howdy, I'm in Section B.</p>
  625. </div>
  626. <div class="tab-pane" id="C">
  627. <p>What up girl, this is Section C.</p>
  628. </div>
  629. </div>
  630. <ul class="nav nav-tabs">
  631. <li class="active"><a href="#A" data-toggle="tab">Section 1</a></li>
  632. <li><a href="#B" data-toggle="tab">Section 2</a></li>
  633. <li><a href="#C" data-toggle="tab">Section 3</a></li>
  634. </ul>
  635. </div> <!-- /tabbable -->
  636. <pre class="prettyprint linenums" style="margin-top: 11px;">
  637. &lt;div class="tabbable tabs-below"&gt;
  638. &lt;div class="tab-content"&gt;
  639. ...
  640. &lt;/div&gt;
  641. &lt;ul class="nav nav-tabs"&gt;
  642. ...
  643. &lt;/ul&gt;
  644. &lt;/div&gt;
  645. </pre>
  646. </div>
  647. <div class="span4">
  648. <h4>Tabs on the left</h4>
  649. <p>Swap the class to put tabs on the left.</p>
  650. <div class="tabbable tabs-left">
  651. <ul class="nav nav-tabs">
  652. <li class="active"><a href="#lA" data-toggle="tab">Section 1</a></li>
  653. <li><a href="#lB" data-toggle="tab">Section 2</a></li>
  654. <li><a href="#lC" data-toggle="tab">Section 3</a></li>
  655. </ul>
  656. <div class="tab-content">
  657. <div class="tab-pane active" id="lA">
  658. <p>I'm in Section A.</p>
  659. </div>
  660. <div class="tab-pane" id="lB">
  661. <p>Howdy, I'm in Section B.</p>
  662. </div>
  663. <div class="tab-pane" id="lC">
  664. <p>What up girl, this is Section C.</p>
  665. </div>
  666. </div>
  667. </div> <!-- /tabbable -->
  668. <pre class="prettyprint linenums">
  669. &lt;div class="tabbable tabs-left"&gt;
  670. &lt;ul class="nav nav-tabs"&gt;
  671. ...
  672. &lt;/ul&gt;
  673. &lt;div class="tab-content"&gt;
  674. ...
  675. &lt;/div&gt;
  676. &lt;/div&gt;
  677. </pre>
  678. </div>
  679. <div class="span4">
  680. <h4>Tabs on the right</h4>
  681. <p>Swap the class to put tabs on the right.</p>
  682. <div class="tabbable tabs-right">
  683. <ul class="nav nav-tabs">
  684. <li class="active"><a href="#rA" data-toggle="tab">Section 1</a></li>
  685. <li><a href="#rB" data-toggle="tab">Section 2</a></li>
  686. <li><a href="#rC" data-toggle="tab">Section 3</a></li>
  687. </ul>
  688. <div class="tab-content">
  689. <div class="tab-pane active" id="rA">
  690. <p>I'm in Section A.</p>
  691. </div>
  692. <div class="tab-pane" id="rB">
  693. <p>Howdy, I'm in Section B.</p>
  694. </div>
  695. <div class="tab-pane" id="rC">
  696. <p>What up girl, this is Section C.</p>
  697. </div>
  698. </div>
  699. </div> <!-- /tabbable -->
  700. <pre class="prettyprint linenums">
  701. &lt;div class="tabbable tabs-right"&gt;
  702. &lt;ul class="nav nav-tabs"&gt;
  703. ...
  704. &lt;/ul&gt;
  705. &lt;div class="tab-content"&gt;
  706. ...
  707. &lt;/div&gt;
  708. &lt;/div&gt;
  709. </pre>
  710. </div>
  711. </div>
  712. </section>
  713. <!-- Navbar
  714. ================================================== -->
  715. <section id="navbar">
  716. <div class="page-header">
  717. <h1>Navbar</h1>
  718. </div>
  719. <h2>Static navbar example</h2>
  720. <p>An example of a static (not fixed to the top) navbar with project name, navigation, and search form.</p>
  721. <div class="navbar">
  722. <div class="navbar-inner">
  723. <div class="container" style="width: auto;">
  724. <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
  725. <span class="icon-bar"></span>
  726. <span class="icon-bar"></span>
  727. <span class="icon-bar"></span>
  728. </a>
  729. <a class="brand" href="#">Project name</a>
  730. <div class="nav-collapse">
  731. <ul class="nav">
  732. <li class="active"><a href="#">Home</a></li>
  733. <li><a href="#">Link</a></li>
  734. <li><a href="#">Link</a></li>
  735. <li><a href="#">Link</a></li>
  736. <li class="dropdown">
  737. <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
  738. <ul class="dropdown-menu">
  739. <li><a href="#">Action</a></li>
  740. <li><a href="#">Another action</a></li>
  741. <li><a href="#">Something else here</a></li>
  742. <li class="divider"></li>
  743. <li><a href="#">Separated link</a></li>
  744. </ul>
  745. </li>
  746. </ul>
  747. <form class="navbar-search pull-left" action="">
  748. <input type="text" class="search-query span2" placeholder="Search">
  749. </form>
  750. <ul class="nav pull-right">
  751. <li><a href="#">Link</a></li>
  752. <li class="divider-vertical"></li>
  753. <li class="dropdown">
  754. <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
  755. <ul class="dropdown-menu">
  756. <li><a href="#">Action</a></li>
  757. <li><a href="#">Another action</a></li>
  758. <li><a href="#">Something else here</a></li>
  759. <li class="divider"></li>
  760. <li><a href="#">Separated link</a></li>
  761. </ul>
  762. </li>
  763. </ul>
  764. </div><!-- /.nav-collapse -->
  765. </div>
  766. </div><!-- /navbar-inner -->
  767. </div><!-- /navbar -->
  768. <div class="row">
  769. <div class="span8">
  770. <h3>Navbar scaffolding</h3>
  771. <p>The navbar requires only a few divs to structure it well for static or fixed display.</p>
  772. <pre class="prettyprint linenums">
  773. &lt;div class="navbar"&gt;
  774. &lt;div class="navbar-inner"&gt;
  775. &lt;div class="container"&gt;
  776. ...
  777. &lt;/div&gt;
  778. &lt;/div&gt;
  779. &lt;/div&gt;
  780. </pre>
  781. <p>To make the navbar fixed to the top of the viewport, add <code>.navbar-fixed-top</code> to the outermost div, <code>.navbar</code>. In your CSS, you will also need to account for the overlap it causes by adding <code>padding-top: 40px;</code> to your <code>&lt;body&gt;</code>.</p>
  782. <pre class="prettyprint linenums">
  783. &lt;div class="navbar navbar-fixed-top"&gt;
  784. ...
  785. &lt;/div&gt;
  786. </pre>
  787. <h3>Brand name</h3>
  788. <p>A simple link to show your brand or project name only requires an anchor tag.</p>
  789. <pre class="prettyprint linenums">
  790. &lt;a class="brand" href="#"&gt;
  791. Project name
  792. &lt;/a&gt;
  793. </pre>
  794. <h3>Search form</h3>
  795. <p>Search forms receive custom styles in the navbar with the <code>.navbar-search</code> class. Include <code>.pull-left</code> or <code>.pull-right</code> on the <code>form</code> to align it.</p>
  796. <pre class="prettyprint linenums">
  797. &lt;form class="navbar-search pull-left"&gt;
  798. &lt;input type="text" class="search-query" placeholder="Search"&gt;
  799. &lt;/form&gt;
  800. </pre>
  801. <h3>Optional responsive variation</h3>
  802. <p>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>.</p>
  803. <pre class="prettyprint linenums">
  804. &lt;div class="navbar"&gt;
  805. &lt;div class="navbar-inner"&gt;
  806. &lt;div class="container"&gt;
  807. &lt;!-- .btn-navbar is used as the toggle for collapsed navbar content --&gt;
  808. &lt;a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"&gt;
  809. &lt;span class="icon-bar"&gt;&lt;/span&gt;
  810. &lt;span class="icon-bar"&gt;&lt;/span&gt;
  811. &lt;span class="icon-bar"&gt;&lt;/span&gt;
  812. &lt;/a&gt;
  813. &lt;!-- Be sure to leave the brand out there if you want it shown --&gt;
  814. &lt;a class="brand" href="#"&gt;Project name&lt;/a&gt;
  815. &lt;!-- Everything you want hidden at 940px or less, place within here --&gt;
  816. &lt;div class="nav-collapse"&gt;
  817. &lt;!-- .nav, .navbar-search, .navbar-form, etc --&gt;
  818. &lt;/div&gt;
  819. &lt;/div&gt;
  820. &lt;/div&gt;
  821. &lt;/div&gt;
  822. </pre>
  823. <div class="alert alert-info">
  824. <strong>Heads up!</strong> The responsive navbar requires the <a href="./javascript.html#collapse">collapse plugin</a>.
  825. </div>
  826. </div><!-- /.span -->
  827. <div class="span4">
  828. <h3>Nav links</h3>
  829. <p>Nav items are simple to add via unordered lists.</p>
  830. <pre class="prettyprint linenums">
  831. &lt;ul class="nav"&gt;
  832. &lt;li class="active"&gt;
  833. &lt;a href="#">Home&lt;/a&gt;
  834. &lt;/li&gt;
  835. &lt;li&gt;&lt;a href="#"&gt;Link&lt;/a&gt;&lt;/li&gt;
  836. &lt;li&gt;&lt;a href="#"&gt;Link&lt;/a&gt;&lt;/li&gt;
  837. &lt;/ul&gt;
  838. </pre>
  839. <h3>Component alignment</h3>
  840. <p>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.</p>
  841. <h3>Adding dropdowns</h3>
  842. <p>Adding dropdowns to the nav is super simple, but does require the use of <a href="./javascript.html#dropdown">our javascript plugin</a>.</p>
  843. <pre class="prettyprint linenums">
  844. &lt;ul class="nav"&gt;
  845. &lt;li class="dropdown"&gt;
  846. &lt;a href="#"
  847. class="dropdown-toggle"
  848. data-toggle="dropdown">
  849. Account
  850. &lt;b class="caret"&gt;&lt;/b&gt;
  851. &lt;/a&gt;
  852. &lt;ul class="dropdown-menu"&gt;
  853. ...
  854. &lt;/ul&gt;
  855. &lt;/li&gt;
  856. &lt;/ul&gt;
  857. </pre>
  858. <p><a class="btn" href="./javascript.html#dropdown">Get the javascript &rarr;</a></p>
  859. </div><!-- /.span -->
  860. </div><!-- /.row -->
  861. </section>
  862. <!-- Breadcrumbs
  863. ================================================== -->
  864. <section id="breadcrumbs">
  865. <div class="page-header">
  866. <h1>Breadcrumbs <small></small></h1>
  867. </div>
  868. <div class="row">
  869. <div class="span6">
  870. <h3>Why use them</h3>
  871. <p>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.</p>
  872. <h3>Examples</h3>
  873. <p>A single example shown as it might be displayed across multiple pages.</p>
  874. <ul class="breadcrumb">
  875. <li class="active">Home</li>
  876. </ul>
  877. <ul class="breadcrumb">
  878. <li><a href="#">Home</a> <span class="divider">/</span></li>
  879. <li class="active">Library</li>
  880. </ul>
  881. <ul class="breadcrumb">
  882. <li><a href="#">Home</a> <span class="divider">/</span></li>
  883. <li><a href="#">Library</a> <span class="divider">/</span></li>
  884. <li class="active">Data</li>
  885. </ul>
  886. </div>
  887. <div class="span6">
  888. <h3>Markup</h3>
  889. <p>HTML is your standard unordered list with links.</p>
  890. <pre class="prettyprint linenums">
  891. &lt;ul class="breadcrumb"&gt;
  892. &lt;li&gt;
  893. &lt;a href="#"&gt;Home&lt;/a&gt; &lt;span class="divider"&gt;/&lt;/span&gt;
  894. &lt;/li&gt;
  895. &lt;li&gt;
  896. &lt;a href="#"&gt;Library&lt;/a&gt; &lt;span class="divider"&gt;/&lt;/span&gt;
  897. &lt;/li&gt;
  898. &lt;li class="active"&gt;
  899. &lt;a href="#"&gt;Data&lt;/a&gt;
  900. &lt;/li&gt;
  901. &lt;/ul&gt;
  902. </pre>
  903. </div>
  904. </div>
  905. </section>
  906. <!-- Pagination
  907. ================================================== -->
  908. <section id="pagination">
  909. <div class="page-header">
  910. <h1>Pagination <small>Two options for paging through content</small></h1>
  911. </div>
  912. <h2>Multicon-page pagination</h2>
  913. <div class="row">
  914. <div class="span4">
  915. <h3>When to use</h3>
  916. <p>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.</p>
  917. <h3>Stateful page links</h3>
  918. <p>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.</p>
  919. <h3>Flexible alignment</h3>
  920. <p>Add either of two optional classes to change the alignment of pagination links: <code>.pagination-centered</code> and <code>.pagination-right</code>.</p>
  921. </div>
  922. <div class="span4">
  923. <h3>Examples</h3>
  924. <p>The default pagination component is flexible and works in a number of variations.</p>
  925. <div class="pagination">
  926. <ul>
  927. <li class="disabled"><a href="#">&laquo;</a></li>
  928. <li class="active"><a href="#">1</a></li>
  929. <li><a href="#">2</a></li>
  930. <li><a href="#">3</a></li>
  931. <li><a href="#">4</a></li>
  932. <li><a href="#">&raquo;</a></li>
  933. </ul>
  934. </div>
  935. <div class="pagination">
  936. <ul>
  937. <li><a href="#">&laquo;</a></li>
  938. <li><a href="#">10</a></li>
  939. <li class="active"><a href="#">11</a></li>
  940. <li><a href="#">12</a></li>
  941. <li><a href="#">&raquo;</a></li>
  942. </ul>
  943. </div>
  944. <div class="pagination">
  945. <ul>
  946. <li><a href="#">&larr;</a></li>
  947. <li class="active"><a href="#">10</a></li>
  948. <li class="disabled"><a href="#">...</a></li>
  949. <li><a href="#">20</a></li>
  950. <li><a href="#">&rarr;</a></li>
  951. </ul>
  952. </div>
  953. <div class="pagination pagination-centered">
  954. <ul>
  955. <li class="active"><a href="#">1</a></li>
  956. <li><a href="#">2</a></li>
  957. <li><a href="#">3</a></li>
  958. <li><a href="#">4</a></li>
  959. <li><a href="#">5</a></li>
  960. </ul>
  961. </div>
  962. </div>
  963. <div class="span4">
  964. <h3>Markup</h3>
  965. <p>Wrapped in a <code>&lt;div&gt;</code>, pagination is just a <code>&lt;ul&gt;</code>.</p>
  966. <pre class="prettyprint linenums">
  967. &lt;div class="pagination"&gt;
  968. &lt;ul&gt;
  969. &lt;li&gt;&lt;a href="#"&gt;Prev&lt;/a&gt;&lt;/li>
  970. &lt;li class="active"&gt;
  971. &lt;a href="#"&gt;1&lt;/a&gt;
  972. &lt;/li&gt;
  973. &lt;li&gt;&lt;a href="#"&gt;2&lt;/a&gt;&lt;/li&gt;
  974. &lt;li&gt;&lt;a href="#"&gt;3&lt;/a&gt;&lt;/li&gt;
  975. &lt;li&gt;&lt;a href="#"&gt;4&lt;/a&gt;&lt;/li&gt;
  976. &lt;li&gt;&lt;a href="#"&gt;Next&lt;/a&gt;&lt;/li>
  977. &lt;/ul&gt;
  978. &lt;/div&gt;
  979. </pre>
  980. </div>
  981. </div><!-- /row -->
  982. <h2>Pager <small>For quick previous and next links</small></h2>
  983. <div class="row">
  984. <div class="span4">
  985. <h3>About pager</h3>
  986. <p>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.</p>
  987. </div>
  988. <div class="span4">
  989. <h3>Default example</h3>
  990. <p>By default, the pager centers links.</p>
  991. <ul class="pager">
  992. <li><a href="#">Previous</a></li>
  993. <li><a href="#">Next</a></li>
  994. </ul>
  995. <pre class="prettyprint linenums">
  996. &lt;ul class="pager"&gt;
  997. &lt;li&gt;
  998. &lt;a href="#"&gt;Previous&lt;/a&gt;
  999. &lt;/li&gt;
  1000. &lt;li&gt;
  1001. &lt;a href="#"&gt;Next&lt;/a&gt;
  1002. &lt;/li&gt;
  1003. &lt;/ul&gt;
  1004. </pre>
  1005. </div>
  1006. <div class="span4">
  1007. <h3>Aligned links</h3>
  1008. <p>Alternatively, you can align each link to the sides:</p>
  1009. <ul class="pager">
  1010. <li class="previous"><a href="#">&larr; Older</a></li>
  1011. <li class="next"><a href="#">Newer &rarr;</a></li>
  1012. </ul>
  1013. <pre class="prettyprint linenums">
  1014. &lt;ul class="pager"&gt;
  1015. &lt;li class="previous"&gt;
  1016. &lt;a href="#"&gt;&amp;larr; Older&lt;/a&gt;
  1017. &lt;/li&gt;
  1018. &lt;li class="next"&gt;
  1019. &lt;a href="#"&gt;Newer &amp;rarr;&lt;/a&gt;
  1020. &lt;/li&gt;
  1021. &lt;/ul&gt;
  1022. </pre>
  1023. </div>
  1024. </div><!-- /row -->
  1025. </section>
  1026. <!-- Labels
  1027. ================================================== -->
  1028. <section id="labels">
  1029. <div class="page-header">
  1030. <h1>Inline labels <small>Label and annotate text</small></h1>
  1031. </div>
  1032. <table class="table table-bordered table-striped">
  1033. <thead>
  1034. <tr>
  1035. <th>Labels</th>
  1036. <th>Markup</th>
  1037. </tr>
  1038. </thead>
  1039. <tbody>
  1040. <tr>
  1041. <td>
  1042. <span class="label">Default</span>
  1043. </td>
  1044. <td>
  1045. <code>&lt;span class="label"&gt;Default&lt;/span&gt;</code>
  1046. </td>
  1047. </tr>
  1048. <tr>
  1049. <td>
  1050. <span class="label label-success">Success</span>
  1051. </td>
  1052. <td>
  1053. <code>&lt;span class="label label-success"&gt;Success&lt;/span&gt;</code>
  1054. </td>
  1055. </tr>
  1056. <tr>
  1057. <td>
  1058. <span class="label label-warning">Warning</span>
  1059. </td>
  1060. <td>
  1061. <code>&lt;span class="label label-warning"&gt;Warning&lt;/span&gt;</code>
  1062. </td>
  1063. </tr>
  1064. <tr>
  1065. <td>
  1066. <span class="label label-important">Important</span>
  1067. </td>
  1068. <td>
  1069. <code>&lt;span class="label label-important"&gt;Important&lt;/span&gt;</code>
  1070. </td>
  1071. </tr>
  1072. <tr>
  1073. <td>
  1074. <span class="label label-info">Info</span>
  1075. </td>
  1076. <td>
  1077. <code>&lt;span class="label label-info"&gt;Info&lt;/span&gt;</code>
  1078. </td>
  1079. </tr>
  1080. </tbody>
  1081. </table>
  1082. </section>
  1083. <!-- Thumbnails
  1084. ================================================== -->
  1085. <section id="thumbnails">
  1086. <div class="page-header">
  1087. <h1>Thumbnails <small>Grids of images, videos, text, and more</small></h1>
  1088. </div>
  1089. <div class="row">
  1090. <div class="span6">
  1091. <h2>Default thumbnails</h2>
  1092. <p>By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.</p>
  1093. <ul class="thumbnails">
  1094. <li class="span3">
  1095. <a href="#" class="thumbnail">
  1096. <img src="http://placehold.it/260x180" alt="">
  1097. </a>
  1098. </li>
  1099. <li class="span3">
  1100. <a href="#" class="thumbnail">
  1101. <img src="http://placehold.it/260x180" alt="">
  1102. </a>
  1103. </li>
  1104. <li class="span3">
  1105. <a href="#" class="thumbnail">
  1106. <img src="http://placehold.it/260x180" alt="">
  1107. </a>
  1108. </li>
  1109. <li class="span3">
  1110. <a href="#" class="thumbnail">
  1111. <img src="http://placehold.it/260x180" alt="">
  1112. </a>
  1113. </li>
  1114. </ul>
  1115. </div>
  1116. <div class="span6">
  1117. <h2>Highly customizable</h2>
  1118. <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>
  1119. <ul class="thumbnails">
  1120. <li class="span3">
  1121. <div class="thumbnail">
  1122. <img src="http://placehold.it/260x180" alt="">
  1123. <div class="caption">
  1124. <h5>Thumbnail label</h5>
  1125. <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>
  1126. <p><a href="#" class="btn btn-primary">Action</a> <a href="#" class="btn">Action</a></p>
  1127. </div>
  1128. </div>
  1129. </li>
  1130. <li class="span3">
  1131. <div class="thumbnail">
  1132. <img src="http://placehold.it/260x180" alt="">
  1133. <div class="caption">
  1134. <h5>Thumbnail label</h5>
  1135. <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>
  1136. <p><a href="#" class="btn btn-primary">Action</a> <a href="#" class="btn">Action</a></p>
  1137. </div>
  1138. </div>
  1139. </li>
  1140. </ul>
  1141. </div>
  1142. </div>
  1143. <div class="row">
  1144. <div class="span4">
  1145. <h3>Why use thumbnails</h3>
  1146. <p>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.</p>
  1147. </div>
  1148. <div class="span4">
  1149. <h3>Simple, flexible markup</h3>
  1150. <p>Thumbnail markup is simple&mdash;a <code>ul</code> with any number of <code>li</code> elements is all that is required. It's also super flexible, allowing for any type of content with just a bit more markup to wrap your contents.</p>
  1151. </div>
  1152. <div class="span4">
  1153. <h3>Uses grid column sizes</h3>
  1154. <p>Lastly, the thumbnails component uses existing grid system classes&mdash;like <code>.span2</code> or <code>.span3</code>&mdash;for control of thumbnail dimensions.</p>
  1155. </div>
  1156. </div>
  1157. <div class="row">
  1158. <div class="span6">
  1159. <h2>The markup</h2>
  1160. <p>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>:</p>
  1161. <pre class="prettyprint linenums">
  1162. &lt;ul class="thumbnails"&gt;
  1163. &lt;li class="span3"&gt;
  1164. &lt;a href="#" class="thumbnail"&gt;
  1165. &lt;img src="http://placehold.it/260x180" alt=""&gt;
  1166. &lt;/a&gt;
  1167. &lt;/li&gt;
  1168. ...
  1169. &lt;/ul&gt;
  1170. </pre>
  1171. <p>For custom HTML content in thumbnails, the markup changes slightly. To allow block level content anywhere, we swap the <code>&lt;a&gt;</code> for a <code>&lt;div&gt;</code> like so:</p>
  1172. <pre class="prettyprint linenums">
  1173. &lt;ul class="thumbnails"&gt;
  1174. &lt;li class="span3"&gt;
  1175. &lt;div class="thumbnail"&gt;
  1176. &lt;img src="http://placehold.it/260x180" alt=""&gt;
  1177. &lt;h5&gt;Thumbnail label&lt;/h5&gt;
  1178. &lt;p&gt;Thumbnail caption right here...&lt;/p&gt;
  1179. &lt;/div&gt;
  1180. &lt;/li&gt;
  1181. ...
  1182. &lt;/ul&gt;
  1183. </pre>
  1184. </div>
  1185. <div class="span6">
  1186. <h2>More examples</h2>
  1187. <p>Explore all your options with the various grid classes available to you. You can also mix and match different sizes.</p>
  1188. <ul class="thumbnails">
  1189. <li class="span4">
  1190. <a href="#" class="thumbnail">
  1191. <img src="http://placehold.it/360x268" alt="">
  1192. </a>
  1193. </li>
  1194. <li class="span2">
  1195. <a href="#" class="thumbnail">
  1196. <img src="http://placehold.it/160x120" alt="">
  1197. </a>
  1198. </li>
  1199. <li class="span2">
  1200. <a href="#" class="thumbnail">
  1201. <img src="http://placehold.it/160x120" alt="">
  1202. </a>
  1203. </li>
  1204. <li class="span2">
  1205. <a href="#" class="thumbnail">
  1206. <img src="http://placehold.it/160x120" alt="">
  1207. </a>
  1208. </li>
  1209. <li class="span2">
  1210. <a href="#" class="thumbnail">
  1211. <img src="http://placehold.it/160x120" alt="">
  1212. </a>
  1213. </li>
  1214. <li class="span2">
  1215. <a href="#" class="thumbnail">
  1216. <img src="http://placehold.it/160x120" alt="">
  1217. </a>
  1218. </li>
  1219. </ul>
  1220. </div>
  1221. </div>
  1222. </section>
  1223. <!-- Alerts & Messages
  1224. ================================================== -->
  1225. <section id="alerts">
  1226. <div class="page-header">
  1227. <h1>Alerts <small>Styles for success, warning, and error messages</small></h1>
  1228. </div>
  1229. <h2>Lightweight defaults</h2>
  1230. <div class="row">
  1231. <div class="span4">
  1232. <h3>Rewritten base class</h3>
  1233. <p>With Bootstrap 2, we've simplified the base class: <code>.alert</code> instead of <code>.alert-message</code>. We've also reduced the minimum required markup&mdash;no <code>&lt;p&gt;</code> is required by default, just the outer <code>&lt;div&gt;</code>.</p>
  1234. <h3>Single alert message</h3>
  1235. <p>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>.</p>
  1236. <hr>
  1237. <h3>Goes great with javascript</h3>
  1238. <p>Bootstrap comes with a great jQuery plugin that supports alert messages, making dismissing them quick and easy.</p>
  1239. <p><a class="btn js-btn" href="./javascript.html#alerts">Get the plugin &raquo;</a></p>
  1240. </div>
  1241. <div class="span8">
  1242. <h3>Example alerts</h3>
  1243. <p>Wrap your message and an optional close icon in a div with simple class.</p>
  1244. <div class="alert">
  1245. <a class="close" data-dismiss="alert">&times;</a>
  1246. <strong>Warning!</strong> Best check yo self, you're not looking too good.
  1247. </div>
  1248. <pre class="prettyprint linenums">
  1249. &lt;div class="alert"&gt;
  1250. &lt;a class="close" data-dismiss="alert"&gt;&times;&lt;/a&gt;
  1251. &lt;strong&gt;Warning!&lt;/strong&gt; Best check yo self, you're not looking too good.
  1252. &lt;/div&gt;
  1253. </pre>
  1254. <p>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.</p>
  1255. <div class="alert alert-block">
  1256. <a class="close" data-dismiss="alert">&times;</a>
  1257. <h4 class="alert-heading">Warning!</h4>
  1258. <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>
  1259. </div>
  1260. <pre class="prettyprint linenums">
  1261. &lt;div class="alert alert-block"&gt;
  1262. &lt;a class="close" data-dismiss="alert"&gt;&times;&lt;/a&gt;
  1263. &lt;h4 class="alert-heading"&gt;Warning!&lt;/h4&gt;
  1264. Best check yo self, you're not...
  1265. &lt;/div&gt;
  1266. </pre>
  1267. </div>
  1268. </div>
  1269. <h2>Contextual alternatives <small>Add optional classes to change an alert's connotation</small></h2>
  1270. <div class="row">
  1271. <div class="span4">
  1272. <h3>Error or danger</h3>
  1273. <div class="alert alert-error">
  1274. <a class="close" data-dismiss="alert">&times;</a>
  1275. <strong>Oh snap!</strong> Change a few things up and try submitting again.
  1276. </div>
  1277. <pre class="prettyprint linenums">
  1278. &lt;div class="alert alert-error"&gt;
  1279. ...
  1280. &lt;/div&gt;
  1281. </pre>
  1282. </div>
  1283. <div class="span4">
  1284. <h3>Success</h3>
  1285. <div class="alert alert-success">
  1286. <a class="close" data-dismiss="alert">&times;</a>
  1287. <strong>Well done!</strong> You successfully read this important alert message.
  1288. </div>
  1289. <pre class="prettyprint linenums">
  1290. &lt;div class="alert alert-success"&gt;
  1291. ...
  1292. &lt;/div&gt;
  1293. </pre>
  1294. </div>
  1295. <div class="span4">
  1296. <h3>Information</h3>
  1297. <div class="alert alert-info">
  1298. <a class="close" data-dismiss="alert">&times;</a>
  1299. <strong>Heads up!</strong> This alert needs your attention, but it's not super important.
  1300. </div>
  1301. <pre class="prettyprint linenums">
  1302. &lt;div class="alert alert-info"&gt;
  1303. ...
  1304. &lt;/div&gt;
  1305. </pre>
  1306. </div>
  1307. </div>
  1308. </section>
  1309. <!-- Progress bars
  1310. ================================================== -->
  1311. <section id="progress">
  1312. <div class="page-header">
  1313. <h1>Progress bars <small>For loading, redirecting, or action status</small></h1>
  1314. </div>
  1315. <h2>Examples and markup</h2>
  1316. <div class="row">
  1317. <div class="span4">
  1318. <h3>Basic</h3>
  1319. <p>Default progress bar with a vertical gradient.</p>
  1320. <div class="progress">
  1321. <div class="bar" style="width: 60%;"></div>
  1322. </div>
  1323. <pre class="prettyprint linenums">
  1324. &lt;div class="progress"&gt;
  1325. &lt;div class="bar"
  1326. style="width: 60%;"&gt;&lt;/div&gt;
  1327. &lt;/div&gt;
  1328. </pre>
  1329. </div>
  1330. <div class="span4">
  1331. <h3>Striped</h3>
  1332. <p>Uses a gradient to create a striped effect.</p>
  1333. <div class="progress progress-info progress-striped">
  1334. <div class="bar" style="width: 20%;"></div>
  1335. </div>
  1336. <pre class="prettyprint linenums">
  1337. &lt;div class="progress progress-info
  1338. progress-striped"&gt;
  1339. &lt;div class="bar"
  1340. style="width: 20%;"&gt;&lt;/div&gt;
  1341. &lt;/div&gt;
  1342. </pre>
  1343. </div>
  1344. <div class="span4">
  1345. <h3>Animated</h3>
  1346. <p>Takes the striped example and animates it.</p>
  1347. <div class="progress progress-danger progress-striped active">
  1348. <div class="bar" style="width: 45%"></div>
  1349. </div>
  1350. <pre class="prettyprint linenums">
  1351. &lt;div class="progress progress-danger
  1352. progress-striped active"&gt;
  1353. &lt;div class="bar"
  1354. style="width: 40%;"&gt;&lt;/div&gt;
  1355. &lt;/div&gt;
  1356. </pre>
  1357. </div>
  1358. </div>
  1359. <h2>Options and browser support</h2>
  1360. <div class="row">
  1361. <div class="span4">
  1362. <h3>Additional colors</h3>
  1363. <p>Progress bars utilize some of the same class names as buttons and alerts for similar styling.</p>
  1364. <ul>
  1365. <li><code>.progress-info</code></li>
  1366. <li><code>.progress-success</code></li>
  1367. <li><code>.progress-danger</code></li>
  1368. </ul>
  1369. <p>Alternatively, you can customize the LESS files and roll your own colors and sizes.</p>
  1370. </div>
  1371. <div class="span4">
  1372. <h3>Behavior</h3>
  1373. <p>Progress bars use CSS3 transitions, so if you dynamically adjust the width via javascript, it will smoothly resize.</p>
  1374. <p>If you use the <code>.active</code> class, your <code>.progress-striped</code> progress bars will animate the stripes left to right.</p>
  1375. </div>
  1376. <div class="span4">
  1377. <h3>Browser support</h3>
  1378. <p>Progress bars use CSS3 gradients, transitions, and animations to achieve all their effects. These features are not supported in IE7-8 or older versions of Firefox.</p>
  1379. <p>Opera does not support animations at this time.</p>
  1380. </div>
  1381. </div>
  1382. </section>
  1383. <!-- Miscellaneous
  1384. ================================================== -->
  1385. <section id="misc">
  1386. <div class="page-header">
  1387. <h1>Miscellaneous <small>Wells, badges, and close icon</small></h1>
  1388. </div>
  1389. <div class="row">
  1390. <div class="span4">
  1391. <h2>Wells</h2>
  1392. <p>Use the well as a simple effect on an element to give it an inset effect.</p>
  1393. <div class="well">
  1394. Look, I'm in a well!
  1395. </div>
  1396. <pre class="prettyprint linenums">
  1397. &lt;div class="well"&gt;
  1398. ...
  1399. &lt;/div&gt;
  1400. </pre>
  1401. </div><!--/span-->
  1402. <div class="span4" style="display: none;">
  1403. <h2>Badges</h2>
  1404. <p>Use a badge on an element for an unread count or as a simple indicator.</p>
  1405. <pre class="prettyprint linenums">&lt;span class="badge"&gt;3&lt;/div&gt;</pre>
  1406. </div><!--/span-->
  1407. <div class="span4">
  1408. <h2>Close icon</h2>
  1409. <p>Use the generic close icon for dismissing content like modals and alerts.</p>
  1410. <p><a class="close" style="float: none;">&times;</a></p>
  1411. <pre class="prettyprint linenums">&lt;a class="close"&gt;&amp;times;&lt;/a&gt;</pre>
  1412. </div><!--/span-->
  1413. </div><!--/row-->
  1414. </section>
  1415. <!-- Footer
  1416. ================================================== -->
  1417. <footer class="footer">
  1418. <p class="pull-right"><a href="#">Back to top</a></p>
  1419. <p>Designed and built with all the love in the world <a href="http://twitter.com/twitter" target="_blank">@twitter</a> by <a href="http://twitter.com/mdo" target="_blank">@mdo</a> and <a href="http://twitter.com/fat" target="_blank">@fat</a>.</p>
  1420. <p>Code licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License v2.0</a>. Documentation licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
  1421. <p>Icons from <a href="http://glyphicons.com">Glyphicons Free</a>, licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
  1422. </footer>
  1423. </div><!-- /container -->
  1424. <!-- Le javascript
  1425. ================================================== -->
  1426. <!-- Placed at the end of the document so the pages load faster -->
  1427. <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
  1428. <script src="assets/js/jquery.js"></script>
  1429. <script src="assets/js/google-code-prettify/prettify.js"></script>
  1430. <script src="assets/js/bootstrap-transition.js"></script>
  1431. <script src="assets/js/bootstrap-alert.js"></script>
  1432. <script src="assets/js/bootstrap-modal.js"></script>
  1433. <script src="assets/js/bootstrap-dropdown.js"></script>
  1434. <script src="assets/js/bootstrap-scrollspy.js"></script>
  1435. <script src="assets/js/bootstrap-tab.js"></script>
  1436. <script src="assets/js/bootstrap-tooltip.js"></script>
  1437. <script src="assets/js/bootstrap-popover.js"></script>
  1438. <script src="assets/js/bootstrap-button.js"></script>
  1439. <script src="assets/js/bootstrap-collapse.js"></script>
  1440. <script src="assets/js/bootstrap-carousel.js"></script>
  1441. <script src="assets/js/bootstrap-typeahead.js"></script>
  1442. <script src="assets/js/application.js"></script>
  1443. </body>
  1444. </html>