公共的common.scss (覆盖部分element组件主题色)
公共的 common.scss
(包含主题色 覆盖部分element组件主题色)
$theme: #D50000;
$litterTheme: #ec6059; .text-theme {
color: $theme;
} .bg-theme {
background-color: $theme;
} ::v-deep .el-button {
border-radius: 0;
} ::v-deep .el-button--primary {
background: $theme;
border-color: $theme;
} ::v-deep .el-button--primary.is-disabled {
background: $theme;
border-color: $theme;
&:active {
background: $theme;
border-color: $theme;
}
&:focus {
background: $theme;
border-color: $theme;
}
&:hover {
background: $theme;
border-color: $theme;
}
} ::v-deep .el-input__inner {
border-radius: 0;
} // 分页样式 ::v-deep .el-pagination {
.el-pager {
li {
min-width: 35px;
height: 35px;
line-height: 35px;
&:not(.disabled).active {
background-color: $theme;
}
}
}
.btn-prev, .btn-next {
min-width: 35px;
height: 35px;
line-height: 35px;
}
} // 单选按钮组
::v-deep .el-radio-group {
.el-radio-button {margin-right: 10px; margin-bottom: 20px;}
.el-radio-button__inner {
border: none;
border-radius: 20px;
padding: 8px 20px;
&:hover {
color: $theme;
}
}
.el-radio-button__orig-radio:focus{border: none;}
.el-radio-button__orig-radio:checked+.el-radio-button__inner {
background: $theme;
box-shadow: none;
&:hover {
color: #fff;
}
}
} ::v-deep .el-dialog__wrapper {
.el-dialog {
width: 460px;
border-radius: 0;
.el-dialog__header {
background: $theme;
padding-top: 10px;
.el-dialog__title {
color: #fff;
}
.el-dialog__headerbtn {
top: 11px;
.el-dialog__close {
font-size: 24px;
color: #fff;
}
}
}
}
}
::v-deep .el-radio__input.is-checked+.el-radio__label {color: $theme;}
::v-deep .el-radio__input.is-checked {
.el-radio__inner {
border-color: $theme;
background: $theme;
}
} ::v-deep .el-checkbox__input.is-checked+.el-checkbox__label {color: $theme;}
::v-deep .el-checkbox__input.is-checked {
.el-checkbox__inner {
border-color: $theme;
background: $theme;
}
} ::v-deep .el-checkbox__inner:hover, ::v-deep .el-checkbox__inner:active, ::v-deep .el-radio__inner:hover, ::v-deep .el-radio__inner:active {border-color: $theme;} // ::v-deep .el-loading-spinner .el-icon-loading , ::v-deep .el-loading-spinner .el-loading-text{color: $theme;} .avatar-upload-preview {
background-color: black;
position: absolute;
top: 50%;
transform: translate(50%, -50%);
width: 200px;
height: 200px;
border-radius: 50%;
box-shadow: 0 0 4px #ccc;
overflow: hidden;
}
作者:微微一笑绝绝子
出处:https://www.cnblogs.com/wwyxjjz/p/16473274.html
本博客文章均为作者原创,转载请注明作者和原文链接。
公共的common.scss (覆盖部分element组件主题色)的更多相关文章
- element ui主题色跟换
node_modules\ element ui\ lib\ theme-dafault 下载的主题色替换掉改文件... ================== 但是会出现 搜索框iocon 样式换 ...
- python + web自动化,点击不生效,提示“selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element is not clickable at point (117, 674)”
前言: 在做web自动化时,遇到一个缩放了浏览器比例的操作,从100%缩小到80%,再进行点击的时候,弹出报错信息,无法点击 selenium.common.exceptions.ElementCli ...
- 【vue】vue使用Element组件时v-for循环里的表单项验证方法
转载至:https://www.jb51.net/article/142750.htm标题描述看起来有些复杂,有vue,Element,又有表单验证,还有v-for循环?是不是有点乱?不过我相信开发中 ...
- selenium.common.exceptions.ElementNotVisibleException: Message: element not visible处理方法:selenium针对下拉菜单事件的处理
使用Selenium爬虫时,可能会遇到一些下拉菜单,动态加载,如果直接使用find_element_by_函数会报错,显示selenium.common.exceptions.ElementNotVi ...
- element组件dialog关闭时Message消息提示抖动问题
在页面内容较多,出现滚动条时使用element组件里的dialog组件,当关闭dialog组件的同时弹出Message消息提示时,Message会抖动一下. 在页面有滚动条的情况先打开dialog时, ...
- 阻止element组件中的<el-input/>的粘贴功能
需求: 阻止element组件中的<el-input/>的粘贴功能 实现思路: <el-input/>组件是由外层<div>和内层的<input>组成的 ...
- vue2+element组件库开发
Vue2:https://cn.vuejs.org/v2/guide/single-file-components.html element组件库:http://element-cn.eleme.io ...
- vue+Elment-UI,修改element组件样式
在用vue开发项目过程中,我们总是避免不了的会使用到elementUI,它里面提供的一些组件都为我们的开发带来了很大的便利,但是,当有时候我们需要使用这些组件的同时又要修改下组件的UI样式的话,我们该 ...
- 解决vue中element组件样式修改无效
vue中element组件样式修改无效 <style> .detail{ .el-input__inner { height: 48px; } } </style> 直接写st ...
- 自定义Vue&Element组件,实现用户选择和显示
在我们很多前端业务开发中,往往为了方便,都需要自定义一些用户组件,一个是减少单一页面的代码,提高维护效率:二个也是方便重用.本篇随笔介绍在任务管理操作中,使用自定义Vue&Element组件, ...
随机推荐
- linux系统下命令行方式创建KVM虚拟机
一:安装虚拟机 1:设备重启进入BIOS打开SMMU,F10保存退出. 2:进入系统安装相关组件 virt-install qemu-kvm qemu-img virt-manager libvi ...
- MapReduce原理——切片代码分析
(1)程序先找到数据存储的目录 (2)遍历目录对每个文件进行切片 (3)遍历一个文件: 获取文件大小 计算切片大小 默认情况下,切片大小等于blocksize 每次切片时都要判断剩下部分师否大于块的1 ...
- CentOS 7.4使用yum源安装MySQL 5.7.20
CentOS 7.4使用yum源安装MySQL 5.7.20 小牛教程 InnoDB存储引擎 2022年11月25日 从CentOS 7.0发布以来,yum源中开始使用Mariadb来代替MySQL的 ...
- php functions 生成唯一码
<?php /** * 微擎密码生成 * */ function we7password($passwordinput, $salt, $authkey) { $passwordinput = ...
- 基于DFA算法实现的敏感词过滤
本文转自浅析敏感词过滤算法(C++),自己也在其基础上根据自己的情况做了一点修改. https://blog.csdn.net/u012755940/article/details/51689401? ...
- springcloud day01
单体架构:业务所有功能都在一个项目中开发,打成一个包部署 优点是架构简单 部署成本低 缺点是 耦合度高 分布式架构:根据业务功能对系统做拆分,每个业务功能模块作为一个独立的项目开发,也称为一个服务 优 ...
- 关于idea2021.1版本的左边不显示bpmn Editor的问题
我这里是自定义主题风格出现的问题 idea左上角File→选择setting→找到Color Scheme菜单,将主题颜色改为IntelliJ Light.在重启idea就好
- pytest(5)-自定义用例顺序(pytest-ordering)-后续学习
前言 测试用例在设计的时候,我们一般要求不要有先后顺序,用例是可以打乱了执行的,这样才能达到测试的效果. 有些同学在写用例的时候,用例写了先后顺序, 有先后顺序后,后面还会有新的问题(如:上个用例返回 ...
- Linux shell 获取路径、文件名、文件后缀
以 make 文件为例: file=/usr/bin/make [root@CentOs7]# echo ${file%*/} /usr/bin/make [root@CentOs7]# echo $ ...
- 免费赠票 | Cloud Ace 受邀参加 GTC2022 全球流量大会,助力中国企业扬帆出海!
Cloud Ace 受邀参加 GTC2022 全球流量大会,助力中国企业扬帆出海! 大会将在 2023 年 2 月 28 日-3 月 1 日举行,地点就在福田会展中心 6 号展馆.大会门票实行收费 ...