forked from drone/command-center-dashboard

罗广辉
2025-04-21 2800fa4f32f3900509cb4d6eefaf2bfaf54efdd7
src/styles/element-ui.scss
@@ -60,3 +60,494 @@
.avue--detail .el-form-item {
  background-color: #fafafa;
}
// 查看按钮
.ztzf-view {
  width: 53px;
  height: 27px;
  background: #001f4e !important;
  border-radius: 0px 0px 0px 0px;
  border: 1px solid #51a8ff !important;
  font-size: 14px;
  color: #ffffff;
  text-align: center;
  line-height: 27px;
  cursor: pointer;
}
// table表格
.ztzf-table {
  .el-table__inner-wrapper:before {
    height: 0 !important;
  }
  .el-table .warning-row {
    --el-table-tr-bg-color: rgba(22, 43, 74, 0.79);
  }
  .el-table .warning-row::after {
    position: absolute;
    content: '';
    left: 0;
    width: 100%;
    border-bottom: 1px solid;
    border-image: linear-gradient(
                    90deg,
                    rgba(25, 162, 255, 0) 10%,
                    rgba(20, 125, 202, 1) 50%,
                    rgba(25, 162, 255, 0) 90%
    ) 2 2 2 2;
  }
  .el-table .success-row {
    --el-table-tr-bg-color: #0b1d38;
  }
  .el-table .success-row::after {
    position: absolute;
    content: '';
    left: 0;
    width: 100%;
    border-bottom: 1px solid;
    border-image: linear-gradient(
                    90deg,
                    rgba(25, 162, 255, 0) 10%,
                    rgba(20, 125, 202, 1) 79%,
                    rgba(25, 162, 255, 0) 90%
    ) 2 2 2 2;
  }
  .el-table {
    color: #fff;
    --el-table-border-color: var(--el-border-color-lighter);
    --el-table-border: none !important;
    --el-table-text-color: #fff !important;
    --el-table-header-text-color: #fff !important;
    --el-table-row-hover-bg-color: none !important;
    --el-table-current-row-bg-color: none !important;
    --el-table-header-bg-color: none !important;
    --el-table-fixed-box-shadow: none !important;
    --el-table-bg-color: none !important;
    --el-table-tr-bg-color: none !important;
    --el-table-expanded-cell-bg-color: none !important;
    --el-table-fixed-left-column: inset 10px 0 10px -10px rgba(0, 0, 0, 0.15);
    --el-table-fixed-right-column: inset -10px 0 10px -10px rgba(0, 0, 0, 0.15);
  }
  .el-table__header {
    width: 0 !important;
  }
  .el-table__body {
    border-collapse: collapse;
  }
  .el-table .el-table__cell {
    padding: 0 !important;
    text-align: center !important;
  }
  .el-table thead {
    border-bottom: 1px solid !important;
    border: 1px solid !important;
    border-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1), rgba(255, 255, 255, 0)) 1 1 !important;
    color: var(--el-table-header-text-color) !important;
    background: #102441 !important;
  }
}
// 分页
.ztzf-pagination {
  --text-color: #8eb8ea;
  --border: 1px solid #1479EF;
   button {
    background: center center no-repeat none !important;
    color: var(--text-color);
  }
  .el-select__wrapper {
    background-color: #021022;
    box-shadow: none;
    border: var(--border);
  }
  .el-select__placeholder {
    color: #ffffff;
  }
  .el-pagination__total{
    color: var(--text-color);
  }
  .el-pager li {
    background: none !important;
    color: var(--text-color);
    &.is-active{
      background: #021022 !important;
      border-radius: 0;
      border: var(--border);
      color: var(--text-color);
    }
  }
  .el-pagination__goto {
    color: var(--text-color);
  }
  .el-pagination__classifier {
    color: var(--text-color);
  }
  .el-input__wrapper {
    background: #021022 !important;
    box-shadow: none !important;
    border: var(--border);
    color: #fff !important;
  }
  .el-input__inner {
    color: #fff !important;
  }
}
//时间日期选择器
.ztzf-date-picker {
  box-shadow: none !important;
  background: #012A50;
  border: 1px solid #51A8FF;
  .el-input__wrapper {
    box-shadow: none !important;
    &.is-focus {
      box-shadow: none !important;
    }
  }
  .el-range-input {
    color: #fff;
    &::placeholder {
      color: #8AC3FD;
    }
  }
  .el-range-separator {
    color: #ffffff;
  }
}
 // 日期下拉框
