sbElement-ui.scss 3.39 KB
@import "~@/styles/_handle.scss";

// cover some element-ui styles
.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
  color: #686666;
}

.el-table .cell {
  line-height: 16px;
}

//input
.el-input__inner {
  color: #FFFFFF !important;
  padding: 0 7px !important;
}

// input 样式
// 全局css 加上以下代码,可以隐藏上下箭头

// 取消input的上下箭头
input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;

}

input::-webkit-outer-spin-button {
  -webkit-appearance: none !important;

}

input[type="number"] {
  -moz-appearance: textfield;

}

.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;
    }
  }
}

.el-icon-date,
.el-icon-time {
  display: none;
}

// to fixed https://github.com/ElemeFE/element/issues/2461
// refine element ui upload
.el-input.is-disabled .el-input__inner {
  background-color: transparent !important;
}

.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;
}

.el-submenu__icon-arrow {
  margin-top: -5px;
}

// element 样式补丁
.el-menu--horizontal {
  border-bottom: none !important;
}

.el-radio-group {
  .el-radio-button__inner {
    height: 36px;
    line-height: 36px;
    padding: 0 20px;
    font-size: 14px;
  }

  .el-radio-button:first-child {
    border-radius: 4px 0 0 4px;
  }

  .el-radio-button:last-child {
    border-radius: 0 4px 4px 0;
  }
}

.el-tabs__item:focus.is-active.is-focus:not(:active) {
  box-shadow: none !important;
}

// Divider 分割线 样式的修改
.el-divider--horizontal {
  margin: 10px 0 !important;
}

.el-row {
  margin-bottom: 0 !important;
}

// form
.el-form-item__content {
  margin-left: 0 !important;
}

.el-icon-full-screen,
.el-icon-rank {
  cursor: pointer;
}

// 表格样式
.el-table th {
  height: 48px !important;
  font-size: 14px;
  color: #4A4A4A;
}

.el-pagination.is-background .btn-prev,
.el-pagination.is-background .btn-next,
.el-pagination.is-background .el-pager li {
  @include borderColor("pagBorderColor");
  background-color: #FFFFFF;
  @include font_color("pagText");
}

.el-pagination.is-background .el-pager li:not(.disabled).active {
  @include background("pagBg");
  border-radius: 4px;
  @include font_color("pagActiveText");
  @include borderColor("pagActiveText");
}

.el-table__header th {
  background-color: #F1F3F7 !important;
}

.el-table tr td {
  font-size: 14px;
  color: #7A7A7A;
}

.lb-table .el-table {
  border-bottom: none;
  border-radius: 4px 4px 0 0;
}

.el-upload-list__item.is-success:focus:not(:hover) .el-icon-close-tip {
  display: none !important
}

.el-message-box__btns {
  display: flex;
  flex-direction: row-reverse;
}

.el-message-box__btns .el-button--primary {
  margin-right: 10px;
}

.el-form-item__content {
  flex: 1;
}