2018-06-30 00:38:16 +08:00
|
|
|
// 每个主题特有的设置
|
|
|
|
|
.theme-#{$theme-name} {
|
|
|
|
|
|
|
|
|
|
// 背景图片和遮罩
|
2018-06-30 23:05:33 +08:00
|
|
|
.d2-layout-main-group {
|
2018-06-30 00:38:16 +08:00
|
|
|
background-color: $theme-bg-color;
|
2018-06-30 23:05:33 +08:00
|
|
|
.d2-layout-main-mask {
|
2018-06-30 00:38:16 +08:00
|
|
|
background: $theme-bg-mask;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 菜单项目
|
|
|
|
|
@mixin theme-menu-hover-style {
|
|
|
|
|
color: $theme-menu-item-color-hover;
|
|
|
|
|
i.fa {
|
|
|
|
|
color: $theme-menu-item-color-hover;
|
|
|
|
|
}
|
|
|
|
|
background: $theme-menu-item-background-color-hover;
|
|
|
|
|
}
|
|
|
|
|
.el-submenu__title {
|
|
|
|
|
@extend %unable-select;
|
|
|
|
|
i.fa { margin-right: 5px; }
|
|
|
|
|
}
|
|
|
|
|
.el-menu-item {
|
|
|
|
|
@extend %unable-select;
|
|
|
|
|
i.fa { margin-right: 5px; }
|
|
|
|
|
}
|
|
|
|
|
.el-submenu__title:hover {
|
|
|
|
|
@include theme-menu-hover-style;
|
|
|
|
|
}
|
|
|
|
|
.el-menu-item:hover {
|
|
|
|
|
@include theme-menu-hover-style;
|
|
|
|
|
}
|
|
|
|
|
.el-menu--horizontal .el-menu-item:not(.is-disabled):hover {
|
|
|
|
|
@include theme-menu-hover-style;
|
|
|
|
|
}
|
|
|
|
|
.el-menu--horizontal .el-menu .el-submenu__title:hover {
|
|
|
|
|
@include theme-menu-hover-style;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 顶栏
|
2018-07-03 10:19:16 +08:00
|
|
|
.d2-theme-header {
|
2018-06-30 00:38:16 +08:00
|
|
|
// 切换按钮
|
|
|
|
|
.toggle-aside-btn {
|
|
|
|
|
i {
|
|
|
|
|
color: $theme-header-item-color;
|
|
|
|
|
background: $theme-header-item-background-color;
|
|
|
|
|
&:hover {
|
|
|
|
|
color: $theme-header-item-color-hover;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// 顶栏菜单
|
2018-06-30 23:17:06 +08:00
|
|
|
.el-menu {
|
2018-06-30 00:38:16 +08:00
|
|
|
.el-menu-item {
|
|
|
|
|
transition: border-top-color 0s;
|
|
|
|
|
color: $theme-header-item-color;
|
|
|
|
|
background: $theme-header-item-background-color;
|
|
|
|
|
i.fa { color: inherit; }
|
|
|
|
|
&:hover {
|
|
|
|
|
color: $theme-header-item-color-hover;
|
|
|
|
|
background: $theme-header-item-background-color-hover;
|
|
|
|
|
i.fa { color: inherit; }
|
|
|
|
|
}
|
|
|
|
|
&:focus {
|
|
|
|
|
color: $theme-header-item-color-focus;
|
|
|
|
|
background: $theme-header-item-background-color-focus;
|
|
|
|
|
i.fa { color: inherit; }
|
|
|
|
|
}
|
|
|
|
|
&.is-active {
|
|
|
|
|
color: $theme-header-item-color-active;
|
|
|
|
|
background: $theme-header-item-background-color-active;
|
|
|
|
|
i.fa { color: inherit; }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.el-submenu {
|
|
|
|
|
.el-submenu__title {
|
|
|
|
|
transition: border-top-color 0s;
|
|
|
|
|
color: $theme-header-item-color;
|
|
|
|
|
background: $theme-header-item-background-color;
|
|
|
|
|
i.fa { color: inherit; }
|
|
|
|
|
.el-submenu__icon-arrow {
|
|
|
|
|
color: $theme-header-item-color;
|
|
|
|
|
}
|
|
|
|
|
&:hover {
|
|
|
|
|
color: $theme-header-item-color-hover;
|
|
|
|
|
background: $theme-header-item-background-color-hover;
|
|
|
|
|
i.fa { color: inherit; }
|
|
|
|
|
.el-submenu__icon-arrow {
|
|
|
|
|
color: $theme-header-item-color-hover;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
&:focus {
|
|
|
|
|
color: $theme-header-item-color-focus;
|
|
|
|
|
background: $theme-header-item-background-color-focus;
|
|
|
|
|
i.fa { color: inherit; }
|
|
|
|
|
.el-submenu__icon-arrow {
|
|
|
|
|
color: $theme-header-item-color-focus;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// 顶栏右侧
|
|
|
|
|
.d2-header-right {
|
|
|
|
|
.btn-text {
|
|
|
|
|
color: $theme-header-item-color;
|
|
|
|
|
&.can-hover {
|
|
|
|
|
&:hover {
|
|
|
|
|
color: $theme-header-item-color-hover;
|
|
|
|
|
background: $theme-header-item-background-color-hover;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// [布局] 顶栏下面
|
2018-07-03 09:48:23 +08:00
|
|
|
.d2-theme-container {
|
2018-06-30 00:38:16 +08:00
|
|
|
// 侧边栏
|
2018-07-03 09:48:23 +08:00
|
|
|
.d2-theme-container-aside {
|
2018-06-30 00:38:16 +08:00
|
|
|
// 菜单为空的时候显示的信息
|
|
|
|
|
.menu-empty {
|
|
|
|
|
background: $theme-aside-menu-empty-background-color;
|
|
|
|
|
i {
|
|
|
|
|
color: $theme-aside-menu-empty-icon-color;
|
|
|
|
|
}
|
|
|
|
|
span {
|
|
|
|
|
color: $theme-aside-menu-empty-text-color;
|
|
|
|
|
}
|
|
|
|
|
&:hover {
|
|
|
|
|
background: $theme-aside-menu-empty-background-color-hover;
|
|
|
|
|
i {
|
|
|
|
|
color: $theme-aside-menu-empty-icon-color-hover;
|
|
|
|
|
}
|
|
|
|
|
span {
|
|
|
|
|
color: $theme-aside-menu-empty-text-color-hover;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// [菜单] 正常状态
|
|
|
|
|
.el-menu {
|
|
|
|
|
.el-menu-item {
|
|
|
|
|
color: $theme-aside-item-color;
|
|
|
|
|
background: $theme-aside-item-background-color;
|
|
|
|
|
i {
|
|
|
|
|
color: $theme-aside-item-color;
|
|
|
|
|
}
|
|
|
|
|
&:hover {
|
|
|
|
|
color: $theme-aside-item-color-hover;
|
|
|
|
|
background: $theme-aside-item-background-color-hover;
|
|
|
|
|
i {
|
|
|
|
|
color: $theme-aside-item-color-hover;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
&:focus {
|
|
|
|
|
color: $theme-aside-item-color-focus;
|
|
|
|
|
background: $theme-aside-item-background-color-focus;
|
|
|
|
|
i {
|
|
|
|
|
color: $theme-aside-item-color-focus;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
&.is-active {
|
|
|
|
|
color: $theme-aside-item-color-active;
|
|
|
|
|
background: $theme-aside-item-background-color-active;
|
|
|
|
|
i {
|
|
|
|
|
color: $theme-aside-item-color-active;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.el-submenu {
|
|
|
|
|
.el-submenu__title {
|
|
|
|
|
color: $theme-aside-item-color;
|
|
|
|
|
background: $theme-aside-item-background-color;
|
|
|
|
|
i {
|
|
|
|
|
color: $theme-aside-item-color;
|
|
|
|
|
}
|
|
|
|
|
.el-submenu__icon-arrow {
|
|
|
|
|
color: $theme-aside-item-color;
|
|
|
|
|
}
|
|
|
|
|
&:hover {
|
|
|
|
|
color: $theme-aside-item-color-hover;
|
|
|
|
|
background: $theme-aside-item-background-color-hover;
|
|
|
|
|
i {
|
|
|
|
|
color: $theme-aside-item-color-hover;
|
|
|
|
|
}
|
|
|
|
|
.el-submenu__icon-arrow {
|
|
|
|
|
color: $theme-aside-item-color-hover;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-07-03 09:48:23 +08:00
|
|
|
.d2-theme-container-main {
|
2018-06-30 00:38:16 +08:00
|
|
|
// 主体部分分为多页面控制器 和主体
|
2018-06-30 23:15:49 +08:00
|
|
|
.d2-theme-container-main-header {
|
2018-06-30 00:38:16 +08:00
|
|
|
// 多页面控制器
|
|
|
|
|
.d2-multiple-page-control {
|
|
|
|
|
.el-tabs__header.is-top {
|
|
|
|
|
border-bottom-color: $theme-multiple-page-control-border-color;
|
|
|
|
|
}
|
|
|
|
|
.el-tabs__nav {
|
|
|
|
|
border-color: $theme-multiple-page-control-border-color;
|
|
|
|
|
.el-tabs__item {
|
2018-06-30 21:46:45 +08:00
|
|
|
@extend %unable-select;
|
2018-06-30 00:38:16 +08:00
|
|
|
color: $theme-multiple-page-control-color;
|
|
|
|
|
background-color: $theme-multiple-page-control-background-color;
|
|
|
|
|
border-left-color: $theme-multiple-page-control-border-color;
|
|
|
|
|
&:first-child {
|
|
|
|
|
border-left: none;
|
2018-07-01 09:41:16 +08:00
|
|
|
&:hover {
|
|
|
|
|
padding: 0px 20px;
|
|
|
|
|
}
|
|
|
|
|
.el-icon-close {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
2018-06-30 00:38:16 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.el-tabs__item.is-active {
|
|
|
|
|
color: $theme-multiple-page-control-color-active;
|
|
|
|
|
background-color: $theme-multiple-page-control-background-color-active;
|
|
|
|
|
border-bottom-color: $theme-multiple-page-control-border-color-active;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
%el-tabs__nav {
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
}
|
|
|
|
|
.el-tabs__nav-prev {
|
|
|
|
|
@extend %el-tabs__nav;
|
|
|
|
|
color: $theme-multiple-page-control-nav-prev-color;
|
|
|
|
|
}
|
|
|
|
|
.el-tabs__nav-next {
|
|
|
|
|
@extend %el-tabs__nav;
|
|
|
|
|
color: $theme-multiple-page-control-nav-next-color;
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-07-01 10:46:16 +08:00
|
|
|
// 多页控制器的关闭控制
|
|
|
|
|
.d2-multiple-page-control-btn {
|
|
|
|
|
.el-dropdown {
|
|
|
|
|
.el-button-group {
|
|
|
|
|
.el-button {
|
|
|
|
|
border-color: $theme-multiple-page-control-border-color;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-06-30 00:38:16 +08:00
|
|
|
}
|
|
|
|
|
// 主体
|
2018-06-30 23:15:49 +08:00
|
|
|
.d2-theme-container-main-body {
|
2018-06-30 00:38:16 +08:00
|
|
|
// 布局组件
|
|
|
|
|
.container-component {
|
2018-07-02 08:22:28 +08:00
|
|
|
// [组件]
|
|
|
|
|
// d2-container-full 填充型
|
2018-06-30 00:38:16 +08:00
|
|
|
.d2-container-full {
|
|
|
|
|
border: $theme-container-border-outer;
|
|
|
|
|
border-top: none;
|
|
|
|
|
border-bottom: none;
|
|
|
|
|
.d2-container-full__header {
|
|
|
|
|
border-bottom: $theme-container-border-inner;
|
|
|
|
|
background: $theme-container-header-footer-background-color;
|
|
|
|
|
}
|
|
|
|
|
.d2-container-full__body {
|
|
|
|
|
background: $theme-container-background-color;
|
|
|
|
|
}
|
|
|
|
|
.d2-container-full__footer {
|
|
|
|
|
border-top: $theme-container-border-inner;
|
|
|
|
|
background: $theme-container-header-footer-background-color;
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-07-02 08:22:28 +08:00
|
|
|
// [组件]
|
|
|
|
|
// d2-container-card 卡片型
|
2018-06-30 00:38:16 +08:00
|
|
|
.d2-container-card {
|
|
|
|
|
border: $theme-container-border-outer;
|
|
|
|
|
border-top: none;
|
|
|
|
|
background: transparent;
|
2018-07-02 08:22:28 +08:00
|
|
|
&>.el-card__header {
|
2018-06-30 00:38:16 +08:00
|
|
|
border-bottom: $theme-container-border-inner;
|
|
|
|
|
background: $theme-container-header-footer-background-color;
|
|
|
|
|
}
|
2018-07-02 08:22:28 +08:00
|
|
|
&>.el-card__body {
|
2018-06-30 00:38:16 +08:00
|
|
|
background: $theme-container-background-color;
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-07-02 12:26:40 +08:00
|
|
|
// 隐形布局组件
|
|
|
|
|
.d2-container-ghost {
|
|
|
|
|
.d2-container-ghost-header {
|
|
|
|
|
border: $theme-container-border-outer;
|
|
|
|
|
&>.el-card__body {
|
|
|
|
|
background: $theme-container-header-footer-background-color;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-06-30 00:38:16 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|