Skip to content

Commit

Permalink
Merge pull request twbs#11217 from ZDroid/nest
Browse files Browse the repository at this point in the history
Add quick fix to labels and badges in buttons
  • Loading branch information
mdo committed Dec 1, 2013
2 parents 67d4e33 + 9a2d169 commit 5283e51
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
12 changes: 6 additions & 6 deletions less/badges.less
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
&:empty {
display: none;
}

// Quick fix for badges in buttons
.btn & {
position: relative;
top: -1px;
}
}

// Hover state, but only for links
Expand All @@ -34,12 +40,6 @@ a.badge {
}
}

// Quick fix for labels/badges in buttons
.btn .badge {
position: relative;
top: -1px;
}

// Account for counters in navs
a.list-group-item.active > .badge,
.nav-pills > .active > a > .badge {
Expand Down
6 changes: 6 additions & 0 deletions less/labels.less
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
&:empty {
display: none;
}

// Quick fix for labels in buttons
.btn & {
position: relative;
top: -1px;
}
}

// Colors
Expand Down

0 comments on commit 5283e51

Please sign in to comment.