bixi
Version:
企业级中后台前端解决方案
90 lines (85 loc) • 1.93 kB
text/less
@import '../../style/index.less';
@header-border: @bixi-geekblack-light;
@header-box-shadow: @bixi-gray-dark;
@header-color: fade(@bixi-black-black, 85%);
@header-disable-color: fade(@bixi-black-black, 65%);
@header-active-color: @bixi-blue;
@small-logo-width: @layout52;
@large-logo-width: @layout200;
@logo-bg: @bixi-geekblack;
.bixi-layout-header{
position: relative;
z-index: 100;
display: flex;
align-items: center;
width: 100%;
height: @layout52;
background-color: @bixi-white-lighter;
// 显示 box-shadow;
&-logo{
position: relative;
display: flex;
align-items: center;
height: 100%;
padding: 12px 16px;
overflow: hidden;
background: @logo-bg;
border-bottom: 1px solid @header-border;
cursor: pointer;
transition: width 0.2s;
img {
height: 100%;
}
}
&-opened{
.bixi-layout-header-logo{
justify-content: flex-start;
width: @large-logo-width;
}
}
&-collapsed{
.bixi-layout-header-logo{
justify-content: center;
width: @small-logo-width;
}
}
.bixi-layout-nav{
display: flex;
flex: 1;
align-items: center;
justify-content: space-between;
height: 100%;
padding: 0 16px;
box-shadow: 1px 1px 5px 0 @header-box-shadow;
.bixi-layout-header-info, .bixi-layout-header-tools {
display: flex;
align-items: center;
height: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.bixi-layout-header-info {
flex: 1;
}
}
.router-area {
color: @bixi-white-lighter;
font-weight: 400;
font-size: 14px;
.bread-link {
color: @header-color;
a {
color: @header-disable-color;
cursor: pointer;
&:hover{
color: @header-active-color;
}
}
}
.icon-separate {
padding: 4px;
color: @header-disable-color;
}
}
}