//to reset element-ui default css
.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

// 表单校验成功select不要绿色边框
.el-form-item.is-success .el-input__inner, .el-form-item.is-success .el-input__inner:focus, .el-form-item.is-success .el-textarea__inner, .el-form-item.is-success .el-textarea__inner:focus{
  border: 1px solid #dcdfe6;
}

//暂时性解决diolag 问题 https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

//element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}
// 修改原来的蓝色系颜色
.el-button--primary {
    color: #fff;
    background-color: #5B8CFF;
    border-color: #5B8CFF;
}

.el-button--primary:focus, .el-button--primary:hover {
    background: #3B77E3;
    border-color: #3B77E3;
    color: #fff;
}

.el-tag {
  color: #5B8CFF;
}

.el-switch.is-checked .el-switch__core {
    border-color: #5B8CFF;
    background-color: #5B8CFF;
}

.el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner {
    background-color: #5B8CFF;
    border-color: #5B8CFF;
}

.el-checkbox__input.is-checked+.el-checkbox__label {
    color: #5B8CFF;
}

.el-pagination.is-background .el-pager li:not(.disabled).active {
    background-color: #5B8CFF;
    color: #fff;
}

.el-pagination.is-background .el-pager li:not(.disabled):hover {
    color: #5B8CFF;
}

.el-select-dropdown__item.selected {
    color: #5B8CFF;
    font-weight: 700;
}

.el-select .el-input.is-focus .el-input__inner {
    border-color: #5B8CFF;
}

.el-input.is-active .el-input__inner, .el-input__inner:focus {
    border-color: #5B8CFF;
    outline: 0;
}

.el-submenu__title i {
    color: #fff;
}

// 输入框
.el-form-item__content .el-select,.el-form-item__content .el-input,.el-form-item__content .el-input-number {
  width: 100% !important;
}

// 上传头像样式
.avatar-uploader .el-upload {
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.avatar-uploader .el-upload:hover {
  border-color: #409EFF;
}
.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  width: 178px;
  height: 178px;
  line-height: 178px;
  text-align: center;
}
.avatar {
  width: 178px;
  height: 178px;
  display: block;
}
