-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
351 lines (298 loc) · 6.27 KB
/
style.css
File metadata and controls
351 lines (298 loc) · 6.27 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
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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
/* RESET */
*,
::before,
::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
background: url("./assets/mounts-bg-fade-homepage.jpg");
background-repeat: no-repeat;
background-position: center;
background-size: cover;
background-color: #000;
height: 100vh;
filter: invert(var(--invert));
}
body {
color: aliceblue;
font-family: Montserrat, Helvetica, sans-serif;
}
.container {
max-width: 1600px;
margin: 0 auto;
padding: 100px 20px 0;
}
p {
font-weight: bolder;
color: aliceblue;
color: transparent;
/*! Don't comment this below !! */
font-size: 0px;
}
p a, p span {
display: inline-block;
position: relative;
overflow: hidden;
color: white;
font-size: clamp(15px, 6vw, 60px);
}
a {
text-decoration: underline;
text-decoration-color: #0000;
transition: text-decoration-color 0.5s;
}
a:hover {
text-decoration-color: white;
}
p a::after, p span::after {
content: '';
display: block;
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
transform: translateX(-100%);
}
/* ANIMATIONS */
.title {
font-weight: lighter;
animation: text-reveal .15s .80s forwards;
}
.desc {
animation: text-reveal .15s 1.1s forwards;
}
p:nth-child(1) a::after {
background: #8d6e7f;
animation: cover-text 1s ease-out forwards, discover-text 1s .75s ease-in forwards;
}
p:nth-child(2) span::after {
background-color: #4a4663;
animation: cover-text 1s .30s ease-out forwards, discover-text 1s 1s ease-in forwards;
}
@keyframes cover-text {
100% {
transform: translateX(0%);
}
}
@keyframes discover-text {
100% {
transform: translateX(100%);
}
}
@keyframes text-reveal {
100% {
color: aliceblue;
}
}
/* BUTTON */
#button {
background-color: rgba(72, 22, 4, 0.9);
border: none;
color: #bd5e5e;
padding: 15px 32px;
margin: 150px 100px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
}
/* ANIMATED LINK */
.animated-link {
display: inline-block;
background: #000;
border-radius: 10%;
text-decoration: none;
margin-top: 100px;
margin-left: 20px;
}
.animated-link span {
display: inline-block;
background: #4a4663;
color: #000;
border: 2px solid #333;
padding: 18px;
font-size: 16px;
font-weight: 999;
border-radius: 5px;
cursor: pointer;
transition: transform .15s ease-out, color .15s ease-out, background-color .15s ease-out;
}
.animated-link:hover span {
transform: translate(6px, -6px);
color: #bebebe;
background: #511c1c;
}
/* ----------------------------------------------------------------------------------------------- */
/* Thanks to https://codepen.io/rebelchris/pen/jOMGweo for this part */
:root {
/** sunny side **/
--blue-border: #72cce3;
--blue-color: #96dcee;
--yellow-background: #fffaa8;
--yellow-border: #f5eb71;
/** dark side **/
--indigo-border: #5d6baa;
--indigo-color: #6b7abb;
--gray-border: #e8e8ea;
--gray-dots: #e8e8ea;
/** general **/
--white: #fff;
}
* {
margin: 0;
padding: 0;
}
body {
display: grid;
place-items: center;
min-height: 100vh;
position: relative;
}
.toggle--checkbox {
display: none;
}
/** This will all flip from sun to moon **/
/** Change the label color **/
.toggle--checkbox:checked { }
.toggle--checkbox:checked ~ .background {
background: var(--indigo-background);
}
.toggle--checkbox:checked + .toggle--label {
background: var(--indigo-color);
border-color: var(--indigo-border);
/** Change the cloud to stars **/
/** Change the sun into the moon **/
/** Show the dimples on the moon **/
}
.toggle--checkbox:checked + .toggle--label .toggle--label-background {
left: 60px;
width: 5px;
}
.toggle--checkbox:checked + .toggle--label .toggle--label-background:before {
width: 5px;
height: 5px;
top: -25px;
}
.toggle--checkbox:checked + .toggle--label .toggle--label-background:after {
width: 5px;
height: 5px;
left: -30px;
top: 20px;
}
.toggle--checkbox:checked + .toggle--label:before {
background: var(--white);
border-color: var(--gray-border);
animation-name: switch;
animation-duration: 350ms;
animation-fill-mode: forwards;
}
.toggle--checkbox:checked + .toggle--label:after {
transition-delay: 350ms;
opacity: 1;
}
.toggle--label {
/** Placeholder element, starting at blue **/
width: 200px;
height: 100px;
background: var(--blue-color);
border-radius: 100px;
border: 5px solid var(--blue-border);
display: flex;
position: relative;
transition: all 350ms ease-in;
filter: invert(var(--invert));
scale: 50%;
/** The sun cloud and moon stars **/
/** Sun/Moon element **/
/** Gray dots on the moon **/
}
.toggle--label-background {
width: 10px;
height: 5px;
border-radius: 5px;
position: relative;
background: var(--white);
left: 135px;
top: 45px;
transition: all 150ms ease-in;
}
.toggle--label-background:before {
content: "";
position: absolute;
top: -5px;
width: 40px;
height: 5px;
border-radius: 5px;
background: var(--white);
left: -20px;
transition: all 150ms ease-in;
}
.toggle--label-background:after {
content: "";
position: absolute;
top: 5px;
width: 40px;
height: 5px;
border-radius: 5px;
background: var(--white);
left: -10px;
transition: all 150ms ease-in;
}
.toggle--label:before {
animation-name: reverse;
animation-duration: 350ms;
animation-fill-mode: forwards;
transition: all 350ms ease-in;
content: "";
width: 82px;
height: 82px;
border: 5px solid var(--yellow-border);
top: 4px;
left: 4px;
position: absolute;
border-radius: 82px;
background: var(--yellow-background);
}
.toggle--label:after {
transition-delay: 0ms;
transition: all 250ms ease-in;
position: absolute;
content: "";
box-shadow: var(--gray-dots) -13px 0 0 2px, var(--gray-dots) -24px 14px 0 -2px;
left: 143px;
top: 23px;
width: 10px;
height: 10px;
background: transparent;
border-radius: 50%;
opacity: 0;
}
@keyframes switch {
0% {
left: 4px;
}
60% {
left: 4px;
width: 112px;
}
100% {
left: 104px;
width: 82px;
}
}
@keyframes reverse {
0% {
left: 104px;
width: 82px;
}
60% {
left: 72px;
width: 112px;
}
100% {
left: 4px;
}
}