美文网首页
记录 element 修改样式

记录 element 修改样式

作者: 柚子硕 | 来源:发表于2024-08-19 13:44 被阅读0次

el-radio

.el-radio {

  // 默认文本样式
  .el-radio__label {
    font-family: PingFangSC-Regular;
    font-size: 14px;
    color: #ffffff;
    font-weight: 400;
  }

  // icon 默认样式
  .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;
  }

  // 覆盖默认 样式
  .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;
}

滚动条

/*滚动条整体粗细样式*/
::-webkit-scrollbar {
  /*高宽分别对应横竖滚动条的尺寸*/
  width: 6px;
  height: 8px;
}

/*滚动条里面小方块*/
::-webkit-scrollbar-thumb {
  border-radius: 10px !important;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2) !important;
  /* 颜色 */
  background: #25b7fa !important;
}

/*滚动条轨道*/
::-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;
  }
}

相关文章

网友评论

      本文标题:记录 element 修改样式

      本文链接:https://www.haomeiwen.com/subject/axmmkjtx.html