Former-commit-id: 21ed621413d31f08bc09fef2434f346ccc6e35c4 [formerly 21ed621413d31f08bc09fef2434f346ccc6e35c4 [formerly 21ed621413d31f08bc09fef2434f346ccc6e35c4 [formerly 21ed621413d31f08bc09fef2434f346ccc6e35c4 [formerly ad5d4dfc63a11806f8520cace706ce6991799b1c [formerly d6b1c89dc39dbce331512f34ade3fd3aeb29aba5]]]]] Former-commit-id: 30ac8d35a30f7c5d94147f7d2bfbd857459cdb15 Former-commit-id: 89d37a785bec75e4ab66271007c977b0d4b2269e Former-commit-id: 0c1688272fc8ed888c40103e4754a0c98b064066 [formerly 3472c47ed9e316f10ff391f948848261772dbd41] Former-commit-id: 527a5962a449368887d774783c39870527b1b972 Former-commit-id: 716620c7a2611ae6a6e65911b82a783cd3f18f00 Former-commit-id: 4db3f7630ffa62162b7e907d2a57791b747306b9 Former-commit-id: 1aa9c3087bb6df186392e09c85b88e64fb39daf9 Former-commit-id: b1eee3017a0c4654e6314d49a6d9c008213dc9c4
226 lines
5.7 KiB
SCSS
226 lines
5.7 KiB
SCSS
// 主题公用
|
|
.d2-layout-main-group {
|
|
&.grayMode {
|
|
-webkit-filter: grayscale(100%);
|
|
-moz-filter: grayscale(100%);
|
|
-ms-filter: grayscale(100%);
|
|
-o-filter: grayscale(100%);
|
|
filter: grayscale(100%);
|
|
filter: gray;
|
|
}
|
|
height: 100%;
|
|
width: 100%;
|
|
background-size: cover;
|
|
background-position: center;
|
|
overflow: hidden;
|
|
position: relative;
|
|
// 背景上面的半透明遮罩
|
|
.layout-main-mask {
|
|
position: absolute;
|
|
top: 0px;
|
|
right: 0px;
|
|
bottom: 0px;
|
|
left: 0px;
|
|
}
|
|
// 主体
|
|
.el-container.d2-layout-main-content {
|
|
position: absolute;
|
|
top: 0px;
|
|
right: 0px;
|
|
bottom: 0px;
|
|
left: 0px;
|
|
// [布局] 顶栏
|
|
.el-header.d2-theme-header {
|
|
padding: 0px;
|
|
// logo区域
|
|
.logo-group {
|
|
transition: width .3s;
|
|
float: left;
|
|
text-align: center;
|
|
img {
|
|
height: 60px;
|
|
}
|
|
}
|
|
// 折叠侧边栏切换按钮
|
|
.toggle-aside-btn {
|
|
float: left;
|
|
height: 60px;
|
|
width: 60px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
@extend %unable-select;
|
|
i {
|
|
font-size: 20px;
|
|
margin-top: 4px;
|
|
}
|
|
}
|
|
// [菜单] 顶栏
|
|
.el-menu {
|
|
float: left;
|
|
border-bottom: none;
|
|
background-color: transparent;
|
|
%header-menu-item {
|
|
@extend %unable-select;
|
|
i.fa {
|
|
font-size: 16px;
|
|
margin-right: 4px;
|
|
}
|
|
}
|
|
.el-menu-item {
|
|
@extend %header-menu-item;
|
|
border-bottom: none;
|
|
}
|
|
.el-submenu {
|
|
@extend %header-menu-item;
|
|
.el-submenu__title {
|
|
border-bottom: none;
|
|
}
|
|
}
|
|
}
|
|
// 顶栏右侧的按钮
|
|
.d2-header-right {
|
|
float: right;
|
|
height: 60px;
|
|
display: flex;
|
|
align-items: center;
|
|
.btn-text {
|
|
padding: 14px 12px;
|
|
border-radius: 4px;
|
|
margin: 0px !important;
|
|
margin-left: 10px !important;
|
|
}
|
|
.el-dropdown {
|
|
@extend %unable-select;
|
|
}
|
|
}
|
|
}
|
|
// [布局] 顶栏下面
|
|
.el-container.d2-theme-container {
|
|
// 侧边栏
|
|
.el-aside.d2-theme-container-aside {
|
|
transition: width .3s;
|
|
overflow: auto;
|
|
// [菜单] 正常状态
|
|
.el-menu {
|
|
@extend %unable-select;
|
|
background-color: transparent;
|
|
border-right: none;
|
|
.el-menu-item {
|
|
i {
|
|
margin-left: 4px;
|
|
margin-right: 5px;
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
}
|
|
.el-submenu {
|
|
@extend %unable-select;
|
|
.el-submenu__title {
|
|
i {
|
|
margin-left: 4px;
|
|
margin-right: 5px;
|
|
font-size: 16px;
|
|
}
|
|
.el-submenu__icon-arrow {
|
|
margin-top: -10px;
|
|
}
|
|
}
|
|
}
|
|
// 菜单为空的时候显示的信息
|
|
.menu-empty {
|
|
height: 160px;
|
|
margin: 10px;
|
|
margin-top: 0px;
|
|
border-radius: 4px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
@extend %unable-select;
|
|
i {
|
|
font-size: 30px;
|
|
margin-bottom: 10px;
|
|
}
|
|
span {
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
// [菜单] 折叠状态
|
|
.el-menu--collapse {
|
|
background-color: transparent;
|
|
.el-submenu__title {
|
|
text-align: center;
|
|
}
|
|
}
|
|
}
|
|
// 右下 主体
|
|
.el-main.d2-theme-container-main {
|
|
padding: 0px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
// 主体部分分为多页面控制器 和主体
|
|
.d2-theme-container-main-header {
|
|
flex-grow: 0;
|
|
// 多页面控制器
|
|
.d2-multiple-page-control-group {
|
|
display: flex;
|
|
margin-right: 20px;
|
|
.d2-multiple-page-control-content {
|
|
flex-grow: 1;
|
|
position: relative;
|
|
.d2-multiple-page-control-content-inner {
|
|
position: absolute;
|
|
left: 0px;
|
|
right: 0px;
|
|
.d2-multiple-page-control {
|
|
.el-tabs__header.is-top {
|
|
margin: 0px;
|
|
}
|
|
.el-tabs__nav {
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.d2-multiple-page-control-btn {
|
|
position: relative;
|
|
bottom: -1px;
|
|
.el-dropdown {
|
|
.el-button-group {
|
|
.el-button:first-child {
|
|
border-bottom-left-radius: 0px;
|
|
}
|
|
.el-button:last-child {
|
|
border-bottom-right-radius: 0px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// 主体
|
|
.d2-theme-container-main-body {
|
|
flex-grow: 1;
|
|
margin-top: 1px;
|
|
position: relative;
|
|
// 布局组件
|
|
.container-component {
|
|
// 卡片布局组件
|
|
.d2-container-card {
|
|
border-top-left-radius: 0px;
|
|
border-top-right-radius: 0px;
|
|
}
|
|
// 隐形布局组件 这个组件不建议在有多页面导航的时候使用 不美观
|
|
.d2-container-ghost {
|
|
margin-right: 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |