Former-commit-id: 13af02b4d4c4033582b2762f14fbe8802ec5fc02 [formerly 13af02b4d4c4033582b2762f14fbe8802ec5fc02 [formerly 13af02b4d4c4033582b2762f14fbe8802ec5fc02 [formerly 13af02b4d4c4033582b2762f14fbe8802ec5fc02 [formerly b9712ed794d1db939f9b2bdbb67c8a69d71f89a8 [formerly b6115665f5243c3103684226e0bde661d55597f7]]]]] Former-commit-id: e3cc9b0aad9cacee0133f5f4c85d43cde717cc9c Former-commit-id: 63d819826ff2aeb0ca7a811f8b7ddfbe2df048d1 Former-commit-id: 7ebe1bb886125ee3de1c15cd5cbf14c392480af8 [formerly 8df52d9a84afa8e50895c9611ab439b58bfa1d90] Former-commit-id: ccf6ecbd64a1a2fd5283effabd054bcebc799b6d Former-commit-id: afde6581b46898bbb98e299ebd7194dc0577f934 Former-commit-id: 8278de89c188805da05d81e10c7aba77bb64c336 Former-commit-id: 89a57f2fae80b360ab76a9d3f2bc99540adaf519 Former-commit-id: 03bf8adadfa169fee5cb039818e415ceb92fd787
280 lines
6.6 KiB
SCSS
280 lines
6.6 KiB
SCSS
// 整体框架结构
|
|
.d2-layout-main-group {
|
|
height: 100%;
|
|
width: 100%;
|
|
background-size: cover;
|
|
background-position: center;
|
|
overflow: hidden;
|
|
position: relative;
|
|
// 背景上面的半透明遮罩
|
|
.d2-layout-main-mask {
|
|
position: absolute;
|
|
top: 0px;
|
|
right: 0px;
|
|
bottom: 0px;
|
|
left: 0px;
|
|
}
|
|
// 内容层
|
|
.d2-layout-main-content {
|
|
position: absolute;
|
|
top: 0px;
|
|
right: 0px;
|
|
bottom: 0px;
|
|
left: 0px;
|
|
$d2-theme-header-height: 60px;
|
|
.d2-theme-header {
|
|
position: absolute;
|
|
top: 0px;
|
|
left: 0px;
|
|
right: 0px;
|
|
height: $d2-theme-header-height;
|
|
}
|
|
.d2-theme-container {
|
|
position: absolute;
|
|
top: $d2-theme-header-height;
|
|
bottom: 0px;
|
|
left: 0px;
|
|
right: 0px;
|
|
display: flex;
|
|
flex-direction: row;
|
|
.d2-theme-container-aside {
|
|
transition: width .3s;
|
|
flex-grow: 0;
|
|
position: relative;
|
|
.d2-layout-main-menu-side {
|
|
position: absolute;
|
|
top: 0px;
|
|
bottom: 0px;
|
|
left: 0px;
|
|
right: 0px;
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
.d2-theme-container-main {
|
|
flex-grow: 1;
|
|
padding: 0px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
.d2-theme-container-main-header {
|
|
flex-grow: 0;
|
|
}
|
|
.d2-theme-container-main-body {
|
|
flex-grow: 1;
|
|
margin-top: 1px;
|
|
position: relative;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 主题公用
|
|
.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;
|
|
}
|
|
// 主体
|
|
.d2-layout-main-content {
|
|
// [布局] 顶栏
|
|
.d2-theme-header {
|
|
// 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;
|
|
}
|
|
}
|
|
}
|
|
// [布局] 顶栏下面
|
|
.d2-theme-container {
|
|
// 侧边栏
|
|
.d2-theme-container-aside {
|
|
// [菜单] 正常状态
|
|
.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;
|
|
}
|
|
}
|
|
}
|
|
// 右下 主体
|
|
.d2-theme-container-main {
|
|
// 主体部分分为多页面控制器 和主体
|
|
.d2-theme-container-main-header {
|
|
// 多页面控制器
|
|
.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 {
|
|
// 布局组件
|
|
.container-component {
|
|
// 卡片布局组件
|
|
.d2-container-card {
|
|
border-top-left-radius: 0px;
|
|
border-top-right-radius: 0px;
|
|
}
|
|
// 隐形布局组件
|
|
.d2-container-ghost {
|
|
margin-right: 20px;
|
|
margin-bottom: 20px;
|
|
.d2-container-ghost-header {
|
|
border-top: none;
|
|
border-top-left-radius: 0px;
|
|
border-top-right-radius: 0px;
|
|
margin-bottom: 20px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |