150 lines
3.1 KiB
SCSS
150 lines
3.1 KiB
SCSS
@import '../../style/themes/default.scss';
|
|
|
|
/* header */
|
|
.ele-admin-header {
|
|
display: flex;
|
|
align-items: center;
|
|
height: $--header-height;
|
|
background: $--header-light-background;
|
|
box-shadow: $--header-light-shadow;
|
|
z-index: calc(#{$--layout-z-index} + 2);
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
|
|
// logo
|
|
.ele-admin-logo {
|
|
width: $--sidebar-width;
|
|
height: $--header-height;
|
|
background: $--header-light-background;
|
|
box-shadow: $--logo-light-shadow;
|
|
transition: $--sidebar-transition;
|
|
font-weight: $--logo-font-weight;
|
|
font-family: $--logo-font-family;
|
|
font-size: $--logo-font-size;
|
|
color: $--logo-light-color;
|
|
white-space: nowrap;
|
|
position: relative;
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
|
|
& > img {
|
|
width: $--logo-size;
|
|
height: $--logo-size;
|
|
|
|
& + span {
|
|
margin-left: 10px;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 面包屑
|
|
.ele-admin-breadcrumb {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
|
|
& > .el-breadcrumb {
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
|
|
&:after,
|
|
&:before {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.el-breadcrumb__item {
|
|
float: none;
|
|
display: inline-block;
|
|
height: $--header-height;
|
|
line-height: $--header-height;
|
|
}
|
|
}
|
|
|
|
// nav
|
|
.ele-admin-header-nav {
|
|
flex: 1;
|
|
overflow: auto;
|
|
|
|
& > .el-scrollbar > .el-scrollbar__wrap > .el-scrollbar__view > .el-menu {
|
|
white-space: nowrap;
|
|
display: inline-block;
|
|
border: none !important;
|
|
background: none !important;
|
|
|
|
& > .el-menu-item,
|
|
& > .el-submenu > .el-submenu__title {
|
|
padding: 0 12px;
|
|
height: $--header-height;
|
|
line-height: $--header-height;
|
|
}
|
|
|
|
& > .el-menu-item,
|
|
& > .el-submenu {
|
|
float: none;
|
|
display: inline-block;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 操作按钮
|
|
.ele-admin-header-tool {
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
padding: 0 12px;
|
|
font-size: 18px;
|
|
|
|
.ele-admin-header-tool-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
height: $--header-height;
|
|
padding: 0 12px;
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
background: $--header-tool-hover-bg;
|
|
}
|
|
|
|
& > .el-dropdown {
|
|
line-height: 1;
|
|
display: block;
|
|
font-size: 18px;
|
|
|
|
& > .el-icon-_language {
|
|
transform: scale(1.06);
|
|
}
|
|
}
|
|
|
|
// 用户信息
|
|
.ele-admin-header-avatar {
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 14px;
|
|
line-height: $--header-avatar-size;
|
|
position: relative;
|
|
|
|
.el-avatar {
|
|
width: $--header-avatar-size;
|
|
height: $--header-avatar-size;
|
|
line-height: $--header-avatar-size;
|
|
|
|
& + span {
|
|
margin-left: 4px;
|
|
}
|
|
}
|
|
|
|
.el-icon-arrow-down {
|
|
font-size: 12px;
|
|
margin-left: 4px;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|