/// <reference path="../common/colors" />
/// <reference path="../common/defaults" />
/// <reference path="../common/media_querys" />
@import "../common/colors";
@import "../common/mixins";
@import "../common/media_querys";

// Base class
.badge {
  display: none;
  min-width: 10px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 500;
  color: $color-white;
  line-height: 12px;
  vertical-align: baseline;
  white-space: nowrap;
  text-align: center;

  border-radius: 50%;

  // Empty badges collapse automatically (not available in IE8)


}

// Hover state, but only for links
a.badge {
  &:hover,
  &:focus {
    color: $color-primary-800;
    text-decoration: none;
    cursor: pointer;
  }
}

.core-badge {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  color: #FFF;
  line-height: 18px;
  font-size: 14px;
  position: absolute;
  z-index: 2;
  display: none;
  font-weight: 700;
  text-align: center;

  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;

  &:empty {
    display: none;
  }

  &.isVisible {
    display: inline-block;
  }

  &.core-badge-pos-left {
    left: 0;
  }

  &.core-badge-pos-right {
    right: 0;
  }

  &.core-badge-pos-top {
    top: 14px;
  }
  &.core-badge-pos-top-right {
    top: 14px;
    right: 0;
  }
  &.core-badge-pos-top-left {
    top: 14px;
    left: 0;
  }

  &.core-badge-pos-bottom {
    bottom: 14px;
  }
  &.core-badge-pos-bottom-right {
    bottom: 14px;
    right: 0;
  }
  &.core-badge-pos-bottom-left {
    bottom: 14px;
    left: 0;
  }
}

