mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-19 16:54:24 +01:00
updated type section of base css
This commit is contained in:
parent
5a614fb86d
commit
2c5ac562d2
@ -124,84 +124,76 @@
|
||||
<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>
|
||||
<h3>Lead body copy</h3>
|
||||
<p>Make a paragraph stand out by adding <code>.lead</code>.</p>
|
||||
<div class="bs-docs-example">
|
||||
<p class="lead">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.</p>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
<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>
|
||||
|
||||
<hr>
|
||||
|
||||
<h2>Emphasis, address, and abbreviation</h2>
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Element</th>
|
||||
<th>Usage</th>
|
||||
<th>Optional</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code><strong></code>
|
||||
</td>
|
||||
<td>
|
||||
For emphasizing a snippet of text with <strong>important</strong>
|
||||
</td>
|
||||
<td>
|
||||
<span class="muted">None</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code><em></code>
|
||||
</td>
|
||||
<td>
|
||||
For emphasizing a snippet of text with <em>stress</em>
|
||||
</td>
|
||||
<td>
|
||||
<span class="muted">None</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code><abbr></code>
|
||||
</td>
|
||||
<td>
|
||||
Wraps abbreviations and acronyms to show the expanded version on hover
|
||||
</td>
|
||||
<td>
|
||||
<p>Include optional <code>title</code> attribute for expanded text</p>
|
||||
Use <code>.initialism</code> class for uppercase abbreviations.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code><address></code>
|
||||
</td>
|
||||
<td>
|
||||
For contact information for its nearest ancestor or the entire body of work
|
||||
</td>
|
||||
<td>
|
||||
Preserve formatting by ending all lines with <code><br></code>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<hr class="soften">
|
||||
|
||||
<h3>Using emphasis</h3>
|
||||
|
||||
<h2>Emphasis</h2>
|
||||
<p>Make use of HTML's default emphasis tags, <code><strong></code> and <code><em></code>.</p>
|
||||
|
||||
<h3><code><strong></code></h3>
|
||||
<p>For emphasizing a snippet of text with <strong>important</strong></p>
|
||||
<div class="bs-docs-example">
|
||||
<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>The following snippet of text is <strong>rendered as bold text</strong>.</p>
|
||||
</div>
|
||||
<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>
|
||||
<pre class="prettyprint">
|
||||
<strong>rendered as bold text</strong>
|
||||
</pre>
|
||||
|
||||
<h3>Example addresses</h3>
|
||||
<p>Here are two examples of how the <code><address></code> tag can be used:</p>
|
||||
<h3><code><em></code></h3>
|
||||
<p>For emphasizing a snippet of text with <em>stress</em></p>
|
||||
<div class="bs-docs-example">
|
||||
<p>The following snippet of text is <em>rendered as italicized text</em>.</p>
|
||||
</div>
|
||||
<pre class="prettyprint">
|
||||
<em>rendered as italicized text</em>
|
||||
</pre>
|
||||
|
||||
<p><span class="label label-info">Heads up!</span> 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>
|
||||
|
||||
|
||||
<hr class="soften">
|
||||
|
||||
|
||||
<h2>Abbreviations</h2>
|
||||
<p>Stylized implemenation of HTML's <code><abbr></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>
|
||||
|
||||
<h3><code><abbr></code></h3>
|
||||
<p>For expanded text on long hover of an abbreviation, include the <code>title</code> attribute.</p>
|
||||
<div class="bs-docs-example">
|
||||
<p>An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.</p>
|
||||
</div>
|
||||
<pre class="prettyprint">
|
||||
<abbr title="attribute">attr</abbr>
|
||||
</pre>
|
||||
|
||||
<h3><code><abbr class="initialism"></code></h3>
|
||||
<p>Add <code>.initialism</code> to an abbreviation for a slightly smaller font-size.</p>
|
||||
<div class="bs-docs-example">
|
||||
<p><abbr title="HyperText Markup Language" class="initialism">HTML</abbr> is the best thing since sliced bread.</p>
|
||||
</div>
|
||||
<pre class="prettyprint">
|
||||
<abbr title="attribute" class="initialism">attr</abbr>
|
||||
</pre>
|
||||
|
||||
|
||||
<hr class="soften">
|
||||
|
||||
|
||||
<h2>Addresses</h2>
|
||||
<p>Present contact information for the nearest ancestor or the entire body of work.</p>
|
||||
|
||||
<h3><code><address></code></h3>
|
||||
<p>Preserve formatting by ending all lines with <code><br></code>.</p>
|
||||
<div class="bs-docs-example">
|
||||
<address>
|
||||
<strong>Twitter, Inc.</strong><br>
|
||||
@ -214,79 +206,76 @@
|
||||
<a href="mailto:#">first.last@gmail.com</a>
|
||||
</address>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<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>
|
||||
|
||||
<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>
|
||||
<div class="bs-docs-example">
|
||||
<p>An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.</p>
|
||||
</div>
|
||||
<p>Add the <code>initialism</code> class to an abbreviation for a slightly smaller font-size.</p>
|
||||
<div class="bs-docs-example">
|
||||
<p><abbr title="HyperText Markup Language" class="initialism">HTML</abbr> is the best thing since sliced bread.</p>
|
||||
</div>
|
||||
<address>
|
||||
<strong>Full Name</strong><br>
|
||||
<a href="mailto:#">first.last@gmail.com</a>
|
||||
</address>
|
||||
</pre>
|
||||
|
||||
|
||||
<hr class="soften">
|
||||
|
||||
<hr>
|
||||
|
||||
<h2>Blockquotes</h2>
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Element</th>
|
||||
<th>Usage</th>
|
||||
<th>Optional</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<code><blockquote></code>
|
||||
</td>
|
||||
<td>
|
||||
Block-level element for quoting content from another source
|
||||
</td>
|
||||
<td>
|
||||
<p>Add <code>cite</code> attribute for source URL</p>
|
||||
Use <code>.pull-left</code> and <code>.pull-right</code> classes for floated options
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code><small></code>
|
||||
</td>
|
||||
<td>
|
||||
Optional element for adding a user-facing citation, typically an author with title of work
|
||||
</td>
|
||||
<td>
|
||||
Place the <code><cite></code> around the title or name of source
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<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>
|
||||
<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>
|
||||
<pre class="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>
|
||||
<h3>Example blockquotes</h3>
|
||||
<p>Default blockquotes are styled as such:</p>
|
||||
<p>For quoting blocks of content from another source within your document.</p>
|
||||
|
||||
<h3>Default blockqoute</h3>
|
||||
<p>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>
|
||||
<div class="bs-docs-example">
|
||||
<blockquote>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.</p>
|
||||
<small>Someone famous in <cite title="">Body of work</cite></small>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
||||
</blockquote>
|
||||
</div>
|
||||
<p>To float your blockquote to the right, add <code>class="pull-right"</code>:</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<blockquote>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
||||
</blockquote>
|
||||
</pre>
|
||||
|
||||
<h3>Blockquote options</h3>
|
||||
<p>Style and content changes for simple variations on a standard blockquote.</p>
|
||||
|
||||
<h4>Naming a source</h4>
|
||||
<p>Add <code><small></code> tag for identifying the source. Wrap the name of the source work in <code><cite></code>.</p>
|
||||
<div class="bs-docs-example">
|
||||
<blockquote>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
||||
<small>Someone famous in <cite title="Source Title">Source Title</cite></small>
|
||||
</blockquote>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<blockquote>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
||||
<small>Someone famous <cite title="Source Title">Source Title</cite></small>
|
||||
</blockquote>
|
||||
</pre>
|
||||
|
||||
<h4>Alternate displays</h4>
|
||||
<p>Use <code>.pull-left</code> and <code>.pull-right</code> classes for floated, right-aligned blockquote content.</p>
|
||||
<div class="bs-docs-example">
|
||||
<blockquote class="pull-right">
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante venenatis.</p>
|
||||
<small>Someone famous in <cite title="">Body of work</cite></small>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
||||
<small>Someone famous in <cite title="Source Title">Source Title</cite></small>
|
||||
</blockquote>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<blockquote class="pull-right">
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
||||
<small>Someone famous <cite title="Source Title">Source Title</cite></small>
|
||||
</blockquote>
|
||||
</pre>
|
||||
|
||||
|
||||
<hr class="soften">
|
||||
|
||||
<hr>
|
||||
|
||||
<!-- Lists -->
|
||||
<h2>Lists</h2>
|
||||
@ -406,7 +395,6 @@
|
||||
<dd>...</dd>
|
||||
</dl>
|
||||
</pre>
|
||||
<hr>
|
||||
<p>
|
||||
<span class="label label-info">Heads up!</span>
|
||||
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.
|
||||
|
245
docs/templates/pages/base-css.mustache
vendored
245
docs/templates/pages/base-css.mustache
vendored
@ -49,7 +49,7 @@
|
||||
</div>
|
||||
|
||||
{{! Body copy .lead }}
|
||||
<h2>{{_i}}Lead body copy{{/i}}</h2>
|
||||
<h3>{{_i}}Lead body copy{{/i}}</h3>
|
||||
<p>{{_i}}Make a paragraph stand out by adding <code>.lead</code>.{{/i}}</p>
|
||||
<div class="bs-docs-example">
|
||||
<p class="lead">Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus.</p>
|
||||
@ -57,80 +57,72 @@
|
||||
|
||||
{{! 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>
|
||||
<p>{{_i}}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.{{/i}}</p>
|
||||
|
||||
<hr>
|
||||
|
||||
{{! 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>
|
||||
</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>
|
||||
<p>{{_i}}Include optional <code>title</code> attribute for expanded text{{/i}}</p>
|
||||
{{_i}}Use <code>.initialism</code> class for uppercase abbreviations.{{/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>
|
||||
<hr class="soften">
|
||||
|
||||
|
||||
{{! Emphasis }}
|
||||
<h3>{{_i}}Using emphasis{{/i}}</h3>
|
||||
<h2>{{_i}}Emphasis{{/i}}</h2>
|
||||
<p>{{_i}}Make use of HTML's default emphasis tags, <code><strong></code> and <code><em></code>.{{/i}}</p>
|
||||
|
||||
<h3><code><strong></code></h3>
|
||||
<p>{{_i}}For emphasizing a snippet of text with <strong>important</strong>{{/i}}</p>
|
||||
<div class="bs-docs-example">
|
||||
<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>The following snippet of text is <strong>rendered as bold text</strong>.</p>
|
||||
</div>
|
||||
<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>
|
||||
<pre class="prettyprint">
|
||||
<strong>rendered as bold text</strong>
|
||||
</pre>
|
||||
|
||||
<h3><code><em></code></h3>
|
||||
<p>{{_i}}For emphasizing a snippet of text with <em>stress</em>{{/i}}</p>
|
||||
<div class="bs-docs-example">
|
||||
<p>The following snippet of text is <em>rendered as italicized text</em>.</p>
|
||||
</div>
|
||||
<pre class="prettyprint">
|
||||
<em>rendered as italicized text</em>
|
||||
</pre>
|
||||
|
||||
<p><span class="label label-info">{{_i}}Heads up!{{/i}}</span> {{_i}}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>
|
||||
|
||||
|
||||
<hr class="soften">
|
||||
|
||||
|
||||
{{! Abbreviations }}
|
||||
<h2>{{_i}}Abbreviations{{/i}}</h2>
|
||||
<p>{{_i}}Stylized implemenation of HTML's <code><abbr></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.{{/i}}</p>
|
||||
|
||||
<h3><code><abbr></code></h3>
|
||||
<p>{{_i}}For expanded text on long hover of an abbreviation, include the <code>title</code> attribute.{{/i}}</p>
|
||||
<div class="bs-docs-example">
|
||||
<p>{{_i}}An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.{{/i}}</p>
|
||||
</div>
|
||||
<pre class="prettyprint">
|
||||
<abbr title="attribute">attr</abbr>
|
||||
</pre>
|
||||
|
||||
<h3><code><abbr class="initialism"></code></h3>
|
||||
<p>{{_i}}Add <code>.initialism</code> to an abbreviation for a slightly smaller font-size.{{/i}}</p>
|
||||
<div class="bs-docs-example">
|
||||
<p>{{_i}}<abbr title="HyperText Markup Language" class="initialism">HTML</abbr> is the best thing since sliced bread.{{/i}}</p>
|
||||
</div>
|
||||
<pre class="prettyprint">
|
||||
<abbr title="attribute" class="initialism">attr</abbr>
|
||||
</pre>
|
||||
|
||||
|
||||
<hr class="soften">
|
||||
|
||||
|
||||
{{! 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>
|
||||
<h2>{{_i}}Addresses{{/i}}</h2>
|
||||
<p>{{_i}}Present contact information for the nearest ancestor or the entire body of work.{{/i}}</p>
|
||||
|
||||
<h3><code><address></code></h3>
|
||||
<p>{{_i}}Preserve formatting by ending all lines with <code><br></code>.{{/i}}</p>
|
||||
<div class="bs-docs-example">
|
||||
<address>
|
||||
<strong>Twitter, Inc.</strong><br>
|
||||
@ -143,81 +135,77 @@
|
||||
<a href="mailto:#">{{_i}}first.last@gmail.com{{/i}}</a>
|
||||
</address>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<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>
|
||||
|
||||
{{! Abbreviations }}
|
||||
<h3>{{_i}}Example abbreviations{{/i}}</h3>
|
||||
<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>
|
||||
<div class="bs-docs-example">
|
||||
<p>{{_i}}An abbreviation of the word attribute is <abbr title="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>
|
||||
<div class="bs-docs-example">
|
||||
<p>{{_i}}<abbr title="HyperText Markup Language" class="initialism">HTML</abbr> is the best thing since sliced bread.{{/i}}</p>
|
||||
</div>
|
||||
<address>
|
||||
<strong>{{_i}}Full Name{{/i}}</strong><br>
|
||||
<a href="mailto:#">{{_i}}first.last@gmail.com{{/i}}</a>
|
||||
</address>
|
||||
</pre>
|
||||
|
||||
|
||||
<hr class="soften">
|
||||
|
||||
<hr>
|
||||
|
||||
{{! Blockquotes }}
|
||||
<h2>{{_i}}Blockquotes{{/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><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>
|
||||
<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>
|
||||
<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>
|
||||
<h3>{{_i}}Example blockquotes{{/i}}</h3>
|
||||
<p>{{_i}}Default blockquotes are styled as such:{{/i}}</p>
|
||||
<p>{{_i}}For quoting blocks of content from another source within your document.{{/i}}</p>
|
||||
|
||||
<h3>{{_i}}Default blockqoute{{/i}}</h3>
|
||||
<p>{{_i}}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>
|
||||
<div class="bs-docs-example">
|
||||
<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>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
||||
</blockquote>
|
||||
</div>
|
||||
<p>{{_i}}To float your blockquote to the right, add <code>class="pull-right"</code>:{{/i}}</p>
|
||||
<pre class="prettyprint linenums">
|
||||
<blockquote>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
||||
</blockquote>
|
||||
</pre>
|
||||
|
||||
<h3>{{_i}}Blockquote options{{/i}}</h3>
|
||||
<p>{{_i}}Style and content changes for simple variations on a standard blockquote.{{/i}}</p>
|
||||
|
||||
<h4>{{_i}}Naming a source{{/i}}</h4>
|
||||
<p>{{_i}}Add <code><small></code> tag for identifying the source. Wrap the name of the source work in <code><cite></code>.{{/i}}</p>
|
||||
<div class="bs-docs-example">
|
||||
<blockquote>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
||||
<small>{{_i}}Someone famous in <cite title="Source Title">Source Title</cite>{{/i}}</small>
|
||||
</blockquote>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<blockquote>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
||||
<small>{{_i}}Someone famous <cite title="Source Title">Source Title</cite>{{/i}}</small>
|
||||
</blockquote>
|
||||
</pre>
|
||||
|
||||
<h4>{{_i}}Alternate displays{{/i}}</h4>
|
||||
<p>{{_i}}Use <code>.pull-left</code> and <code>.pull-right</code> classes for floated, right-aligned blockquote content.{{/i}}</p>
|
||||
<div class="bs-docs-example">
|
||||
<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>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
||||
<small>{{_i}}Someone famous in <cite title="Source Title">Source Title</cite>{{/i}}</small>
|
||||
</blockquote>
|
||||
</div>
|
||||
<pre class="prettyprint linenums">
|
||||
<blockquote class="pull-right">
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
|
||||
<small>{{_i}}Someone famous <cite title="Source Title">Source Title</cite>{{/i}}</small>
|
||||
</blockquote>
|
||||
</pre>
|
||||
|
||||
|
||||
<hr class="soften">
|
||||
|
||||
<hr>
|
||||
|
||||
<!-- Lists -->
|
||||
<h2>{{_i}}Lists{{/i}}</h2>
|
||||
@ -337,7 +325,6 @@
|
||||
<dd>...</dd>
|
||||
</dl>
|
||||
</pre>
|
||||
<hr>
|
||||
<p>
|
||||
<span class="label label-info">{{_i}}Heads up!{{/i}}</span>
|
||||
{{_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}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user