don't use table for label variatons

This commit is contained in:
Mark Otto 2013-04-09 10:43:37 -07:00
parent 1a546278b9
commit 24f8d9e137
4 changed files with 23 additions and 60 deletions

View File

@ -4624,11 +4624,10 @@ button.close {
color: #a47e3c;
}
.close {
.alert .close {
position: relative;
top: -2px;
right: -21px;
line-height: 20px;
color: inherit;
}

View File

@ -3894,56 +3894,20 @@ For example, <code>&lt;section&gt;</code> should be wrapped as inline.
<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>&lt;span class="label"&gt;Default&lt;/span&gt;</code>
</td>
</tr>
<tr>
<td>
<span class="label label-success">Success</span>
</td>
<td>
<code>&lt;span class="label label-success"&gt;Success&lt;/span&gt;</code>
</td>
</tr>
<tr>
<td>
<span class="label label-warning">Warning</span>
</td>
<td>
<code>&lt;span class="label label-warning"&gt;Warning&lt;/span&gt;</code>
</td>
</tr>
<tr>
<td>
<span class="label label-danger">Danger</span>
</td>
<td>
<code>&lt;span class="label label-danger"&gt;Danger&lt;/span&gt;</code>
</td>
</tr>
<tr>
<td>
<span class="label label-info">Info</span>
</td>
<td>
<code>&lt;span class="label label-info"&gt;Info&lt;/span&gt;</code>
</td>
</tr>
</tbody>
</table>
<div class="bs-docs-example">
<span class="label">Default</span>
<span class="label label-success">Success</span>
<span class="label label-warning">Warning</span>
<span class="label label-danger">Danger</span>
<span class="label label-info">Info</span>
</div>
{% highlight html linenos %}
<span class="label">Default</span>
<span class="label label-success">Success</span>
<span class="label label-warning">Warning</span>
<span class="label label-danger">Danger</span>
<span class="label label-info">Info</span>
{% endhighlight %}
</div>

View File

@ -30,15 +30,14 @@
font-weight: 500;
color: darken(@state-warning-text, 10%);
}
}
// Adjust close link position
.close {
position: relative;
top: -2px;
right: -21px;
line-height: @line-height-base;
color: inherit;
// Adjust close link position
.close {
position: relative;
top: -2px;
right: -21px;
color: inherit;
}
}
// Alternate styles

View File

@ -11,6 +11,7 @@
color: #000;
text-shadow: 0 1px 0 rgba(255,255,255,1);
.opacity(.2);
&:hover,
&:focus {
color: #000;