/*
 * Copyright (C) 2015 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */

@mixin ic-badge-maker(
  $circle-size: 20px,
  $background-color: var(--ic-brand-primary),
  $text-color: $ic-color-light,
  $font-size: 11px) {

  @include fontSize($font-size);
  min-width: $circle-size;
  line-height: $circle-size;
  border-radius: $circle-size/2;
  background: $background-color;
  color: $text-color;
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  box-sizing: border-box;
  padding: 0 6px;

}

.ic-badge {
  @include ic-badge-maker;
  &.ic-badge--neutral {
    background: $ic-bg-light-neutral;
    color: $ic-font-color-dark;
  }
  &.ic-badge--success { background: $ic-color-success; }
  &.ic-badge--alert { background: $ic-color-alert; }
  &.ic-badge--danger { background: $ic-color-danger; }
}
