-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
116 lines (103 loc) · 1.82 KB
/
style.css
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
:root {
--black: #000;
--white: #fff;
--section-background: #361303;
--github-fill: var(--white);
--github-color: var(--black);
--github-focus: rgb(255, 140, 52);
--loader-shadow: 0 0 10px #ffd900, 0 0 20px #ffd900, 0 0 40px #ffd900, 0 0 60px #ffd900, 0 0 80px #ffd900,
0 0 100px #ffd900;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
#space {
height: 0;
width: 0;
}
section {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: var(--section-background);
animation: animateBg 10s linear infinite;
}
@keyframes animateBg {
0% {
filter: hue-rotate(0deg);
}
100% {
filter: hue-rotate(360deg);
}
}
section .loader {
position: relative;
width: 200px;
height: 200px;
}
section .loader span {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
transform: rotate(calc(18deg * var(--i)));
}
section .loader span::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 25px;
height: 25px;
border-radius: 50%;
background: var(--white);
box-shadow: var(--loader-shadow);
animation: animate 2s linear infinite;
animation-delay: calc(0.1s * var(--i));
}
@keyframes animate {
0% {
transform: scale(1.5);
}
80%,
100% {
transform: scale(0);
}
}
.github-corner:focus svg path {
fill: var(--github-focus);
}
.github-corner:focus .octo-arm,
.github-corner:focus .octo-body {
fill: var(--github-color);
}
.github-corner:hover .octo-arm,
.github-corner:focus .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
@keyframes octocat-wave {
0%,
100% {
transform: rotate(0);
}
20%,
60% {
transform: rotate(-25deg);
}
40%,
80% {
transform: rotate(10deg);
}
}
@media (max-width: 500px) {
.github-corner:hover .octo-arm {
animation: none;
}
.github-corner .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
}