yapi/client/components/Header/Header.scss

119 lines
2.2 KiB
SCSS
Raw Normal View History

2017-07-26 22:09:13 +08:00
@import '../../styles/mixin.scss';
2017-08-08 20:27:18 +08:00
.nav-tooltip {
color: red;
}
2017-07-10 19:50:11 +08:00
/* .header-box.css */
.header-box {
2017-08-11 14:22:20 +08:00
height: .56rem;
line-height: .56rem;
padding: 0;
2017-07-17 21:11:58 +08:00
.logo {
2017-07-28 11:22:25 +08:00
position: relative;
2017-07-10 19:50:11 +08:00
float: left;
2017-08-23 22:04:05 +08:00
line-height: .56rem;
height: .56rem;
2017-09-15 14:28:40 +08:00
width: 56px;
border-left: 1px solid #55616d;
border-right: 1px solid #55616d;
&:hover{
background-color: #38495a;
}
2017-08-08 20:46:19 +08:00
.href {
text-decoration: none;
2017-09-15 14:28:40 +08:00
display: block;
2017-08-08 20:46:19 +08:00
}
2017-08-08 20:27:18 +08:00
.logo-name {
color: $color-white;
2017-08-08 20:27:18 +08:00
font-size: .24rem;
font-weight: 300;
margin-left: .38rem;
}
.img {
position: absolute;
left: 0;
top: 50%;
2017-09-15 14:28:40 +08:00
left: 50%;
transform: translate(-16px,-17px);
}
2017-07-28 11:22:25 +08:00
.ui-badge {
position: absolute;
2017-08-24 21:48:53 +08:00
right: -18px;
top: 6px;
2017-07-28 11:22:25 +08:00
width: 30px;
height: 21px;
2017-08-24 21:48:53 +08:00
background-size: 236px 21px;
background-repeat: no-repeat;
2017-09-12 10:34:58 +08:00
background-image: none;
2017-07-28 11:22:25 +08:00
animation: flag .8s steps(8) infinite;
}
@keyframes flag {
from { background-position: 0px; }
to { background-position: -240px; }
}
2017-09-14 18:19:13 +08:00
// &:before, &:after {
// content: '';
// display: block;
// width: 2px;
// height: .56rem;
// background-color: #222;
// border-left: 1px solid #575D67;
// position: relative;
// top: 0;
// }
// &:before {
// float: left;
// left: -.08rem;
// }
// &:after {
// float: right;
// right: -.27rem;
// }
2017-07-10 19:50:11 +08:00
}
2017-07-12 16:27:06 +08:00
.nav-toolbar {
2017-07-17 21:11:58 +08:00
font-size: .15rem;
2017-07-12 16:27:06 +08:00
float: left;
2017-08-22 12:20:33 +08:00
2017-07-10 19:50:11 +08:00
}
2017-09-14 18:19:13 +08:00
.user-menu{
margin-top: 20px;
}
2017-07-12 16:27:06 +08:00
.user-toolbar{
2017-07-10 19:50:11 +08:00
float: right;
2017-08-08 20:27:18 +08:00
height: .54rem;
display: flex;
align-items: center;
2017-08-08 20:27:18 +08:00
.item-search {
2017-08-08 20:46:19 +08:00
width: 2rem;
2017-08-08 20:27:18 +08:00
}
.toolbar-li{
2017-07-12 16:27:06 +08:00
float: left;
2017-08-08 20:27:18 +08:00
font-size: .14rem;
2017-07-12 16:27:06 +08:00
cursor: pointer;
2017-08-08 20:27:18 +08:00
color: #ccc;
margin-left: .16rem;
transition: color .4s;
.dropdown-link {
2017-08-22 12:20:33 +08:00
color: #ccc;
2017-08-08 20:27:18 +08:00
transition: color .4s;
2017-08-11 17:49:47 +08:00
.ant-avatar-image{
margin-bottom: -10px;
}
2017-08-11 20:21:56 +08:00
.ant-avatar > img{
height: auto;
}
2017-07-17 21:11:58 +08:00
}
&:hover{
2017-08-08 20:27:18 +08:00
.dropdown-link {
2017-08-22 12:20:33 +08:00
color: #ccc;
2017-07-18 18:25:53 +08:00
}
2017-07-17 21:11:58 +08:00
}
2017-08-08 20:27:18 +08:00
.name {
margin-left: .08rem;
2017-07-12 16:27:06 +08:00
}
}
2017-07-10 19:50:11 +08:00
}
2017-07-12 16:27:06 +08:00
}