mirror of
https://github.com/iczer/vue-antd-admin.git
synced 2025-04-06 03:57:44 +08:00
93 lines
1.7 KiB
Plaintext
93 lines
1.7 KiB
Plaintext
.admin-header{
|
|
padding: 0;
|
|
z-index: 1099;
|
|
box-shadow: @shadow-down;
|
|
position: relative;
|
|
background: @base-bg-color;
|
|
.head-menu{
|
|
height: 64px;
|
|
line-height: 64px;
|
|
vertical-align: middle;
|
|
box-shadow: none;
|
|
}
|
|
&.dark{
|
|
background: @header-bg-color-dark;
|
|
color: white;
|
|
}
|
|
&.night{
|
|
.head-menu{
|
|
background: @base-bg-color;
|
|
}
|
|
}
|
|
.admin-header-wide{
|
|
padding-left: 24px;
|
|
&.head{
|
|
max-width: 1400px;
|
|
margin: auto;
|
|
padding-left: 0;
|
|
}
|
|
&.side{
|
|
padding-right: 12px;
|
|
}
|
|
.logo {
|
|
height: 64px;
|
|
line-height: 58px;
|
|
vertical-align: top;
|
|
display: inline-block;
|
|
padding: 0 12px 0 24px;
|
|
cursor: pointer;
|
|
font-size: 20px;
|
|
color: inherit;
|
|
&.pc{
|
|
padding: 0 12px 0 0;
|
|
}
|
|
img {
|
|
vertical-align: middle;
|
|
}
|
|
h1{
|
|
color: inherit;
|
|
display: inline-block;
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
.trigger {
|
|
font-size: 20px;
|
|
line-height: 64px;
|
|
padding: 0 24px;
|
|
cursor: pointer;
|
|
transition: color .3s;
|
|
&:hover{
|
|
color: @primary-color;
|
|
}
|
|
}
|
|
.admin-header-menu{
|
|
display: inline-block;
|
|
}
|
|
.admin-header-right{
|
|
float: right;
|
|
display: flex;
|
|
color: inherit;
|
|
.header-item{
|
|
color: inherit;
|
|
padding: 0 12px;
|
|
cursor: pointer;
|
|
align-self: center;
|
|
a{
|
|
color: inherit;
|
|
i{
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
}
|
|
each(@theme-list, {
|
|
&.@{value} .header-item{
|
|
&:hover{
|
|
@class: ~'hover-bg-color-@{value}';
|
|
background-color: @@class;
|
|
}
|
|
}
|
|
})
|
|
}
|
|
}
|
|
}
|