<h1>Typography <small>Headings, paragraphs, lists, and other inline type elements</small></h1>
</div>
<h2>Headings & body copy</h2>
<!-- Headings & Paragraph Copy -->
<divclass="row">
<divclass="span4">
<h3>Typographic scale</h3>
<p>The entire typographic grid is based on two Less 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>
<p>We use those variables, and some math, to create the margins, paddings, and line-heights of all our type and more.</p>
</div>
<divclass="span4">
<h3>Example body text</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.</p>
<h3>Lead body copy</h3>
<p>Make a paragraph stand out by adding <code>.lead</code>.</p>
<pclass="lead">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.</p>
</div>
<divclass="span4">
<divclass="well">
<h2>Headings</h2>
<p>All HTML headings, <code><h1></code> through <code><h6></code> are available.</p>
<divclass="bs-docs-example">
<h1>h1. Heading 1</h1>
<h2>h2. Heading 2</h2>
<h3>h3. Heading 3</h3>
...
...
@@ -126,10 +111,27 @@
<h5>h5. Heading 5</h5>
<h6>h6. Heading 6</h6>
</div>
<h2>Body copy</h2>
<p>Bootstrap's global default <code>font-size</code> is <strong>13px</strong>, with a <code>line-height</code> of <strong>18px</strong>. This is applied to the <code><body></code> and all paragraphs. In addition, <code><p></code> (paragraphs) receive a bottom margin of half their line-height (9px by default).</p>
<divclass="bs-docs-example">
<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>
<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>
<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>
</div>
<h2>Lead body copy</h2>
<p>Make a paragraph stand out by adding <code>.lead</code>.</p>
<divclass="bs-docs-example">
<pclass="lead">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.</p>
</div>
<!-- Misc Elements -->
<h2>Built with Less</h2>
<p>The typographic scale is based on two Less variables in 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>
<p>We use those variables, and some math, to create the margins, paddings, and line-heights of all our type and more. Customize them and watch Bootstrap adapt as you go.</p>
<hr>
<h2>Emphasis, address, and abbreviation</h2>
<tableclass="table table-bordered table-striped">
<thead>
...
...
@@ -188,15 +190,15 @@
</tbody>
</table>
<divclass="row">
<divclass="span4">
<h3>Using emphasis</h3>
<divclass="bs-docs-example">
<p><ahref="#">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><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>
</div>
<divclass="span4">
<p><strong>Note:</strong> Feel free to use <code><b></code> and <code><i></code> in HTML5. <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>
<h3>Example addresses</h3>
<p>Here are two examples of how the <code><address></code> tag can be used:</p>
<divclass="bs-docs-example">
<address>
<strong>Twitter, Inc.</strong><br>
795 Folsom Ave, Suite 600<br>
...
...
@@ -208,17 +210,19 @@
<ahref="mailto:#">first.last@gmail.com</a>
</address>
</div>
<divclass="span4">
<h3>Example abbreviations</h3>
<p>Abbreviations with a <code>title</code> attribute have a light dotted bottom border and a help cursor on hover. This gives users extra indication something will be shown on hover.</p>
<p>Add the <code>initialism</code> class to an abbreviation to increase typographic harmony by giving it a slightly smaller text size.</p>
<p><abbrtitle="HyperText Markup Language"class="initialism">HTML</abbr> is the best thing since sliced bread.</p>
<divclass="bs-docs-example">
<p>An abbreviation of the word attribute is <abbrtitle="attribute">attr</abbr>.</p>
</div>
<p>Add the <code>initialism</code> class to an abbreviation for a slightly smaller font-size.</p>
<divclass="bs-docs-example">
<p><abbrtitle="HyperText Markup Language"class="initialism">HTML</abbr> is the best thing since sliced bread.</p>
</div>
<hr>
<!-- Blockquotes -->
<h2>Blockquotes</h2>
<tableclass="table table-bordered table-striped">
<thead>
...
...
@@ -254,46 +258,38 @@
</tr>
</tbody>
</table>
<divclass="row">
<divclass="span4">
<p>To include a blockquote, wrap <code><blockquote></code> around any <abbrtitle="HyperText Markup Language">HTML</abbr> as the quote. For straight quotes we recommend a <code><p></code>.</p>
<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>
</div>
<divclass="span8">
<preclass="prettyprint linenums">
<blockquote>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.</p>
<small>Someone famous</small>
</blockquote>
</pre>
</div>
</div><!--/row-->
<h3>Example blockquotes</h3>
<divclass="row">
<divclass="span6">
<p>Default blockquotes are styled as such:</p>
<divclass="bs-docs-example">
<blockquote>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.</p>
<small>Someone famous in <citetitle="">Body of work</cite></small>
</blockquote>
</div>
<divclass="span6">
<p>To float your blockquote to the right, add <code>class="pull-right"</code>:</p>
<divclass="bs-docs-example">
<blockquoteclass="pull-right">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.</p>
<small>Someone famous in <citetitle="">Body of work</cite></small>
</blockquote>
</div>
</div>
<hr>
<!-- Lists -->
<h2>Lists</h2>
<divclass="row">
<divclass="span4">
<h3>Unordered</h3>
<p><code><ul></code></p>
<p>A list of items in which the order does not explicitly matter.</p>
<divclass="bs-docs-example">
<ul>
<li>Lorem ipsum dolor sit amet</li>
<li>Consectetur adipiscing elit</li>
...
...
@@ -312,7 +308,12 @@
<li>Eget porttitor lorem</li>
</ul>
</div>
<divclass="span4">
<preclass="prettyprint linenums">
<ul>
<li>...</li>
</ul>
</pre>
<h3>Unstyled</h3>
<p><code><ul class="unstyled"></code></p>
<ulclass="unstyled">
...
...
@@ -332,8 +333,7 @@
<li>Aenean sit amet erat nunc</li>
<li>Eget porttitor lorem</li>
</ul>
</div>
<divclass="span4">
<h3>Ordered</h3>
<p><code><ol></code></p>
<ol>
...
...
@@ -346,11 +346,7 @@
<li>Aenean sit amet erat nunc</li>
<li>Eget porttitor lorem</li>
</ol>
</div>
</div><!-- /row -->
<br>
<divclass="row">
<divclass="span4">
<h3>Description</h3>
<p><code><dl></code></p>
<dl>
...
...
@@ -362,8 +358,7 @@
<dt>Malesuada porta</dt>
<dd>Etiam porta sem malesuada magna mollis euismod.</dd>
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.
<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 -->
<divclass="row">
<divclass="span4">
<h3>{{_i}}Typographic scale{{/i}}</h3>
<p>{{_i}}The entire typographic grid is based on two Less 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.{{/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>
<divclass="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.</p>
<h3>{{_i}}Lead body copy{{/i}}</h3>
<p>{{_i}}Make a paragraph stand out by adding <code>.lead</code>.{{/i}}</p>
<pclass="lead">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.</p>
</div>
<divclass="span4">
<divclass="well">
{{! Headings }}
<h2>{{_i}}Headings{{/i}}</h2>
<p>{{_i}}All HTML headings, <code><h1></code> through <code><h6></code> are available.{{/i}}</p>
<divclass="bs-docs-example">
<h1>h1. {{_i}}Heading 1{{/i}}</h1>
<h2>h2. {{_i}}Heading 2{{/i}}</h2>
<h3>h3. {{_i}}Heading 3{{/i}}</h3>
...
...
@@ -48,10 +34,31 @@
<h5>h5. {{_i}}Heading 5{{/i}}</h5>
<h6>h6. {{_i}}Heading 6{{/i}}</h6>
</div>
{{! Body copy }}
<h2>{{_i}}Body copy{{/i}}</h2>
<p>{{_i}}Bootstrap's global default <code>font-size</code> is <strong>13px</strong>, with a <code>line-height</code> of <strong>18px</strong>. This is applied to the <code><body></code> and all paragraphs. In addition, <code><p></code> (paragraphs) receive a bottom margin of half their line-height (9px by default).{{/i}}</p>
<divclass="bs-docs-example">
<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>
<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>
<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>
</div>
{{! Body copy .lead }}
<h2>{{_i}}Lead body copy{{/i}}</h2>
<p>{{_i}}Make a paragraph stand out by adding <code>.lead</code>.{{/i}}</p>
<divclass="bs-docs-example">
<pclass="lead">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.</p>
</div>
<!-- Misc Elements -->
{{! Using LESS }}
<h2>{{_i}}Built with Less{{/i}}</h2>
<p>{{_i}}The typographic scale is based on two Less variables in 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.{{/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. Customize them and watch Bootstrap adapt as you go.{{/i}}</p>
<hr>
{{! Misc Elements }}
<h2>{{_i}}Emphasis, address, and abbreviation{{/i}}</h2>
<tableclass="table table-bordered table-striped">
<thead>
...
...
@@ -110,15 +117,17 @@
</tbody>
</table>
<divclass="row">
<divclass="span4">
{{! Emphasis }}
<h3>{{_i}}Using emphasis{{/i}}</h3>
<divclass="bs-docs-example">
<p><ahref="#">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>
<divclass="span4">
<p>{{_i}}<strong>Note:</strong> Feel free to use <code><b></code> and <code><i></code> in HTML5. <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>
{{! Addresses }}
<h3>{{_i}}Example addresses{{/i}}</h3>
<p>{{_i}}Here are two examples of how the <code><address></code> tag can be used:{{/i}}</p>
<p>{{_i}}Abbreviations with a <code>title</code> attribute have a light dotted bottom border and a help cursor on hover. This gives users extra indication something will be shown on hover.{{/i}}</p>
<p>{{_i}}Add the <code>initialism</code> class to an abbreviation to increase typographic harmony by giving it a slightly smaller text size.{{/i}}</p>
<p>{{_i}}<abbrtitle="HyperText Markup Language"class="initialism">HTML</abbr> is the best thing since sliced bread.{{/i}}</p>
<divclass="bs-docs-example">
<p>{{_i}}An abbreviation of the word attribute is <abbrtitle="attribute">attr</abbr>.{{/i}}</p>
</div>
<p>{{_i}}Add the <code>initialism</code> class to an abbreviation for a slightly smaller font-size.{{/i}}</p>
<divclass="bs-docs-example">
<p>{{_i}}<abbrtitle="HyperText Markup Language"class="initialism">HTML</abbr> is the best thing since sliced bread.{{/i}}</p>
</div>
<hr>
<!-- Blockquotes -->
{{! Blockquotes }}
<h2>{{_i}}Blockquotes{{/i}}</h2>
<tableclass="table table-bordered table-striped">
<thead>
...
...
@@ -176,46 +189,38 @@
</tr>
</tbody>
</table>
<divclass="row">
<divclass="span4">
<p>{{_i}}To include a blockquote, wrap <code><blockquote></code> around any <abbrtitle="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>
<divclass="span8">
<preclass="prettyprint linenums">
<blockquote>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.</p>
{{_i}}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.{{/i}}