2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-14 18:42:30 +03:00

Change .badge to .counter, make appearance more OSX-ish, and remove colors

This commit is contained in:
Vickash Mahabir
2013-01-18 17:35:23 -04:00
parent f068cdeb63
commit 665de0455c
5 changed files with 32 additions and 132 deletions
+48
View File
@@ -0,0 +1,48 @@
//
// Labels and badges
// --------------------------------------------------
// Base classes
.counter {
display: inline-block;
padding: 2px 7px;
font-size: @font-size-base * .846;
font-weight: bold;
line-height: 14px; // ensure proper line-height if floated
color: #fff;
vertical-align: baseline;
white-space: nowrap;
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
background-color: @grayLight;
border-radius: 10px;
min-width: 10px;
text-align: center;
// Empty labels/badges collapse
&:empty {
display: none;
}
}
// Hover state, but only for links
a.counter {
&:hover {
color: #fff;
text-decoration: none;
cursor: pointer;
}
}
// Quick fix for labels/badges in buttons
.btn {
.counter {
position: relative;
top: -1px;
}
}
.btn-mini {
.counter {
top: 0;
}
}