mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
48 lines
743 B
SCSS
48 lines
743 B
SCSS
@keyframes octocat-wave {
|
|
0%,
|
|
100% {
|
|
@include transform(rotate(0));
|
|
}
|
|
20%,
|
|
60% {
|
|
@include transform(rotate(-25deg));
|
|
}
|
|
40%,
|
|
80% {
|
|
@include transform(rotate(10deg));
|
|
}
|
|
}
|
|
|
|
.github-corner {
|
|
position: fixed;
|
|
top: 0;
|
|
@include z-index(2);
|
|
@extend .print-d-none;
|
|
|
|
:hover .octo-arm {
|
|
animation: octocat-wave 560ms ease-in-out;
|
|
}
|
|
svg {
|
|
width: $header-height;
|
|
height: $header-height;
|
|
border: 0;
|
|
color: $github-corner-color;
|
|
fill: $github-corner-fill;
|
|
|
|
[data-theme='dark'] & {
|
|
color: $github-corner-color-dark;
|
|
fill: $github-corner-fill-dark;
|
|
}
|
|
}
|
|
&.left {
|
|
left: 0;
|
|
|
|
svg {
|
|
@include transform(scale(-1, 1));
|
|
}
|
|
}
|
|
&.right {
|
|
right: 0;
|
|
}
|
|
}
|