element-ui.scss 4.74 KB
// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
  color: #686666;
}

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

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

/* --------------进度条美化---------------- */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  width: 7px;
  background-color: rgba(255, 255, 255, 0);
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background-color: rgb(207, 208, 209);
  background-clip: padding-box;
  min-height: 28px;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgb(162, 164, 167);
}

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

// 按钮型tab样式
.btnTab {
  .el-tabs__nav.is-top {
    line-height: 36px;
  }

  .el-tabs__item {
    height: 36px;
    line-height: 36px;
  }

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

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

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

// element table 不能对齐
.el-table th.gutter {
  display: table-cell !important;
}

// input type=number 上下箭头
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

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

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

// element table 选中 颜色
.el-table--enable-row-hover .el-table__body tr:hover>td {
  background-color: #FCFDFD;
}

.el-table__body .el-table__row.hover-row td {
  background-color: #FCFDFD;
}

.el-table tbody tr:hover>td {
  background-color: #FCFDFD;
}

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

.el-table th.is-leaf,
.el-table td {
  border-bottom: 1px solid #E4EBF4;
}

.el-table tr:nth-child(even) {
  background: #FCFDFD !important;
}

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

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

// 表格暂无数据样式
.el-table__empty-text {
  height: 200px;
  line-height: 300px;
  background: url('/images/table-bg.png') 50% 50% no-repeat;
  background-size: 100px;
  letter-spacing: 2px;
  color: #aaa;
}

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

// // 全局修改button颜色
// .el-select {
//   width: 100%;
// }

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

.el-submenu__title {
  .svg-icon {
    position: relative;
    top: 2px;
  }
}

// 日期选择-日历图标位置
.el-date-editor .el-input__prefix {
  left: auto;
  right: 5px;
}

.el-input--prefix .el-input__inner {
  padding-left: 17px;
}

.el-input__suffix-inner .el-icon-circle-close {
  position: absolute;
  right: 20px;
}

// 日期范围-日历图标位置
.el-date-editor .el-range__icon {
  position: absolute;
  right: 5px;
}

.el-date-editor .el-icon-circle-close {
  position: absolute;
  right: 20px;
}

.el-date-editor.el-date-editor--daterange .el-icon-circle-close {
  position: absolute;
  right: 25px;
}