当前位置: 首页 > article >正文

修改element UI el-table背景颜色样式 input select date vuetree

在这里插入图片描述

::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  background: rgba(185, 215, 254, 0.07);
}

/*滚动态通用*/
::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 10px;
  /*高宽分别对应横竖滚动条的尺寸*/
  height: 10px;
}

::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  width: 6px;
  margin: 0 auto;
  border-radius: 10px;
  background: #57657c;
}

// 设置height fixed 两条滚动条相交右下角的小方块
::-webkit-scrollbar-corner {
  background: rgba(0, 0, 0, 0);
}
.el-table__fixed-right-patch {
  background: #000;
  border-bottom: none;
}
/* 去除表格背景颜色 */
.el-table {
  background-color: transparent !important;
  color: #fff;
  overflow: hidden;
  position: relative;
}

/* 去除表格行的背景颜色 */
.el-table__body-wrapper .el-table__row {
  background-color: transparent !important;
}

/* 去除表头背景颜色1 */
.el-table__header-wrapper,
.el-table th {
  background-color: transparent !important;
  color: #fff;
  border-top: 1px solid;
  border-bottom: 1px solid;
  border-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(5, 105, 254, 0.5), rgba(255, 255, 255, 0)) 1 1;
}
/* 去除表头背景颜色2 */
.el-table tr {
  background: rgba(185, 215, 254, 0.1);
}

.el-table .el-table__fixed,
.el-table .el-table__fixed-right {
  background-color: #000 !important;
}

/* 表格头部字体颜色*/
.el-table th>.cell {
  color: #fff;
}

.el-table th.is-leaf,
.el-table td,
.el-table--group,
.el-table--border {
  border: none;
}

.el-table::before {
  background-color: #161e33 !important;
}
// 鼠标滑过背景色 
.el-table__fixed::before,
.el-table__fixed-right::before,
.el-table::before,
.el-table--border::after,
.el-table--group::after {
  background: none !important;

}

// 鼠标滑过列表背景颜色
.el-table__body tr.hover-row>td,
.el-table__body tr.hover-row.current-row>td,
.el-table__body tr.hover-row.el-table__row--striped>td,
.el-table__body tr.hover-row.el-table__row--striped.current-row>td,
.el-table--enable-row-hover .el-table__body tr:hover>td {
  background: rgba(61, 85, 125, 0.9) !important;
  cursor: pointer;
}

// table 斑马纹
.el-table--striped .el-table__body tr.el-table__row--striped td {
  background: rgba(185, 215, 254, 0.07);
}
.el-pagination {
  text-align: right;
}

.el-pagination__total {
  color: #fff;
}

.el-pagination__sizes .el-input .el-input__inner {
  border: 1px solid #6381BF;
  color: #fff;
  background: rgba(99, 129, 191, 0.27);
}

.el-pagination.is-background .btn-prev,
.el-pagination.is-background .btn-next,
.el-pagination.is-background .el-pager li {
  background: none;
  color: #fff;
}

.el-pagination.is-background .el-pager li:not(.disabled).active {
  border: 1px solid #6381BF;
  color: #fff;
  background: rgba(99, 129, 191, 0.27);
  border-radius: 6px;
}

.el-pagination span:not([class*=suffix]),
.el-pagination button {
  color: #fff;
}

.el-pagination__editor.el-input .el-input__inner {
  border: 1px solid #6381BF;
  color: #fff;
  background: rgba(99, 129, 191, 0.27);
}

.el-pagination button:disabled,
.el-pager li,
.el-pagination .btn-prev,
.el-pagination .btn-next {
  background: none;
  color: #fff;
}
.el-input--small {
  border-radius: 2px;
  border: none
}

.el-dropdown-menu {
  background: #3e5177;
  border: none;
  color: #fff;
}

.el-dropdown-menu__item:not(.is-disabled):hover,
.el-dropdown-menu__item:focus {
  background: #3e5177;
  border: none;
  color: #fff;
  font-weight: bold;
}

