Former-commit-id: 574cc5941b0dd1c75d0355ddc8afe823b9f545b7 [formerly dcdb69c962e712fa885eb3cc436b1dffdfc3c68b] [formerly 574cc5941b0dd1c75d0355ddc8afe823b9f545b7 [formerly dcdb69c962e712fa885eb3cc436b1dffdfc3c68b] [formerly 574cc5941b0dd1c75d0355ddc8afe823b9f545b7 [formerly dcdb69c962e712fa885eb3cc436b1dffdfc3c68b] [formerly dcdb69c962e712fa885eb3cc436b1dffdfc3c68b [formerly 1cf1c792e4c633232a630145fb72c9fbf69be80c [formerly e109a21835146645124bfe135cd04f3c9b8f47de]]]]] Former-commit-id: a94c13cbabe581be47acb9e632cbf99a5879578a Former-commit-id: 06c197d68cca465971268fd498859925645092ff Former-commit-id: bb51031c0529e94d9c62fc346c3cec5c7157108a [formerly f61d6c3ec2d4be672a3756b9d081f19b2d0fe01e] Former-commit-id: 7fd64296d5db5f6558dff233271d61e46e1e51f1 Former-commit-id: 2fd87f0ff8eba7bf36197e4c9e110df075954d18 Former-commit-id: afafc2a4e06ee2f5d92b2f9675feb40d7ac38fe7 Former-commit-id: c6b2f56c8ee5e4ff76a596951f341bc6dd40b06c Former-commit-id: b2e10701e07e32e9accabc62ac5d3c365e7e8aa6
199 lines
4.8 KiB
SCSS
199 lines
4.8 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.d2-theme-header-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 {
|
|
.el-tabs__header.is-top {
|
|
margin: 0px;
|
|
margin-right: 20px;
|
|
}
|
|
.el-tabs__nav {
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
}
|
|
// 主体
|
|
.d2-theme-container-main-body {
|
|
flex-grow: 1;
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |