-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
207 lines (176 loc) · 3.71 KB
/
styles.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
@font-face {
font-family: "Mad Hacker";
src: local("MAD Hacker"), local("MadHacker-YYqv"), local("MadHacker-Yjz8"),
url(./src/assets/fonts/mad_hacker/MadHacker-YYqv.ttf);
}
@font-face {
font-family: "Doctor Glitch";
src: local("Doctor Glitch"),
url(./src/assets/fonts/doctor_glitch/Doctor_Glitch.otf);
}
@font-face {
font-family: "New Kind Of English";
src: local("NEW KIND OF ENGLISH"), local("NewKindOfEnglish-246l"),
url(./src/assets/fonts/new_kind_of_english/NewKindOfEnglish-246l.ttf);
}
@font-face {
font-family: "Cf Glitch City";
src: local("CF Glitch City"), local("CFGlitchCity-Regular"),
url(./src/assets/fonts/cf_glitch_city/CFGlitchCity-Regular.ttf);
}
@keyframes changing-cards {
0% {
box-shadow: -0.7rem -0.7rem var(--c-primary), 0.7rem 0.7rem var(--c-primary);
}
50% {
box-shadow: 0.7rem -0.7rem var(--c-primary), -0.7rem 0.7rem var(--c-primary);
}
100% {
box-shadow: 0.7rem 0.7rem var(--c-primary), -0.7rem -0.7rem var(--c-primary);
}
}
:root {
/* Colors */
--c-primary: hsl(0, 0%, 100%);
--c-secondary: hsl(0, 0%, 10%);
--c-tertiary: hsl(0, 0%, 0%);
/* Font-Size */
--f-14: 1.4rem;
--f-16: 1.6rem;
--f-18: 1.8rem;
--f-24: 2.4rem;
--f-36: 3.6rem;
--f-72: 7.2rem;
}
::selection {
background-color: var(--c-primary);
color: var(--c-tertiary);
text-shadow: var(--c-primary) 0.1rem 0.1rem;
}
* {
margin: 0;
padding: 0;
list-style: none;
text-decoration: none;
border: none;
outline: none;
background: transparent;
vertical-align: baseline;
box-sizing: border-box;
}
html {
font-size: 62.5%;
}
body {
background-color: var(--c-secondary);
color: var(--c-primary);
font-family: "Mad Hacker";
font-size: var(--f-16);
text-transform: uppercase;
text-align: center;
}
main {
display: flex;
flex-direction: column;
padding: 2.0rem 1.6rem;
}
h1 {
font-size: var(--f-36);
font-family: "Doctor Glitch";
letter-spacing: 0.2em;
}
.graphic {
position: absolute;
right: 0;
top: 14.0rem;
mix-blend-mode: color-dodge;
z-index: -1;
}
.hero-container {
min-height: 60.5rem;
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
padding: 5.0rem 0 6.0rem;
background-color: hsla(0, 0%, 0%, 0.15);
border-radius: 12.5rem 0;
box-shadow: 0 0.4rem 5.0rem hsla(0, 0%, 0%, 0.25);
}
.error-msg {
max-width: min-content;
}
.hacked-msg {
position: absolute;
top: 30.0rem;
}
.hacked-word {
font-family: "New Kind Of English";
}
.link-button {
color: inherit;
background-color: var(--c-tertiary);
font-size: var(--f-14);
line-height: 2.4rem;
box-shadow: -0.5rem -0.5rem var(--c-primary), 0.5rem 0.5rem var(--c-primary);
padding: 1.8rem 2.4rem;
transition: 0.5s ease-in-out;
}
.link-button:hover {
cursor: crosshair;
animation: changing-cards 2s infinite;
transition: 1s ease-in-out;
color: var(--c-tertiary);
background-color: var(--c-primary);
}
.link-button:active {
cursor: wait;
}
/* Tablet */
@media only screen and (min-width: 768px) {
body {
font-size: var(--f-24);
}
main {
padding: 7.0rem 2.4rem;
}
h1 {
font-size: var(--f-72);
}
.hero-container {
min-height: 90.5rem;
border-radius: 15.5rem 0;
}
.hacked-msg {
top: 53.5rem;
}
.link-button {
font-size: var(--f-18);
}
}
/* Desktop */
@media only screen and (min-width: 1024px) {
main {
padding: 17.2rem 14.4rem;
}
h1 {
white-space: nowrap;
}
.graphic {
left: 1.6rem;
}
.hero-container {
min-height: 40.5rem;
min-width: 115.0rem;
justify-content: space-between;
padding: 3.95rem;
}
.hacked-msg {
position: initial;
order: -1;
}
.link-button {
position: absolute;
top: 70.0rem;
}
}