.el-dropdown-menu__item--divided:before {
  background: #3e5177;
}

.el-dropdown-menu__item--divided {
  border-top: none;
}

.el-input__inner {
  background: rgba(99, 129, 191, 0.36);
  border: none;
  color: #fff;
}

.el-date-editor .el-range-input {
  background: none;
  color: #fff;
}

.el-date-editor .el-range-separator {
  color: rgba(255, 255, 255, 0.7)
}

// select
.el-select-dropdown {
  background: #3e5177;
  border: 1px solid #6381BF;
}

// 表格小三角
.el-select-dropdown__item,
.el-table__expand-icon,
.el-form-item__label,
.el-date-picker__header-label,
.el-date-table th,
.el-picker-panel__icon-btn,
.el-radio,
.el-time-spinner__item,
.el-time-spinner__item.active:not(.disabled),
.el-time-panel__btn,
.el-message-box__content,
.el-message-box__title,
.el-dialog__title,
.el-dialog__body,
.el-month-table td .cell,
.el-table__empty-text,
.el-select-dropdown__empty,
.el-upload-dragger .el-upload__text,
.el-dropdown-menu__item,
.el-dialog__headerbtn .el-dialog__close,
.el-dialog__headerbtn:focus .el-dialog__close,
.el-dialog__headerbtn:hover .el-dialog__close,
.el-picker-panel__shortcut {
  color: #fff;
}

.el-select-dropdown__item.selected {
  background-color: #3e5177;
  color: #fff;
}

.el-select-dropdown__item.hover,
.el-selectdropdown__item:hover {
  background-color: #3e5177;
  font-weight: bold;
  font-size: 16px;
}


//table
.el-table__expanded-cell {
  background: none;
}

// table 切换分页 loading
.el-loading-mask {
  background-color: rgba(0, 0, 0, 0.3);
}

.el-collapse-item__header,
.el-collapse-item__wrap {
  background: none;
}

.el-textarea__inner,
.el-textarea.is-disabled .el-textarea__inner,
.el-input.is-disabled .el-input__inner,
.el-radio__input.is-disabled.is-checked .el-radio__inner::after,
.el-picker-panel__footer {
  background: rgba(99, 129, 191, 0.36);
  border-radius: 2px;
  border: none;
  color: #fff;
}

.el-picker-panel,
.el-time-panel,
.el-time-panel__footer {
  background: #3e5177;
  border-radius: 2px;
  border: none;
  color: #fff;
}

.el-collapse {
  border-top: none;
  border-bottom: none;
}

.el-collapse-item__wrap {
  border-bottom: none;
}

.el-picker-panel *[slot=sidebar],
.el-picker-panel__sidebar {
  background: #3e5177;
  border-right: 1px solid #6381bf;
}

.el-date-table td.in-range div,
.el-date-table td.in-range div:hover {
  background-color: #6381BF;
}

.el-date-picker__time-header {
  border-bottom: 1px solid #6381bf;
}

.el-time-spinner__item:hover:not(.disabled):not(.active) {
  background: #3e5177;
  font-weight: 800;
}

.el-message-box {
  background-color: #1e2c4c;
  border: none;
}

// table 斑马纹
.el-table--striped .el-table__body tr.el-table__row--striped td {
  background: rgba(185, 215, 254, 0.07);
}

.el-date-range-picker__content.is-left {
  border-right: 1px solid #6381bf;
}

.el-date-range-picker__time-header,
.el-date-table th {
  border-bottom: 1px solid #6381bf;
}

.el-drawer {
  background: url("../image/drawer_bg.png") no-repeat center / 100% 100%;
}

.el-dialog,
.window,
.el-image__error,
.el-image__placeholder,
.el-image__error {
  background-color: rgba(47, 64, 99, 0.6);
  backdrop-filter: blur(8px);

}

