mirror of
https://github.com/YMFE/yapi.git
synced 2025-01-06 12:45:22 +08:00
110 lines
4.2 KiB
SCSS
110 lines
4.2 KiB
SCSS
@import '../../styles/common.scss';
|
|
@import '../../styles/mixin.scss';
|
|
|
|
.nav-tooltip {
|
|
color: red;
|
|
}
|
|
|
|
/* .header-box.css */
|
|
.header-box {
|
|
height: .56rem;
|
|
line-height: .56rem;
|
|
padding: 0;
|
|
.logo {
|
|
position: relative;
|
|
float: left;
|
|
line-height: .56rem;
|
|
height: .56rem;
|
|
.href {
|
|
text-decoration: none;
|
|
}
|
|
.logo-name {
|
|
color: $color-white;
|
|
font-size: .24rem;
|
|
font-weight: 300;
|
|
margin-left: .38rem;
|
|
}
|
|
.img {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 50%;
|
|
transform: translateY(-17px);
|
|
}
|
|
.ui-badge {
|
|
position: absolute;
|
|
right: -18px;
|
|
top: 6px;
|
|
width: 30px;
|
|
height: 21px;
|
|
background-size: 236px 21px;
|
|
background-repeat: no-repeat;
|
|
background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjM2IiBoZWlnaHQ9IjE2IiB2aWV3Qm94PSIwIDAgMjM2IDE2IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjx0aXRsZT5hPC90aXRsZT48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGwtcnVsZT0ibm9uemVybyIgZmlsbD0iI0Y4NTg2MCI+PHBhdGggZD0iTTAgLjYxM2gyNS40NFYxNC4xSDB6TTU1LjQ0IDE0LjFzLTE2Ljg1OCAxLjgwOC0yMC4wNDUgMS44MDhDMzIuMjA3IDE1LjkwOCAzMCAxNC4xIDMwIDE0LjFWLjYxM3MyLjg4IDIuNTEzIDYuMDcgMi41MTNjMy4xODcgMCAxOS4zNy0yLjUxMyAxOS4zNy0yLjUxM1YxNC4xek04NS40NCAxNC4xcy05LjUzMiAxLjgwOC0xMi43M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QmV0YTwvdHNwYW4+PC90ZXh0Pjx0ZXh0IHRyYW5zZm9ybT0idHJhbnNsYXRlKDIgMSkiPjx0c3BhbiB4PSIzMCIgeT0iMTAiPkJldGE8L3RzcGFuPjwvdGV4dD48dGV4dCB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyIDEpIj48dHNwYW4geD0iNjAiIHk9IjEwIj5CZXRhPC90c3Bhbj48L3RleHQ+PHRleHQgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMiAxKSI+PHRzcGFuIHg9IjkwIiB5PSIxMCI+QmV0YTwvdHNwYW4+PC90ZXh0Pjx0ZXh0IHRyYW5zZm9ybT0idHJhbnNsYXRlKDIgMSkiPjx0c3BhbiB4PSIxMjAiIHk9IjEwIj5CZXRhPC90c3Bhbj48L3RleHQ+PHRleHQgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMiAxKSI+PHRzcGFuIHg9IjE1MCIgeT0iMTAiPkJldGE8L3RzcGFuPjwvdGV4dD48dGV4dCB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyIDEpIj48dHNwYW4geD0iMTgwIiB5PSIxMCI+QmV0YTwvdHNwYW4+PC90ZXh0Pjx0ZXh0IHRyYW5zZm9ybT0idHJhbnNsYXRlKDIgMSkiPjx0c3BhbiB4PSIyMTAiIHk9IjEwIj5CZXRhPC90c3Bhbj48L3RleHQ+PC9nPjwvZz48L3N2Zz4=);
|
|
animation: flag .8s steps(8) infinite;
|
|
}
|
|
@keyframes flag {
|
|
from { background-position: 0px; }
|
|
to { background-position: -240px; }
|
|
}
|
|
&: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;
|
|
}
|
|
}
|
|
|
|
.nav-toolbar {
|
|
font-size: .15rem;
|
|
float: left;
|
|
|
|
}
|
|
|
|
.user-toolbar{
|
|
float: right;
|
|
height: .54rem;
|
|
display: flex;
|
|
align-items: center;
|
|
.item-search {
|
|
width: 2rem;
|
|
}
|
|
.toolbar-li{
|
|
float: left;
|
|
font-size: .14rem;
|
|
cursor: pointer;
|
|
color: #ccc;
|
|
margin-left: .16rem;
|
|
transition: color .4s;
|
|
.dropdown-link {
|
|
color: #ccc;
|
|
transition: color .4s;
|
|
.ant-avatar-image{
|
|
margin-bottom: -10px;
|
|
}
|
|
.ant-avatar > img{
|
|
height: auto;
|
|
}
|
|
}
|
|
&:hover{
|
|
.dropdown-link {
|
|
color: #ccc;
|
|
}
|
|
}
|
|
.name {
|
|
margin-left: .08rem;
|
|
}
|
|
}
|
|
}
|
|
}
|