PageRenderTime 56ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 1ms

/wp-content/themes/motive/page-styleguide.php

https://bitbucket.org/space87/wordpressstart
PHP | 2001 lines | 1972 code | 20 blank | 9 comment | 7 complexity | 24d62516ee9912d6baa21300cba9c69c MD5 | raw file

Large files files are truncated, but you can click here to view the full file

  1. <?php
  2. /**
  3. * Template Name: Style Guide, no sidebar
  4. *
  5. * @package WordPress
  6. * @subpackage WP-Bootstrap
  7. * @since WP-Bootstrap 0.7
  8. *
  9. * Last Updated: September 9, 2012
  10. */
  11. get_header(); ?>
  12. <?php while ( have_posts() ) : the_post(); ?>
  13. <!-- Subhead
  14. ================================================== -->
  15. <header class="jumbotron subhead" id="overview">
  16. <div class="container">
  17. <h1>Base CSS</h1>
  18. <p class="lead">Fundamental HTML elements styled and enhanced with extensible classes.</p>
  19. </div>
  20. </header>
  21. <div class="container">
  22. <!-- Docs nav
  23. ================================================== -->
  24. <div class="row">
  25. <div class="span3 bs-docs-sidebar">
  26. <ul class="nav nav-list bs-docs-sidenav">
  27. <li><a href="#typography"><i class="icon-chevron-right"></i> Typography</a></li>
  28. <li><a href="#code"><i class="icon-chevron-right"></i> Code</a></li>
  29. <li><a href="#tables"><i class="icon-chevron-right"></i> Tables</a></li>
  30. <li><a href="#forms"><i class="icon-chevron-right"></i> Forms</a></li>
  31. <li><a href="#buttons"><i class="icon-chevron-right"></i> Buttons</a></li>
  32. <li><a href="#images"><i class="icon-chevron-right"></i> Images</a></li>
  33. <li><a href="#icons"><i class="icon-chevron-right"></i> Icons by Glyphicons</a></li>
  34. </ul>
  35. </div>
  36. <div class="span9">
  37. <!-- Typography
  38. ================================================== -->
  39. <section id="typography">
  40. <div class="page-header">
  41. <h1>Typography</h1>
  42. </div>
  43. <h2 id="headings">Headings</h2>
  44. <p>All HTML headings, <code>&lt;h1&gt;</code> through <code>&lt;h6&gt;</code> are available.</p>
  45. <div class="bs-docs-example">
  46. <h1>h1. Heading 1</h1>
  47. <h2>h2. Heading 2</h2>
  48. <h3>h3. Heading 3</h3>
  49. <h4>h4. Heading 4</h4>
  50. <h5>h5. Heading 5</h5>
  51. <h6>h6. Heading 6</h6>
  52. </div>
  53. <h2 id="body-copy">Body copy</h2>
  54. <p>Bootstrap's global default <code>font-size</code> is <strong>14px</strong>, with a <code>line-height</code> of <strong>20px</strong>. This is applied to the <code>&lt;body&gt;</code> and all paragraphs. In addition, <code>&lt;p&gt;</code> (paragraphs) receive a bottom margin of half their line-height (10px by default).</p>
  55. <div class="bs-docs-example">
  56. <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.</p>
  57. <p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec ullamcorper nulla non metus auctor fringilla. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Donec ullamcorper nulla non metus auctor fringilla.</p>
  58. <p>Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</p>
  59. </div>
  60. <pre class="prettyprint">&lt;p&gt;...&lt;/p&gt;</pre>
  61. <h3>Lead body copy</h3>
  62. <p>Make a paragraph stand out by adding <code>.lead</code>.</p>
  63. <div class="bs-docs-example">
  64. <p class="lead">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.</p>
  65. </div>
  66. <pre class="prettyprint">&lt;p class="lead"&gt;...&lt;/p&gt;</pre>
  67. <h3>Built with Less</h3>
  68. <p>The typographic scale is based on two LESS variables in <strong>variables.less</strong>: <code>@baseFontSize</code> and <code>@baseLineHeight</code>. The first is the base font-size used throughout and the second is the base line-height. We use those variables and some simple math to create the margins, paddings, and line-heights of all our type and more. Customize them and Bootstrap adapts.</p>
  69. <hr class="bs-docs-separator">
  70. <h2 id="emphasis">Emphasis</h2>
  71. <p>Make use of HTML's default emphasis tags with lightweight styles.</p>
  72. <h3><code>&lt;small&gt;</code></h3>
  73. <p>For de-emphasizing inline or blocks of text, <small>use the small tag.</small></p>
  74. <div class="bs-docs-example">
  75. <p><small>This line of text is meant to be treated as fine print.</small></p>
  76. </div>
  77. <pre class="prettyprint">
  78. &lt;p&gt;
  79. &lt;small&gt;This line of text is meant to be treated as fine print.&lt;/small&gt;
  80. &lt;/p&gt;
  81. </pre>
  82. <h3>Bold</h3>
  83. <p>For emphasizing a snippet of text with a heavier font-weight.</p>
  84. <div class="bs-docs-example">
  85. <p>The following snippet of text is <strong>rendered as bold text</strong>.</p>
  86. </div>
  87. <pre class="prettyprint">&lt;strong&gt;rendered as bold text&lt;/strong&gt;</pre>
  88. <h3>Italics</h3>
  89. <p>For emphasizing a snippet of text with italics.</p>
  90. <div class="bs-docs-example">
  91. <p>The following snippet of text is <em>rendered as italicized text</em>.</p>
  92. </div>
  93. <pre class="prettyprint">&lt;em&gt;rendered as italicized text&lt;/em&gt;</pre>
  94. <p><span class="label label-info">Heads up!</span> Feel free to use <code>&lt;b&gt;</code> and <code>&lt;i&gt;</code> in HTML5. <code>&lt;b&gt;</code> is meant to highlight words or phrases without conveying additional importance while <code>&lt;i&gt;</code> is mostly for voice, technical terms, etc.</p>
  95. <h3>Emphasis classes</h3>
  96. <p>Convey meaning through color with a handful of emphasis utility classes.</p>
  97. <div class="bs-docs-example">
  98. <p class="muted">Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.</p>
  99. <p class="text-warning">Etiam porta sem malesuada magna mollis euismod.</p>
  100. <p class="text-error">Donec ullamcorper nulla non metus auctor fringilla.</p>
  101. <p class="text-info">Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis.</p>
  102. <p class="text-success">Duis mollis, est non commodo luctus, nisi erat porttitor ligula.</p>
  103. </div>
  104. <pre class="prettyprint linenums">
  105. &lt;p class="muted"&gt;Fusce dapibus, tellus ac cursus commodo, tortor mauris nibh.&lt;/p&gt;
  106. &lt;p class="text-warning"&gt;Etiam porta sem malesuada magna mollis euismod.&lt;/p&gt;
  107. &lt;p class="text-error"&gt;Donec ullamcorper nulla non metus auctor fringilla.&lt;/p&gt;
  108. &lt;p class="text-info"&gt;Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis.&lt;/p&gt;
  109. &lt;p class="text-success"&gt;Duis mollis, est non commodo luctus, nisi erat porttitor ligula.&lt;/p&gt;
  110. </pre>
  111. <hr class="bs-docs-separator">
  112. <h2 id="abbreviations">Abbreviations</h2>
  113. <p>Stylized implemenation of HTML's <code>&lt;abbr&gt;</code> element for abbreviations and acronyms to show the expanded version on hover. Abbreviations with a <code>title</code> attribute have a light dotted bottom border and a help cursor on hover, providing additional context on hover.</p>
  114. <h3><code>&lt;abbr&gt;</code></h3>
  115. <p>For expanded text on long hover of an abbreviation, include the <code>title</code> attribute.</p>
  116. <div class="bs-docs-example">
  117. <p>An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.</p>
  118. </div>
  119. <pre class="prettyprint">&lt;abbr title="attribute"&gt;attr&lt;/abbr&gt;</pre>
  120. <h3><code>&lt;abbr class="initialism"&gt;</code></h3>
  121. <p>Add <code>.initialism</code> to an abbreviation for a slightly smaller font-size.</p>
  122. <div class="bs-docs-example">
  123. <p><abbr title="HyperText Markup Language" class="initialism">HTML</abbr> is the best thing since sliced bread.</p>
  124. </div>
  125. <pre class="prettyprint">&lt;abbr title="HyperText Markup Language" class="initialism"&gt;HTML&lt;/abbr&gt;</pre>
  126. <hr class="bs-docs-separator">
  127. <h2 id="addresses">Addresses</h2>
  128. <p>Present contact information for the nearest ancestor or the entire body of work.</p>
  129. <h3><code>&lt;address&gt;</code></h3>
  130. <p>Preserve formatting by ending all lines with <code>&lt;br&gt;</code>.</p>
  131. <div class="bs-docs-example">
  132. <address>
  133. <strong>Twitter, Inc.</strong><br>
  134. 795 Folsom Ave, Suite 600<br>
  135. San Francisco, CA 94107<br>
  136. <abbr title="Phone">P:</abbr> (123) 456-7890
  137. </address>
  138. <address>
  139. <strong>Full Name</strong><br>
  140. <a href="mailto:#">first.last@gmail.com</a>
  141. </address>
  142. </div>
  143. <pre class="prettyprint linenums">
  144. &lt;address&gt;
  145. &lt;strong&gt;Twitter, Inc.&lt;/strong&gt;&lt;br&gt;
  146. 795 Folsom Ave, Suite 600&lt;br&gt;
  147. San Francisco, CA 94107&lt;br&gt;
  148. &lt;abbr title="Phone"&gt;P:&lt;/abbr&gt; (123) 456-7890
  149. &lt;/address&gt;
  150. &lt;address&gt;
  151. &lt;strong&gt;Full Name&lt;/strong&gt;&lt;br&gt;
  152. &lt;a href="mailto:#"&gt;first.last@gmail.com&lt;/a&gt;
  153. &lt;/address&gt;
  154. </pre>
  155. <hr class="bs-docs-separator">
  156. <h2 id="blockquotes">Blockquotes</h2>
  157. <p>For quoting blocks of content from another source within your document.</p>
  158. <h3>Default blockquote</h3>
  159. <p>Wrap <code>&lt;blockquote&gt;</code> around any <abbr title="HyperText Markup Language">HTML</abbr> as the quote. For straight quotes we recommend a <code>&lt;p&gt;</code>.</p>
  160. <div class="bs-docs-example">
  161. <blockquote>
  162. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
  163. </blockquote>
  164. </div>
  165. <pre class="prettyprint linenums">
  166. &lt;blockquote&gt;
  167. &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.&lt;/p&gt;
  168. &lt;/blockquote&gt;
  169. </pre>
  170. <h3>Blockquote options</h3>
  171. <p>Style and content changes for simple variations on a standard blockquote.</p>
  172. <h4>Naming a source</h4>
  173. <p>Add <code>&lt;small&gt;</code> tag for identifying the source. Wrap the name of the source work in <code>&lt;cite&gt;</code>.</p>
  174. <div class="bs-docs-example">
  175. <blockquote>
  176. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
  177. <small>Someone famous in <cite title="Source Title">Source Title</cite></small>
  178. </blockquote>
  179. </div>
  180. <pre class="prettyprint linenums">
  181. &lt;blockquote&gt;
  182. &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.&lt;/p&gt;
  183. &lt;small&gt;Someone famous &lt;cite title="Source Title"&gt;Source Title&lt;/cite&gt;&lt;/small&gt;
  184. &lt;/blockquote&gt;
  185. </pre>
  186. <h4>Alternate displays</h4>
  187. <p>Use <code>.pull-right</code> for a floated, right-aligned blockquote.</p>
  188. <div class="bs-docs-example" style="overflow: hidden;">
  189. <blockquote class="pull-right">
  190. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
  191. <small>Someone famous in <cite title="Source Title">Source Title</cite></small>
  192. </blockquote>
  193. </div>
  194. <pre class="prettyprint linenums">
  195. &lt;blockquote class="pull-right"&gt;
  196. ...
  197. &lt;/blockquote&gt;
  198. </pre>
  199. <hr class="bs-docs-separator">
  200. <!-- Lists -->
  201. <h2 id="lists">Lists</h2>
  202. <h3>Unordered</h3>
  203. <p>A list of items in which the order does <em>not</em> explicitly matter.</p>
  204. <div class="bs-docs-example">
  205. <ul>
  206. <li>Lorem ipsum dolor sit amet</li>
  207. <li>Consectetur adipiscing elit</li>
  208. <li>Integer molestie lorem at massa</li>
  209. <li>Facilisis in pretium nisl aliquet</li>
  210. <li>Nulla volutpat aliquam velit
  211. <ul>
  212. <li>Phasellus iaculis neque</li>
  213. <li>Purus sodales ultricies</li>
  214. <li>Vestibulum laoreet porttitor sem</li>
  215. <li>Ac tristique libero volutpat at</li>
  216. </ul>
  217. </li>
  218. <li>Faucibus porta lacus fringilla vel</li>
  219. <li>Aenean sit amet erat nunc</li>
  220. <li>Eget porttitor lorem</li>
  221. </ul>
  222. </div>
  223. <pre class="prettyprint linenums">
  224. &lt;ul&gt;
  225. &lt;li&gt;...&lt;/li&gt;
  226. &lt;/ul&gt;
  227. </pre>
  228. <h3>Ordered</h3>
  229. <p>A list of items in which the order <em>does</em> explicitly matter.</p>
  230. <div class="bs-docs-example">
  231. <ol>
  232. <li>Lorem ipsum dolor sit amet</li>
  233. <li>Consectetur adipiscing elit</li>
  234. <li>Integer molestie lorem at massa</li>
  235. <li>Facilisis in pretium nisl aliquet</li>
  236. <li>Nulla volutpat aliquam velit</li>
  237. <li>Faucibus porta lacus fringilla vel</li>
  238. <li>Aenean sit amet erat nunc</li>
  239. <li>Eget porttitor lorem</li>
  240. </ol>
  241. </div>
  242. <pre class="prettyprint linenums">
  243. &lt;ol&gt;
  244. &lt;li&gt;...&lt;/li&gt;
  245. &lt;/ol&gt;
  246. </pre>
  247. <h3>Unstyled</h3>
  248. <p>A list of items with no <code>list-style</code> or additional left padding.</p>
  249. <div class="bs-docs-example">
  250. <ul class="unstyled">
  251. <li>Lorem ipsum dolor sit amet</li>
  252. <li>Consectetur adipiscing elit</li>
  253. <li>Integer molestie lorem at massa</li>
  254. <li>Facilisis in pretium nisl aliquet</li>
  255. <li>Nulla volutpat aliquam velit
  256. <ul>
  257. <li>Phasellus iaculis neque</li>
  258. <li>Purus sodales ultricies</li>
  259. <li>Vestibulum laoreet porttitor sem</li>
  260. <li>Ac tristique libero volutpat at</li>
  261. </ul>
  262. </li>
  263. <li>Faucibus porta lacus fringilla vel</li>
  264. <li>Aenean sit amet erat nunc</li>
  265. <li>Eget porttitor lorem</li>
  266. </ul>
  267. </div>
  268. <pre class="prettyprint linenums">
  269. &lt;ul class="unstyled"&gt;
  270. &lt;li&gt;...&lt;/li&gt;
  271. &lt;/ul&gt;
  272. </pre>
  273. <h3>Description</h3>
  274. <p>A list of terms with their associated descriptions.</p>
  275. <div class="bs-docs-example">
  276. <dl>
  277. <dt>Description lists</dt>
  278. <dd>A description list is perfect for defining terms.</dd>
  279. <dt>Euismod</dt>
  280. <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
  281. <dd>Donec id elit non mi porta gravida at eget metus.</dd>
  282. <dt>Malesuada porta</dt>
  283. <dd>Etiam porta sem malesuada magna mollis euismod.</dd>
  284. </dl>
  285. </div>
  286. <pre class="prettyprint linenums">
  287. &lt;dl&gt;
  288. &lt;dt&gt;...&lt;/dt&gt;
  289. &lt;dd&gt;...&lt;/dd&gt;
  290. &lt;/dl&gt;
  291. </pre>
  292. <h4>Horizontal description</h4>
  293. <p>Make terms and descriptions in <code>&lt;dl&gt;</code> line up side-by-side.</p>
  294. <div class="bs-docs-example">
  295. <dl class="dl-horizontal">
  296. <dt>Description lists</dt>
  297. <dd>A description list is perfect for defining terms.</dd>
  298. <dt>Euismod</dt>
  299. <dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
  300. <dd>Donec id elit non mi porta gravida at eget metus.</dd>
  301. <dt>Malesuada porta</dt>
  302. <dd>Etiam porta sem malesuada magna mollis euismod.</dd>
  303. <dt>Felis euismod semper eget lacinia</dt>
  304. <dd>Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</dd>
  305. </dl>
  306. </div>
  307. <pre class="prettyprint linenums">
  308. &lt;dl class="dl-horizontal"&gt;
  309. &lt;dt&gt;...&lt;/dt&gt;
  310. &lt;dd&gt;...&lt;/dd&gt;
  311. &lt;/dl&gt;
  312. </pre>
  313. <p>
  314. <span class="label label-info">Heads up!</span>
  315. Horizontal description lists will truncate terms that are too long to fit in the left column fix <code>text-overflow</code>. In narrower viewports, they will change to the default stacked layout.
  316. </p>
  317. </section>
  318. <!-- Code
  319. ================================================== -->
  320. <section id="code">
  321. <div class="page-header">
  322. <h1>Code</h1>
  323. </div>
  324. <h2>Inline</h2>
  325. <p>Wrap inline snippets of code with <code>&lt;code&gt;</code>.</p>
  326. <div class="bs-docs-example">
  327. For example, <code>&lt;section&gt;</code> should be wrapped as inline.
  328. </div>
  329. <pre class="prettyprint linenums">
  330. For example, &lt;code&gt;&lt;section&gt;&lt;/code&gt; should be wrapped as inline.
  331. </pre>
  332. <h2>Basic block</h2>
  333. <p>Use <code>&lt;pre&gt;</code> for multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.</p>
  334. <div class="bs-docs-example">
  335. <pre>&lt;p&gt;Sample text here...&lt;/p&gt;</pre>
  336. </div>
  337. <pre class="prettyprint linenums" style="margin-bottom: 9px;">
  338. &lt;pre&gt;
  339. &amp;lt;p&amp;gt;Sample text here...&amp;lt;/p&amp;gt;
  340. &lt;/pre&gt;
  341. </pre>
  342. <p><span class="label label-info">Heads up!</span> Be sure to keep code within <code>&lt;pre&gt;</code> tags as close to the left as possible; it will render all tabs.</p>
  343. <p>You may optionally add the <code>.pre-scrollable</code> class which will set a max-height of 350px and provide a y-axis scrollbar.</p>
  344. </section>
  345. <!-- Tables
  346. ================================================== -->
  347. <section id="tables">
  348. <div class="page-header">
  349. <h1>Tables</h1>
  350. </div>
  351. <h2>Default styles</h2>
  352. <p>For basic styling&mdash;light padding and only horizontal dividers&mdash;add the base class <code>.table</code> to any <code>&lt;table&gt;</code>.</p>
  353. <div class="bs-docs-example">
  354. <table class="table">
  355. <thead>
  356. <tr>
  357. <th>#</th>
  358. <th>First Name</th>
  359. <th>Last Name</th>
  360. <th>Username</th>
  361. </tr>
  362. </thead>
  363. <tbody>
  364. <tr>
  365. <td>1</td>
  366. <td>Mark</td>
  367. <td>Otto</td>
  368. <td>@mdo</td>
  369. </tr>
  370. <tr>
  371. <td>2</td>
  372. <td>Jacob</td>
  373. <td>Thornton</td>
  374. <td>@fat</td>
  375. </tr>
  376. <tr>
  377. <td>3</td>
  378. <td>Larry</td>
  379. <td>the Bird</td>
  380. <td>@twitter</td>
  381. </tr>
  382. </tbody>
  383. </table>
  384. </div>
  385. <pre class="prettyprint linenums">
  386. &lt;table class="table"&gt;
  387. &lt;/table&gt;
  388. </pre>
  389. <hr class="bs-docs-separator">
  390. <h2>Optional classes</h2>
  391. <p>Add any of the following classes to the <code>.table</code> base class.</p>
  392. <h3><code>.table-striped</code></h3>
  393. <p>Adds zebra-striping to any table row within the <code>&lt;tbody&gt;</code> via the <code>:nth-child</code> CSS selector (not available in IE7-IE8).</p>
  394. <div class="bs-docs-example">
  395. <table class="table table-striped">
  396. <thead>
  397. <tr>
  398. <th>#</th>
  399. <th>First Name</th>
  400. <th>Last Name</th>
  401. <th>Username</th>
  402. </tr>
  403. </thead>
  404. <tbody>
  405. <tr>
  406. <td>1</td>
  407. <td>Mark</td>
  408. <td>Otto</td>
  409. <td>@mdo</td>
  410. </tr>
  411. <tr>
  412. <td>2</td>
  413. <td>Jacob</td>
  414. <td>Thornton</td>
  415. <td>@fat</td>
  416. </tr>
  417. <tr>
  418. <td>3</td>
  419. <td>Larry</td>
  420. <td>the Bird</td>
  421. <td>@twitter</td>
  422. </tr>
  423. </tbody>
  424. </table>
  425. </div>
  426. <pre class="prettyprint linenums" style="margin-bottom: 18px;">
  427. &lt;table class="table table-striped"&gt;
  428. &lt;/table&gt;
  429. </pre>
  430. <h3><code>.table-bordered</code></h3>
  431. <p>Add borders and rounded corners to the table.</p>
  432. <div class="bs-docs-example">
  433. <table class="table table-bordered">
  434. <thead>
  435. <tr>
  436. <th>#</th>
  437. <th>First Name</th>
  438. <th>Last Name</th>
  439. <th>Username</th>
  440. </tr>
  441. </thead>
  442. <tbody>
  443. <tr>
  444. <td rowspan="2">1</td>
  445. <td>Mark</td>
  446. <td>Otto</td>
  447. <td>@mdo</td>
  448. </tr>
  449. <tr>
  450. <td>Mark</td>
  451. <td>Otto</td>
  452. <td>@TwBootstrap</td>
  453. </tr>
  454. <tr>
  455. <td>2</td>
  456. <td>Jacob</td>
  457. <td>Thornton</td>
  458. <td>@fat</td>
  459. </tr>
  460. <tr>
  461. <td>3</td>
  462. <td colspan="2">Larry the Bird</td>
  463. <td>@twitter</td>
  464. </tr>
  465. </tbody>
  466. </table>
  467. </div>
  468. <pre class="prettyprint linenums">
  469. &lt;table class="table table-bordered"&gt;
  470. &lt;/table&gt;
  471. </pre>
  472. <h3><code>.table-hover</code></h3>
  473. <p>Enable a hover state on table rows within a <code>&lt;tbody&gt;</code>.</p>
  474. <div class="bs-docs-example">
  475. <table class="table table-hover">
  476. <thead>
  477. <tr>
  478. <th>#</th>
  479. <th>First Name</th>
  480. <th>Last Name</th>
  481. <th>Username</th>
  482. </tr>
  483. </thead>
  484. <tbody>
  485. <tr>
  486. <td>1</td>
  487. <td>Mark</td>
  488. <td>Otto</td>
  489. <td>@mdo</td>
  490. </tr>
  491. <tr>
  492. <td>2</td>
  493. <td>Jacob</td>
  494. <td>Thornton</td>
  495. <td>@fat</td>
  496. </tr>
  497. <tr>
  498. <td>3</td>
  499. <td colspan="2">Larry the Bird</td>
  500. <td>@twitter</td>
  501. </tr>
  502. </tbody>
  503. </table>
  504. </div>
  505. <pre class="prettyprint linenums" style="margin-bottom: 18px;">
  506. &lt;table class="table table-hover"&gt;
  507. &lt;/table&gt;
  508. </pre>
  509. <h3><code>.table-condensed</code></h3>
  510. <p>Makes tables more compact by cutting cell padding in half.</p>
  511. <div class="bs-docs-example">
  512. <table class="table table-condensed">
  513. <thead>
  514. <tr>
  515. <th>#</th>
  516. <th>First Name</th>
  517. <th>Last Name</th>
  518. <th>Username</th>
  519. </tr>
  520. </thead>
  521. <tbody>
  522. <tr>
  523. <td>1</td>
  524. <td>Mark</td>
  525. <td>Otto</td>
  526. <td>@mdo</td>
  527. </tr>
  528. <tr>
  529. <td>2</td>
  530. <td>Jacob</td>
  531. <td>Thornton</td>
  532. <td>@fat</td>
  533. </tr>
  534. <tr>
  535. <td>3</td>
  536. <td colspan="2">Larry the Bird</td>
  537. <td>@twitter</td>
  538. </tr>
  539. </tbody>
  540. </table>
  541. </div>
  542. <pre class="prettyprint linenums" style="margin-bottom: 18px;">
  543. &lt;table class="table table-condensed"&gt;
  544. &lt;/table&gt;
  545. </pre>
  546. <hr class="bs-docs-separator">
  547. <h2>Optional row classes</h2>
  548. <p>Use contextual classes to color table rows.</p>
  549. <table class="table table-bordered table-striped">
  550. <colgroup>
  551. <col class="span1">
  552. <col class="span7">
  553. </colgroup>
  554. <thead>
  555. <tr>
  556. <th>Class</th>
  557. <th>Description</th>
  558. </tr>
  559. </thead>
  560. <tbody>
  561. <tr>
  562. <td>
  563. <code>.success</code>
  564. </td>
  565. <td>Indicates a successful or positive action.</td>
  566. </tr>
  567. <tr>
  568. <td>
  569. <code>.error</code>
  570. </td>
  571. <td>Indicates a dangerous or potentially negative action.</td>
  572. </tr>
  573. <tr>
  574. <td>
  575. <code>.warning</code>
  576. </td>
  577. <td>Indicates a warning that might need attention.</td>
  578. </tr>
  579. <tr>
  580. <td>
  581. <code>.info</code>
  582. </td>
  583. <td>Used as an alternative to the default styles.</td>
  584. </tr>
  585. </tbody>
  586. </table>
  587. <div class="bs-docs-example">
  588. <table class="table">
  589. <thead>
  590. <tr>
  591. <th>#</th>
  592. <th>Product</th>
  593. <th>Payment Taken</th>
  594. <th>Status</th>
  595. </tr>
  596. </thead>
  597. <tbody>
  598. <tr class="success">
  599. <td>1</td>
  600. <td>TB - Monthly</td>
  601. <td>01/04/2012</td>
  602. <td>Approved</td>
  603. </tr>
  604. <tr class="error">
  605. <td>2</td>
  606. <td>TB - Monthly</td>
  607. <td>02/04/2012</td>
  608. <td>Declined</td>
  609. </tr>
  610. <tr class="warning">
  611. <td>3</td>
  612. <td>TB - Monthly</td>
  613. <td>03/04/2012</td>
  614. <td>Pending</td>
  615. </tr>
  616. <tr class="info">
  617. <td>4</td>
  618. <td>TB - Monthly</td>
  619. <td>04/04/2012</td>
  620. <td>Call in to confirm</td>
  621. </tr>
  622. </tbody>
  623. </table>
  624. </div>
  625. <pre class="prettyprint linenums">
  626. ...
  627. &lt;tr class="success"&gt;
  628. &lt;td&gt;1&lt;/td&gt;
  629. &lt;td&gt;TB - Monthly&lt;/td&gt;
  630. &lt;td&gt;01/04/2012&lt;/td&gt;
  631. &lt;td&gt;Approved&lt;/td&gt;
  632. &lt;/tr&gt;
  633. ...
  634. </pre>
  635. <hr class="bs-docs-separator">
  636. <h2>Supported table markup</h2>
  637. <p>List of supported table HTML elements and how they should be used.</p>
  638. <table class="table table-bordered table-striped">
  639. <colgroup>
  640. <col class="span1">
  641. <col class="span7">
  642. </colgroup>
  643. <thead>
  644. <tr>
  645. <th>Tag</th>
  646. <th>Description</th>
  647. </tr>
  648. </thead>
  649. <tbody>
  650. <tr>
  651. <td>
  652. <code>&lt;table&gt;</code>
  653. </td>
  654. <td>
  655. Wrapping element for displaying data in a tabular format
  656. </td>
  657. </tr>
  658. <tr>
  659. <td>
  660. <code>&lt;thead&gt;</code>
  661. </td>
  662. <td>
  663. Container element for table header rows (<code>&lt;tr&gt;</code>) to label table columns
  664. </td>
  665. </tr>
  666. <tr>
  667. <td>
  668. <code>&lt;tbody&gt;</code>
  669. </td>
  670. <td>
  671. Container element for table rows (<code>&lt;tr&gt;</code>) in the body of the table
  672. </td>
  673. </tr>
  674. <tr>
  675. <td>
  676. <code>&lt;tr&gt;</code>
  677. </td>
  678. <td>
  679. Container element for a set of table cells (<code>&lt;td&gt;</code> or <code>&lt;th&gt;</code>) that appears on a single row
  680. </td>
  681. </tr>
  682. <tr>
  683. <td>
  684. <code>&lt;td&gt;</code>
  685. </td>
  686. <td>
  687. Default table cell
  688. </td>
  689. </tr>
  690. <tr>
  691. <td>
  692. <code>&lt;th&gt;</code>
  693. </td>
  694. <td>
  695. Special table cell for column (or row, depending on scope and placement) labels<br>
  696. Must be used within a <code>&lt;thead&gt;</code>
  697. </td>
  698. </tr>
  699. <tr>
  700. <td>
  701. <code>&lt;caption&gt;</code>
  702. </td>
  703. <td>
  704. Description or summary of what the table holds, especially useful for screen readers
  705. </td>
  706. </tr>
  707. </tbody>
  708. </table>
  709. <pre class="prettyprint linenums">
  710. &lt;table&gt;
  711. &lt;caption&gt;...&lt;/caption&gt;
  712. &lt;thead&gt;
  713. &lt;tr&gt;
  714. &lt;th&gt;...&lt;/th&gt;
  715. &lt;th&gt;...&lt;/th&gt;
  716. &lt;/tr&gt;
  717. &lt;/thead&gt;
  718. &lt;tbody&gt;
  719. &lt;tr&gt;
  720. &lt;td&gt;...&lt;/td&gt;
  721. &lt;td&gt;...&lt;/td&gt;
  722. &lt;/tr&gt;
  723. &lt;/tbody&gt;
  724. &lt;/table&gt;
  725. </pre>
  726. </section>
  727. <!-- Forms
  728. ================================================== -->
  729. <section id="forms">
  730. <div class="page-header">
  731. <h1>Forms</h1>
  732. </div>
  733. <h2>Default styles</h2>
  734. <p>Individual form controls receive styling, but without any required base class on the <code>&lt;form&gt;</code> or large changes in markup. Results in stacked, left-aligned labels on top of form controls.</p>
  735. <form class="bs-docs-example">
  736. <fieldset>
  737. <legend>Legend</legend>
  738. <label>Label name</label>
  739. <input type="text" placeholder="Type something…">
  740. <span class="help-block">Example block-level help text here.</span>
  741. <label class="checkbox">
  742. <input type="checkbox"> Check me out
  743. </label>
  744. <button type="submit" class="btn">Submit</button>
  745. </fieldset>
  746. </form>
  747. <pre class="prettyprint linenums">
  748. &lt;form&gt;
  749. &lt;fieldset&gt;
  750. &lt;legend&gt;Legend&lt;/legend&gt;
  751. &lt;label&gt;Label name&lt;/label&gt;
  752. &lt;input type="text" placeholder="Type something…"&gt;
  753. &lt;span class="help-block"&gt;Example block-level help text here.&lt;/span&gt;
  754. &lt;label class="checkbox"&gt;
  755. &lt;input type="checkbox"&gt; Check me out
  756. &lt;/label&gt;
  757. &lt;button type="submit" class="btn"&gt;Submit&lt;/button&gt;
  758. &lt;/fieldset&gt;
  759. &lt;/form&gt;
  760. </pre>
  761. <hr class="bs-docs-separator">
  762. <h2>Optional layouts</h2>
  763. <p>Included with Bootstrap are three optional form layouts for common use cases.</p>
  764. <h3>Search form</h3>
  765. <p>Add <code>.form-search</code> to the form and <code>.search-query</code> to the <code>&lt;input&gt;</code> for an extra-rounded text input.</p>
  766. <form class="bs-docs-example form-search">
  767. <input type="text" class="input-medium search-query">
  768. <button type="submit" class="btn">Search</button>
  769. </form>
  770. <pre class="prettyprint linenums">
  771. &lt;form class="form-search"&gt;
  772. &lt;input type="text" class="input-medium search-query"&gt;
  773. &lt;button type="submit" class="btn"&gt;Search&lt;/button&gt;
  774. &lt;/form&gt;
  775. </pre>
  776. <h3>Inline form</h3>
  777. <p>Add <code>.form-inline</code> for left-aligned labels and inline-block controls for a compact layout.</p>
  778. <form class="bs-docs-example form-inline">
  779. <input type="text" class="input-small" placeholder="Email">
  780. <input type="password" class="input-small" placeholder="Password">
  781. <label class="checkbox">
  782. <input type="checkbox"> Remember me
  783. </label>
  784. <button type="submit" class="btn">Sign in</button>
  785. </form>
  786. <pre class="prettyprint linenums">
  787. &lt;form class="form-inline"&gt;
  788. &lt;input type="text" class="input-small" placeholder="Email"&gt;
  789. &lt;input type="password" class="input-small" placeholder="Password"&gt;
  790. &lt;label class="checkbox"&gt;
  791. &lt;input type="checkbox"&gt; Remember me
  792. &lt;/label&gt;
  793. &lt;button type="submit" class="btn"&gt;Sign in&lt;/button&gt;
  794. &lt;/form&gt;
  795. </pre>
  796. <h3>Horizontal form</h3>
  797. <p>Right align labels and float them to the left to make them appear on the same line as controls. Requires the most markup changes from a default form:</p>
  798. <ul>
  799. <li>Add <code>.form-horizontal</code> to the form</li>
  800. <li>Wrap labels and controls in <code>.control-group</code></li>
  801. <li>Add <code>.control-label</code> to the label</li>
  802. <li>Wrap any associated controls in <code>.controls</code> for proper alignment</li>
  803. </ul>
  804. <form class="bs-docs-example form-horizontal">
  805. <div class="control-group">
  806. <label class="control-label" for="inputEmail">Email</label>
  807. <div class="controls">
  808. <input type="text" id="inputEmail" placeholder="Email">
  809. </div>
  810. </div>
  811. <div class="control-group">
  812. <label class="control-label" for="inputPassword">Password</label>
  813. <div class="controls">
  814. <input type="password" id="inputPassword" placeholder="Password">
  815. </div>
  816. </div>
  817. <div class="control-group">
  818. <div class="controls">
  819. <label class="checkbox">
  820. <input type="checkbox"> Remember me
  821. </label>
  822. <button type="submit" class="btn">Sign in</button>
  823. </div>
  824. </div>
  825. </form>
  826. <pre class="prettyprint linenums">
  827. &lt;form class="form-horizontal"&gt;
  828. &lt;div class="control-group"&gt;
  829. &lt;label class="control-label" for="inputEmail"&gt;Email&lt;/label&gt;
  830. &lt;div class="controls"&gt;
  831. &lt;input type="text" id="inputEmail" placeholder="Email"&gt;
  832. &lt;/div&gt;
  833. &lt;/div&gt;
  834. &lt;div class="control-group"&gt;
  835. &lt;label class="control-label" for="inputPassword"&gt;Password&lt;/label&gt;
  836. &lt;div class="controls"&gt;
  837. &lt;input type="password" id="inputPassword" placeholder="Password"&gt;
  838. &lt;/div&gt;
  839. &lt;/div&gt;
  840. &lt;div class="control-group"&gt;
  841. &lt;div class="controls"&gt;
  842. &lt;label class="checkbox"&gt;
  843. &lt;input type="checkbox"&gt; Remember me
  844. &lt;/label&gt;
  845. &lt;button type="submit" class="btn"&gt;Sign in&lt;/button&gt;
  846. &lt;/div&gt;
  847. &lt;/div&gt;
  848. &lt;/form&gt;
  849. </pre>
  850. <hr class="bs-docs-separator">
  851. <h2>Supported form controls</h2>
  852. <p>Examples of standard form controls supported in an example form layout.</p>
  853. <h3>Inputs</h3>
  854. <p>Most common form control, text-based input fields. Includes support for all HTML5 types: text, password, datetime, datetime-local, date, month, time, week, number, email, url, search, tel, and color.</p>
  855. <p>Requires the use of a specified <code>type</code> at all times.</p>
  856. <form class="bs-docs-example form-inline">
  857. <input type="text" placeholder="Text input">
  858. </form>
  859. <pre class="prettyprint linenums">
  860. &lt;input type="text" placeholder="Text input"&gt;
  861. </pre>
  862. <h3>Textarea</h3>
  863. <p>Form control which supports multiple lines of text. Change <code>rows</code> attribute as necessary.</p>
  864. <form class="bs-docs-example form-inline">
  865. <textarea rows="3"></textarea>
  866. </form>
  867. <pre class="prettyprint linenums">
  868. &lt;textarea rows="3"&gt;&lt;/textarea&gt;
  869. </pre>
  870. <h3>Checkboxes and radios</h3>
  871. <p>Checkboxes are for selecting one or several options in a list while radios are for selecting one option from many.</p>
  872. <h4>Default (stacked)</h4>
  873. <form class="bs-docs-example">
  874. <label class="checkbox">
  875. <input type="checkbox" value="">
  876. Option one is this and that&mdash;be sure to include why it's great
  877. </label>
  878. <br>
  879. <label class="radio">
  880. <input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
  881. Option one is this and that&mdash;be sure to include why it's great
  882. </label>
  883. <label class="radio">
  884. <input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
  885. Option two can be something else and selecting it will deselect option one
  886. </label>
  887. </form>
  888. <pre class="prettyprint linenums">
  889. &lt;label class="checkbox"&gt;
  890. &lt;input type="checkbox" value=""&gt;
  891. Option one is this and that&mdash;be sure to include why it's great
  892. &lt;/label&gt;
  893. &lt;label class="radio"&gt;
  894. &lt;input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked&gt;
  895. Option one is this and that&mdash;be sure to include why it's great
  896. &lt;/label&gt;
  897. &lt;label class="radio"&gt;
  898. &lt;input type="radio" name="optionsRadios" id="optionsRadios2" value="option2"&gt;
  899. Option two can be something else and selecting it will deselect option one
  900. &lt;/label&gt;
  901. </pre>
  902. <h4>Inline checkboxes</h4>
  903. <p>Add the <code>.inline</code> class to a series of checkboxes or radios for controls appear on the same line.</p>
  904. <form class="bs-docs-example">
  905. <label class="checkbox inline">
  906. <input type="checkbox" id="inlineCheckbox1" value="option1"> 1
  907. </label>
  908. <label class="checkbox inline">
  909. <input type="checkbox" id="inlineCheckbox2" value="option2"> 2
  910. </label>
  911. <label class="checkbox inline">
  912. <input type="checkbox" id="inlineCheckbox3" value="option3"> 3
  913. </label>
  914. </form>
  915. <pre class="prettyprint linenums">
  916. &lt;label class="checkbox inline"&gt;
  917. &lt;input type="checkbox" id="inlineCheckbox1" value="option1"&gt; 1
  918. &lt;/label&gt;
  919. &lt;label class="checkbox inline"&gt;
  920. &lt;input type="checkbox" id="inlineCheckbox2" value="option2"&gt; 2
  921. &lt;/label&gt;
  922. &lt;label class="checkbox inline"&gt;
  923. &lt;input type="checkbox" id="inlineCheckbox3" value="option3"&gt; 3
  924. &lt;/label&gt;
  925. </pre>
  926. <h3>Selects</h3>
  927. <p>Use the default option or specify a <code>multiple="multiple"</code> to show multiple options at once.</p>
  928. <form class="bs-docs-example">
  929. <select>
  930. <option>1</option>
  931. <option>2</option>
  932. <option>3</option>
  933. <option>4</option>
  934. <option>5</option>
  935. </select>
  936. <br>
  937. <select multiple="multiple">
  938. <option>1</option>
  939. <option>2</option>
  940. <option>3</option>
  941. <option>4</option>
  942. <option>5</option>
  943. </select>
  944. </form>
  945. <pre class="prettyprint linenums">
  946. &lt;select&gt;
  947. &lt;option&gt;1&lt;/option&gt;
  948. &lt;option&gt;2&lt;/option&gt;
  949. &lt;option&gt;3&lt;/option&gt;
  950. &lt;option&gt;4&lt;/option&gt;
  951. &lt;option&gt;5&lt;/option&gt;
  952. &lt;/select&gt;
  953. &lt;select multiple="multiple"&gt;
  954. &lt;option&gt;1&lt;/option&gt;
  955. &lt;option&gt;2&lt;/option&gt;
  956. &lt;option&gt;3&lt;/option&gt;
  957. &lt;option&gt;4&lt;/option&gt;
  958. &lt;option&gt;5&lt;/option&gt;
  959. &lt;/select&gt;
  960. </pre>
  961. <hr class="bs-docs-separator">
  962. <h2>Extending form controls</h2>
  963. <p>Adding on top of existing browser controls, Bootstrap includes other useful form components.</p>
  964. <h3>Prepended and appended inputs</h3>
  965. <p>Add text or buttons before or after any text-based input. Do note that <code>select</code> elements are not supported here.</p>
  966. <h4>Default options</h4>
  967. <p>Wrap an <code>.add-on</code> and an <code>input</code> with one of two classes to prepend or append text to an input.</p>
  968. <form class="bs-docs-example">
  969. <div class="input-prepend">
  970. <span class="add-on">@</span>
  971. <input class="span2" id="prependedInput" type="text" placeholder="Username">
  972. </div>
  973. <br>
  974. <div class="input-append">
  975. <input class="span2" id="appendedInput" type="text">
  976. <span class="add-on">.00</span>
  977. </div>
  978. </form>
  979. <pre class="prettyprint linenums">
  980. &lt;div class="input-prepend"&gt;
  981. &lt;span class="add-on"&gt;@&lt;/span&gt;
  982. &lt;input class="span2" id="prependedInput" type="text" placeholder="Username"&gt;
  983. &lt;/div&gt;
  984. &lt;div class="input-append"&gt;
  985. &lt;input class="span2" id="appendedInput" type="text"&gt;
  986. &lt;span class="add-on"&gt;.00&lt;/span&gt;
  987. &lt;/div&gt;
  988. </pre>
  989. <h4>Combined</h4>
  990. <p>Use both classes and two instances of <code>.add-on</code> to prepend and append an input.</p>
  991. <form class="bs-docs-example form-inline">
  992. <div class="input-prepend input-append">
  993. <span class="add-on">$</span>
  994. <input class="span2" id="appendedPrependedInput" type="text">
  995. <span class="add-on">.00</span>
  996. </div>
  997. </form>
  998. <pre class="prettyprint linenums">
  999. &lt;div class="input-prepend input-append"&gt;
  1000. &lt;span class="add-on"&gt;$&lt;/span&gt;
  1001. &lt;input class="span2" id="appendedPrependedInput" type="text"&gt;
  1002. &lt;span class="add-on"&gt;.00&lt;/span&gt;
  1003. &lt;/div&gt;
  1004. </pre>
  1005. <h4>Buttons instead of text</h4>
  1006. <p>Instead of a <code>&lt;span&gt;</code> with text, use a <code>.btn</code> to attach a button (or two) to an input.</p>
  1007. <form class="bs-docs-example">
  1008. <div class="input-append">
  1009. <input class="span2" id="appendedInputButton" type="text">
  1010. <button class="btn" type="button">Go!</button>
  1011. </div>
  1012. </form>
  1013. <pre class="prettyprint linenums">
  1014. &lt;div class="input-append"&gt;
  1015. &lt;input class="span2" id="appendedInputButton" type="text"&gt;
  1016. &lt;button class="btn" type="button"&gt;Go!&lt;/button&gt;
  1017. &lt;/div&gt;
  1018. </pre>
  1019. <form class="bs-docs-example">
  1020. <div class="input-append">
  1021. <input class="span2" id="appendedInputButtons" type="text">
  1022. <button class="btn" type="button">Search</button>
  1023. <button class="btn" type="button">Options</button>
  1024. </div>
  1025. </form>
  1026. <pre class="prettyprint linenums">
  1027. &lt;div class="input-append"&gt;
  1028. &lt;input class="span2" id="appendedInputButtons" type="text"&gt;
  1029. &lt;button class="btn" type="button"&gt;Search&lt;/button&gt;
  1030. &lt;button class="btn" type="button"&gt;Options&lt;/button&gt;
  1031. &lt;/div&gt;
  1032. </pre>
  1033. <h4>Button dropdowns</h4>
  1034. <p></p>
  1035. <form class="bs-docs-example">
  1036. <div class="input-append">
  1037. <input class="span2" id="appendedDropdownButton" type="text">
  1038. <div class="btn-group">
  1039. <button class="btn dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button>
  1040. <ul class="dropdown-menu">
  1041. <li><a href="#">Action</a></li>
  1042. <li><a href="#">Another action</a></li>
  1043. <li><a href="#">Something else here</a></li>
  1044. <li class="divider"></li>
  1045. <li><a href="#">Separated link</a></li>
  1046. </ul>
  1047. </div><!-- /btn-group -->
  1048. </div><!-- /input-append -->
  1049. </form>
  1050. <pre class="prettyprint linenums">
  1051. &lt;div class="input-append"&gt;
  1052. &lt;input class="span2" id="appendedDropdownButton" type="text"&gt;
  1053. &lt;div class="btn-group"&gt;
  1054. &lt;button class="btn dropdown-toggle" data-toggle="dropdown"&gt;
  1055. Action
  1056. &lt;span class="caret"&gt;&lt;/span&gt;
  1057. &lt;/button&gt;
  1058. &lt;ul class="dropdown-menu"&gt;
  1059. ...
  1060. &lt;/ul&gt;
  1061. &lt;/div&gt;
  1062. &lt;/div&gt;
  1063. </pre>
  1064. <form class="bs-docs-example">
  1065. <div class="input-prepend">
  1066. <div class="btn-group">
  1067. <button class="btn dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button>
  1068. <ul class="dropdown-menu">
  1069. <li><a href="#">Action</a></li>
  1070. <li><a href="#">Another action</a></li>
  1071. <li><a href="#">Something else here</a></li>
  1072. <li class="divider"></li>
  1073. <li><a href="#">Separated link</a></li>
  1074. </ul>
  1075. </div><!-- /btn-group -->
  1076. <input class="span2" id="prependedDropdownButton" type="text">
  1077. </div><!-- /input-prepend -->
  1078. </form>
  1079. <pre class="prettyprint linenums">
  1080. &lt;div class="input-prepend"&gt;
  1081. &lt;div class="btn-group"&gt;
  1082. &lt;button class="btn dropdown-toggle" data-toggle="dropdown"&gt;
  1083. Action
  1084. &lt;span class="caret"&gt;&lt;/span&gt;
  1085. &lt;/button&gt;
  1086. &lt;ul class="dropdown-menu"&gt;
  1087. ...
  1088. &lt;/ul&gt;
  1089. &lt;/div&gt;
  1090. &lt;input class="span2" id="prependedDropdownButton" type="text"&gt;
  1091. &lt;/div&gt;
  1092. </pre>
  1093. <form class="bs-docs-example">
  1094. <div class="input-prepend input-append">
  1095. <div class="btn-group">
  1096. <button class="btn dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button>
  1097. <ul class="dropdown-menu">
  1098. <li><a href="#">Action</a></li>
  1099. <li><a href="#">Another action</a></li>
  1100. <li><a href="#">Something else here</a></li>
  1101. <li class="divider"></li>
  1102. <li><a href="#">Separated link</a></li>
  1103. </ul>
  1104. </div><!-- /btn-group -->
  1105. <input class="span2" id="appendedPrependedDropdownButton" type="text">
  1106. <div class="btn-group">
  1107. <button class="btn dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button>
  1108. <ul class="dropdown-menu">
  1109. <li><a href="#">Action</a></li>
  1110. <li><a href="#">Another action</a></li>
  1111. <li><a href="#">Something else here</a></li>
  1112. <li class="divider"></li>
  1113. <li><a href="#">Separated link</a></li>
  1114. </ul>
  1115. </div><!-- /btn-group -->
  1116. </div><!-- /input-prepend input-append -->
  1117. </form>
  1118. <pre class="prettyprint linenums">
  1119. &lt;div class="input-prepend input-append"&gt;
  1120. &lt;div class="btn-group"&gt;
  1121. &lt;button class="btn dropdown-toggle" data-toggle="dropdown"&gt;
  1122. Action
  1123. &lt;span class="caret"&gt;&lt;/span&gt;
  1124. &lt;/button&gt;
  1125. &lt;ul class="dropdown-menu"&gt;
  1126. ...
  1127. &lt;/ul&gt;
  1128. &lt;/div&gt;
  1129. &lt;input class="span2" id="appendedPrependedDropdownButton" type="text"&gt;
  1130. &lt;div class="btn-group"&gt;
  1131. &lt;button class="btn dropdown-toggle" data-toggle="dropdown"&gt;
  1132. Action
  1133. &lt;span class="caret"&gt;&lt;/span&gt;
  1134. &lt;/button&gt;
  1135. &lt;ul class="dropdown-menu"&gt;
  1136. ...
  1137. &lt;/ul&gt;
  1138. &lt;/div&gt;
  1139. &lt;/div&gt;
  1140. </pre>
  1141. <h4>Search form</h4>
  1142. <form class="bs-docs-example form-search">
  1143. <div class="input-append">
  1144. <input type="text" class="span2 search-query">
  1145. <button type="submit" class="btn">Search</button>
  1146. </div>
  1147. <div class="input-prepend">
  1148. <button type="submit" class="btn">Search</button>
  1149. <input type="text" class="span2 search-query">
  1150. </div>
  1151. </form>
  1152. <pre class="prettyprint linenums">
  1153. &lt;form class="form-search"&gt;
  1154. &lt;div class="input-append"&gt;
  1155. &lt;input type="text" class="span2 search-query"&gt;
  1156. &lt;button type="submit" class="btn"&gt;Search&lt;/button&gt;
  1157. &lt;/div&gt;
  1158. &lt;div class="input-prepend"&gt;
  1159. &lt;button type="submit" class="btn"&gt;Search&lt;/button&gt;
  1160. &lt;input type="text" class="span2 search-query"&gt;
  1161. &lt;/div&gt;
  1162. &lt;/form&gt;
  1163. </pre>
  1164. <h3>Control sizing</h3>
  1165. <p>Use relative sizing classes like <code>.input-large</code> or match your inputs to the grid column sizes using <code>.span*</code> classes.</p>
  1166. <h4>Relative sizing</h4>
  1167. <form class="bs-docs-example" style="padding-bottom: 15px;">
  1168. <div class="controls docs-input-sizes">
  1169. <input class="input-mini" type="text" placeholder=".input-mini">
  1170. <input class="input-small" type="text" placeholder=".input-small">
  1171. <input class="input-medium" type="text" placeholder=".input-medium">
  1172. <input class="input-large" type="text" placeholder=".input-large">
  1173. <input class="input-xlarge" type="text" placeholder=".input-xlarge">
  1174. <input class="input-xxlarge" type="text" placeholder=".input-xxlarge">
  1175. </div>
  1176. </form>
  1177. <pre class="prettyprint linenums">
  1178. &lt;input class="input-mini" type="text" placeholder=".input-mini"&gt;
  1179. &lt;input class="input-small" type="text" placeholder=".input-small"&gt;
  1180. &lt;input class="input-medium" type="text" placeholder=".input-medium"&gt;
  1181. &lt;input class="input-large" type="text" placeholder=".input-large"&gt;
  1182. &lt;input class="input-xlarge" type="text" placeholder=".input-…

Large files files are truncated, but you can click here to view the full file