Commit 59d570fc authored by Mark Otto's avatar Mark Otto

Merge branch 'abbr' of https://github.com/jacobrask/bootstrap into jacobrask-abbr

Conflicts:
	docs/assets/bootstrap.zip
parents 3470c0dc f2814089
...@@ -417,12 +417,14 @@ em { ...@@ -417,12 +417,14 @@ em {
.muted { .muted {
color: #999999; color: #999999;
} }
abbr { abbr[title] {
font-size: 90%;
text-transform: uppercase;
border-bottom: 1px dotted #ddd; border-bottom: 1px dotted #ddd;
cursor: help; cursor: help;
} }
abbr.initialism {
font-size: 90%;
text-transform: uppercase;
}
blockquote { blockquote {
padding: 0 0 0 15px; padding: 0 0 0 15px;
margin: 0 0 18px; margin: 0 0 18px;
......
...@@ -166,7 +166,8 @@ ...@@ -166,7 +166,8 @@
Wraps abbreviations and acronyms to show the expanded version on hover Wraps abbreviations and acronyms to show the expanded version on hover
</td> </td>
<td> <td>
Include optional <code>title</code> for expanded text <p>Include optional <code>title</code> attribute for expanded text</p>
Use <code>.initialism</code> class for uppercase abbreviations.
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -205,8 +206,9 @@ ...@@ -205,8 +206,9 @@
</div> </div>
<div class="span4"> <div class="span4">
<h3>Example abbreviations</h3> <h3>Example abbreviations</h3>
<p>Abbreviations are styled with uppercase text and a light dotted bottom border. They also have a help cursor on hover so users have extra indication something will be shown on hover.</p> <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><abbr title="HyperText Markup Language">HTML</abbr> is the best thing since sliced bread.</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><abbr title="HyperText Markup Language" class="initialism">HTML</abbr> is the best thing since sliced bread.</p>
<p>An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.</p> <p>An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.</p>
</div> </div>
</div> </div>
......
...@@ -90,7 +90,8 @@ ...@@ -90,7 +90,8 @@
{{_i}}Wraps abbreviations and acronyms to show the expanded version on hover{{/i}} {{_i}}Wraps abbreviations and acronyms to show the expanded version on hover{{/i}}
</td> </td>
<td> <td>
{{_i}}Include optional <code>title</code> for expanded text{{/i}} <p>{{_i}}Include optional <code>title</code> attribute for expanded text{{/i}}</p>
{{_i}}Use <code>.initialism</code> class for uppercase abbreviations.{{/i}}
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -129,8 +130,9 @@ ...@@ -129,8 +130,9 @@
</div> </div>
<div class="span4"> <div class="span4">
<h3>{{_i}}Example abbreviations{{/i}}</h3> <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}}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}}<abbr title="HyperText Markup Language">HTML</abbr> is the best thing since sliced bread.{{/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}}<abbr title="HyperText Markup Language" class="initialism">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> <p>{{_i}}An abbreviation of the word attribute is <abbr title="attribute">attr</abbr>.{{/i}}</p>
</div> </div>
</div> </div>
......
...@@ -154,12 +154,14 @@ em { ...@@ -154,12 +154,14 @@ em {
} }
// Abbreviations and acronyms // Abbreviations and acronyms
abbr { abbr[title] {
font-size: 90%;
text-transform: uppercase;
border-bottom: 1px dotted #ddd; border-bottom: 1px dotted #ddd;
cursor: help; cursor: help;
} }
abbr.initialism {
font-size: 90%;
text-transform: uppercase;
}
// Blockquotes // Blockquotes
blockquote { blockquote {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment