/**
 * 自定义 form 表单样式，为 a-form 添加类 custom-form
 * 自定义 form-item 样式，为 a-form-item 添加 custom-form 类
 */
.custom-form {
  &.ant-form-vertical .ant-form-item-label {
    padding-bottom: 4px;
  }
}

.custom-form .ant-form-item,
.custom-form-item.ant-form-item {
  .ant-form-item-label {
    padding-bottom: 4px;
  }

  .ant-form-item-no-colon {
    margin-left: 4px;
  }

  &.ant-form-item-has-error {
    .ant-input,
    .ant-input-affix-wrapper,
    .ant-input:hover,
    .ant-input-affix-wrapper:hover {
      border-color: #ff374f;
    }

    .ant-form-item-explain.ant-form-item-explain-error {
      color: #ff374f;
    }
  }
}
