An error occurred while loading the file. Please try again.
-
Pete Hopkins authored7b31f4a3
<!-- Masthead
================================================== -->
<header class="jumbotron subhead" id="overview">
<h1>{{_i}}Base CSS{{/i}}</h1>
<p class="lead">{{_i}}On top of the scaffolding, basic HTML elements are styled and enhanced with extensible classes to provide a fresh, consistent look and feel.{{/i}}</p>
<div class="subnav">
<ul class="nav pills">
<li><a href="#typography">{{_i}}Typography{{/i}}</a></li>
<li><a href="#tables">{{_i}}Tables{{/i}}</a></li>
<li><a href="#forms">{{_i}}Forms{{/i}}</a></li>
<li><a href="#buttons">{{_i}}Buttons{{/i}}</a></li>
<li><a href="#icons">{{_i}}Icons by Glyphicons{{/i}}</a></li>
</ul>
</div>
</header>
<!-- Typography
================================================== -->
<section id="typography">
<div class="page-header">
<h1>{{_i}}Typography <small>Headings, paragraphs, lists, and other inline type elements</small>{{/i}}</h1>
</div>
<h2>{{_i}}Headings & body copy{{/i}}</h2>
<!-- Headings & Paragraph Copy -->
<div class="row">
<div class="span4">
<h3>{{_i}}Typographic scale{{/i}}</h3>
<p>{{_i}}The entire typographic grid is based on two Less variables in our preboot.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.{{/i}}</p>
<p>{{_i}}We use those variables, and some math, to create the margins, paddings, and line-heights of all our type and more.{{/i}}</p>
</div>
<div class="span4">
<h3>{{_i}}Example body text{{/i}}</h3>
<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>
<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>
</div>
<div class="span4">
<div class="well">
<h1>h1. {{_i}}Heading 1{{/i}}</h1>
<h2>h2. {{_i}}Heading 2{{/i}}</h2>
<h3>h3. {{_i}}Heading 3{{/i}}</h3>
<h4>h4. {{_i}}Heading 4{{/i}}</h4>
<h5>h5. {{_i}}Heading 5{{/i}}</h5>
<h6>h6. {{_i}}Heading 6{{/i}}</h6>
</div>
</div>
</div>
<!-- Misc Elements -->
<h2>{{_i}}Emphasis, address, and abbreviation{{/i}}</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>{{_i}}Element{{/i}}</th>
<th>{{_i}}Usage{{/i}}</th>
<th>{{_i}}Optional{{/i}}</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<code><strong></code>
</td>
<td>
{{_i}}For emphasizing a snippet of text with <strong>important</strong>{{/i}}
</td>
<td>
<span class="muted">{{_i}}None{{/i}}</span>
7172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
</td>
</tr>
<tr>
<td>
<code><em></code>
</td>
<td>
{{_i}}For emphasizing a snippet of text with <em>stress</em>{{/i}}
</td>
<td>
<span class="muted">{{_i}}None{{/i}}</span>
</td>
</tr>
<tr>
<td>
<code><abbr></code>
</td>
<td>
{{_i}}Wraps abbreviations and acronyms to show the expanded version on hover{{/i}}
</td>
<td>
{{_i}}Include optional <code>title</code> for expanded text{{/i}}
</td>
</tr>
<tr>
<td>
<code><address></code>
</td>
<td>
{{_i}}For contact information for its nearest ancestor or the entire body of work{{/i}}
</td>
<td>
{{_i}}Preserve formatting by ending all lines with <code><br></code>{{/i}}
</td>
</tr>
</tbody>
</table>
<div class="row">
<div class="span4">
<h3>{{_i}}Using emphasis{{/i}}</h3>
<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>
<p>{{_i}}<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.{{/i}}</p>
</div>
<div class="span4">
<h3>{{_i}}Example addresses{{/i}}</h3>
<p>{{_i}}Here are two examples of how the <code><address></code> tag can be used:{{/i}}</p>
<address>
<strong>Twitter, Inc.</strong><br>
795 Folsom Ave, Suite 600<br>
San Francisco, CA 94107<br>
<abbr title="Phone">P:</abbr> (123) 456-7890
</address>
<address>
<strong>{{_i}}Full Name{{/i}}</strong><br>
<a href="mailto:#">{{_i}}first.last@gmail.com{{/i}}</a>
</address>
</div>
<div class="span4">
<h3>{{_i}}Example abbreviations{{/i}}</h3>
<p>{{_i}}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.{{/i}}</p>
<p>{{_i}}<abbr title="HyperText Markup Language">HTML</abbr> is the best thing since sliced bread.{{/i}}</p>
<p>{{_i}}An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.{{/i}}</p>
</div>
</div>
<!-- Blockquotes -->
<h2>{{_i}}Blockquotes{{/i}}</h2>
<table class="table table-bordered table-striped">
141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
<thead>
<tr>
<th>{{_i}}Element{{/i}}</th>
<th>{{_i}}Usage{{/i}}</th>
<th>{{_i}}Optional{{/i}}</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<code><blockquote></code>
</td>
<td>
{{_i}}Block-level element for quoting content from another source{{/i}}
</td>
<td>
<p>{{_i}}Add <code>cite</code> attribute for source URL{{/i}}</p>
{{_i}}Use <code>.pull-left</code> and <code>.pull-right</code> classes for floated options{{/i}}
</td>
</tr>
<tr>
<td>
<code><small></code>
</td>
<td>
{{_i}}Optional element for adding a user-facing citation, typically an author with title of work{{/i}}
</td>
<td>
{{_i}}Place the <code><cite></code> around the title or name of source{{/i}}
</td>
</tr>
</tbody>
</table>
<div class="row">
<div class="span4">
<p>{{_i}}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>.{{/i}}</p>
<p>{{_i}}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.{{/i}}</p>
</div>
<div class="span8">
<pre class="prettyprint linenums">
<blockquote>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.</p>
<small>{{_i}}Someone famous{{/i}}</small>
</blockquote>
</pre>
</div>
</div><!--/row-->
<h3>{{_i}}Example blockquotes{{/i}}</h3>
<div class="row">
<div class="span6">
<p>{{_i}}Default blockquotes are styled as such:{{/i}}</p>
<blockquote>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.</p>
<small>{{_i}}Someone famous in <cite title="">Body of work</cite>{{/i}}</small>
</blockquote>
</div>
<div class="span6">
<p>{{_i}}To float your blockquote to the right, add <code>class="pull-right"</code>:{{/i}}</p>
<blockquote class="pull-right">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.</p>
<small>{{_i}}Someone famous in <cite title="">Body of work</cite>{{/i}}</small>
</blockquote>
</div>
</div>
<!-- Lists -->
<h2>{{_i}}Lists{{/i}}</h2>
<div class="row">
211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
<div class="span3">
<h4>{{_i}}Unordered{{/i}}</h4>
<p><code><ul></code></p>
<ul>
<li>Lorem ipsum dolor sit amet</li>
<li>Consectetur adipiscing elit</li>
<li>Integer molestie lorem at massa</li>
<li>Facilisis in pretium nisl aliquet</li>
<li>Nulla volutpat aliquam velit
<ul>
<li>Phasellus iaculis neque</li>
<li>Purus sodales ultricies</li>
<li>Vestibulum laoreet porttitor sem</li>
<li>Ac tristique libero volutpat at</li>
</ul>
</li>
<li>Faucibus porta lacus fringilla vel</li>
<li>Aenean sit amet erat nunc</li>
<li>Eget porttitor lorem</li>
</ul>
</div>
<div class="span3">
<h4>{{_i}}Unstyled{{/i}}</h4>
<p><code><ul class="unstyled"></code></p>
<ul class="unstyled">
<li>Lorem ipsum dolor sit amet</li>
<li>Consectetur adipiscing elit</li>
<li>Integer molestie lorem at massa</li>
<li>Facilisis in pretium nisl aliquet</li>
<li>Nulla volutpat aliquam velit
<ul>
<li>Phasellus iaculis neque</li>
<li>Purus sodales ultricies</li>
<li>Vestibulum laoreet porttitor sem</li>
<li>Ac tristique libero volutpat at</li>
</ul>
</li>
<li>Faucibus porta lacus fringilla vel</li>
<li>Aenean sit amet erat nunc</li>
<li>Eget porttitor lorem</li>
</ul>
</div>
<div class="span3">
<h4>{{_i}}Ordered{{/i}}</h4>
<p><code><ol></code></p>
<ol>
<li>Lorem ipsum dolor sit amet</li>
<li>Consectetur adipiscing elit</li>
<li>Integer molestie lorem at massa</li>
<li>Facilisis in pretium nisl aliquet</li>
<li>Nulla volutpat aliquam velit</li>
<li>Faucibus porta lacus fringilla vel</li>
<li>Aenean sit amet erat nunc</li>
<li>Eget porttitor lorem</li>
</ol>
</div>
<div class="span3">
<h4>{{_i}}Description{{/i}}</h4>
<p><code><dl></code></p>
<dl>
<dt>{{_i}}Description lists{{/i}}</dt>
<dd>{{_i}}A description list is perfect for defining terms.{{/i}}</dd>
<dt>Euismod</dt>
<dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
<dd>Donec id elit non mi porta gravida at eget metus.</dd>
<dt>Malesuada porta</dt>
<dd>Etiam porta sem malesuada magna mollis euismod.</dd>
</dl>
</div>
</div><!-- /row -->
281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
<!-- Code -->
<h2>{{_i}}Code <small>Inline and block</small>{{/i}}</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th style="width: 190px;">{{_i}}Element{{/i}}</th>
<th>{{_i}}Result{{/i}}</th>
</tr>
</thead>
<tbody>
<tr>
<td><code><code></code></td>
<td>{{_i}}In a line of text like this, your wrapped code will look like this <code><html></code> element.{{/i}}</td>
</tr>
<tr>
<td><code><pre></code></td>
<td>
<pre><div>
<h1>{{_i}}Heading{{/i}}</h1>
<p>{{_i}}Something right here…{{/i}}</p>
</div></pre>
<p>{{_i}}<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.{{/i}}</p>
</td>
</tr>
<tr>
<td><code><pre class="prettyprint"></code></td>
<td>
<p>{{_i}}Using the google-code-prettify library, your blocks of code get a slightly different visual style and automatic syntax highlighting. You can also add an additional class to add line numbers.{{/i}}</p>
<pre class="prettyprint"><div>
<h1>{{_i}}Heading{{/i}}</h1>
<p>{{_i}}Something right here…{{/i}}</p>
</div></pre>
<pre class="prettyprint linenums"><div>
<h1>{{_i}}Heading{{/i}}</h1>
<p>{{_i}}Something right here…{{/i}}</p>
</div></pre>
<p>{{_i}}<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>.{{/i}}</p>
</td>
</tr>
</tbody>
</table>
<!-- Labels -->
<h2>{{_i}}Inline labels <small>for special attention</small>{{/i}}</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th style="width: 190px;">{{_i}}Labels{{/i}}</th>
<th>{{_i}}Markup{{/i}}</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span class="label">{{_i}}Default{{/i}}</span>
</td>
<td>
<code><span class="label">{{_i}}Default{{/i}}</span></code>
</td>
</tr>
<tr>
<td>
<span class="label success">{{_i}}New{{/i}}</span>
</td>
<td>
<code><span class="label success">{{/_i}}New{{/i}}</span></code>
</td>
351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
</tr>
<tr>
<td>
<span class="label warning">{{_i}}Warning{{/i}}</span>
</td>
<td>
<code><span class="label warning">{{_i}}Warning{{/i}}</span></code>
</td>
</tr>
<tr>
<td>
<span class="label important">{{_i}}Important{{/i}}</span>
</td>
<td>
<code><span class="label important">{{_i}}Important{{/i}}</span></code>
</td>
</tr>
<tr>
<td>
<span class="label info">{{_i}}Info{{/i}}</span>
</td>
<td>
<code><span class="label info">{{_i}}Info{{/i}}</span></code>
</td>
</tr>
</tbody>
</table>
</section>
<!-- Tables
================================================== -->
<section id="tables">
<div class="page-header">
<h1>{{_i}}Tables <small>For, you guessed it, tabular data</small>{{/i}}</h1>
</div>
<h2>{{_i}}Table markup{{/i}}</h2>
<div class="row">
<div class="span8">
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>{{_i}}Tag{{/i}}</th>
<th>{{_i}}Description{{/i}}</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<code><table></code>
</td>
<td>
{{_i}}Wrapping element for displaying data in a tabular format{{/i}}
</td>
</tr>
<tr>
<td>
<code><thead></code>
</td>
<td>
{{_i}}Container element for table header rows (<code><tr></code>) to label table columns{{/i}}
</td>
</tr>
<tr>
<td>
<code><tbody></code>
</td>
421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490
<td>
{{_i}}Container element for table rows (<code><tr></code>) in the body of the table{{/i}}
</td>
</tr>
<tr>
<td>
<code><tr></code>
</td>
<td>
{{_i}}Container element for a set of table cells (<code><td></code> or <code><th></code>) that appears on a single row{{/i}}
</td>
</tr>
<tr>
<td>
<code><td></code>
</td>
<td>
{{_i}}Default table cell{{/i}}
</td>
</tr>
<tr>
<td>
<code><th></code>
</td>
<td>
{{_i}}Special table cell for column (or row, depending on scope and placement) labels{{/i}}<br>
{{_i}}Must be used within a <code><thead></code>{{/i}}
</td>
</tr>
<tr>
<td>
<code><caption></code>
</td>
<td>
{{_i}}Description or summary of what the table holds, especially useful for screen readers{{/i}}
</td>
</tr>
</tbody>
</table>
</div>
<div class="span4">
<pre class="prettyprint linenums">
<table>
<thead>
<tr>
<th>…</th>
<th>…</th>
</tr>
</thead>
<tbody>
<tr>
<td>…</td>
<td>…</td>
</tr>
</tbody>
</table>
</pre>
</div>
</div>
<h2>{{_i}}Table options{{/i}}</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>{{_i}}Name{{/i}}</th>
<th>{{_i}}Class{{/i}}</th>
<th>{{_i}}Description{{/i}}</th>
</tr>
</thead>
<tbody>
491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560
<tr>
<td>{{_i}}Default{{/i}}</td>
<td class="muted">{{_i}}None{{/i}}</td>
<td>{{_i}}No styles, just columns and rows{{/i}}</td>
</tr>
<tr>
<td>{{_i}}Basic{{/i}}</td>
<td>
<code>.table</code>
</td>
<td>{{_i}}Only horizontal lines between rows{{/i}}</td>
</tr>
<tr>
<td>{{_i}}Bordered{{/i}}</td>
<td>
<code>.table-bordered</code>
</td>
<td>{{_i}}Rounds corners and adds outter border{{/i}}</td>
</tr>
<tr>
<td>{{_i}}Zebra-stripe{{/i}}</td>
<td>
<code>.table-striped</code>
</td>
<td>{{_i}}Adds light gray background color to odd rows (1, 3, 5, etc){{/i}}</td>
</tr>
<tr>
<td>{{_i}}Condensed{{/i}}</td>
<td>
<code>.table-condensed</code>
</td>
<td>{{_i}}Cuts vertical padding in half, from 8px to 4px, within all <code>td</code> and <code>th</code> elements{{/i}}</td>
</tr>
</tbody>
</table>
<h2>{{_i}}Example tables{{/i}}</h2>
<h3>1. {{_i}}Default table styles{{/i}}</h3>
<div class="row">
<div class="span4">
<p>{{_i}}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.{{/i}}</p>
<pre class="prettyprint linenums">
<table class="table">
…
</table></pre>
</div>
<div class="span8">
<table class="table">
<thead>
<tr>
<th>#</th>
<th>{{_i}}First Name{{/i}}</th>
<th>{{_i}}Last Name{{/i}}</th>
<th>{{_i}}Language{{/i}}</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Mark</td>
<td>Otto</td>
<td>CSS</td>
</tr>
<tr>
<td>2</td>
<td>Jacob</td>
<td>Thornton</td>
<td>Javascript</td>