
@mixin btn-outline-variant($color, $bg) {
  color: $bg;

  &:hover {
    color: $color;
  }
}

.btn-outline {
  background-color: transparent;

  &.btn-primary {
    @include btn-outline-variant($btn-primary-color, $btn-primary-bg);
  }

  &.btn-info {
    @include btn-outline-variant($btn-info-color, $btn-info-bg);
  }

  &.btn-success {
    @include btn-outline-variant($btn-success-color, $btn-success-bg);
  }

  &.btn-warning {
    @include btn-outline-variant($btn-warning-color, $btn-warning-bg);
  }

  &.btn-danger {
    @include btn-outline-variant($btn-danger-color, $btn-danger-bg);
  }
}

.btn-primary.btn-outline:active, .btn-primary.btn-outline:focus {
  color: #fff;
}

.btn {
  text-transform: uppercase;
  font-weight: lighter;
  border-radius: 0;
  @include transition(0.3s);

  &.btn-delete-resource {
    i {
      position: relative;
      top: 1px;
    }
  }

  &.btn-icon, &.btn-icon:active, &.btn-icon:focus {
    font-size: 28px;
    line-height: 30px;
    padding: 0;
    border: none;
    outline: none;
    @include box-shadow(none);
    background: transparent;

    &.rotate-on-hover {
      &:hover {
        @include rotate(45deg);
      }
    }

    &:hover {
      background: transparent;
    }

    i {
      position: relative;
      top: 2px;
    }
  }

  &.margin-right {
    margin-right: 10px;
  }

  &.margin-left {
    margin-left: 10px;
  }
}

.btn-primary {
  @include button-variant($st-btn-primary-color, $st-btn-primary-bg, $st-btn-primary-border);
}

.btn-danger {
  @include button-variant($st-btn-danger-color, $st-btn-danger-bg, $st-btn-danger-border);
}

.btn-outline {
  background-color: transparent;

  &.btn-primary {
    @include btn-outline-variant($st-btn-primary-color, $st-btn-primary-bg);
  }

  &.btn-danger {
    @include btn-outline-variant($st-btn-danger-color, $st-btn-danger-bg);
  }
}
