1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-01 03:10:14 +02:00

Add quick fix to labels and badges in buttons

This commit is contained in:
Zlatan Vasović
2013-10-23 22:14:34 +02:00
parent eb77241ae2
commit 9a2d169762
2 changed files with 12 additions and 6 deletions

View File

@@ -22,6 +22,12 @@
&:empty { &:empty {
display: none; display: none;
} }
// Quick fix for badges in buttons
.btn & {
position: relative;
top: -1px;
}
} }
// Hover state, but only for links // Hover state, but only for links
@@ -34,12 +40,6 @@ a.badge {
} }
} }
// Quick fix for labels/badges in buttons
.btn .badge {
position: relative;
top: -1px;
}
// Account for counters in navs // Account for counters in navs
a.list-group-item.active > .badge, a.list-group-item.active > .badge,
.nav-pills > .active > a > .badge { .nav-pills > .active > a > .badge {

View File

@@ -28,6 +28,12 @@
&:empty { &:empty {
display: none; display: none;
} }
// Quick fix for labels in buttons
.btn & {
position: relative;
top: -1px;
}
} }
// Colors // Colors