.el-dialog__header {
  padding: 10px;
  background: url("../image/drawer_titlebg.png") no-repeat center / 100% 100%;
}

.el-tooltip__popper.is-dark {
  background: #394970;
}

// vuetree 外面的input
.vue-treeselect__control {
  background: #3e5177 !important;
  color: #fff !important;
  border: none !important;
}

// vuetree 外面的input框内
.vue-treeselect__single-value {
  color: #fff !important;
}

//  vuetree 外面的input框内 鼠标滑过clear x的颜色
.vue-treeselect__x-container:hover {
  color: #fff !important;
}

// vuetree input划过的颜色
.vue-treeselect__option:hover {
  /* 自定义选中背景颜色 */
  color: #fff;
  /* 自定义选中文本颜色 */
  font-size: 16px;
}

// vuetree tree
.vue-treeselect__menu {
  background: #415274 !important;
  border: 1px solid #7A9AD9 !important;
}

// vuetree tree 里面每一项数据的背景色
.vue-treeselect__option:first-of-type {
  background-color: #3e5177 !important;
}

.el-tree {
  background: none;
  color: #fff;
}

.el-tree-node__content:hover,
.el-tree-node:focus>.el-tree-node__content {
  background: none;
}

// .el-tree-node__content:hover {
//   background-color: #f00;
// }

.el-upload-dragger {
  background-color: #37486c;
  border: 1px dashed #37486c;
}

.reset,
.el-button:hover,
.el-button:focus,
.el-button.is-disabled.is-plain,
.el-button.is-disabled.is-plain:hover,
.el-button.is-disabled.is-plain:focus {
  border: 1px solid #3B72E3;
  background: #3B72E3;
  color: #fff;
}

.el-button--text {
  padding: 7px 15px;
}

// 弹窗 关闭按钮
.el-dialog__headerbtn {
  height: 18px;
  width: 18px;
  top: 14px;
  background: #6882ba;
  font-size: 16px;
  border-radius: 4px;
}

http://www.kler.cn/a/414371.html

相关文章:

  • TCP socket api详解 续
  • nfs搭建文件存储
  • unity 绿幕抠图
  • 【dvwa靶场:File Upload系列】File Upload低-中-高级别,通关啦
  • spring boot框架漏洞复现
  • C++ 中的函数对象
  • 如何在 IIS 上部署 .NET Core 应用程序 ?
  • 基于 Flask 和 Socket.IO 的 WebSocket 实时数据更新实现
  • 常用Python集成开发环境(IDE)
  • 基于FPGA的SD NAND读写测试(图文并茂+源代码+详细注释)
  • ISIS SSN/SRM 标志在 P2P 链路和 Broadcast 链路中的作用
  • Python全局解释器锁(GIL)深度解析
  • 现代化水库可视化管理平台:提升水库运行效率与安全保障
  • docker的joinsunsoft/docker.ui修改密码【未解决】
  • 二十六:Web条件请求的作用
  • 【实体配置】.NET开源 ORM 框架 SqlSugar 系列
  • 「Java EE开发指南」如何使用Visual JSF编辑器设计JSP?(二)
  • electron-vite_13取消所有窗口默认菜单显示
  • mysql-binlog的三种模式
  • python3.9读取指定txt文件,将里面的所有文字计出总和,将txt文件的内容,按每50000字,保存成新的txt文件
  • 算法基础 - 最小二乘法(线性拟合)
  • 分布式锁的实现方案有哪些?各自的原理是怎样的?使用场景有哪些?与单体架构中锁区别?存在哪些问题?如何解决?注意事项?
  • 6.算法移植第六篇 YOLOV5/rknn生成可执行文件部署在RK3568上
  • Redis中的数据结构详解
  • HarmonyOS4+NEXT星河版入门与项目实战(23)------组件转场动画
  • 构建高效AI工作流:打造灵活自动化的分步指南