yapi/client/components/Header/Header.scss

83 lines
4.0 KiB
SCSS
Raw Normal View History

2017-07-10 19:50:11 +08:00
@import '../../styles/common.scss';
2017-07-26 22:09:13 +08:00
@import '../../styles/mixin.scss';
2017-07-12 16:27:06 +08:00
$color-white : #fff;
2017-07-17 21:11:58 +08:00
$color-blue : #108ee9;
$color-blue-deeper: #34495E;
2017-07-12 16:27:06 +08:00
$color-grey-deep : #929aac;
2017-07-17 21:11:58 +08:00
$color-black-light : #404040;
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-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-08 20:27:18 +08:00
line-height: .54rem;
.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%;
transform: translateY(-50%);
}
2017-07-28 11:22:25 +08:00
.ui-badge {
position: absolute;
right: -20px;
top: 10px;
width: 30px;
height: 21px;
background-size: 240px 21px;
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IuWbvuWxgl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDgwMCA3MCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgODAwIDcwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe2ZpbGw6I0Y4NTg2MDt9LnN0MXtmaWxsOiNGRkZGRkY7fS5zdDJ7Zm9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QxIHN0MiBzdDMiPkFscGhhPC90ZXh0PjwvZz48L3N2Zz4=);
animation: flag .8s steps(8) infinite;
}
@keyframes flag {
from { background-position: 0px; }
to { background-position: -240px; }
}
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-07-10 19:50:11 +08:00
}
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 {
width: 2.4rem;
}
.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 {
color: #999;
transition: color .4s;
2017-07-17 21:11:58 +08:00
}
&:hover{
2017-08-08 20:27:18 +08:00
.dropdown-link {
color: #fff;
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
}