@use 'ej2-base/styles/definition/bds' as *;
@forward 'ej2-base/styles/definition/bds';

//layout variables
$badge-theme : 'Material3' !default;

// Base Badge
$badge-base-border-radius: 6px !default;
$badge-base-font-size: $text-xs !default;
$badge-base-line-height: 1.2 !default;
$badge-base-height: 22px !default;
$badge-base-font-weight: $font-weight-medium !important !default;
$badge-base-text-indent: 0 !default;
$badge-base-text-color: $content-text-color-alt1 !default;
$badge-base-background-color: $content-bg-color-alt1 !default;

// Pill Badge
$badge-pill-border-radius: 12px !default;
$badge-pill-padding: 4px 10px 4px 10px !default;

// Notification Badge
$badge-notification-top: -10px !default;
$badge-notification-left: 100% !default;
$badge-notification-font-size: $text-xs !default;
$badge-notification-border-radius: 12px !default;
$badge-notification-min-width: 32px !default;
$badge-notification-height: 22px !default;

// Circle Badge
$badge-circle-width: 22px !default;
$badge-circle-height: 22px !default;
$badge-circle-border-radius: 12px !default;
$badge-circle-padding: 4px 3px 4px 3px !default;
$badge-circle-min-width: 0 !default;
$badge-circle-ghost-line-height: 1.2 !default;
$badge-circle-ghost-padding: 3px !default;

// Overlap Badge
$badge-overlap-top: -10px !default;
$badge-overlap-transform-left: translateX(-50%) !default;

// Button Badge
$badge-button-line-height: 1.2 !default;
$badge-button-circle-width: 22px !default;
$badge-button-circle-height: 22px !default;
$badge-button-circle-line-height: 1.2 !default;
$badge-ghost-circle-line-height: 1.2 !default;
$badge-button-top: -2px !default;

// Dot Badge
$badge-dot-top: -3px !default;
$badge-dot-width: 10px !default;
$badge-dot-height: 10px !default;
$badge-dot-line-height: 1.2 !default;
$badge-dot-border-radius: 10px !default;
$badge-dot-padding: 0 !default;
$badge-dot-min-width: 0 !default;
$badge-dot-left: 100% !default;
$badge-dot-box-shadow: $shadow-sm !default;

$badge-padding: 4px 6px !default;
$badge-notification-line-height: 1.2 !default;
$badge-notification-ghost-line-height: 1.2 !default;
$badge-notification-padding: 4px 6px 4px 6px !default;
$badge-circle-line-height: 1.2 !default;
$badge-ghost-line-height: 1.2 !default;
$badge-ghost-padding: 3px 10px 3px 10px !default;

//bigger styles
// Base Badge
$badge-touch-base-border-radius: 6px !default;
$badge-touch-base-font-size: $text-sm !default;
$badge-touch-base-line-height: 20px !default;
$badge-touch-base-height: 24px !default;
$badge-touch-base-font-weight: $font-weight-medium !default;
$badge-touch-padding: 1px 6px !default;

// Pill Badge
$badge-touch-pill-padding: 1px 10px !default;

//ghost badge
$badge-touch-ghost-padding: 0 10px !default;
$badge-touch-ghost-notification-padding: 3px 10px !default;
$badge-touch-ghost-circle-padding: 3px !default;

// Notification Badge
$badge-touch-notification-min-width: 34px !default;

// Circle Badge
$badge-touch-circle-width: 24px !default;
$badge-touch-circle-padding: 1px 3px !default;

// Dot Badge
$badge-touch-dot-width: 14px !default;
$badge-touch-dot-height: 14px !default;

