5 <title>Components - SugarCRM Patterns and Styleguide</title>
6 <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
7 <meta name="apple-mobile-web-app-capable" content="yes">
8 <meta name="apple-mobile-web-app-status-bar-style" content="black">
9 <meta name="description" content="">
10 <meta name="author" content="">
12 <!-- HTML5 shim, for IE6-8 support of HTML elements -->
14 <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
17 <link href="../../themes/default/css/bootstrap.css" rel="stylesheet">
19 <link href="js/google-code-prettify/prettify.css" rel="stylesheet">
20 <link href="../../themes/default/images/sugar_icon.ico" rel="SHORTCUT ICON">
23 <body data-spy="scroll" data-target=".subnav" data-offset="50">
27 ================================================== -->
28 <div class="navbar navbar-fixed-top">
29 <div class="navbar-inner">
30 <div class="container">
31 <a class="cube" href="index.html" rel="tooltip" title="Dashboard"></a>
32 <div class="nav-collapse">
35 <a href="index.html">Overview</a>
38 <a href="scaffolding.html">Scaffolding</a>
41 <a href="base-css.html">Base CSS</a>
44 <a href="components.html">Components</a>
47 <a href="widgets.html">Widgets</a>
50 <a href="less.html">Quick Styles</a>
59 <div class="container">
62 ================================================== -->
63 <header class="jumbotron subhead" id="overview">
65 <p class="lead">Dozens of reusable components are built into Bootstrap to provide navigation, alerts, popovers, and much more.</p>
67 <ul class="nav nav-pills">
69 <a class="dropdown-toggle" data-toggle="dropdown" href="#">Buttons <b class="caret"></b></a>
70 <ul class="dropdown-menu">
71 <li><a href="#buttonGroups">Button groups</a></li>
72 <li><a href="#buttonDropdowns">Button dropdowns</a></li>
76 <a class="dropdown-toggle" data-toggle="dropdown" href="#">Navigation <b class="caret"></b></a>
77 <ul class="dropdown-menu">
78 <li><a href="#navs">Nav, tabs, pills</a></li>
79 <li><a href="#navbar">Navbar</a></li>
80 <li><a href="#breadcrumbs">Breadcrumbs</a></li>
81 <li><a href="#pagination">Pagination</a></li>
84 <li><a href="#labels">Labels</a></li>
85 <li><a href="#thumbnails">Thumbnails</a></li>
86 <li><a href="#alerts">Alerts</a></li>
87 <li><a href="#progress">Progress bars</a></li>
88 <li><a href="#misc">Miscellaneous</a></li>
96 ================================================== -->
97 <section id="buttonGroups">
98 <div class="page-header">
99 <h1>Button groups <small>Join buttons for more toolbar-like functionality</small></h1>
103 <h3>Button groups</h3>
104 <p>Use button groups to join multiple buttons together as one composite component. Build them with a series of <code><a></code> or <code><button></code> elements.</p>
105 <p>You can also combine sets of <code><div class="btn-group"></code> into a <code><div class="btn-toolbar"></code> for more complex projects.</p>
106 <div class="btn-toolbar" style="margin-top: 18px;">
107 <div class="btn-group">
108 <a class="btn" href="#">Left</a>
109 <a class="btn" href="#">Middle</a>
110 <a class="btn" href="#">Right</a>
113 <div class="btn-toolbar">
114 <div class="btn-group">
115 <a class="btn" href="#">1</a>
116 <a class="btn" href="#">2</a>
117 <a class="btn" href="#">3</a>
118 <a class="btn" href="#">4</a>
120 <div class="btn-group">
121 <a class="btn" href="#">5</a>
122 <a class="btn" href="#">6</a>
123 <a class="btn" href="#">7</a>
125 <div class="btn-group">
126 <a class="btn" href="#">8</a>
131 <h3>Example markup</h3>
132 <p>Here's how the HTML looks for a standard button group built with anchor tag buttons:</p>
133 <pre class="prettyprint linenums">
134 <div class="btn-group">
135 <a class="btn" href="#">1</a>
136 <a class="btn" href="#">2</a>
137 <a class="btn" href="#">3</a>
140 <p>And with a toolbar for multiple groups:</p>
141 <pre class="prettyprint linenums">
142 <div class="btn-toolbar">
143 <div class="btn-group">
150 <h3>Checkbox and radio flavors</h3>
151 <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="widgets.html#buttons">the Javascript docs</a> for that.</p>
152 <p><a class="btn js-btn" href="widgets.html#buttons">Get the javascript »</a></p>
154 <h4 class="muted">Heads up</h4>
155 <p class="muted">CSS for button groups is in a separate file, button-groups.less.</p>
162 <!-- Split button dropdowns
163 ================================================== -->
164 <section id="buttonDropdowns">
165 <div class="page-header">
166 <h1>Buttons dropdowns <small>Contextual dropdown menus built on button groups</small></h1>
171 <h3>Button dropdowns</h3>
172 <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>
173 <div class="btn-toolbar" style="margin-top: 18px;">
174 <div class="btn-group">
175 <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">Action <span class="caret"></span></a>
176 <ul class="dropdown-menu">
177 <li><a href="#">Action</a></li>
178 <li><a href="#">Another action</a></li>
179 <li><a href="#">Something else here</a></li>
180 <li class="divider"></li>
181 <li><a href="#">Separated link</a></li>
183 </div><!-- /btn-group -->
184 <div class="btn-group">
185 <a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#">Action <span class="caret"></span></a>
186 <ul class="dropdown-menu">
187 <li><a href="#">Action</a></li>
188 <li><a href="#">Another action</a></li>
189 <li><a href="#">Something else here</a></li>
190 <li class="divider"></li>
191 <li><a href="#">Separated link</a></li>
193 </div><!-- /btn-group -->
194 <div class="btn-group">
195 <a class="btn btn-danger dropdown-toggle" data-toggle="dropdown" href="#">Danger <span class="caret"></span></a>
196 <ul class="dropdown-menu">
197 <li><a href="#">Action</a></li>
198 <li><a href="#">Another action</a></li>
199 <li><a href="#">Something else here</a></li>
200 <li class="divider"></li>
201 <li><a href="#">Separated link</a></li>
203 </div><!-- /btn-group -->
205 <div class="btn-toolbar">
206 <div class="btn-group">
207 <a class="btn btn-success dropdown-toggle" data-toggle="dropdown" href="#">Success <span class="caret"></span></a>
208 <ul class="dropdown-menu">
209 <li><a href="#">Action</a></li>
210 <li><a href="#">Another action</a></li>
211 <li><a href="#">Something else here</a></li>
212 <li class="divider"></li>
213 <li><a href="#">Separated link</a></li>
215 </div><!-- /btn-group -->
216 <div class="btn-group">
217 <a class="btn btn-info dropdown-toggle" data-toggle="dropdown" href="#">Info <span class="caret"></span></a>
218 <ul class="dropdown-menu">
219 <li><a href="#">Action</a></li>
220 <li><a href="#">Another action</a></li>
221 <li><a href="#">Something else here</a></li>
222 <li class="divider"></li>
223 <li><a href="#">Separated link</a></li>
225 </div><!-- /btn-group -->
229 <h3>Example markup</h3>
230 <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>
231 <pre class="prettyprint linenums">
232 <div class="btn-group">
233 <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
235 <span class="caret"></span>
237 <ul class="dropdown-menu">
238 <!-- dropdown menu links -->
247 <h3>Split button dropdowns</h3>
248 <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>
249 <div class="btn-toolbar" style="margin-top: 18px;">
250 <div class="btn-group">
251 <a class="btn" href="#">Action</a>
252 <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
253 <ul class="dropdown-menu">
254 <li><a href="#">Action</a></li>
255 <li><a href="#">Another action</a></li>
256 <li><a href="#">Something else here</a></li>
257 <li class="divider"></li>
258 <li><a href="#">Separated link</a></li>
260 </div><!-- /btn-group -->
261 <div class="btn-group">
262 <a class="btn btn-primary" href="#">Action</a>
263 <a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
264 <ul class="dropdown-menu">
265 <li><a href="#">Action</a></li>
266 <li><a href="#">Another action</a></li>
267 <li><a href="#">Something else here</a></li>
268 <li class="divider"></li>
269 <li><a href="#">Separated link</a></li>
271 </div><!-- /btn-group -->
272 <div class="btn-group">
273 <a class="btn btn-danger" href="#">Danger</a>
274 <a class="btn btn-danger dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
275 <ul class="dropdown-menu">
276 <li><a href="#">Action</a></li>
277 <li><a href="#">Another action</a></li>
278 <li><a href="#">Something else here</a></li>
279 <li class="divider"></li>
280 <li><a href="#">Separated link</a></li>
282 </div><!-- /btn-group -->
284 <div class="btn-toolbar">
285 <div class="btn-group">
286 <a class="btn btn-success" href="#">Success</a>
287 <a class="btn btn-success dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
288 <ul class="dropdown-menu">
289 <li><a href="#">Action</a></li>
290 <li><a href="#">Another action</a></li>
291 <li><a href="#">Something else here</a></li>
292 <li class="divider"></li>
293 <li><a href="#">Separated link</a></li>
295 </div><!-- /btn-group -->
296 <div class="btn-group">
297 <a class="btn btn-info" href="#">Info</a>
298 <a class="btn btn-info dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
299 <ul class="dropdown-menu">
300 <li><a href="#">Action</a></li>
301 <li><a href="#">Another action</a></li>
302 <li><a href="#">Something else here</a></li>
303 <li class="divider"></li>
304 <li><a href="#">Separated link</a></li>
306 </div><!-- /btn-group -->
310 <h3>Example markup</h3>
311 <p>We expand on the normal button dropdowns to provide a second button action that operates as a separate dropdown trigger.</p>
312 <pre class="prettyprint linenums">
313 <div class="btn-group">
314 <a class="btn" href="#">Action</a>
315 <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
316 <span class="caret"></span>
318 <ul class="dropdown-menu">
319 <!-- dropdown menu links -->
329 <!-- Nav, Tabs, & Pills
330 ================================================== -->
332 <div class="page-header">
333 <h1>Nav, tabs, and pills <small>Highly customizable list-style navigation</small></h1>
336 <h2>Lightweight defaults <small>Same markup, different classes</small></h2>
339 <h3>Powerful base class</h3>
340 <p>All nav components here—tabs, pills, and lists—<strong>share the same base markup and styles</strong> through the <code>.nav</code> class.</p>
341 <h3>Why tabs and pills</h3>
342 <p>Tabs and pills in Bootstrap are built on a <code><ul></code> with the same core HTML, a list of links. Swap between tabs or pills with only a class.</p>
343 <p>Both options are great for sub-sections of content or navigating between pages of related content.</p>
347 <p>Take a regular <code><ul></code> of links and add <code>.nav-tabs</code>:</p>
348 <ul class="nav nav-tabs">
349 <li class="active"><a href="#">Home</a></li>
350 <li><a href="#">Profile</a></li>
351 <li><a href="#">Messages</a></li>
353 <pre class="prettyprint linenums">
354 <ul class="nav nav-tabs">
355 <li class="active">
356 <a href="#">Home</a>
358 <li><a href="#">...</a></li>
359 <li><a href="#">...</a></li>
365 <p>Take that same HTML, but use <code>.nav-pills</code> instead:</p>
366 <ul class="nav nav-pills">
367 <li class="active"><a href="#">Home</a></li>
368 <li><a href="#">Profile</a></li>
369 <li><a href="#">Messages</a></li>
371 <pre class="prettyprint linenums">
372 <ul class="nav nav-pills">
373 <li class="active">
374 <a href="#">Home</a>
376 <li><a href="#">...</a></li>
377 <li><a href="#">...</a></li>
383 <h2>Stackable <small>Make tabs or pills vertical</small></h2>
386 <h3>How to stack 'em</h3>
387 <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>
390 <h3>Stacked tabs</h3>
391 <ul class="nav nav-tabs nav-stacked">
392 <li class="active"><a href="#">Home</a></li>
393 <li><a href="#">Profile</a></li>
394 <li><a href="#">Messages</a></li>
396 <pre class="prettyprint linenums">
397 <ul class="nav nav-tabs nav-stacked">
403 <h3>Stacked pills</h3>
404 <ul class="nav nav-pills nav-stacked">
405 <li class="active"><a href="#">Home</a></li>
406 <li><a href="#">Profile</a></li>
407 <li><a href="#">Messages</a></li>
409 <pre class="prettyprint linenums">
410 <ul class="nav nav-pills nav-stacked">
417 <h2>Dropdowns <small>For advanced nav components</small></h2>
420 <h3>Rich menus made easy</h3>
421 <p>Dropdown menus in Bootstrap tabs and pills are super easy and require only a little extra HTML and a lightweight jQuery plugin.</p>
422 <p>Head over to the Javascript page to read the docs on <a href="widgets.html#tabs">initializing dropdowns</a> in Bootstrap.</p>
425 <h3>Tabs with dropdowns</h3>
426 <ul class="nav nav-tabs">
427 <li class="active"><a href="#">Home</a></li>
428 <li><a href="#">Profile</a></li>
429 <li class="dropdown">
430 <a class="dropdown-toggle" data-toggle="dropdown" href="#">Dropdown <b class="caret"></b></a>
431 <ul class="dropdown-menu">
432 <li><a href="#">Action</a></li>
433 <li><a href="#">Another action</a></li>
434 <li><a href="#">Something else here</a></li>
435 <li class="divider"></li>
436 <li><a href="#">Separated link</a></li>
440 <pre class="prettyprint linenums">
441 <ul class="nav nav-tabs">
442 <li class="dropdown">
443 <a class="dropdown-toggle"
444 data-toggle="dropdown"
447 <b class="caret"></b>
449 <ul class="dropdown-menu">
457 <h3>Pills with dropdowns</h3>
458 <ul class="nav nav-pills">
459 <li class="active"><a href="#">Home</a></li>
460 <li><a href="#">Profile</a></li>
461 <li class="dropdown">
462 <a class="dropdown-toggle" data-toggle="dropdown" href="#">Dropdown <b class="caret"></b></a>
463 <ul class="dropdown-menu">
464 <li><a href="#">Action</a></li>
465 <li><a href="#">Another action</a></li>
466 <li><a href="#">Something else here</a></li>
467 <li class="divider"></li>
468 <li><a href="#">Separated link</a></li>
472 <pre class="prettyprint linenums">
473 <ul class="nav nav-pills">
474 <li class="dropdown">
475 <a class="dropdown-toggle"
476 data-toggle="dropdown"
479 <b class="caret"></b>
481 <ul class="dropdown-menu">
490 <h2>Nav lists <small>Build simple stacked navs, great for sidebars</small></h2>
493 <h3>Application-style navigation</h3>
494 <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>
495 <p>Structurally, they're built on the same core nav styles as tabs and pills, so usage and customization are straightforward.</p>
497 <p>Nav lists are also easy to equip with icons. Add the proper <code><i></code> tag with class and you're set.</p>
500 <h3>Example nav list</h3>
501 <p>Take a list of links and add <code>class="nav nav-list"</code>:</p>
502 <div class="well" style="padding: 8px 0;">
503 <ul class="nav nav-list">
504 <li class="nav-header">List header</li>
505 <li class="active"><a href="#">Home</a></li>
506 <li><a href="#">Library</a></li>
507 <li><a href="#">Applications</a></li>
508 <li class="nav-header">Another list header</li>
509 <li><a href="#">Profile</a></li>
510 <li><a href="#">Settings</a></li>
511 <li><a href="#">Help</a></li>
513 </div> <!-- /well -->
514 <pre class="prettyprint linenums">
515 <ul class="nav nav-list">
516 <li class="nav-header">
519 <li class="active">
520 <a href="#">Home</a>
523 <a href="#">Library</a>
530 <h3>Example with Icons
532 <p>Same example, but with <code><i></code> tags for icons.</p>
533 <div class="well" style="padding: 8px 0;">
534 <ul class="nav nav-list">
535 <li class="nav-header">List header</li>
536 <li class="active"><a href="#"><i class="icon-white icon-home"></i> Home</a></li>
537 <li><a href="#"><i class="icon-book"></i> Library</a></li>
538 <li><a href="#"><i class="icon-pencil"></i> Applications</a></li>
539 <li class="nav-header">Another list header</li>
540 <li><a href="#"><i class="icon-user"></i> Profile</a></li>
541 <li><a href="#"><i class="icon-cog"></i> Settings</a></li>
542 <li><a href="#"><i class="icon-flag"></i> Help</a></li>
544 </div> <!-- /well -->
545 <pre class="prettyprint linenums">
546 <ul class="nav nav-list">
550 <i class="icon-book"></i>
561 <h2>Tabbable nav <small>Bring tabs to life via javascript</small></h2>
564 <h3>What's included</h3>
565 <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>
566 <p>Changing between them is easy and only requires changing very little markup.</p>
569 <h3>Tabbable example</h3>
570 <p>To make tabs tabbable, wrap the <code>.nav-tabs</code> in another div with class <code>.tabbable</code>.</p>
571 <div class="tabbable" style="margin-bottom: 9px;">
572 <ul class="nav nav-tabs">
573 <li class="active"><a href="#1" data-toggle="tab">Section 1</a></li>
574 <li><a href="#2" data-toggle="tab">Section 2</a></li>
575 <li><a href="#3" data-toggle="tab">Section 3</a></li>
577 <div class="tab-content">
578 <div class="tab-pane active" id="1">
579 <p>I'm in Section 1.</p>
581 <div class="tab-pane" id="2">
582 <p>Howdy, I'm in Section 2.</p>
584 <div class="tab-pane" id="3">
585 <p>What up girl, this is Section 3.</p>
588 </div> <!-- /tabbable -->
591 <h3>Custom jQuery plugin</h3>
592 <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>
593 <p><a class="btn" href="widgets.html#tabs">Get the javascript →</a></p>
597 <h3>Straightforward markup</h3>
598 <p>Using tabbable tabs requires a wrapping div, a set of tabs, and a set of tabbable panes of content.</p>
599 <pre class="prettyprint linenums">
600 <div class="tabbable">
601 <ul class="nav nav-tabs">
602 <li class="active"><a href="#1" data-toggle="tab">Section 1</a></li>
603 <li><a href="#2" data-toggle="tab">Section 2</a></li>
605 <div class="tab-content">
606 <div class="tab-pane active" id="1">
607 <p>I'm in Section 1.</p>
609 <div class="tab-pane" id="2">
610 <p>Howdy, I'm in Section 2.</p>
616 <h3>Tabbable in any direction</h3>
619 <h4>Tabs on the bottom</h4>
620 <p>Flip the order of the HTML and add a class to put tabs on the bottom.</p>
621 <div class="tabbable tabs-below">
622 <div class="tab-content">
623 <div class="tab-pane active" id="A">
624 <p>I'm in Section A.</p>
626 <div class="tab-pane" id="B">
627 <p>Howdy, I'm in Section B.</p>
629 <div class="tab-pane" id="C">
630 <p>What up girl, this is Section C.</p>
633 <ul class="nav nav-tabs">
634 <li class="active"><a href="#A" data-toggle="tab">Section 1</a></li>
635 <li><a href="#B" data-toggle="tab">Section 2</a></li>
636 <li><a href="#C" data-toggle="tab">Section 3</a></li>
638 </div> <!-- /tabbable -->
639 <pre class="prettyprint linenums" style="margin-top: 11px;">
640 <div class="tabbable tabs-below">
641 <div class="tab-content">
644 <ul class="nav nav-tabs">
651 <h4>Tabs on the left</h4>
652 <p>Swap the class to put tabs on the left.</p>
653 <div class="tabbable tabs-left">
654 <ul class="nav nav-tabs">
655 <li class="active"><a href="#lA" data-toggle="tab">Section 1</a></li>
656 <li><a href="#lB" data-toggle="tab">Section 2</a></li>
657 <li><a href="#lC" data-toggle="tab">Section 3</a></li>
659 <div class="tab-content">
660 <div class="tab-pane active" id="lA">
661 <p>I'm in Section A.</p>
663 <div class="tab-pane" id="lB">
664 <p>Howdy, I'm in Section B.</p>
666 <div class="tab-pane" id="lC">
667 <p>What up girl, this is Section C.</p>
670 </div> <!-- /tabbable -->
671 <pre class="prettyprint linenums">
672 <div class="tabbable tabs-left">
673 <ul class="nav nav-tabs">
676 <div class="tab-content">
683 <h4>Tabs on the right</h4>
684 <p>Swap the class to put tabs on the right.</p>
685 <div class="tabbable tabs-right">
686 <ul class="nav nav-tabs">
687 <li class="active"><a href="#rA" data-toggle="tab">Section 1</a></li>
688 <li><a href="#rB" data-toggle="tab">Section 2</a></li>
689 <li><a href="#rC" data-toggle="tab">Section 3</a></li>
691 <div class="tab-content">
692 <div class="tab-pane active" id="rA">
693 <p>I'm in Section A.</p>
695 <div class="tab-pane" id="rB">
696 <p>Howdy, I'm in Section B.</p>
698 <div class="tab-pane" id="rC">
699 <p>What up girl, this is Section C.</p>
702 </div> <!-- /tabbable -->
703 <pre class="prettyprint linenums">
704 <div class="tabbable tabs-right">
705 <ul class="nav nav-tabs">
708 <div class="tab-content">
721 ================================================== -->
722 <section id="navbar">
723 <div class="page-header">
726 <h2>Static navbar example</h2>
727 <p>An example of a static (not fixed to the top) navbar with project name, navigation, and search form.</p>
729 <div class="navbar-inner">
730 <div class="container" style="width: auto;">
731 <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
732 <span class="icon-bar"></span>
733 <span class="icon-bar"></span>
734 <span class="icon-bar"></span>
736 <a class="brand" href="#">Project name</a>
737 <div class="nav-collapse">
739 <li class="active"><a href="#">Home</a></li>
740 <li><a href="#">Link</a></li>
741 <li><a href="#">Link</a></li>
742 <li><a href="#">Link</a></li>
743 <li class="dropdown">
744 <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
745 <ul class="dropdown-menu">
746 <li><a href="#">Action</a></li>
747 <li><a href="#">Another action</a></li>
748 <li><a href="#">Something else here</a></li>
749 <li class="divider"></li>
750 <li><a href="#">Separated link</a></li>
754 <form class="navbar-search pull-left" action="">
755 <input type="text" class="search-query span2" placeholder="Search">
757 <ul class="nav pull-right">
758 <li><a href="#">Link</a></li>
759 <li class="divider-vertical"></li>
760 <li class="dropdown">
761 <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
762 <ul class="dropdown-menu">
763 <li><a href="#">Action</a></li>
764 <li><a href="#">Another action</a></li>
765 <li><a href="#">Something else here</a></li>
766 <li class="divider"></li>
767 <li><a href="#">Separated link</a></li>
771 </div><!-- /.nav-collapse -->
773 </div><!-- /navbar-inner -->
774 </div><!-- /navbar -->
778 <h3>Navbar scaffolding</h3>
779 <p>The navbar requires only a few divs to structure it well for static or fixed display.</p>
780 <pre class="prettyprint linenums">
781 <div class="navbar">
782 <div class="navbar-inner">
783 <div class="container">
789 <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><body></code>.</p>
790 <pre class="prettyprint linenums">
791 <div class="navbar navbar-fixed-top">
796 <p>A simple link to show your brand or project name only requires an anchor tag.</p>
797 <pre class="prettyprint linenums">
798 <a class="brand" href="#">
803 <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>
804 <pre class="prettyprint linenums">
805 <form class="navbar-search pull-left">
806 <input type="text" class="search-query" placeholder="Search">
809 <h3>Optional responsive variation</h3>
810 <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>
811 <pre class="prettyprint linenums">
812 <div class="navbar">
813 <div class="navbar-inner">
814 <div class="container">
816 <!-- .btn-navbar is used as the toggle for collapsed navbar content -->
817 <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
818 <span class="icon-bar"></span>
819 <span class="icon-bar"></span>
820 <span class="icon-bar"></span>
823 <!-- Be sure to leave the brand out there if you want it shown -->
824 <a class="brand" href="#">Project name</a>
826 <!-- Everything you want hidden at 940px or less, place within here -->
827 <div class="nav-collapse">
828 <!-- .nav, .navbar-search, .navbar-form, etc -->
835 <div class="alert alert-info">
836 <strong>Heads up!</strong> The responsive navbar requires the <a href="widgets.html#collapse">collapse plugin</a>.
839 </div><!-- /.span -->
842 <p>Nav items are simple to add via unordered lists.</p>
843 <pre class="prettyprint linenums">
844 <ul class="nav">
845 <li class="active">
846 <a href="#">Home</a>
848 <li><a href="#">Link</a></li>
849 <li><a href="#">Link</a></li>
852 <h3>Adding dropdowns</h3>
853 <p>Adding dropdowns to the nav is super simple, but does require the use of <a href="widgets.html#dropdown">our javascript plugin</a>.</p>
854 <pre class="prettyprint linenums">
855 <ul class="nav">
856 <li class="dropdown">
858 class="dropdown-toggle"
859 data-toggle="dropdown">
861 <b class="caret"></b>
863 <ul class="dropdown-menu">
869 <p><a class="btn" href="widgets.html#dropdown">Get the javascript →</a></p>
870 </div><!-- /.span -->
878 ================================================== -->
879 <section id="breadcrumbs">
880 <div class="page-header">
881 <h1>Breadcrumbs <small></small></h1>
886 <h3>Why use them</h3>
887 <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>
890 <p>A single example shown as it might be displayed across multiple pages.</p>
891 <ul class="breadcrumb">
892 <li class="active">Home</li>
894 <ul class="breadcrumb">
895 <li><a href="#">Home</a> <span class="divider">/</span></li>
896 <li class="active">Library</li>
898 <ul class="breadcrumb">
899 <li><a href="#">Home</a> <span class="divider">/</span></li>
900 <li><a href="#">Library</a> <span class="divider">/</span></li>
901 <li class="active">Data</li>
906 <p>HTML is your standard unordered list with links.</p>
907 <pre class="prettyprint linenums">
908 <ul class="breadcrumb">
910 <a href="#">Home</a> <span class="divider">/</span>
913 <a href="#">Library</a> <span class="divider">/</span>
915 <li class="active">
916 <a href="#">Data</a>
928 ================================================== -->
929 <section id="pagination">
930 <div class="page-header">
931 <h1>Pagination <small>Two options for paging through content</small></h1>
934 <h2>Multicon-page pagination</h2>
938 <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>
939 <h3>Stateful page links</h3>
940 <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>
941 <h3>Flexible alignment</h3>
942 <p>Add either of two optional classes to change the alignment of pagination links: <code>.pagination-centered</code> and <code>.pagination-right</code>.</p>
946 <p>The default pagination component is flexible and works in a number of variations.</p>
947 <div class="pagination">
949 <li class="disabled"><a href="#">«</a></li>
950 <li class="active"><a href="#">1</a></li>
951 <li><a href="#">2</a></li>
952 <li><a href="#">3</a></li>
953 <li><a href="#">4</a></li>
954 <li><a href="#">»</a></li>
957 <div class="pagination">
959 <li><a href="#">«</a></li>
960 <li><a href="#">10</a></li>
961 <li class="active"><a href="#">11</a></li>
962 <li><a href="#">12</a></li>
963 <li><a href="#">»</a></li>
966 <div class="pagination">
968 <li><a href="#">←</a></li>
969 <li class="active"><a href="#">10</a></li>
970 <li class="disabled"><a href="#">...</a></li>
971 <li><a href="#">20</a></li>
972 <li><a href="#">→</a></li>
975 <div class="pagination pagination-centered">
977 <li class="active"><a href="#">1</a></li>
978 <li><a href="#">2</a></li>
979 <li><a href="#">3</a></li>
980 <li><a href="#">4</a></li>
981 <li><a href="#">5</a></li>
987 <p>Wrapped in a <code><div></code>, pagination is just a <code><ul></code>.</p>
988 <pre class="prettyprint linenums">
989 <div class="pagination">
991 <li><a href="#">Prev</a></li>
992 <li class="active">
993 <a href="#">1</a>
995 <li><a href="#">2</a></li>
996 <li><a href="#">3</a></li>
997 <li><a href="#">4</a></li>
998 <li><a href="#">Next</a></li>
1005 <h2>Pager <small>For quick previous and next links</small></h2>
1008 <h3>About pager</h3>
1009 <p>The pager component is a set of links for simple pagination implemenations with light markup and even lighter styles. It's great for simple sites like blogs or magazines.</p>
1012 <h3>Default example</h3>
1013 <p>By default, the pager centers links.</p>
1015 <li><a href="#">Previous</a></li>
1016 <li><a href="#">Next</a></li>
1018 <pre class="prettyprint linenums">
1019 <ul class="pager">
1021 <a href="#">Previous</a>
1024 <a href="#">Next</a>
1030 <h3>Aligned links</h3>
1031 <p>Alternatively, you can align each link to the sides:</p>
1033 <li class="previous"><a href="#">← Older</a></li>
1034 <li class="next"><a href="#">Newer →</a></li>
1036 <pre class="prettyprint linenums">
1037 <ul class="pager">
1038 <li class="previous">
1039 <a href="#">&larr; Older</a>
1041 <li class="next">
1042 <a href="#">Newer &rarr;</a>
1053 ================================================== -->
1054 <section id="labels">
1055 <div class="page-header">
1056 <h1>Inline labels <small>Label and annotate text</small></h1>
1058 <table class="table table-bordered table-striped">
1068 <span class="label">Default</span>
1071 <code><span class="label">Default</span></code>
1076 <span class="label label-lead">Lead</span>
1079 <code><span class="label label-lead">New</span></code>
1084 <span class="label label-note">Note</span>
1087 <code><span class="label label-note">Note</span></code>
1092 <span class="label label-contact">Contact</span>
1095 <code><span class="label label-contact">Contact</span></code>
1100 <span class="label label-document">Document</span>
1103 <code><span class="label label-document">Document</span></code>
1108 <span class="label label-file">File</span>
1111 <code><span class="label label-file">File</span></code>
1121 ================================================== -->
1122 <section id="thumbnails">
1123 <div class="page-header">
1124 <h1>Thumbnails <small>Grids of images, videos, text, and more</small></h1>
1129 <h2>Default thumbnails</h2>
1130 <p>By default, Bootstrap's thumbnails are designed to showcase linked images with minimal required markup.</p>
1131 <ul class="thumbnails">
1133 <a href="#" class="thumbnail">
1134 <img src="http://placehold.it/260x180" alt="">
1138 <a href="#" class="thumbnail">
1139 <img src="http://placehold.it/260x180" alt="">
1143 <a href="#" class="thumbnail">
1144 <img src="http://placehold.it/260x180" alt="">
1148 <a href="#" class="thumbnail">
1149 <img src="http://placehold.it/260x180" alt="">
1155 <h2>Highly customizable</h2>
1156 <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>
1157 <ul class="thumbnails">
1159 <div class="thumbnail">
1160 <img src="http://placehold.it/260x180" alt="">
1161 <div class="caption">
1162 <h5>Thumbnail label</h5>
1163 <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>
1164 <p><a href="#" class="btn primary">Action</a> <a href="#" class="btn">Action</a></p>
1169 <div class="thumbnail">
1170 <img src="http://placehold.it/260x180" alt="">
1171 <div class="caption">
1172 <h5>Thumbnail label</h5>
1173 <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>
1174 <p><a href="#" class="btn primary">Action</a> <a href="#" class="btn">Action</a></p>
1184 <h3>Why use thumbnails</h3>
1185 <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>
1188 <h3>Simple, flexible markup</h3>
1189 <p>Thumbnail markup is simple—a <code>ul</code> with any number of <code>li</code> elements is all that is required. It's also super flexible, allowing for any type of content with just a bit more markup to wrap your contents.</p>
1192 <h3>Uses grid column sizes</h3>
1193 <p>Lastly, the thumbnails component uses existing grid system classes—like <code>.span2</code> or <code>.span3</code>—for control of thumbnail dimensions.</p>
1200 <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>
1201 <pre class="prettyprint linenums">
1202 <ul class="thumbnails">
1203 <li class="span3">
1204 <a href="#" class="thumbnail">
1205 <img src="http://placehold.it/260x180" alt="">
1211 <p>For custom HTML content in thumbnails, the markup changes slightly. To allow block level content anywhere, we swap the <code><a></code> for a <code><div></code> like so:</p>
1212 <pre class="prettyprint linenums">
1213 <ul class="thumbnails">
1214 <li class="span3">
1215 <div class="thumbnail">
1216 <img src="http://placehold.it/260x180" alt="">
1217 <h5>Thumbnail label</h5>
1218 <p>Thumbnail caption right here...</p>
1226 <h2>More examples</h2>
1227 <p>Explore all your options with the various grid classes available to you. You can also mix and match different sizes.</p>
1228 <ul class="thumbnails">
1230 <a href="#" class="thumbnail">
1231 <img src="http://placehold.it/360x268" alt="">
1235 <a href="#" class="thumbnail">
1236 <img src="http://placehold.it/160x120" alt="">
1240 <a href="#" class="thumbnail">
1241 <img src="http://placehold.it/160x120" alt="">
1245 <a href="#" class="thumbnail">
1246 <img src="http://placehold.it/160x120" alt="">
1250 <a href="#" class="thumbnail">
1251 <img src="http://placehold.it/160x120" alt="">
1255 <a href="#" class="thumbnail">
1256 <img src="http://placehold.it/160x120" alt="">
1267 <!-- Alerts & Messages
1268 ================================================== -->
1269 <section id="alerts">
1270 <div class="page-header">
1271 <h1>Alerts <small>Styles for success, warning, and error messages</small></h1>
1274 <h2>Lightweight defaults</h2>
1277 <h3>Rewritten base class</h3>
1278 <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—no <code><p></code> is required by default, just the outter <code><div></code>.</p>
1279 <h3>Single alert message</h3>
1280 <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>
1282 <h3>Goes great with javascript</h3>
1283 <p>Bootstrap comes with a great jQuery plugin that supports alert messages, making dismissing them quick and easy.</p>
1284 <p><a class="btn js-btn" href="widgets.html#alerts">Get the plugin »</a></p>
1287 <h3>Example alerts</h3>
1288 <p>Wrap your message and an optional close icon in a div with simple class.</p>
1290 <a class="close">×</a>
1291 <strong>Warning!</strong> Best check yo self, you're not looking too good.
1293 <pre class="prettyprint linenums">
1294 <div class="alert">
1295 <a class="close">×</a>
1296 <strong>Warning!</strong> Best check yo self, you're not looking too good.
1299 <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>
1300 <div class="alert alert-block">
1301 <a class="close">×</a>
1302 <h4 class="alert-heading">Warning!</h4>
1303 <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>
1305 <pre class="prettyprint linenums">
1306 <div class="alert alert-block">
1307 <a class="close">×</a>
1308 <h4 class="alert-heading">Warning!</h4>
1309 Best check yo self, you're not...
1315 <h2>Contextual alternatives <small>Add optional classes to change an alert's connotation</small></h2>
1318 <h3>Error or danger</h3>
1319 <div class="alert alert-error">
1320 <a class="close">×</a>
1321 <strong>Oh snap!</strong> Change a few things up and try submitting again.
1323 <pre class="prettyprint linenums">
1324 <div class="alert alert-error">
1331 <div class="alert alert-success">
1332 <a class="close">×</a>
1333 <strong>Well done!</strong> You successfully read this important alert message.
1335 <pre class="prettyprint linenums">
1336 <div class="alert alert-success">
1342 <h3>Information</h3>
1343 <div class="alert alert-info">
1344 <a class="close">×</a>
1345 <strong>Heads up!</strong> This alert needs your attention, but it's not super important.
1347 <pre class="prettyprint linenums">
1348 <div class="alert alert-info">
1360 ================================================== -->
1361 <section id="progress">
1362 <div class="page-header">
1363 <h1>Progress bars <small>For loading, redirecting, or action status</small></h1>
1366 <h2>Examples and markup</h2>
1370 <p>Default progress bar with a vertical gradient.</p>
1371 <div class="progress">
1372 <div class="bar" style="width: 60%;"></div>
1375 <pre class="prettyprint linenums">
1376 <div class="progress">
1378 style="width: 60%;"></div>
1384 <p>Uses a gradient to create a striped effect.</p>
1385 <div class="progress progress-info progress-striped">
1386 <div class="bar" style="width: 20%;"></div>
1389 <pre class="prettyprint linenums">
1390 <div class="progress progress-info
1391 progress-striped">
1393 style="width: 20%;"></div>
1399 <p>Takes the striped example and animates it.</p>
1400 <div class="progress progress-success progress-striped active">
1401 <div class="bar" style="width: 45%"></div>
1404 <pre class="prettyprint linenums">
1405 <div class="progress progress-success
1406 progress-striped active">
1408 style="width: 40%;"></div>
1414 <h2>Options and browser support</h2>
1417 <h3>Additional colors</h3>
1418 <p>Progress bars utilize some of the same class names as buttons and alerts for similar styling.</p>
1420 <li><code>.progress-info</code></li>
1421 <li><code>.progress-success</code></li>
1422 <li><code>.progress-danger</code></li>
1424 <p>Alternatively, you can customize the LESS files and roll your own colors and sizes.</p>
1428 <p>Progress bars use CSS3 transitions, so if you dynamically adjust the width via javascript, it will smoothly resize.</p>
1429 <p>If you use the <code>.active</code> class, your <code>.progress-striped</code> progress bars will animate the stripes left to right.</p>
1432 <h3>Browser support</h3>
1433 <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>
1434 <p>Opera does not support animations at this time.</p>
1445 ================================================== -->
1447 <div class="page-header">
1448 <h1>Miscellaneous <small>Wells, badges, and close icon</small></h1>
1453 <p>Use the well as a simple effect on an element to give it an inset effect.</p>
1455 Look, I'm in a well!
1457 <pre class="prettyprint linenums">
1458 <div class="well">
1463 <div class="span4" style="display: none;">
1465 <p>Use a badge on an element for an unread count or as a simple indicator.</p>
1466 <pre class="prettyprint linenums"><span class="badge">3</div></pre>
1470 <p>Use the generic close icon for dismissing content like modals and alerts.</p>
1471 <p><a class="close" style="float: none;">×</a></p>
1472 <pre class="prettyprint linenums"><a class="close">&times;</a></pre>
1477 <script src="../../cache/include/javascript/sugar_grp1_jquery.js"></script>
1478 <script src="js/google-code-prettify/prettify.js"></script>
1479 <script src="js/application.js"></script>