@import 'mixins/index.scss';
|
|
/* Button 按钮
|
------------------------------- */
|
// 第三方字体图标大小
|
.el-button:not(.is-circle) i.el-icon,
|
.el-button i.iconfont,
|
.el-button i.ywifont,
|
.el-button i.fa,
|
.el-button--default i.iconfont,
|
.el-button--default i.ywifont,
|
.el-button--default i.fa {
|
font-size: 14px !important;
|
margin-right: 5px;
|
}
|
.el-button--small i.iconfont,
|
.el-button--small i.ywifont,
|
.el-button--small i.fa {
|
font-size: 12px !important;
|
margin-right: 5px;
|
}
|
|
/* Input 输入框、InputNumber 计数器
|
------------------------------- */
|
// 菜单搜索
|
.el-autocomplete-suggestion__wrap {
|
max-height: 280px !important;
|
}
|
|
/* el-form-item select、select-number width 为100%
|
--------------------------------------------------------- */
|
.el-form-item {
|
.el-form-item__content {
|
> .el-select,
|
.el-input-number,
|
.el-tree-select {
|
width: 100%;
|
}
|
}
|
}
|
|
/* Form 表单
|
------------------------------- */
|
.el-form {
|
// 用于修改弹窗时表单内容间隔太大问题,如系统设置的新增菜单弹窗里的表单内容
|
.el-form-item:last-of-type {
|
margin-bottom: 0 !important;
|
}
|
// 修复行内表单最后一个 el-form-item 位置下移问题
|
&.el-form--inline {
|
.el-form-item--large.el-form-item:last-of-type {
|
margin-bottom: 22px !important;
|
}
|
.el-form-item--default.el-form-item:last-of-type,
|
.el-form-item--small.el-form-item:last-of-type {
|
margin-bottom: 18px !important;
|
}
|
}
|
// https://gitee.com/lyt-top/vue-next-admin/issues/I5K1PM
|
.el-form-item .el-form-item__label .el-icon {
|
margin-right: 0px;
|
}
|
}
|
|
/* Alert 警告
|
------------------------------- */
|
.el-alert {
|
border: 1px solid;
|
}
|
.el-alert__title {
|
word-break: break-all;
|
}
|
|
/* Message 消息提示
|
------------------------------- */
|
.el-message {
|
min-width: unset !important;
|
padding: 15px !important;
|
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.02);
|
}
|
|
/* NavMenu 导航菜单
|
------------------------------- */
|
// 鼠标 hover 时颜色
|
.el-menu-hover-bg-color {
|
background: var(--next-bg-menuBarActiveColor) !important;
|
//background-color: var(--el-color-primary-light-7) !important;
|
}
|
// 默认样式修改
|
.el-menu {
|
border-right: none !important;
|
width: var(--yw-columns-menu-width);
|
}
|
.el-menu-item {
|
height: 50px !important;
|
line-height: 50px !important;
|
margin: 0 0 1px 0;
|
}
|
.el-menu-item,
|
.el-sub-menu__title {
|
color: var(--next-bg-menuBarColor);
|
}
|
// 修复点击左侧菜单折叠再展开时,宽度不跟随问题
|
.el-menu--collapse {
|
width: 64px !important;
|
}
|
// 外部链接时
|
.el-menu-item a,
|
.el-menu-item a:hover,
|
.el-menu-item i,
|
.el-sub-menu__title i {
|
color: inherit;
|
text-decoration: none;
|
}
|
// 第三方图标字体间距/大小设置
|
.el-menu-item .iconfont,
|
.el-sub-menu .iconfont,
|
.el-menu-item .ywifont,
|
.el-sub-menu .ywifont,
|
.el-menu-item .fa,
|
.el-sub-menu .fa {
|
@include generalIcon;
|
}
|
// 水平菜单、横向菜单高亮 背景色,鼠标 hover 时,有子级菜单的背景色
|
.el-menu:not(.el-menu--horizontal) {
|
.el-menu-item.is-active,
|
.el-sub-menu:not(.is-opened):hover .el-sub-menu__title {
|
@extend .el-menu-hover-bg-color;
|
color: #fff;
|
}
|
}
|
.el-menu--horizontal {
|
.el-menu-item {
|
font-size: 15px !important;
|
&:not(.is-active) {
|
opacity: 0.6;
|
}
|
&.is-active,
|
&:hover,
|
&:focus {
|
background-color: unset !important;
|
background: var(--yw-horizontal-menu-active-color);
|
opacity: 1;
|
color: #fff !important;
|
}
|
}
|
}
|
|
// 鼠标 hover 时背景色
|
.el-menu-item:hover {
|
//@extend .el-menu-hover-bg-color;
|
background: linear-gradient(90deg, rgba(80, 118, 255, 0.66), rgba(55, 93, 237, 0));
|
}
|
.el-sub-menu.is-active.is-opened .el-sub-menu__title {
|
background-color: unset !important;
|
}
|
// 当前选中菜单右侧边框
|
.el-menu-item.is-active {
|
border-right: solid 3px var(--el-color-primary);
|
}
|
// 子级菜单背景颜色
|
// .el-menu--inline {
|
// background: var(--next-bg-menuBar-light-1);
|
// }
|
// 水平菜单、横向菜单折叠 a 标签
|
.el-popper.is-dark a {
|
color: var(--el-color-white) !important;
|
text-decoration: none;
|
}
|
// 水平菜单、横向菜单折叠背景色
|
.el-popper.is-pure.is-light {
|
// 水平菜单
|
.el-menu--vertical {
|
background: var(--next-bg-menuBar);
|
.el-sub-menu.is-active .el-sub-menu__title {
|
color: var(--el-menu-active-color);
|
}
|
.el-popper.is-pure.is-light {
|
.el-menu--vertical {
|
.el-sub-menu .el-sub-menu__title {
|
background-color: unset !important;
|
color: var(--next-bg-menuBarColor);
|
}
|
.el-sub-menu.is-active .el-sub-menu__title {
|
color: var(--el-menu-active-color);
|
}
|
}
|
}
|
}
|
// 横向菜单
|
.el-menu--horizontal {
|
background: var(--next-bg-topBar);
|
.el-menu-item,
|
.el-sub-menu {
|
height: 50px !important;
|
line-height: 50px !important;
|
color: var(--next-bg-topBarColor);
|
opacity: 0.6;
|
.el-sub-menu__title {
|
height: 50px !important;
|
line-height: 50px !important;
|
color: var(--next-bg-topBarColor);
|
}
|
.el-popper.is-pure.is-light {
|
.el-menu--horizontal {
|
.el-sub-menu .el-sub-menu__title {
|
background-color: unset !important;
|
color: var(--next-bg-topBarColor);
|
}
|
.el-sub-menu.is-active .el-sub-menu__title {
|
color: var(--el-menu-active-color);
|
}
|
}
|
}
|
}
|
.el-menu-item.is-active,
|
.el-sub-menu.is-active .el-sub-menu__title {
|
color: var(--el-menu-active-color);
|
}
|
// 鼠标 hover 时背景色
|
.el-menu-item:hover {
|
background-color: var(--el-color-primary-light-9);
|
}
|
}
|
}
|
// 横向菜单(经典、横向)布局
|
.el-menu.el-menu--horizontal {
|
border-bottom: none !important;
|
.el-menu-item {
|
border-bottom: none;
|
}
|
|
width: 100% !important;
|
.el-menu-item,
|
.el-sub-menu__title {
|
height: var(--yw-horizontal-menu-height) !important;
|
color: var(--next-bg-topBarColor);
|
}
|
.el-menu-item:not(.is-active):hover,
|
.el-sub-menu:not(.is-active):hover .el-sub-menu__title {
|
color: var(--next-bg-topBarColor);
|
//border-right: solid 3px var(--el-color-primary);
|
}
|
// 鼠标 hover 时背景色
|
.el-menu-item:hover {
|
background-color: var(--el-color-primary-light-9);
|
}
|
// 菜单激活时去掉全局右边框
|
.el-menu-item.is-active {
|
border-right: none;
|
border-bottom: solid 3px white;
|
}
|
}
|
|
/* Tabs 标签页
|
------------------------------- */
|
.el-tabs__nav-wrap::after {
|
height: 1px !important;
|
}
|
|
/* Dropdown 下拉菜单
|
------------------------------- */
|
.el-dropdown-menu {
|
list-style: none !important; /*修复 Dropdown 下拉菜单样式问题 2022.03.04*/
|
}
|
.el-dropdown-menu .el-dropdown-menu__item {
|
white-space: nowrap;
|
&:not(.is-disabled):hover {
|
background-color: var(--el-dropdown-menuItem-hover-fill);
|
color: var(--el-dropdown-menuItem-hover-color);
|
}
|
}
|
|
/* Steps 步骤条
|
------------------------------- */
|
.el-step__icon-inner {
|
font-size: 30px !important;
|
font-weight: 400 !important;
|
}
|
.el-step__title {
|
font-size: 14px;
|
}
|
.el-step__icon {
|
z-index: 0;
|
}
|
|
/* Dialog 对话框
|
------------------------------- */
|
.el-overlay {
|
overflow: hidden;
|
.el-overlay-dialog {
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
position: unset !important;
|
width: 100%;
|
height: 100%;
|
.el-dialog {
|
margin: 0 auto !important;
|
position: absolute;
|
.el-dialog__body {
|
padding: 20px !important;
|
}
|
}
|
}
|
}
|
.el-dialog__body {
|
max-height: calc(90vh - 111px) !important;
|
overflow-y: auto;
|
overflow-x: hidden;
|
}
|
.el-dialog__title {
|
font-size: 14px;
|
color: #fff;
|
font-weight: 700;
|
}
|
.el-dialog__header {
|
margin-right: 0;
|
padding-top: 10px;
|
background: var(--el-color-primary);
|
}
|
.el-dialog__footer {
|
border-top: 1px dashed var(--el-color-primary-light-5);
|
padding-bottom: 10px;
|
}
|
.el-dialog__headerbtn {
|
height: 32px;
|
font-weight: 900;
|
.el-dialog__close {
|
color: #fff;
|
}
|
}
|
.el-dialog__headerbtn:hover .el-dialog__close {
|
color: var(--el-color-danger) !important;
|
}
|
|
/* Card 卡片
|
------------------------------- */
|
.el-card {
|
.el-card__header {
|
padding: 15px 20px;
|
}
|
&_full-vertical-body {
|
.el-card__body {
|
height: 100%;
|
display: flex;
|
flex-direction: column;
|
}
|
}
|
&_full-body {
|
.el-card__body {
|
height: 100%;
|
width: 100%;
|
}
|
}
|
&_padding-0 {
|
.el-card__body {
|
padding: 0;
|
}
|
}
|
}
|
|
/* Table 表格 element plus 2.2.0 版本
|
------------------------------- */
|
.el-table {
|
--el-table-current-row-bg-color: rgb(230, 239, 255);
|
--el-table-row-hover-bg-color: rgb(243, 249, 255);
|
// 斑马条纹颜色
|
--el-fill-color-lighter: rgb(248, 252, 255);
|
.el-button.is-text {
|
padding: 0;
|
}
|
// 表头背景色
|
--el-table-header-bg-color: #ecf5ff;
|
// 表头字体颜色
|
thead {
|
color: var(--el-text-color-regular);
|
th {
|
font-weight: 500;
|
}
|
}
|
.el-table__cell {
|
z-index: 0;
|
}
|
}
|
|
.el-table--border .el-table__inner-wrapper::after,
|
.el-table--border::after,
|
.el-table--border::before,
|
.el-table__inner-wrapper::before {
|
z-index: 0 !important;
|
}
|
.el-table__border-left-patch {
|
z-index: 0;
|
}
|
.el-checkbox__inner {
|
z-index: 0;
|
}
|
/* 树形选择 proper
|
--------------------------------------------------------- */
|
.el-tree-select__popper {
|
.el-tree-node__content {
|
box-sizing: content-box;
|
padding: 5px 0;
|
}
|
}
|
|
/*防止分栏布局二级菜单很多时,滚动条消失问题*/
|
.layout-columns-warp .layout-aside .el-scrollbar__view {
|
height: unset !important;
|
}
|
|
/* Pagination 分页
|
------------------------------- */
|
.el-pagination__editor {
|
margin-right: 8px;
|
}
|
/*深色模式时分页高亮问题*/
|
.el-pagination.is-background .btn-next.is-active,
|
.el-pagination.is-background .btn-prev.is-active,
|
.el-pagination.is-background .el-pager li.is-active {
|
background-color: var(--el-color-primary) !important;
|
color: var(--el-color-white) !important;
|
}
|
// 分页组件靠右显示
|
.el-pagination {
|
float: right;
|
margin: 15px 0 15px 0 !important;
|
}
|
|
/* scrollbar
|
------------------------------- */
|
.el-scrollbar__bar {
|
z-index: 4;
|
}
|
/*防止页面切换时,滚动条高度不变的问题(滚动条高度非滚动条滚动高度)*/
|
.el-scrollbar__wrap {
|
max-height: 100%;
|
}
|
.el-select-dropdown .el-scrollbar__wrap {
|
overflow-x: scroll !important;
|
}
|
/*修复Select 选择器高度问题*/
|
.el-select-dropdown__wrap {
|
max-height: 274px !important;
|
}
|
/*修复Cascader 级联选择器高度问题*/
|
.el-cascader-menu__wrap.el-scrollbar__wrap {
|
height: 204px !important;
|
}
|
/*用于界面高度自适应(main.vue),区分 scrollbar__view,防止其它使用 scrollbar 的地方出现滚动条消失*/
|
.layout-container-view .el-scrollbar__view {
|
height: 100%;
|
}
|
|
/* Drawer 抽屉
|
------------------------------- */
|
.el-drawer {
|
--el-drawer-padding-primary: unset !important;
|
.el-drawer__header {
|
padding: 0 15px !important;
|
height: 50px;
|
display: flex;
|
align-items: center;
|
margin-bottom: 0 !important;
|
border-bottom: 1px solid var(--el-border-color);
|
color: var(--el-text-color-primary);
|
}
|
.el-drawer__body {
|
width: 100%;
|
height: 100%;
|
overflow: auto;
|
}
|
}
|
|
/* 数字输入(el-input-number 改造)
|
<el-input-number class="number-input" style="width: auto" controls-position="right" v-model="scope.row.X"></el-input-number>
|
--------------------------------------------------------- */
|
.number-input {
|
.el-input-number__decrease {
|
display: none;
|
}
|
.el-input-number__increase {
|
display: none;
|
}
|
.el-input {
|
.el-input__wrapper {
|
padding: 0;
|
}
|
}
|
}
|
|
$--el-table-text-color: #fb6d49;
|
|
.el-tabs__nav {
|
z-index: 1;
|
}
|