bfend
Version:
Admin template base on ng-zorro-antd
123 lines (105 loc) • 2.06 kB
text/less
@import "../../../styles/theme";
.bf-header {
display: flex;
align-items: center;
width: 100%;
height: 100%;
padding: 0 16px;
position: relative;
z-index: 10;
box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
background: linear-gradient(145deg, @primary-color, lighten(@primary-color, 10%));
}
.bf-header-title {
display: flex;
align-items: center;
margin-left: -16px;
min-width: 200px;
margin-right: 10px;
height: 100%;
overflow: hidden;
transition: all 1s ease-in-out;
&_exposed {
width: auto;
}
}
.bf-header-title__logo {
display: block;
width: 36px;
margin-left: 20px;
margin-right: 10px;
}
.bf-header-title_text {
flex: 1;
margin: 0;
padding: 0;
font-size: 14px;
font-weight: normal;
font-family: simhei;
color: @layout-header-highlight;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.bf-header-title_collapsed {
}
.bf-header-separator {
width: 1px;
background: darken(@layout-header-background, 10%);
height: 60%;
margin: 0 10px;
}
.bf-nav {
flex: 1;
display: flex;
line-height: @layout-header-height;
justify-content: space-between;
}
.bf-nav__menu {
display: flex;
align-items: center;
padding: 0;
margin: 0;
list-style: none;
}
.bf-nav__menu-item {
vertical-align: middle;
list-style: none;
display: block;
border-radius: @border-radius-sm;
text-align: center;
padding: 2px 2px 0 2px;
min-width: 50px;
line-height: 32px;
transition: background-color 0.3s;
cursor: pointer;
outline: 0;
font-size: 14px;
color: @layout-header-foreground;
* {
outline: 0;
}
&:hover {
color: @layout-header-highlight;
background: @layout-header-highlight-background;
}
a {
color: @layout-header-foreground;
&:hover {
color: @layout-header-highlight;
background: none;
}
}
}
.bf-nav__menu-icon {
font-size: 18px;
}
.bf-header-nav__menu-dropdown {
width: 160px;
}
.bf-header-nav__menu-dropdown-icon {
margin-right: 8px;
}
.bf-header-nav__menu-link {
display: block;
}