mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-18 10:52:19 +01:00
Update labels to include a base class
* Builds on the new button styles by requiring a `.btn-default` for the regular, gray labels * Updates components examples to show new stuff
This commit is contained in:
parent
844df9e001
commit
c4281f3919
@ -1629,28 +1629,28 @@ body { padding-bottom: 70px; }
|
||||
|
||||
<h3>Example</h3>
|
||||
<div class="bs-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>
|
||||
<h1>Example heading <span class="label label-default">New</span></h1>
|
||||
<h2>Example heading <span class="label label-default">New</span></h2>
|
||||
<h3>Example heading <span class="label label-default">New</span></h3>
|
||||
<h4>Example heading <span class="label label-default">New</span></h4>
|
||||
<h5>Example heading <span class="label label-default">New</span></h5>
|
||||
<h6>Example heading <span class="label label-default">New</span></h6>
|
||||
</div>
|
||||
{% highlight html %}
|
||||
<h3>Example heading <span class="label">New</span></h3>
|
||||
<h3>Example heading <span class="label label-default">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>
|
||||
<div class="bs-example">
|
||||
<span class="label">Default</span>
|
||||
<span class="label label-default">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 %}
|
||||
<span class="label">Default</span>
|
||||
<span class="label label-default">Default</span>
|
||||
<span class="label label-success">Success</span>
|
||||
<span class="label label-warning">Warning</span>
|
||||
<span class="label label-danger">Danger</span>
|
||||
|
10
dist/css/bootstrap.css
vendored
10
dist/css/bootstrap.css
vendored
@ -4073,7 +4073,6 @@ a.thumbnail:focus {
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
vertical-align: baseline;
|
||||
background-color: #999999;
|
||||
border-radius: .25em;
|
||||
}
|
||||
|
||||
@ -4085,6 +4084,15 @@ a.thumbnail:focus {
|
||||
background-color: #808080;
|
||||
}
|
||||
|
||||
.label-default {
|
||||
background-color: #999999;
|
||||
}
|
||||
|
||||
.label-default[href]:hover,
|
||||
.label-default[href]:focus {
|
||||
background-color: #808080;
|
||||
}
|
||||
|
||||
.label-danger {
|
||||
background-color: #d9534f;
|
||||
}
|
||||
|
2
dist/css/bootstrap.min.css
vendored
2
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
@ -12,7 +12,6 @@
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
vertical-align: baseline;
|
||||
background-color: @gray-light;
|
||||
border-radius: .25em;
|
||||
|
||||
// Add hover effects, but only for links
|
||||
@ -29,6 +28,11 @@
|
||||
|
||||
// Colors
|
||||
// Contextual variations (linked labels get darker on :hover)
|
||||
|
||||
.label-default {
|
||||
.label-variant(@label-default-bg);
|
||||
}
|
||||
|
||||
.label-danger {
|
||||
.label-variant(@label-danger-bg);
|
||||
}
|
||||
|
@ -375,6 +375,8 @@
|
||||
|
||||
// Labels
|
||||
// -------------------------
|
||||
|
||||
@label-default-bg: @gray-light;
|
||||
@label-success-bg: @brand-success;
|
||||
@label-info-bg: @brand-info;
|
||||
@label-warning-bg: @brand-warning;
|
||||
|
Loading…
x
Reference in New Issue
Block a user