// cover some element-ui styles
@import './variables.scss';
.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type='file'] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    min-width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

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

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block;
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

// 重写custom-theme样式
.custom-theme {
  .el-cascader__dropdown {
    .el-cascader-menu {
      overflow: hidden;
    }

    .el-scrollbar__wrap {
      overflow-x: hidden;
    }
  }
}

.el-tree-node.is-current:focus > .el-tree-node__content {
  background-color: #b3d8ff !important;
}

* {
  touch-action: none !important;
}

.custom-theme .el-dialog {
  padding: 0 !important;
}
.custom-theme .el-dialog__header {
  border-bottom: 1px solid $gkGrey;
  height: 51px;
  padding: 0 !important;
  position: relative;
  .el-dialog__title {
    color: $gkBlue;
    font-weight: bold;
    position: absolute;
    left: 20px;
    top: 10px;
    height: 30px;
    line-height: 30px;
    width: 50%;
    overflow: hidden;
  }
}

.custom-theme .el-dialog__footer {
  border-top: 1px solid $gkGrey;
  padding: 20px !important;
}

.custom-theme .is-fullscreen {
  padding: 0 !important;
}

.custom-theme
  .el-tree--highlight-current
  .el-tree-node.is-current
  > .el-tree-node__content {
  //默认选中的颜色
  background-color: #b3d8ff !important;
}
#app .sidebar-container {
  .sub-el-icon {
    .el-menu-item {
      width: 17px !important;
    }
  }
  .el-menu {
    .el-submenu {
      margin-right: 0 !important;
    }
  }
}

// message
.el-message {
  -webkit-box-pack: center !important;
  -ms-flex-pack: center !important;
  justify-content: center !important;
  padding: 30px 15px 30px 20px !important;
  top: 40% !important;
  border-color: #ebeef5 !important;
  background-color: #edf2fc !important;
}
.el-message.el-message--success {
  .el-message__content {
    color: #409167 !important;
  }
}

.el-message.el-message--warning {
  .el-message__content {
    color: #ffba00 !important;
  }
}

.el-message.el-message--error {
  .el-message__content {
    color: #b3450e !important;
  }
}

// confirm
.el-message-box {
  padding: 0 !important;
  .el-message-box__header {
    padding: 18px !important;
    border-bottom: 1px solid $gkGrey !important;
    .el-message-box__title {
      color: $gkBlue !important;
    }
  }
  .el-message-box__content {
    border-bottom: 1px solid $gkGrey !important;
    padding: 35px 70px !important;
    .el-message-box__status {
      color: #f56c6c !important;
    }
  }
  .el-message-box__btns {
    padding: 15px !important;
  }
}

// el-form
// .el-form-item__label-wrap{

// }

