mirror of
https://github.com/jasny/bootstrap.git
synced 2026-04-24 03:00:49 -04:00
Bring back the label, make it scale somewhat with the font-size of the parent using percentages and ems
This commit is contained in:
@@ -28,6 +28,7 @@ title: Components
|
||||
<li><a href="#navbar"><i class="glyphicon glyphicon-chevron-right"></i> Navbar</a></li>
|
||||
<li><a href="#breadcrumbs"><i class="glyphicon glyphicon-chevron-right"></i> Breadcrumbs</a></li>
|
||||
<li><a href="#pagination"><i class="glyphicon glyphicon-chevron-right"></i> Pagination</a></li>
|
||||
<li><a href="#labels"><i class="glyphicon glyphicon-chevron-right"></i> Labels</a></li>
|
||||
<li><a href="#badges"><i class="glyphicon glyphicon-chevron-right"></i> Badges</a></li>
|
||||
<li><a href="#typography"><i class="glyphicon glyphicon-chevron-right"></i> Typography</a></li>
|
||||
<li><a href="#thumbnails"><i class="glyphicon glyphicon-chevron-right"></i> Thumbnails</a></li>
|
||||
@@ -1274,6 +1275,84 @@ title: Components
|
||||
|
||||
|
||||
|
||||
<!-- Labels
|
||||
================================================== -->
|
||||
<section id="counters">
|
||||
<div class="page-header">
|
||||
<h1>Labels</h1>
|
||||
</div>
|
||||
<p class="lead"></p>
|
||||
|
||||
<h3>Example</h3>
|
||||
<div class="bs-docs-example">
|
||||
<h1>Example heading <span class="label">New</span></h1>
|
||||
<h2>Example heading <span class="label">New</span></h2>
|
||||
<h3>Example heading <span class="label">New</span></h3>
|
||||
<h4>Example heading <span class="label">New</span></h4>
|
||||
<h5>Example heading <span class="label">New</span></h5>
|
||||
<h6>Example heading <span class="label">New</span></h6>
|
||||
</div>
|
||||
{% highlight html linenos %}
|
||||
<h3>Example heading <span class="label">New</span></h3>
|
||||
{% endhighlight %}
|
||||
|
||||
<h3>Available variations</h3>
|
||||
<p>Add any of the below mentioned modifier classes to change the appearance of a label.</p>
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Labels</th>
|
||||
<th>Markup</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="label">Default</span>
|
||||
</td>
|
||||
<td>
|
||||
<code><span class="label">Default</span></code>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="label label-success">Success</span>
|
||||
</td>
|
||||
<td>
|
||||
<code><span class="label label-success">Success</span></code>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="label label-warning">Warning</span>
|
||||
</td>
|
||||
<td>
|
||||
<code><span class="label label-warning">Warning</span></code>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="label label-danger">Danger</span>
|
||||
</td>
|
||||
<td>
|
||||
<code><span class="label label-danger">Danger</span></code>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<span class="label label-info">Info</span>
|
||||
</td>
|
||||
<td>
|
||||
<code><span class="label label-info">Info</span></code>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<!-- Badges
|
||||
================================================== -->
|
||||
<section id="badges">
|
||||
|
||||
Reference in New Issue
Block a user