//normal
$badge-primary-bg-color: $primary-lighter !default;
$badge-secondary-bg-color: $content-bg-color-alt2 !default;
$badge-success-bg-color: $success-light !default;
$badge-danger-bg-color: $danger-light !default;
$badge-warning-bg-color: $warning-light !default;
$badge-info-bg-color: $info-light !default;
$badge-light-bg-color: $content-bg-color-alt2 !default;
$badge-dark-bg-color: $content-text-color-alt2 !default;
$badge-primary-font-color: $primary_alt !default;
$badge-secondary-font-color: $content-text-color-alt1 !default;
$badge-success-font-color: $success !default;
$badge-danger-font-color: $danger !default;
$badge-info-font-color: $info !default;
$badge-light-font-color: $content-text-color !default;
$badge-dark-font-color: $content-bg-color-alt1 !default;
$badge-warning-font-color: $warning !default;
$badge-primary-border-color: 1px solid $primary-light !default;
$badge-secondary-border-color: 1px solid $border !default;
$badge-success-border-color: 1px solid $success-lighter !default;
$badge-danger-border-color: 1px solid $danger-lighter !default;
$badge-warning-border-color: 1px solid $warning-lighter !default;
$badge-info-border-color: 1px solid $info-lighter !default;
$badge-light-border-color: 1px solid  $content-bg-color-alt2 !default;
$badge-dark-border-color: 1px solid  $content-text-color-alt2 !default;
$badge-primary-ghost-border: $badge-primary-ghost-border-color !default;
$badge-primary-ghost-color: $badge-primary-ghost-text-color !default;
$badge-success-ghost-border: $badge-success-ghost-border-color !default;
$badge-success-ghost-color: $badge-success-ghost-text-color !default;
$badge-warning-ghost-border: $badge-warning-ghost-border-color !default;
$badge-warning-ghost-color: $badge-warning-ghost-text-color !default;
$badge-info-ghost-border: $badge-info-ghost-border-color !default;
$badge-info-ghost-color: $badge-info-ghost-text-color !default;
$badge-danger-ghost-border: $badge-danger-ghost-border-color !default;
$badge-danger-ghost-color: $badge-danger-ghost-text-color !default;
$badge-darkren: $badge-secondary-bg-color !default;
$badge-zero-padding-margin: 0 !default;
$badge-notification-width: auto !default;

$badge-boot-line-height: 18px !default;
$badge-normal-padding: 1px 4px !default;
$badge-button-nrml-line-height: .9 !default;

//subtle
$badge-primary-subtle-bg-color: $primary-lighter !default;
$badge-secondary-subtle-bg-color: $content-bg-color-alt1 !default;
$badge-success-subtle-bg-color: $green-50 !default;
$badge-danger-subtle-bg-color: $red-50 !default;
$badge-warning-subtle-bg-color: $orange-50 !default;
$badge-info-subtle-bg-color: $cyan-50 !default;
$badge-light-subtle-bg-color: $content-bg-color-alt1 !default;
$badge-dark-subtle-bg-color: $content-text-color-alt2 !default;

$badge-primary-subtle-font-color: $primary !default;
$badge-secondary-subtle-font-color: $content-text-color-alt1 !default;
$badge-success-subtle-font-color: $success !default;
$badge-danger-subtle-font-color: $danger !default;
$badge-warning-subtle-font-color: $warning !default;
$badge-info-subtle-font-color: $info !default;
$badge-light-subtle-font-color: $content-text-color-alt1 !default;
$badge-dark-subtle-font-color: $content-bg-color-alt2 !default;

