公共的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
本博客文章均为作者原创,转载请注明作者和原文链接。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 提示词工程——AI应用必不可少的技术
· .NET周刊【3月第1期 2025-03-02】