@import 'common/index';

.ht-base-form {
  &.ivu-form {
    .ivu-form-item-label {
      font-size: @font-size-small;
    }
  }
  .ivu-btn-primary:active {
    background-color: @selected-color !important;
  }
  .ivu-form-item-validating-tip {
    position: absolute;
    top: 100%;
    left: 0;
    line-height: 1;
    padding-top: 6px;
    color: #999999;
  }
}

.ivu-form-item.ht-base-form-item {
  &.ivu-form-item-error {
    .ivu-input {
      border: 1px solid @error-color;
      &:hover {
        border-color: @error-color !important;
        box-shadow: none !important;
      }
      &:active {
        border-color: @error-color !important;
        box-shadow: @box-shadow-error !important;
      }
      &:focus {
        border-color: @error-color !important;
        box-shadow: @box-shadow-error !important;
      }
    }
  }
  //&.ivu-form-item-error .ivu-input {
  //  border: 1px solid @error-color;
  //}
  //&.ivu-form-item-error .ivu-input:hover {
  //  border-color: @error-color !important;
  //  box-shadow: none !important;
  //}
  //&.ivu-form-item-error .ivu-input:active {
  //  border-color: @error-color !important;
  //  box-shadow: @box-shadow-error !important;
  //}
  //&.ivu-form-item-error .ivu-input:focus {
  //  border-color: @error-color !important;
  //  box-shadow: @box-shadow-error !important;
  //}
}

.ivu-form-item.ht-base-form-item {
  &.ivu-form-item-warning .ivu-input {
    border: 1px solid @warning-color;
  }
  &.ivu-form-item-warning .ivu-input:hover {
    border-color: @warning-color !important;
    box-shadow: none !important;
  }
  &.ivu-form-item-warning .ivu-input:active {
    border-color: @warning-color !important;
    box-shadow: @box-shadow-warning !important;
  }
  &.ivu-form-item-warning .ivu-input:focus {
    border-color: @warning-color !important;
    box-shadow: @box-shadow-warning !important;
  }
}

.ivu-form-item-error{
  .ht-base-select {
    &.ivu-select-single .ivu-select-selection:hover {
      border-color: @error-color !important;
      box-shadow: none !important;
    }
    &.ivu-select-single .ivu-select-selection:active {
      border-color: @error-color !important;
      box-shadow: @box-shadow-error !important;
    }
    &.ivu-select-single .ivu-select-selection:focus {
      border-color: @error-color !important;
      box-shadow: @box-shadow-error !important;
    }
  }
}
.ivu-form-item-warning{
  .ht-base-select {
    &.ivu-select-single .ivu-select-selection:hover {
      border-color: @warning-color !important;
      box-shadow: none !important;
    }
    &.ivu-select-single .ivu-select-selection:active {
      border-color: @warning-color !important;
      box-shadow: @box-shadow-warning !important;
    }
    &.ivu-select-single .ivu-select-selection:focus {
      border-color: @warning-color !important;
      box-shadow: @box-shadow-warning !important;
    }
  }

}
.ivu-form-item-error{
  .ht-base-input-number.ivu-input-number.ivu-input-number-focused.ivu-input-number-default{
    box-shadow:@box-shadow-error !important;
  }
}
.ivu-form-item-warning{
  .ht-base-input-number.ivu-input-number.ivu-input-number-focused.ivu-input-number-default{
    box-shadow:@box-shadow-warning !important;
  }
}
.ivu-input-number.ivu-input-number-focused.ivu-input-number-default{
  box-shadow:@box-shadow !important;
}
