公共的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组件, ...
随机推荐
- uniapp使用百度地图
要使用第三方百度地图,首先要去百度地图官方申请一个密钥,之后引入百度地图的API文件,参考使用文档即可开发使用.而在uniapp中是没法直接引入百度地图API文件的,我们要结合uniapp中的web- ...
- TM1621断码液晶驱动IC的原理、驱动代码
TM1621是一个多功能的LCD驱动器,带有蜂鸣器驱动功能.通讯采用四线串行接口 TM1621的难点在于字节序和显存跟屏幕的映射关系上,下面是写寄存器的代码 void Delay_us(uint8_t ...
- [2002年NOIP普及组] 选数
已知 n 个整数 x1,x2,-,xn,以及一个整数 k(k<n).从 n 个整数中任选 k 个整数相加,可分别得到一系列的和.例如当 n=4,k=3,4 个整数分别为 3,7,12,19 时, ...
- 24_webpack_打包分析
一.打包时间的分析 如果我们希望看到每一个loader和plugin消耗的打包时间,可以借助于一个插件:speed-measure-webpakc-plugin 安装:npm i speed-meas ...
- Mac连接交换机
接上免驱动的绿联,可以看到有一个usb串口设备: ls /dev/tty.* /dev/tty.Bluetooth-Incoming-Port /dev/tty.usbserial-AB0LU5PY ...
- 使用JSONObject将实体类,String类型和JSON类型相互转换(java)
使用JSONObject将实体类,String类型和JSON类型相互转换(java) https://blog.csdn.net/weixin_42424720/article/details/846 ...
- 详解搭建ubuntu版hadoop集群
https://download.csdn.net/download/weixin_38583278/12844195?ops_request_misc=%257B%2522request%255Fi ...
- regex cheat sheet
regex pattern visualizer : regex101: build, test, and debug regex https://regex101.com/ regex regex ...
- eclipse配置tomcat环境
Eclipse配置tomcat环境 第一步:进行下面操作: window–>Preference–>Server–>Runtime Environments ->Add 搜索s ...
- SpringBoot_Thymeleaf项目开发
用Springboot集成Thymeleaf,开发一个前后端不分离的Web项目,记录下每个步骤:(IDEA版) 一.项目初始化: 1.打开idea,以次点击 File -- New -- Projec ...