.custom-date-picker {
   background: #012350 !important;
   border: 1px solid !important;
   border-radius: 0px 0px 8px 8px;
   border-image: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(115, 192, 255, 1)) 1 1 !important;
   .el-popper__arrow {
      &::before {
         background: #0d3556 !important;
         border: 1px solid #0d3556 !important;
         box-sizing: border-box;
      }
   }
   .custom-date-picker .el-picker-panel__header {
      background: linear-gradient(180deg, rgba(13, 53, 86, 0.85) 0%, rgba(1, 35, 80, 0.85) 100%) !important;
      color: #fff !important;
   }
   .el-date-table {
      th {
         color: #fff !important;
      }
   }
   .custom-date-picker .el-date-table td:hover,
   .custom-date-picker .el-date-table td.current:not(.disabled) {
      background: rgba(60, 121, 202) !important;
      color: white !important;
   }
   .el-date-table td.start-date span,
   .el-date-table td.start-date span,
   .el-date-table td.end-date span {
      background-color: #012350 !important;
   }
   .el-date-table td.in-range div,
   .el-date-table td.in-range div:hover,
   .el-date-table.is-week-mode .el-date-table__row.current div,
   .el-date-table.is-week-mode .el-date-table__row:hover div {
      background-color: rgba(60, 121, 202) !important;
   }
  .el-picker-panel__icon-btn {
    color: #fff !important;
    &:hover {
      color: var(--el-color-primary) !important;
    }
    .el-icon {
      &::before {
        color: inherit !important;
      }
    }
  }
}
//下拉
// :teleported="false"(修改下拉框样式,在el-select添加)别删
.ztzf-select {
  .el-select__wrapper {
    background: #012A50;
    box-shadow: none !important;
    border: 1px solid #51A8FF;
  }
  .el-select__placeholder {
    &.is-transparent{
      color: #8AC3FD !important;
    }
    &.el-select__selected-item{
      color: #ffffff;
    }
  }
  // 下拉框
  .el-select-dropdown__empty {
    background: #012A50;
    border-radius: 0px 0px 8px 8px;
    border: 1px solid;
    border-image: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(115, 192, 255, 1)) 1 1;
  }
  .el-select-dropdown__list {
    padding: 0 !important;
  }
  .el-select-dropdown {
    overflow-x: hidden !important;
    .el-select-dropdown__wrap {
      overflow-x: hidden !important;
      margin-right: 0 !important;
    }
  }
  .el-select-dropdown__wrap {
    overflow-x: hidden !important;
    margin-right: 0 !important;
  }
  .el-popper__arrow::before {
    background: #0d3556 !important;
    border: 1px solid #0d3556 !important;
  }
  .el-select {
    --el-select-border-color-hover: rgb(0, 162, 255) !important;
  }
  .el-input {
    --el-border-color: rgb(0, 162, 255);
  }
  .el-select .el-input__wrapper {
    background-color: #012350 !important;
  }
  .el-input__wrapper {
    --el-input-text-color: #012350 !important;
  }
  .el-select__popper.el-popper {
    border: rgba(0, 27, 63) !important;
  }
  .el-select-dropdown__wrap {
    background: linear-gradient(180deg, rgba(13, 53, 86, 0.85) 0%, rgba(1, 35, 80, 0.85) 100%);
    border-radius: 0px 0px 8px 8px;
    border: 1px solid;
    border-image: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(115, 192, 255, 1)) 1 1;
  }
  .el-select-dropdown__item {
    background: #012350 !important;
  }
  .el-select-dropdown__item {
    color: white;
  }
  .el-select-dropdown__item.hover {
    background-color: rgba(0, 120, 233, 0.63) !important;
    color: white;
  }
  .el-select-dropdown__item.selected {
    color: #8ac3fd !important;
    font-weight: 700;
  }
}
.ztzf-input{
  .el-input__wrapper{
    background: #012A50;
    box-shadow: none !important;
    border: 1px solid #51A8FF;
    .el-input__inner{
      color: #ffffff;
      &::placeholder {
        color: #8AC3FD;
      }
    }
  }
}
// 弹框-dialog
.ztzf-dialog {
   background: #0f1929;
   box-shadow: inset 0px -50px 50px 0px rgba(27, 148, 255, 0.13);
   border-radius: 20px 0px 0px 0px;
   border: 2px solid;
   padding: 0 !important;
   border-image: linear-gradient(
         180deg,
         rgba(81, 168, 255, 0),
         rgba(48, 111, 202, 1),
         rgba(255, 255, 255, 1),
         rgba(27, 148, 255, 1)
      )
      2 2;
  .el-dialog__header {
      width: 100%;
      height: 47px;
      margin-bottom: 14px;
      background: url('/src/assets/images/home/homeLeft/inspection-vector.png') no-repeat center;
      background-size: 100% 100%;
      font-weight: bold;
      font-size: 16px;
      line-height: 47px;
   }
  .el-dialog__title {
      width: 112px;
      height: 19px;
      font-family: Segoe UI, Segoe UI;
      font-weight: bold;
      font-size: 16px;
      line-height: 16px;
      text-shadow: 0px 0px 5px rgba(154, 218, 255, 0.6);
      text-align: left;
      font-style: normal;
      text-transform: none;
      background: linear-gradient(90deg, #fbfdff 0%, #86d4ff 100%);
      margin-left: 16px;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
   }
  .el-dialog .el-dialog__header {
      padding: 0px !important;
      padding-left: 0px !important;
   }
  .el-scrollbar__thumb {
      background: #13c6ff !important;
   }
}
/* 时间选择器下拉面板 */
.custom-time-picker {
background: linear-gradient( 180deg, rgba(13,53,86,0.85) 0%, rgba(1,35,80,0.85) 100%) !important;
border-radius: 0px 0px 8px 8px;
border: 1px solid !important;
border-image: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(115, 192, 255, 1)) 1 1 !important;
  .el-popper__arrow::before {
    background: #0D3556 !important;
    border: 1px solid #479DFF !important;
  }
  .el-time-panel__header {
    background: #012350 !important;
    color: #FFFFFF !important;
    border-bottom: 1px solid rgba(71, 157, 255, 0.3) !important;
  }
  .el-time-panel__content {
    background: #012350 !important;
    .el-time-spinner__item {
      color: #E6E6E6 !important;
      &:hover {
        background: rgba(71, 157, 255, 0.3) !important;
      }
      &.active {
        color: #479DFF !important;
        font-weight: bold;
      }
    }
  }
  .el-time-panel__footer {
    background: #012350 !important;
    border-top: 1px solid rgba(71, 157, 255, 0.3) !important;
    .el-button {
      color: #fff !important;
      &:hover {
        color: #479DFF !important;
      }
    }
    .el-time-panel__btn.cancel {
      color: #fff !important;
      &:hover {
        color: #fff !important;
      }
    }
  }
}
// 树形选择
.custom-tree-select {
   background: linear-gradient(180deg, rgba(13, 53, 86, 0.85) 0%, rgba(1, 35, 80, 0.85) 100%) !important;
   border-radius: 0px 0px 8px 8px;
   border: 1px solid;
   border-image: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(115, 192, 255, 1)) 1 1 !important;
   .el-popper__arrow::before {
      background: #0d3556 !important;
      border: 1px solid #012350 !important;
   }
   .el-tree {
      background: transparent !important;
      color: #fff !important;
      .el-tree-node__content:hover {
         background: none !important;
      }
      .el-tree-node__content:hover {
         background: none !important;
      }
      .el-tree-node.is-current > .el-tree-node__content {
         background: #479dff !important;
         color: #479dff !important;
      }
   }
   .el-select-dropdown__item {
      background: none !important;
      color: #fff !important;
      input {
         color: #fff !important;
         &::placeholder {
            color: #fff !important;
         }
      }
   }
   .el-tree {
      --el-tree-node-hover-bg-color: none !important;
      color: #fff !important;
   }
   .el-select-dropdown__item.is-selected {
      color: var(--el-color-primary) !important;
   }
}