5 <title>Base CSS - 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">
18 <link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,600' rel='stylesheet' type='text/css'>
20 <link href="js/google-code-prettify/prettify.css" rel="stylesheet">
21 <link href="../../themes/default/images/sugar_icon.ico" rel="SHORTCUT ICON">
23 <body data-spy="scroll" data-target=".subnav" data-offset="50">
26 ================================================== -->
27 <div class="navbar navbar-fixed-top">
28 <div class="navbar-inner">
29 <div class="container">
30 <a class="cube" href="index.html" rel="tooltip" title="Dashboard"></a>
31 <div class="nav-collapse">
34 <a href="index.html">Overview</a>
37 <a href="scaffolding.html">Scaffolding</a>
40 <a href="base-css.html">Base CSS</a>
43 <a href="components.html">Components</a>
46 <a href="widgets.html">Widgets</a>
49 <a href="less.html">Quick Styles</a>
58 <div class="container">
61 ================================================== -->
62 <header class="jumbotron subhead" id="overview">
64 <p class="lead">On top of the scaffolding, basic HTML elements are styled and enhanced with extensible classes to provide a fresh, consistent look and feel.</p>
66 <ul class="nav nav-pills">
67 <li><a href="#typography">Typography</a></li>
68 <li><a href="#code">Code</a></li>
69 <li><a href="#tables">Tables</a></li>
70 <li><a href="#forms">Forms</a></li>
71 <li><a href="#buttons">Buttons</a></li>
72 <li><a href="#icons">Icons</a></li>
79 ================================================== -->
80 <section id="typography">
81 <div class="page-header">
82 <h1>Typography <small>Headings, paragraphs, lists, and other inline type elements</small></h1>
88 <p>There should not typically be more than two types of font families used across our properties. The heading font applied to h1,h2,h3,h4 and then the main body font. </p>
92 <h4>Headings (h1-h4) - Open Sans (400 weight)</h4>
93 <p>Normal - Open Sans (400 weight)</p>
94 <p><strong>600 weight is available as well</strong></p>
98 <h2>Headings & body copy</h2>
100 <!-- Headings & Paragraph Copy -->
103 <h3>Typographic scale</h3>
104 <p>The entire typographic grid is based on two variables in our variables.less file: <code>@baseFontSize</code> and <code>@baseLineHeight</code>. The first is the base font-size used throughout and the second is the base line-height.</p>
105 <p>We use those variables, and some math, to create the margins, paddings, and line-heights of all our type and more.</p>
108 <h3>Example body text</h3>
109 <p>Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
110 <p>Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec sed odio dui.</p>
114 <h1>h1. Heading 1</h1>
115 <h2>h2. Heading 2</h2>
116 <h3>h3. Heading 3</h3>
117 <h4>h4. Heading 4</h4>
118 <h5>h5. Heading 5</h5>
119 <h6>h6. Heading 6</h6>
124 <!-- Misc Elements -->
125 <h2>Emphasis, address, and abbreviation</h2>
126 <table class="table table-bordered table-striped">
137 <code><strong></code>
140 For emphasizing a snippet of text with <strong>important</strong>
143 <span class="muted">None</span>
148 <code><em></code>
151 For emphasizing a snippet of text with <em>stress</em>
154 <span class="muted">None</span>
159 <code><abbr></code>
162 Wraps abbreviations and acronyms to show the expanded version on hover
165 Include optional <code>title</code> for expanded text
170 <code><address></code>
173 For contact information for its nearest ancestor or the entire body of work
176 Preserve formatting by ending all lines with <code><br></code>
184 <h3>Using emphasis</h3>
185 <p><a href="#">Fusce dapibus</a>, <strong>tellus ac cursus commodo</strong>, <em>tortor mauris condimentum nibh</em>, ut fermentum massa justo sit amet risus. Maecenas faucibus mollis interdum. Nulla vitae elit libero, a pharetra augue.</p>
186 <p><strong>Note:</strong> Feel free to use <code><b></code> and <code><i></code> in HTML5, but their usage has changed a bit. <code><b></code> is meant to highlight words or phrases without conveying additional importance while <code><i></code> is mostly for voice, technical terms, etc.</p>
189 <h3>Example addresses</h3>
190 <p>Here are two examples of how the <code><address></code> tag can be used:</p>
192 <strong>SugarCRM, Inc.</strong><br>
193 33 Some Ave, Suite 600<br>
194 San Francisco, CA 94107<br>
195 <abbr title="Phone">P:</abbr> (123) 456-7890
198 <strong>Full Name</strong><br>
199 <a href="mailto:#">first.last@gmail.com</a>
203 <h3>Example abbreviations</h3>
204 <p>Abbreviations are styled with uppercase text and a light dotted bottom border. They also have a help cursor on hover so users have extra indication something will be shown on hover.</p>
205 <p><abbr title="HyperText Markup Language">HTML</abbr> is the best thing since sliced bread.</p>
206 <p>An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.</p>
213 <table class="table table-bordered table-striped">
224 <code><blockquote></code>
227 Block-level element for quoting content from another source
230 <p>Add <code>cite</code> attribute for source URL</p>
231 Use <code>.pull-left</code> and <code>.pull-right</code> classes for floated options
236 <code><small></code>
239 Optional element for adding a user-facing citation, typically an author with title of work
242 Place the <code><cite></code> around the title or name of source
249 <p>To include a blockquote, wrap <code><blockquote></code> around any <abbr title="HyperText Markup Language">HTML</abbr> as the quote. For straight quotes we recommend a <code><p></code>.</p>
250 <p>Include an optional <code><small></code> element to cite your source and you'll get an em dash <code>&mdash;</code> before it for styling purposes.</p>
253 <pre class="prettyprint linenums">
255 <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.</p>
256 <small>Someone famous</small>
262 <h3>Example blockquotes</h3>
265 <p>Default blockquotes are styled as such:</p>
267 <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.</p>
268 <small>Someone famous in <cite title="">Body of work</cite></small>
272 <p>To float your blockquote to the right, add <code>class="pull-right"</code>:</p>
273 <blockquote class="pull-right">
274 <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.</p>
275 <small>Someone famous in <cite title="">Body of work</cite></small>
286 <p><code><ul></code></p>
288 <li>Lorem ipsum dolor sit amet</li>
289 <li>Consectetur adipiscing elit</li>
290 <li>Integer molestie lorem at massa</li>
291 <li>Facilisis in pretium nisl aliquet</li>
292 <li>Nulla volutpat aliquam velit
294 <li>Phasellus iaculis neque</li>
295 <li>Purus sodales ultricies</li>
296 <li>Vestibulum laoreet porttitor sem</li>
297 <li>Ac tristique libero volutpat at</li>
300 <li>Faucibus porta lacus fringilla vel</li>
301 <li>Aenean sit amet erat nunc</li>
302 <li>Eget porttitor lorem</li>
307 <p><code><ul class="unstyled"></code></p>
308 <ul class="unstyled">
309 <li>Lorem ipsum dolor sit amet</li>
310 <li>Consectetur adipiscing elit</li>
311 <li>Integer molestie lorem at massa</li>
312 <li>Facilisis in pretium nisl aliquet</li>
313 <li>Nulla volutpat aliquam velit
315 <li>Phasellus iaculis neque</li>
316 <li>Purus sodales ultricies</li>
317 <li>Vestibulum laoreet porttitor sem</li>
318 <li>Ac tristique libero volutpat at</li>
321 <li>Faucibus porta lacus fringilla vel</li>
322 <li>Aenean sit amet erat nunc</li>
323 <li>Eget porttitor lorem</li>
328 <p><code><ol></code></p>
330 <li>Lorem ipsum dolor sit amet</li>
331 <li>Consectetur adipiscing elit</li>
332 <li>Integer molestie lorem at massa</li>
333 <li>Facilisis in pretium nisl aliquet</li>
334 <li>Nulla volutpat aliquam velit</li>
335 <li>Faucibus porta lacus fringilla vel</li>
336 <li>Aenean sit amet erat nunc</li>
337 <li>Eget porttitor lorem</li>
342 <p><code><dl></code></p>
344 <dt>Description lists</dt>
345 <dd>A description list is perfect for defining terms.</dd>
347 <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
348 <dd>Donec id elit non mi porta gravida at eget metus.</dd>
349 <dt>Malesuada porta</dt>
350 <dd>Etiam porta sem malesuada magna mollis euismod.</dd>
359 ================================================== -->
361 <div class="page-header">
362 <h1>Code <small>Inline and block code snippets</small></h1>
367 <p>Wrap inline snippets of code with <code><code></code>.</p>
368 <pre class="prettyprint linenums">
369 For example, <code>section</code> should be wrapped as inline.
374 <p>Use <code><pre></code> for multiple lines of code. Be sure to turn any carets into their unicode characters for proper rendering.</p>
376 <p>Sample text here...</p>
378 <pre class="prettyprint linenums" style="margin-bottom: 9px;">
380 &lt;p&gt;Sample text here...&lt;/p&gt;
383 <p><strong>Note:</strong> Be sure to keep code within <code><pre></code> tags as close to the left as possible; it will render all tabs.</p>
386 <h2>Google Prettify</h2>
387 <p>Take the same <code><pre></code> element and add two optional classes for enhanced rendering.</p>
388 <pre class="prettyprint linenums" style="margin-bottom: 9px;">
389 <p>Sample text here...</p>
391 <pre class="prettyprint linenums" style="margin-bottom: 9px;">
392 <pre class="prettyprint
394 &lt;p&gt;Sample text here...&lt;/p&gt;
397 <p><a href="http://code.google.com/p/google-code-prettify/">Download google-code-prettify</a> and view the readme for <a href="http://google-code-prettify.googlecode.com/svn/trunk/README.html">how to use</a>.</p>
405 ================================================== -->
406 <section id="tables">
407 <div class="page-header">
408 <h1>Tables <small>For, you guessed it, tabular data</small></h1>
411 <h2>Table markup</h2>
414 <table class="table table-bordered table-striped">
424 <code><table></code>
427 Wrapping element for displaying data in a tabular format
432 <code><thead></code>
435 Container element for table header rows (<code><tr></code>) to label table columns
440 <code><tbody></code>
443 Container element for table rows (<code><tr></code>) in the body of the table
448 <code><tr></code>
451 Container element for a set of table cells (<code><td></code> or <code><th></code>) that appears on a single row
456 <code><td></code>
464 <code><th></code>
467 Special table cell for column (or row, depending on scope and placement) labels<br>
468 Must be used within a <code><thead></code>
473 <code><caption></code>
476 Description or summary of what the table holds, especially useful for screen readers
483 <pre class="prettyprint linenums">
487 <th>…</th>
488 <th>…</th>
493 <td>…</td>
494 <td>…</td>
502 <h2>Table options</h2>
503 <table class="table table-bordered table-striped">
514 <td class="muted">None</td>
515 <td>No styles, just columns and rows</td>
522 <td>Only horizontal lines between rows</td>
527 <code>.table-bordered</code>
529 <td>Rounds corners and adds outter border</td>
532 <td>Zebra-stripe</td>
534 <code>.table-striped</code>
536 <td>Adds light gray background color to odd rows (1, 3, 5, etc)</td>
541 <code>.table-condensed</code>
543 <td>Cuts vertical padding in half, from 8px to 4px, within all <code>td</code> and <code>th</code> elements</td>
549 <h2>Example tables</h2>
551 <h3>1. Default table styles</h3>
554 <p>Tables are automatically styled with only a few borders to ensure readability and maintain structure. With 2.0, the <code>.table</code> class is required.</p>
555 <pre class="prettyprint linenums">
556 <table class="table">
561 <table class="table">
595 <h3>2. Striped table</h3>
598 <p>Get a little fancy with your tables by adding zebra-striping—just add the <code>.table-striped</code> class.</p>
599 <p class="muted"><strong>Note:</strong> Striped tables use the <code>:nth-child</code> CSS selector and is not available in IE7-IE8.</p>
600 <pre class="prettyprint linenums" style="margin-bottom: 18px;">
601 <table class="table table-striped">
606 <table class="table table-striped">
640 <h3>3. Bordered table</h3>
643 <p>Add borders around the entire table and rounded corners for aesthetic purposes.</p>
644 <pre class="prettyprint linenums">
645 <table class="table table-bordered">
650 <table class="table table-bordered">
662 <td colspan="2">Mark Otto</td>
669 <td rowspan="2">Javascript</td>
688 <h3>4. Condensed table</h3>
691 <p>Make your tables more compact by adding the <code>.table-condensed</code> class to cut table cell padding in half (from 8px to 4px).</p>
692 <pre class="prettyprint linenums" style="margin-bottom: 18px;">
693 <table class="table table-condensed">
698 <table class="table table-condensed">
733 <h3>5. Combine them all!</h3>
736 <p>Feel free to combine any of the table classes to achieve different looks by utilizing any of the available classes.</p>
737 <pre class="prettyprint linenums" style="margin-bottom: 18px;">
738 <table class="table table-striped table-bordered table-condensed">
743 <table class="table table-striped table-bordered table-condensed">
786 ================================================== -->
788 <div class="page-header">
793 <h2>Flexible HTML and CSS</h2>
794 <p>The best part about forms in Bootstrap is that all your inputs and controls look great no matter how you build them in your markup. No superfluous HTML is required, but we provide the patterns for those who require it.</p>
795 <p>More complicated layouts come with succinct and scalable classes for easy styling and event binding, so you're covered at every step.</p>
798 <h2>Four layouts included</h2>
799 <p>Bootstrap comes with support for four types of form layouts:</p>
801 <li>Vertical (default)</li>
806 <p>Different types of form layouts require some changes to markup, but the controls themselves remain and behave the same.</p>
809 <h2>Control states and more</h2>
810 <p>Bootstrap's forms include styles for all the base form controls like input, textarea, and select you'd expect. But it also comes with a number of custom components like appended and prepended inputs and support for lists of checkboxes.</p>
811 <p>States like error, warning, and success are included for each type of form control. Also included are styles for disabled controls.</p>
815 <h2>Four types of forms</h2>
816 <p>Bootstrap provides simple markup and styles for four styles of common web forms.</p>
817 <table class="table table-bordered table-striped">
827 <th>Vertical (default)</th>
828 <td><code>.form-vertical</code> <span class="muted">(not required)</span></td>
829 <td>Stacked, left-aligned labels over controls</td>
833 <td><code>.form-inline</code></td>
834 <td>Left-aligned label and inline-block controls for compact style</td>
838 <td><code>.form-search</code></td>
839 <td>Extra-rounded text input for a typical search aesthetic</td>
843 <td><code>.form-horizontal</code></td>
844 <td>Float left, right-aligned labels on same line as controls</td>
850 <h2>Example forms <small>using just form controls, no extra markup</small></h2>
854 <p>With v2.0, we have lighter and smarter defaults for form styles. No extra markup, just form controls.</p>
858 <label>Label name</label>
859 <input type="text" class="span3" placeholder="Type something…"> <span class="help-inline">Associated help text!</span>
860 <label class="checkbox">
861 <input type="checkbox"> Check me out
863 <button type="submit" class="btn">Submit</button>
870 <p>Reflecting default WebKit styles, just add <code>.form-search</code> for extra rounded search fields.</p>
873 <form class="well form-search">
874 <input type="text" class="input-medium search-query">
875 <button type="submit" class="btn">Search</button>
882 <p>Inputs are block level to start. For <code>.form-inline</code> and <code>.form-horizontal</code>, we use inline-block.</p>
885 <form class="well form-search">
886 <input type="text" class="input-small" placeholder="Email">
887 <input type="password" class="input-small" placeholder="Password">
888 <button type="submit" class="btn">Go</button>
895 <h2>Horizontal forms</h2>
898 <form class="form-horizontal">
900 <legend>Controls Bootstrap supports</legend>
901 <div class="control-group">
902 <label class="control-label" for="input01">Text input</label>
903 <div class="controls">
904 <input type="text" class="input-xlarge" id="input01">
905 <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p>
908 <div class="control-group">
909 <label class="control-label" for="optionsCheckbox">Checkbox</label>
910 <div class="controls">
911 <label class="checkbox">
912 <input type="checkbox" id="optionsCheckbox" value="option1">
913 Option one is this and that—be sure to include why it's great
917 <div class="control-group">
918 <label class="control-label" for="select01">Select list</label>
919 <div class="controls">
920 <select id="select01">
921 <option>something</option>
929 <div class="control-group">
930 <label class="control-label" for="multiSelect">Multicon-select</label>
931 <div class="controls">
932 <select multiple="multiple" id="multiSelect">
941 <div class="control-group">
942 <label class="control-label" for="fileInput">File input</label>
943 <div class="controls">
944 <input class="input-file" id="fileInput" type="file">
947 <div class="control-group">
948 <label class="control-label" for="textarea">Textarea</label>
949 <div class="controls">
950 <textarea class="input-xlarge" id="textarea" rows="3"></textarea>
953 <div class="form-actions">
954 <button type="submit" class="btn btn-primary">Save changes</button>
955 <button type="reset" class="btn">Cancel</button>
961 <h3>What's included</h3>
962 <p>Shown on the left are all the default form controls we support. Here's the bulleted list:</p>
964 <li>text inputs (text, password, email, etc)</li>
968 <li>multiple select</li>
973 <h3>New defaults with v2.0</h3>
974 <p>Up to v1.4, Bootstrap's default form styles used the horizontal layout. With Bootstrap 2, we removed that constraint to have smarter, more scalable defaults for any form.</p>
982 <form class="form-horizontal">
984 <legend>Form control states</legend>
985 <div class="control-group">
986 <label class="control-label" for="focusedInput">Focused input</label>
987 <div class="controls">
988 <input class="input-xlarge focused" id="focusedInput" type="text" value="This is focused…">
991 <div class="control-group">
992 <label class="control-label">Uneditable input</label>
993 <div class="controls">
994 <span class="input-xlarge uneditable-input">Some value here</span>
997 <div class="control-group">
998 <label class="control-label" for="disabledInput">Disabled input</label>
999 <div class="controls">
1000 <input class="input-xlarge disabled" id="disabledInput" type="text" placeholder="Disabled input here…" disabled>
1003 <div class="control-group">
1004 <label class="control-label" for="optionsCheckbox2">Disabled checkbox</label>
1005 <div class="controls">
1006 <label class="checkbox">
1007 <input type="checkbox" id="optionsCheckbox2" value="option1" disabled>
1008 This is a disabled checkbox
1012 <div class="control-group warning">
1013 <label class="control-label" for="inputError">Input with warning</label>
1014 <div class="controls">
1015 <input type="text" id="inputError">
1016 <span class="help-inline"><span class="btn btn-warning"><i class="icon-white icon-warning-sign"></i></span> Warning, man down.</span>
1019 <div class="control-group error">
1020 <label class="control-label" for="inputError">Input with error</label>
1021 <div class="controls">
1022 <input type="text" id="inputError">
1023 <span class="help-inline"><span class="btn btn-danger"><i class="icon-white icon-exclamation-sign"></i></span> Please correct the error</span>
1026 <div class="control-group success">
1027 <label class="control-label" for="inputError">Input with success</label>
1028 <div class="controls">
1029 <input type="text" id="inputError">
1030 <span class="help-inline"><span class="btn btn-success"><i class="icon-white icon-ok-sign"></i></span> Woohoo!</span>
1033 <div class="control-group success">
1034 <label class="control-label" for="selectError">Select with success</label>
1035 <div class="controls">
1036 <select id="selectError">
1043 <span class="help-inline"><span class="btn btn-success"><i class="icon-white icon-ok-sign"></i></span> Woohoo!</span>
1046 <div class="form-actions">
1047 <button type="submit" class="btn btn-primary">Save changes</button>
1048 <button type="reset" class="btn">Cancel</button>
1054 <h3>Redesigned browser states</h3>
1055 <p>Bootstrap features styles for browser-supported focused and <code>disabled</code> states. We remove the default Webkit <code>outline</code> and apply a <code>box-shadow</code> in it's place for <code>:focus</code>.</p>
1057 <h3>Form validation</h3>
1058 <p>It also includes validation styles for errors, warnings, and success. To use, add the error class to the surrounding <code>.control-group</code>.</p>
1059 <pre class="prettyprint linenums">
1061 class="control-group error">
1072 <form class="form-horizontal">
1074 <legend>Extending form controls</legend>
1075 <div class="control-group">
1076 <label class="control-label">Form sizes</label>
1077 <div class="controls docs-input-sizes">
1078 <input class="span1" type="text" placeholder=".span1">
1079 <input class="span2" type="text" placeholder=".span2">
1080 <input class="span3" type="text" placeholder=".span3">
1081 <select class="span1">
1088 <select class="span2">
1095 <select class="span3">
1102 <p class="help-block">Use the same <code>.span*</code> classes from the grid system for input sizes.</p>
1105 <div class="control-group">
1106 <label class="control-label" for="prependedInput">Prepended text</label>
1107 <div class="controls">
1108 <div class="input-prepend">
1109 <span class="add-on">@</span>
1110 <input class="span2" id="prependedInput" size="16" type="text">
1112 <p class="help-block">Here's some help text</p>
1115 <div class="control-group">
1116 <label class="control-label" for="appendedInput">Appended text</label>
1117 <div class="controls">
1118 <div class="input-append">
1119 <input class="span2" id="appendedInput" size="16" type="text">
1120 <span class="add-on">.00</span>
1122 <p class="help-block">Here's more help text</p>
1125 <div class="control-group">
1126 <label class="control-label" for="inlineCheckboxes">Inline checkboxes</label>
1127 <div class="controls">
1128 <label class="checkbox inline">
1129 <input type="checkbox" id="inlineCheckbox1" value="option1"> 1
1131 <label class="checkbox inline">
1132 <input type="checkbox" id="inlineCheckbox2" value="option2"> 2
1134 <label class="checkbox inline">
1135 <input type="checkbox" id="inlineCheckbox3" value="option3"> 3
1139 <div class="control-group">
1140 <label class="control-label" for="optionsCheckboxList">Checkboxes</label>
1141 <div class="controls">
1142 <label class="checkbox">
1143 <input type="checkbox" name="optionsCheckboxList1" value="option1">
1144 Option one is this and that—be sure to include why it's great
1146 <label class="checkbox">
1147 <input type="checkbox" name="optionsCheckboxList2" value="option2">
1148 Option two can also be checked and included in form results
1150 <label class="checkbox">
1151 <input type="checkbox" name="optionsCheckboxList3" value="option3">
1152 Option three can—yes, you guessed it—also be checked and included in form results
1154 <p class="help-block"><strong>Note:</strong> Labels surround all the options for much larger click areas and a more usable form.</p>
1157 <div class="control-group">
1158 <label class="control-label">Radio buttons</label>
1159 <div class="controls">
1160 <label class="radio">
1161 <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
1162 Option one is this and that—be sure to include why it's great
1164 <label class="radio">
1165 <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
1166 Option two can is something else and selecting it will deselect option one
1170 <div class="form-actions">
1171 <button type="submit" class="btn btn-primary">Save changes</button>
1172 <button type="reset" class="btn">Cancel</button>
1178 <h3>Prepend & append inputs</h3>
1179 <p>Input groups—with appended or prepended text—provide an easy way to give more context for your inputs. Great examples include the @ sign for Twitter usernames or $ for finances.</p>
1181 <h3>Checkboxes and radios</h3>
1182 <p>Up to v1.4, Bootstrap required extra markup around checkboxes and radios to stack them. Now, it's a simple matter of repeating the <code><label class="checkbox"></code> that wraps the <code><input type="checkbox"></code>.</p>
1183 <p>Inline checkboxes and radios are also supported. Just add <code>.inline</code> to any <code>.checkbox</code> or <code>.radio</code> and you're done.</p>
1185 <h4>Inline forms and append/prepend</h4>
1186 <p>To use prepend or append inputs in an inline form, be sure to place the <code>.add-on</code> and <code>input</code> on the same line, without spaces.</p>
1188 <h4>Form help text</h4>
1189 <p>To add help text for your form inputs, include inline help text with <code><span class="help-inline"></code> or a help text block with <code><p class="help-block"></code> after the input element.</p>
1197 ================================================== -->
1198 <section id="buttons">
1199 <div class="page-header">
1202 <table class="table table-bordered table-striped">
1208 <th>Description</th>
1213 <td><a class="btn" href="#">Default</a></td>
1214 <td><code>.btn</code></td>
1215 <td>#fff with 10% darker gradient effect</td>
1216 <td>Standard gray button with gradient</td>
1219 <td><a class="btn btn-primary" href="#">Primary</a></td>
1220 <td><code>.btn-primary</code></td>
1221 <td>#177EE5 with 10% darker gradient effect</td>
1222 <td>Provides extra visual weight and identifies the primary action in a set of buttons</td>
1225 <td><a class="btn btn-info" href="#">Info</a></td>
1226 <td><code>.btn-info</code></td>
1227 <td>#71B1F1 with 10% darker gradient effect</td>
1228 <td>Used as an alternate but compliments the primary to the default styles</td>
1231 <td><a class="btn btn-success" href="#">Success</a></td>
1232 <td><code>.btn-success</code></td>
1233 <td>#3FB300 with 10% darker gradient effect</td>
1234 <td>Indicates a successful or positive action</td>
1237 <td><a class="btn btn-warning" href="#">Warning</a></td>
1238 <td><code>.btn-warning</code></td>
1239 <td>#E57417 with 10% darker gradient effect</td>
1240 <td>Indicates caution should be taken with this action</td>
1243 <td><a class="btn btn-danger" href="#">Danger</a></td>
1244 <td><code>.btn-danger</code></td>
1245 <td>#E61718 with 10% darker gradient effect</td>
1246 <td>Indicates a dangerous or potentially negative action</td>
1253 <h3>Buttons for actions</h3>
1254 <p>As a convention, buttons should only be used for actions while hyperlinks are to be used for objects. For instance, "Download" should be a button while "recent activity" should be a link.</p>
1257 <h3>For anchors and forms</h3>
1258 <p>Button styles can be applied to anything with the <code>.btn</code> applied. However, typically you'll want to apply these to only <code><a></code> and <code><button></code> elements.</p>
1261 <p><strong>Note:</strong> All buttons must include the <code>.btn</code> class. Button styles should be applied to <code><button></code> and <code><a></code> elements for consistency.</p>
1267 <h3>Multiple sizes</h3>
1268 <p>Fancy larger or smaller buttons? Have at it!</p>
1270 <a href="#" class="btn btn-large btn-primary">Primary action</a>
1271 <a href="#" class="btn btn-large">Action</a>
1274 <a href="#" class="btn btn-small btn-primary">Primary action</a>
1275 <a href="#" class="btn btn-small">Action</a>
1279 <h3>Disabled state</h3>
1280 <p>For disabled buttons, use <code>.btn-disabled</code> for links and <code>:disabled</code> for <code><button></code> elements.</p>
1282 <a href="#" class="btn btn-primary disabled">Primary action</a>
1283 <a href="#" class="btn disabled">Action</a>
1286 <button class="btn btn-primary disabled" disabled="disabled">Primary action</button>
1287 <button class="btn" disabled>Action</button>
1291 <h3>Cross browser compatibility</h3>
1292 <p>In IE9, we drop the gradient on all buttons in favor of rounded corners as IE9 doesn't crop background gradients to the corners.</p>
1293 <p>Related, IE9 jankifies disabled <code>button</code> elements, rendering text gray with a nasty text-shadow—unfortunately we can't fix this.</p>
1304 ================================================== -->
1305 <section id="icons" class="row">
1306 <div class="span12">
1308 <p>Inspired by the Glyphicon set that comes with <a href="http://twitter.github.com/bootstrap/" target="_blank">Twitter Bootstrap 2.0</a>, Font Awesome is designed from scratch for a full array of web-related actions.</p>
1311 <ul class="the-icons">
1312 <li class="icon-glass"></li>
1313 <li class="icon-music"></li>
1314 <li class="icon-search"></li>
1315 <li class="icon-envelope"></li>
1316 <li class="icon-heart"></li>
1317 <li class="icon-star"></li>
1318 <li class="icon-star-empty"></li>
1319 <li class="icon-user"></li>
1320 <li class="icon-film"></li>
1321 <li class="icon-th-large"></li>
1322 <li class="icon-th"></li>
1323 <li class="icon-th-list"></li>
1324 <li class="icon-ok"></li>
1325 <li class="icon-remove"></li>
1326 <li class="icon-zoom-in"></li>
1328 <li class="icon-zoom-out"></li>
1329 <li class="icon-off"></li>
1330 <li class="icon-signal"></li>
1331 <li class="icon-cog"></li>
1332 <li class="icon-trash"></li>
1333 <li class="icon-home"></li>
1334 <li class="icon-file"></li>
1335 <li class="icon-time"></li>
1336 <li class="icon-road"></li>
1337 <li class="icon-download-alt"></li>
1338 <li class="icon-download"></li>
1339 <li class="icon-upload"></li>
1340 <li class="icon-inbox"></li>
1341 <li class="icon-play-circle"></li>
1342 <li class="icon-repeat"></li>
1344 <li class="icon-camera-retro"></li>
1345 <li class="icon-bar-chart"></li>
1346 <li class="icon-cogs"></li>
1347 <li class="icon-external-link"></li>
1348 <li class="icon-pushpin"></li>
1353 <ul class="the-icons">
1354 <li class="icon-refresh"></li>
1355 <li class="icon-list-alt"></li>
1356 <li class="icon-lock"></li>
1357 <li class="icon-flag"></li>
1358 <li class="icon-headphones"></li>
1359 <li class="icon-volume-off"></li>
1360 <li class="icon-volume-down"></li>
1361 <li class="icon-volume-up"></li>
1362 <li class="icon-qrcode"></li>
1363 <li class="icon-barcode"></li>
1364 <li class="icon-tag"></li>
1365 <li class="icon-tags"></li>
1366 <li class="icon-book"></li>
1367 <li class="icon-bookmark"></li>
1368 <li class="icon-print"></li>
1370 <li class="icon-camera"></li>
1371 <li class="icon-font"></li>
1372 <li class="icon-bold"></li>
1373 <li class="icon-italic"></li>
1374 <li class="icon-text-height"></li>
1375 <li class="icon-text-width"></li>
1376 <li class="icon-align-left"></li>
1377 <li class="icon-align-center"></li>
1378 <li class="icon-align-right"></li>
1379 <li class="icon-align-justify"></li>
1380 <li class="icon-list"></li>
1381 <li class="icon-indent-left"></li>
1382 <li class="icon-indent-right"></li>
1383 <li class="icon-facetime-video"></li>
1384 <li class="icon-picture"></li>
1386 <li class="icon-facebook-sign"></li>
1387 <li class="icon-twitter-sign"></li>
1388 <li class="icon-linkedin-sign"></li>
1389 <li class="icon-github-sign"></li>
1390 <li class="icon-key"></li>
1395 <ul class="the-icons">
1396 <li class="icon-pencil"></li>
1397 <li class="icon-map-marker"></li>
1398 <li class="icon-adjust"></li>
1399 <li class="icon-tint"></li>
1400 <li class="icon-edit"></li>
1401 <li class="icon-share"></li>
1402 <li class="icon-check"></li>
1403 <li class="icon-move"></li>
1404 <li class="icon-step-backward"></li>
1405 <li class="icon-fast-backward"></li>
1406 <li class="icon-backward"></li>
1407 <li class="icon-play"></li>
1408 <li class="icon-pause"></li>
1409 <li class="icon-stop"></li>
1410 <li class="icon-forward"></li>
1412 <li class="icon-fast-forward"></li>
1413 <li class="icon-step-forward"></li>
1414 <li class="icon-eject"></li>
1415 <li class="icon-chevron-left"></li>
1416 <li class="icon-chevron-right"></li>
1417 <li class="icon-plus-sign"></li>
1418 <li class="icon-minus-sign"></li>
1419 <li class="icon-remove-sign"></li>
1420 <li class="icon-ok-sign"></li>
1421 <li class="icon-question-sign"></li>
1422 <li class="icon-info-sign"></li>
1423 <li class="icon-screenshot"></li>
1424 <li class="icon-remove-circle"></li>
1425 <li class="icon-ok-circle"></li>
1426 <li class="icon-ban-circle"></li>
1428 <li class="icon-thumbs-up"></li>
1429 <li class="icon-thumbs-down"></li>
1430 <li class="icon-comments"></li>
1431 <li class="icon-trophy"></li>
1432 <li class="icon-upload-alt"></li>
1437 <ul class="the-icons">
1438 <li class="icon-arrow-left"></li>
1439 <li class="icon-arrow-right"></li>
1440 <li class="icon-arrow-up"></li>
1441 <li class="icon-arrow-down"></li>
1442 <li class="icon-share-alt"></li>
1443 <li class="icon-resize-full"></li>
1444 <li class="icon-resize-small"></li>
1445 <li class="icon-plus"></li>
1446 <li class="icon-minus"></li>
1447 <li class="icon-asterisk"></li>
1448 <li class="icon-exclamation-sign"></li>
1449 <li class="icon-gift"></li>
1450 <li class="icon-leaf"></li>
1451 <li class="icon-fire"></li>
1452 <li class="icon-eye-open"></li>
1454 <li class="icon-eye-close"></li>
1455 <li class="icon-warning-sign"></li>
1456 <li class="icon-plane"></li>
1457 <li class="icon-calendar"></li>
1458 <li class="icon-random"></li>
1459 <li class="icon-comment"></li>
1460 <li class="icon-magnet"></li>
1461 <li class="icon-chevron-up"></li>
1462 <li class="icon-chevron-down"></li>
1463 <li class="icon-retweet"></li>
1464 <li class="icon-shopping-cart"></li>
1465 <li class="icon-folder-close"></li>
1466 <li class="icon-folder-open"></li>
1467 <li class="icon-resize-vertical"></li>
1468 <li class="icon-resize-horizontal"></li>
1470 <li class="icon-signin"></li>
1471 <li class="icon-signout"></li>
1472 <li class="icon-star-half"></li>
1473 <li class="icon-heart-empty"></li>
1474 <li class="icon-lemon"></li>
1478 <section id="examples">
1484 <li class="icon-ok">Bulleted lists (like this one)</li>
1485 <li class="icon-ok">Buttons</li>
1486 <li class="icon-ok">Button groups</li>
1487 <li class="icon-ok">Navigation</li>
1488 <li class="icon-ok">Prepended form inputs</li>
1489 <li class="icon-ok">And many more with Custom CSS</li>
1492 <p>Scale it with icon-sm (16px), icon-md (26px), icon-lg (42px), icon-xl (68px)</p><br>
1494 <i class="icon-trophy icon-sm"></i> <i class="icon-trophy icon-md"></i> <i class="icon-trophy icon-lg"></i> <i class="icon-trophy icon-xl"></i>
1499 <a class="btn" href="#"><i class="icon-refresh"></i> Refresh</a>
1500 <a class="btn btn-success" href="#"><i class="icon-shopping-cart icon-large"></i> Checkout</a>
1501 <a class="btn btn-danger" href="#"><i class="icon-trash icon-large"></i> Delete</a>
1504 <a class="btn btn-large btn-primary" href="#"><i class="icon-comment"></i> Comment</a>
1505 <a class="btn btn-small" href="#"><i class="icon-cog"></i> Settings</a>
1506 <a class="btn btn-small btn-info" href="#"><i class="icon-info-sign"></i> More Info</a>
1508 <div class="well" style="padding: 8px 0;">
1509 <ul class="nav nav-list">
1510 <li class="active"><a href="#"><i class="icon-home"></i> Home</a></li>
1511 <li><a href="#"><i class="icon-book"></i> Library</a></li>
1512 <li><a href="#"><i class="icon-pencil"></i> Applications</a></li>
1513 <li><a href="#"><i class="icon-cogs"></i> Settings</a></li>
1518 <div class="btn-toolbar">
1519 <div class="btn-group">
1520 <a class="btn" href="#"><i class="icon-align-left"></i></a>
1521 <a class="btn" href="#"><i class="icon-align-center"></i></a>
1522 <a class="btn" href="#"><i class="icon-align-right"></i></a>
1523 <a class="btn" href="#"><i class="icon-align-justify"></i></a>
1525 <div class="btn-group">
1526 <a class="btn btn-primary" href="#"><i class="icon-user"></i> User</a>
1527 <a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#"><span class="icon-chevron-down"></span></a>
1528 <ul class="dropdown-menu">
1529 <li><a href="#"><i class="icon-pencil"></i> Edit</a></li>
1530 <li><a href="#"><i class="icon-trash"></i> Delete</a></li>
1531 <li><a href="#"><i class="icon-ban-circle"></i> Ban</a></li>
1532 <li class="divider"></li>
1533 <li><a href="#"><i class="i"></i> Make admin</a></li>
1538 <div class="control-group">
1539 <div class="controls">
1540 <div class="input-prepend">
1541 <span class="add-on"><i class="icon-envelope"></i></span>
1542 <input class="span2" id="inputIcon" type="text" placeholder="Email address">
1546 <div class="control-group">
1547 <div class="controls">
1548 <div class="input-prepend">
1549 <span class="add-on"><i class="icon-key"></i></span>
1550 <input class="span2" id="inputIcon2" type="text" placeholder="Password">
1556 <span class="rating">
1557 <span class="star"></span><span class="star"></span><span class="star"></span><span class="star"></span><span class="star"></span>
1565 <script src="../../cache/include/javascript/sugar_grp1_jquery.js"></script>
1566 <script src="js/google-code-prettify/prettify.js"></script>
1567 <script src="js/application.js"></script>