公共的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组件, ...
随机推荐
- Qt控件installEventFilter后不显示了
原因是在eventFilter函数内return true了,就不会在执行paint事件了,将return true改为return false即可.
- 不是用第三方插件,用JS 解析 excel 文件
参考:https://juejin.cn/post/7154395040507232264 excel 表格文件到底是什么 首先要解析 excel 文件,得先了解他是如何存储数据的,经过我百般搜索,终 ...
- Python学习—计算机与操作系统简介
计算机与操作系统简介 一.操作系统的主要发展史 1.手工操作--卡片穿孔 1946年第一台计算机诞生--20世纪50年代中期,计算机工作还在采用手工操作方式.此时还没有操作系统的概念.程序员将对应于程 ...
- nacos服务端和客户端版本不一致的时候,客户端无限刷日志
解决方法: logging: level: com: alibaba: nacos: client: error
- locust自定义负载策略。
1.时间峰值策略 每运行一分钟启动100个用户,总运行时间为10分钟 class CustomShape(LoadTestShape): # 设置时限 time_limit = 600 # 设置产生率 ...
- 批量添加esxi主机到Vcenter
1 连接vcenter Connect-VIServer -Protocol https -User 'administrator@vsphere.local' -Password 'Vcenter密 ...
- 图片上传插件WebUploader的坑
需要上传图片的一个操作选择了WebUploader这个插件来实现,具体的实现过程如下. js代码: 1.引入js.css文件: <script type="text/javascrip ...
- Xcode 12.x下载了iOS10.x模拟器无法创建对应Device问题修复
转自: https://hiraku.tw/2021/04/6428/ 感谢原作者,如有侵权请评论联系删除文章 在升級到 Xcode 12 之後,有些人發現雖然 Xcode 允許安裝低版本的模擬器,但 ...
- sdio 移植st官方例程 stm32f103
第一步:建立驱动文件 建立sdio_sdcard.h和sdio_sdcard.c,并将这两个文件添加到MDK工程中,如下图 第二步:移植官方例程 1.找到STM32F10x_StdPeriph_Lib ...
- eKuiper 1.8.0 发布:零代码实现图像/视频流的实时 AI 推理
LF Edge eKuiper 是 Golang 实现的轻量级物联网边缘分析.流式处理开源软件,可以运行在各类资源受限的边缘设备上.eKuiper 的主要目标是在边缘端提供一个流媒体软件框架(类似于 ...