mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
fixes #3900: nudge badges in buttons up 1px
This commit is contained in:
parent
b2ebd5c46c
commit
a9bf1e6e35
6
docs/assets/css/bootstrap.css
vendored
6
docs/assets/css/bootstrap.css
vendored
@ -5128,6 +5128,12 @@ a.badge:hover {
|
||||
background-color: #1a1a1a;
|
||||
}
|
||||
|
||||
.btn .label,
|
||||
.btn .badge {
|
||||
position: relative;
|
||||
top: -1px;
|
||||
}
|
||||
|
||||
@-webkit-keyframes progress-bar-stripes {
|
||||
from {
|
||||
background-position: 40px 0;
|
||||
|
@ -55,3 +55,12 @@ a {
|
||||
&-inverse { background-color: @grayDark; }
|
||||
&-inverse[href] { background-color: darken(@grayDark, 10%); }
|
||||
}
|
||||
|
||||
// Quick fix for labels/badges in buttons
|
||||
.btn {
|
||||
.label,
|
||||
.badge {
|
||||
position: relative;
|
||||
top: -1px;
|
||||
}
|
||||
}
|
||||
|
@ -1011,7 +1011,8 @@
|
||||
</form>
|
||||
</div><!--/span-->
|
||||
<div class="span4">
|
||||
|
||||
<button class="btn">Action <span class="badge">2</span></button>
|
||||
<button class="btn">Action <span class="label">2</span></button>
|
||||
</div><!--/span-->
|
||||
</div><!--/row-->
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user