0
0
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:
Mark Otto 2012-07-30 13:25:27 -07:00
parent b2ebd5c46c
commit a9bf1e6e35
3 changed files with 17 additions and 1 deletions

View File

@ -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;

View File

@ -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;
}
}

View File

@ -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-->