-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgithubcorner.css
More file actions
69 lines (54 loc) · 1.09 KB
/
githubcorner.css
File metadata and controls
69 lines (54 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
githubcorner.css - combined with HTML code this will create
an "octocat" icon in the upper-right corner of a page.
Classes were originally obtained from -
https://github.com/tholman/github-corners
Modifications have been made.
*/
.github-corner-svg-right {
right: 0;
}
.github-corner-svg-left {
left: 0;
transform: scale(-1, 1);
}
.github-corner-svg {
position: absolute;
top: 0;
border: 0;
}
.github-corner-link {
text-decoration: none;
background-color: transparent;
}
.github-corner:hover .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
@keyframes octocat-wave {
0% {
transform: rotate(0deg);
}
20% {
transform: rotate(-25deg);
}
40% {
transform: rotate(10deg);
}
60% {
transform: rotate(-25deg);
}
80% {
transform: rotate(10deg);
}
100% {
transform: rotate(0deg);
}
}
@media (max-width: 500px) {
.github-corner:hover .octo-arm {
animation: none;
}
.github-corner .octo-arm {
animation: none;
}
}