Update github-ribbon

This commit is contained in:
atomiks
2018-03-03 21:25:37 +10:00
parent 49d5e212f0
commit eb9922913a
11 changed files with 63 additions and 79 deletions

View File

@ -0,0 +1,43 @@
@keyframes octocat-wave {
0%,
100% {
transform: rotate(0);
}
20%,
60% {
transform: rotate(-25deg);
}
40%,
80% {
transform: rotate(10deg);
}
}
.github-corner {
position: absolute;
top: 0;
right: 0;
z-index: 2;
&:hover .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
}
@media (max-width: 991px) {
.github-corner {
top: 44px;
}
}
@media (max-width: 500px) {
.github-corner {
&:hover .octo-arm {
animation: none;
}
.octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
}
}