記錄 element 修改樣式

element input 和 el-date-picker、el-select

::v-deep .el-select {
  width: 135px;
  margin-right: 10px;
}
::v-deep.el-input {
  width: 90%;
}
/deep/ .el-input-group__append {
  border-right: 1px solid rgb(48, 14, 240);
  border-top: 1px solid rgb(48, 14, 240);
  border-bottom: 1px solid rgb(48, 14, 240);
}
/deep/.el-input__inner,
/deep/.el-range-input {
  background: #2479ef;
  border: none !important;
  color: #ffffff !important;
}
/deep/input::-webkit-input-placeholder {
  color: rgb(255, 255, 255) !important;
}
/deep/.el-select__caret {
  color: #fff !important;
}
/deep/.el-range-separator {
  color: #fff;
  padding: 0;
}
/deep/.el-input__icon {
  color: #fff;
}

element plus表格

::v-deep .el-table {
  background: transparent !important;
}
::v-deep .el-table--enable-row-hover .el-table__body tr:hover > td {
  background: rgba(19, 28, 41, 0.5);
  cursor: pointer;
}
::v-deep .el-table tr,
.el-table td {
  background: transparent !important;
  color: #ffffff;
}
::v-deep .el-table th {
  background-color: #2765bb; /* 設(shè)置表頭背景色為淺灰色 */
  .cell {
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: center;
  }
}

/* 修改所有表格邊框顏色 */
::v-deep .el-table--border,
::v-deep .el-table--group,
::v-deep .el-table td.el-table__cell,
::v-deep .el-table th.el-table__cell.is-leaf,
::v-deep .el-table__footer-wrapper td.el-table__cell {
  border-color: #3cc5e7 !important;
}
::v-deep .el-table--border::after {
  background: #3cc5e7;
}
/* 移除偽元素對(duì)底部邊框的影響 */
::v-deep .el-table--group::after,
::v-deep .el-table::before {
  background-color: transparent !important;
}
::v-deep .el-table__border-left-patch,
::v-deep .el-table__inner-wrapper:before,
::v-deep .el-table--border .el-table__inner-wrapper:after {
  background: #3cc5e7 !important;
}

滾動(dòng)條

/*定義滾動(dòng)條高寬及背景 高寬分別對(duì)應(yīng)橫豎滾動(dòng)條的尺寸*/

::-webkit-scrollbar {
  /* width: 0px; */
  /* height:0px; */
  width: 7px;
  height: 7px;
  background-color: transparent;
}


/*定義滾動(dòng)條軌道 內(nèi)陰影+圓角*/

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(62, 186, 247, 0.3);
  -webkit-box-shadow: inset 0 0 6px rgba(62, 186, 247, 0.3);
  border-radius: 10px;
  background-color: transparent;
}

/*定義滑塊 內(nèi)陰影+圓角*/

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  box-shadow: inset 0 0 6px rgba(62, 186, 247, 0.3);
  -webkit-box-shadow: inset 0 0 6px rgba(62, 186, 247, 0.3);
  background-color: transparent;
}

el-radio

.el-radio {

  // 默認(rèn)文本樣式
  .el-radio__label {
    font-family: PingFangSC-Regular;
    font-size: 14px;
    color: #ffffff;
    font-weight: 400;
  }

  // icon 默認(rèn)樣式
  .el-radio__inner {
    background: #000c17;
    border: 1px solid rgb(22, 151, 165);
  }

  // 選中文本樣式
  .el-radio__input.is-checked+.el-radio__label {
    font-family: PingFangSC-Semibold;
    font-size: 14px;
    color: #00ffff;
    font-weight: 500;
  }

  // 選中 icon 樣式
  .el-radio__inner::after {
    width: 8px;
    height: 8px;
    background-color: #00ffff;
  }

  // 覆蓋默認(rèn) 樣式
  .el-radio__input.is-checked .el-radio__inner {
    border: 1px solid #00ffff;
    background-color: transparent;
  }
}

input-placeholder

input::-webkit-input-placeholder {
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
}

textarea文本域

.el-textarea__inner::-webkit-input-placeholder {
  -webkit-text-fill-color: #000 !important;
  color: #000 !important;
}

el-table

/deep/.has-gutter {
  th {
    background: #0c3587;
    color: #89eaff;
    border: none !important;
  }
}
/deep/.el-table {
  background: transparent !important;
}

/deep/.el-table::before {
  height: 0px;
}

/deep/.el-table--enable-row-hover .el-table__body tr:hover>td {
  background: rgba(19, 28, 41, 0.5);
  cursor: pointer;
}

/deep/.el-table tr,
.el-table td {
  background: transparent !important;
  color: #ffffff;
}

/deep/.el-table td.el-table__cell {
  border-color: #0b2e7a;
}

滾動(dòng)條

/*滾動(dòng)條整體粗細(xì)樣式*/
::-webkit-scrollbar {
  /*高寬分別對(duì)應(yīng)橫豎滾動(dòng)條的尺寸*/
  width: 6px;
  height: 8px;
}

/*滾動(dòng)條里面小方塊*/
::-webkit-scrollbar-thumb {
  border-radius: 10px !important;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2) !important;
  /* 顏色 */
  background: #25b7fa !important;
}

/*滾動(dòng)條軌道*/
::-webkit-scrollbar-track {
  border-radius: 10px !important;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2) !important;
  background: #3e8ae2 !important;
}

element Plus select

::v-deep .el-select__wrapper {
  background: #01326f !important;
  color: #fff !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden;
  box-shadow: none;
  border: 1px solid #0094FF;
}
::v-deep .el-select__suffix {
  background: #0094ff;
  height: 22px;
  width: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  i {
    color: #fff !important;
  }
}
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容