/*
 *  CSS Labels and Badgets
*/

@import "variables.less";

.label, .badge {
    display: inline-block;
    padding: 2px 4px;
    font-size: 12px;
    font-weight: bold;
    line-height: 14px;
    color: #ffffff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    vertical-align: baseline;
    background-color: #999999;
}
.label {
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}
.badge {
    padding-right: 9px;
    padding-left: 9px;
    -webkit-border-radius: 9px;
    -moz-border-radius: 9px;
    border-radius: 9px;
}
.label.success,
.badge.success,
.badges.success.animated[data-bubble]::after {
    background-color: #468847;
}
.label.warning,
.badge.warning,
.badges.warning.animated[data-bubble]::after {
    background-color: #f89406;
}
.label.important,
.badge.important,
.badges.important.animated[data-bubble]::after {
    background-color: #b94a48;
}
.label.info, .badge.info,
.badges.info.animated[data-bubble]::after {
    background-color: #3a87ad;
}
.label.inverse,
.badge.inverse,
.badges.inverse.animated[data-bubble]::after {
    background-color: #333333;
}
.badges.animated {
	position: relative;
	text-decoration: none;
	background-color: #999;
	padding: 10px 16px;
	line-height: 2.5em;
}
.badges.animated[data-bubble]::after {
    content: attr(data-bubble);
    position: absolute;
    top: 0;
    right: 0.5em;
    height: 1.5em;
    line-height: 1.5em;
    padding: 0 .46em;
    text-align: center;
    text-shadow: 0 0.063em 0 rgba(0,0,0,.2);
    background-color: #eee;
    color: #fff;
    box-shadow: 0 0.063em 0.063em rgba(0,0,0,.2);
    border-radius: 4em;
    z-index: -1;
    -webkit-transform: translateZ(0);
    will-change: transform;
}
.badges.animated[data-bubble]:hover::after,
.badges.animated[data-bubble]:active::after,
.badges.animated[data-bubble]:focus::after {
    -webkit-animation: ease bubbleover .4s;
    animation: ease bubbleover .4s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    top: -1.25em;
    z-index: 1;
}
@-webkit-keyframes bubbleover {
  0%   {
  	-webkit-transform:translate(0, 1em);
  	z-index:-1
  	}
  50% {
  	-webkit-transform:translate(0, -.5em);
  	z-index:-1
  } 
  100% {
  	-webkit-transform:translate(0, 0);
  	z-index:1;
  	}
}

@keyframes bubbleover {
  0%   {
    top:0;
    transform:translate(0, 0);
    z-index:-1;
    }
  50% {
    transform:translate(0, -12px);
    z-index:-1
    } 
  100% {
    transform:translate(0, 6px);
    z-index:1;
    }
}