element-ui.scss 5.05 KB
// 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;
}

.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 {
  display: none;
}

// to fixed https://github.com/ElemeFE/element/issues/2461
// refine element ui upload
.el-input.is-disabled .el-input__inner {
  color: #FFFFFF !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;
}

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

::-webkit-scrollbar-track {
  width: 7px;
  background-color: #29409D;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background-color: #355194;
  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;
}

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

// element table 样式修改
//去掉表格内的线
table th {
  border-bottom: none !important;
}

.el-table__body {
  -webkit-border-vertical-spacing: 6px !important; // 垂直间距
}

table td {
  box-sizing: border-box;
  border-bottom: none !important;
}

//去掉最下面的那一条线
.el-table::before {
  height: 0;
}

.el-table__body tr {
  box-sizing: content-box !important;
  cursor: pointer;
}

.el-table__body tr:hover {
  background: #063160 !important;
  box-shadow: inset 0px 0px 20px 0px #03DBFF !important;
}

.el-table__body tr:hover>td {
  background: none !important;
}

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


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

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


// element 下拉框样式
.el-menu--popup,
.el-select-dropdown {
  background-color: #031A46 !important;
  padding: 10px;
  border: none;
}

.el-popper[x-placement^="bottom"] .popper__arrow::after {
  display: none;
}

.el-popper[x-placement^="bottom"] .popper__arrow {
  display: none;
}

.el-date-picker {
  background-color: #031a46;

  .el-date-picker__header-label {
    color: #A6CFD6;
  }

  .el-picker-panel__icon-btn {
    color: #A6CFD6;
  }

  .el-date-table th {
    color: #02D9FD;
  }

  .el-date-table td span {
    color: #A6CFD6;
  }

  .el-date-table td.current:not(.disabled) span {
    background-color: #074487;
    //  border:1px solid saddlebrown;
    box-shadow: inset 0 0 7px #02D9FD;
    border: 1px solid #02D9FD;
  }

}

.el-picker-panel__content {
  background-color: #074487;

}


.el-menu--horizontal .el-menu .el-menu-item,
.el-select-dropdown__item,
.el-menu--horizontal .el-menu .el-submenu__title {
  background: #074487 !important;
  margin: 5px 0;
  border: 1px solid #074487;
  color: #02D9FD !important;
}

.el-menu--horizontal .el-menu--popup .el-menu-item:not(.is-disabled):hover,
.el-select-dropdown__item:hover,
.el-select-dropdown__item.selected,
.el-menu--horizontal .el-menu--popup .el-menu-item:not(.is-disabled):focus {
  background: #074487;
  border: 1px solid #02D9FD;
  color: #FFFFFF !important;
  font-weight: 700;
}