mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-24 22:16:38 +02:00
fixes #3900: nudge badges in buttons up 1px
This commit is contained in:
6
docs/assets/css/bootstrap.css
vendored
6
docs/assets/css/bootstrap.css
vendored
@@ -5128,6 +5128,12 @@ a.badge:hover {
|
|||||||
background-color: #1a1a1a;
|
background-color: #1a1a1a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn .label,
|
||||||
|
.btn .badge {
|
||||||
|
position: relative;
|
||||||
|
top: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
@-webkit-keyframes progress-bar-stripes {
|
@-webkit-keyframes progress-bar-stripes {
|
||||||
from {
|
from {
|
||||||
background-position: 40px 0;
|
background-position: 40px 0;
|
||||||
|
@@ -55,3 +55,12 @@ a {
|
|||||||
&-inverse { background-color: @grayDark; }
|
&-inverse { background-color: @grayDark; }
|
||||||
&-inverse[href] { background-color: darken(@grayDark, 10%); }
|
&-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>
|
</form>
|
||||||
</div><!--/span-->
|
</div><!--/span-->
|
||||||
<div class="span4">
|
<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><!--/span-->
|
||||||
</div><!--/row-->
|
</div><!--/row-->
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user