/* stylelint-disable */
.e-badge {
  &.e-badge-primary:not(.e-badge-ghost):not([href]),
  &.e-badge-primary[href]:not(.e-badge-ghost) {
    border: $badge-primary-border-color;
  }

  &.e-badge-secondary:not(.e-badge-ghost):not([href]),
  &.e-badge-secondary[href]:not(.e-badge-ghost) {
    border: $badge-secondary-border-color;
  }

  &.e-badge-success:not(.e-badge-ghost):not([href]),
  &.e-badge-success[href]:not(.e-badge-ghost) {
    border: $badge-success-border-color;
  }

  &.e-badge-danger:not(.e-badge-ghost):not([href]),
  &.e-badge-danger[href]:not(.e-badge-ghost) {
    border: $badge-danger-border-color;
  }

  &.e-badge-warning:not(.e-badge-ghost):not([href]),
  &.e-badge-warning[href]:not(.e-badge-ghost) {
    border: $badge-warning-border-color;
  }

  &.e-badge-info:not(.e-badge-ghost):not([href]),
  &.e-badge-info[href]:not(.e-badge-ghost) {
    border: $badge-info-border-color;
  }

  &.e-badge-light:not(.e-badge-ghost):not([href]),
  &.e-badge-light[href]:not(.e-badge-ghost) {
    border: $badge-light-border-color;
  }

  &.e-badge-dark:not(.e-badge-ghost):not([href]),
  &.e-badge-dark[href]:not(.e-badge-ghost) {
    border: $badge-dark-border-color;
  }
  &.e-badge-ghost {
    &.e-badge-primary {
      border: 1px solid $badge-primary-ghost-border !important;
      color: $badge-primary-ghost-color !important;
    }
  }
  &.e-badge-ghost {
    &.e-badge-success {
      border: 1px solid $badge-success-ghost-border !important;
      color: $badge-success-ghost-color !important;
    }
  }
  &.e-badge-ghost {
    &.e-badge-danger {
      border: 1px solid $badge-danger-ghost-border !important;
      color: $badge-danger-ghost-color !important;
    }
  }
  &.e-badge-ghost {
    &.e-badge-warning {
      border: 1px solid $badge-warning-ghost-border !important;
      color: $badge-warning-ghost-color !important;
    }
  }
  &.e-badge-ghost {
    &.e-badge-info {
      border: 1px solid $badge-info-ghost-border !important;
      color: $badge-info-ghost-color !important;
    }
  }
}

.e-badge {
  &.e-badge-primary[href]:not(.e-badge-ghost) {
    &:hover {
      background-color: $badge-darkren !important;
    }
  }

  &.e-badge-secondary[href]:not(.e-badge-ghost) {
    &:hover {
      background-color: $badge-darkren !important;
    }
  }

  &.e-badge-success[href]:not(.e-badge-ghost) {
    &:hover {
      background-color: $badge-darkren !important;
    }
  }

  &.e-badge-danger[href]:not(.e-badge-ghost) {
    &:hover {
      background-color: $badge-darkren !important;
    }
  }

  &.e-badge-warning[href]:not(.e-badge-ghost) {
    &:hover {
      background-color: $badge-darkren !important;
    }
  }

  &.e-badge-info[href]:not(.e-badge-ghost) {
    &:hover {
      background-color: $badge-darkren !important;
    }
  }

  &.e-badge-light[href]:not(.e-badge-ghost) {
    &:hover {
      background-color: $badge-darkren !important;
    }
  }

  &.e-badge-dark[href]:not(.e-badge-ghost) {
    &:hover {
      background-color: $badge-darkren !important;
    }
  }

  &.e-badge-primary[href].e-badge-ghost {
    &:hover {
      background-color: $badge-darkren !important;
    }
  }

  &.e-badge-secondary[href].e-badge-ghost {
    &:hover {
      background-color: $badge-darkren !important;
    }
  }

  &.e-badge-success[href].e-badge-ghost {
    &:hover {
      background-color: $badge-darkren !important;
    }
  }

  &.e-badge-danger[href].e-badge-ghost {
    &:hover {
      background-color: $badge-darkren !important;
    }
  }

  &.e-badge-warning[href].e-badge-ghost {
    &:hover {
      background-color: $badge-darkren !important;
    }
  }

  &.e-badge-info[href].e-badge-ghost {
    &:hover {
      background-color: $badge-darkren !important;
    }
  }

  &.e-badge-light[href].e-badge-ghost {
    &:hover {
      background-color: $badge-darkren !important;
    }
  }

  &.e-badge-dark[href].e-badge-ghost {
    &:hover {
      background-color: $badge-darkren !important;
    }
  }
}

