-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
110 lines (96 loc) · 1.77 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
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,300;1,400;1,500;1,700;1,900&display=swap");
:root {
--white: #fff;
--black: #000;
--blue: #023fe8;
--github-fill: var(--white);
--github-color: var(--blue);
--github-focus: var(--black);
--roboto: "Roboto", sans-serif;
--block-shadow: 10px 10px 50px rgba(0, 0, 0, 0.2);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: var(--roboto);
}
body {
position: relative;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: var(--blue);
}
.container {
position: absolute;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
h2 {
color: var(--white);
text-align: center;
font-size: 8vw;
line-height: 0.7em;
z-index: 1000;
font-weight: 900;
}
h2 span {
font-size: 0.409em;
letter-spacing: 0.15em;
font-weight: 400;
margin-left: 2px;
text-transform: uppercase;
text-align: left;
}
.block {
position: absolute;
width: 50px;
height: 100px;
background: var(--blue);
box-shadow: var(--block-shadow);
}
.github-corner {
z-index: 2000;
}
.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;
}
h2 {
font-size: 40px;
}
}