@mixin alert-type($borderColor, $bgColor, $icon) {
  border: 1px solid $borderColor;
  background-color: $bgColor;
  .#{$namespace}alert-icon {
    background-image: url($icon);
    background-repeat: no-repeat;
    background-size: 100%;
  }
}

div.#{$namespace}alert {
  
  &.#{$namespace}alert-info {
    @include alert-type($color-info-light-1, $color-info-light-8, $icon-info);
  }
  &.#{$namespace}alert-success {
    @include alert-type($color-success-light-1,$color-success-light-8, $icon-success);
  }
  &.#{$namespace}alert-warning {
    @include alert-type($color-warning-light-1, $color-warning-light-8, $icon-warning);
  }
  &.#{$namespace}alert-error {
    @include alert-type($color-danger-light-1, $color-danger-light-8, $icon-danger);
  }
}
