@charset "UTF-8";
@import "./reset.scss";
@import "./color.scss";

body {
  // .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-color: #ccc;
  // }

  // 选择框
  .el-select-dropdown__item {
    font-size: 12px;
  }
  .el-cascader.is-disabled .el-cascader__label {
    color: $color-text-regular;
  }
  // 输入框
  .el-input {
    font-size: 12px;
    width: 160px;
  }
  .el-input-number{
    &.is-without-controls{
      width: 100%;
      .el-input{
        width: 100%;
      }
    }
  }
  .el-date-picker__editor-wrap .el-input {
    width: 100%;
  }
  .el-select .el-input .el-select__caret {
    color: $color-text-primary;
  }
  .el-textarea__inner {
    font-size: 12px;
  }
  //按钮
  .el-button {
    line-height: 14px;
    // min-width: 80px;
  }
  .el-button + .el-button {
    margin-left: 10px;
  }
  .el-button--primary {
    color: #fff;
  }
  .el-button--text {
    // min-width: auto;
    color: $blue-color;
    &:focus,
    &:hover {
      color: #0064b4;
    }
  }
  // 表单
  .el-form-item__content {
    font-size: 0;
    // height: 32px;
    line-height: 32px;
  }
  .el-form-item__label {
    color: #000;
    font-size: 12px;
    line-height: 32px;
    padding: 0 7px 0 0;
  }
  .el-form-item {
    margin-bottom: 15px;
    font-size: 0;
    &:last-child {
      // margin-bottom: 0;
    }
  }
  .el-form-item__error {
    padding-top: 0;
  }
  // 表格
  .el-table {
    font-size: 12px;
    color: $color-text-primary;
    border: 1px solid #ddd;
    border-bottom: 0;
    td {
      padding: 7px 0;
    }
    thead {
      color: $color-text-primary;
    }
    th {
      padding: 7px 0;
      font-weight: normal;
      background-color: #f8f8f8;
    }
    .cell {
      // padding: 0 7px;
    }
  }
  .el-table--border th {
    border-right: 0;
  }
  // 标签页
  .el-tabs__item {
    padding: 0 22px;
    height: 32px;
    line-height: 32px;
    font-size: 12px;
    font-weight: normal;
    &.is-active {
      color: $color-text-primary;
    }
  }
  .el-tabs__header {
    margin: 0 0 8px;
  }
  .el-tabs__nav {
    background-color: #f8f8f8;
  }
  .el-tabs--card > .el-tabs__header .el-tabs__item {
    border-bottom: 1px solid #ccc;
    &.is-active {
      background-color: #fff;
    }
    &:first-child {
      border-radius: 4px 0 0 0;
    }
    &:last-child {
      border-radius: 0 4px 0 0;
    }
  }
  // 分页

  .el-pagination {
    padding: 0;
  }
  .el-pagination__jump {
    margin-left: 10px;
  }
  //级联选择器
  .el-cascader-menu__item,
  .el-cascader__label {
    font-size: 12px;
  }
  .el-input__icon {
    font-size: 14px;
    color: #333;
  }
  .el-tree-node__content {
    height: 44px;
    border-bottom: 1px solid #ddd;
  }
  // dialog
  .el-dialog__body {
    padding: 15px 20px;
  }
}
