-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
481 lines (411 loc) · 10.4 KB
/
style.css
File metadata and controls
481 lines (411 loc) · 10.4 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
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
/* style.css */
/* --- GLOBAL RESETS --- */
html, body {
height: 100%;
margin: 0;
padding: 0;
background-color: #1a1a1a;
color: #ccd;
font-family: 'Courier New', Courier, monospace;
overflow-x: hidden;
width: 100%;
}
body {
display: flex;
justify-content: center;
align-items: flex-start;
text-align: center;
}
main {
/* Ensures content stays centered even if it wants to be wide */
width: 100%;
max-width: 100vw;
display: flex;
flex-direction: column;
align-items: center;
}
/* i literally have no idea why this is necessary but without it the centering breaks */
*/
pre.ascii-art {
/* Forces the box to be exactly as wide as the text, no wider */
width: fit-content;
width: -moz-fit-content; /* Firefox support */
/* Pushes the shrink-wrapped box to the middle */
margin-left: auto;
margin-right: auto;
display: inline-block;
white-space: pre;
text-align: left; /* Keep the characters inside aligned to each other */
overflow: hidden;
margin-bottom: 2rem;
}
/* how do you do fellow frontend developers? */
/* DESKTOP RULES (Screens wider than 768px) */
@media (min-width: 769px) {
.mobile-only {
display: none !important;
}
.desktop-only {
display: block;
/* Tuned size for the Aperture logo */
font-size: 0.55vw;
line-height: 0.8;
}
}
/* MOBILE RULES (Screens smaller than 768px) */
@media (max-width: 768px) {
.desktop-only {
display: none !important;
}
.mobile-only {
display: block;
font-size: 10px;
line-height: 1;
}
}
/* --- TYPING ANIMATION (this is controlled by JS) --- */
.tagline-container {
margin-bottom: 1rem;
display: inline-block;
font-family: 'Courier New', Courier, monospace;
}
/* The actual cursor block */
.cursor {
display: inline-block;
width: 2px;
height: 1.2rem;
background-color: #ccd;
margin-left: 5px;
margin-bottom: -2px;
/* Only the blinking is handled by CSS now */
animation: blink 1s step-end infinite;
}
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}
/* --- LINKS --- */
a {
color: #fff;
text-decoration: underline;
}
a:hover {
color: #aaa;
text-decoration: none;
}
::selection {
background: #ccd; /* The background of the selection */
color: #1a1a1a; /* The text color inside the selection */
}
.barrel-roll {
animation: spin 1s ease-in-out;
}
.barrel-roll-backwards {
animation: spin-backwards 1s ease-in-out;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
@keyframes spin-backwards {
0% { transform: rotate(0deg); }
100% { transform: rotate(-360deg); }
}
/* temporary overlay class */
.flickering-overlay {
animation: fluorescent-fail 2s linear forwards;
}
/* Invert satellite map during flicker */
.flickering-overlay .iss-module {
animation: map-flicker 2s linear forwards;
}
@keyframes fluorescent-fail {
0% { background-color: #fff; color: #000; } /* ON */
10% { background-color: #333; color: #ccd; } /* OFF */
20% { background-color: #fff; color: #000; } /* ON */
30% { background-color: #ccc; color: #000; } /* DIM */
40% { background-color: #fff; color: #000; } /* ON */
50% { background-color: #1a1a1a; color: #ccd; }/* OFF */
60% { background-color: #fff; color: #000; } /* ON */
70% { background-color: #fff; color: #000; } /* ON */
75% { background-color: #fff; color: #000; } /* ON */
80% { background-color: #888; color: #222; } /* DYING... */
90% { background-color: #fff; color: #000; }
100% { background-color: #1a1a1a; color: #ccd; } /* OFF */
}
@keyframes map-flicker {
0% { filter: invert(1); } /* ON */
10% { filter: invert(0); } /* OFF */
20% { filter: invert(1); } /* ON */
30% { filter: invert(0.7); } /* DIM */
40% { filter: invert(1); } /* ON */
50% { filter: invert(0); } /* OFF */
60% { filter: invert(1); } /* ON */
70% { filter: invert(1); } /* ON */
75% { filter: invert(1); } /* ON */
80% { filter: invert(0.5); } /* DYING... */
90% { filter: invert(1); }
100% { filter: invert(0); } /* OFF */
}
/* Ticker Container (Hidden by default) */
.ticker-wrap {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 30px;
overflow: hidden;
background: #ccd;
color: #1a1a1a;
z-index: 10;
/* Hide it below the screen initially */
transform: translateY(100%);
transition: transform 0.5s ease-out; /* Smooth pop-up */
}
/* The class JS will add to pop it up */
.ticker-wrap.active {
transform: translateY(0);
}
/* The Text inside */
.ticker {
display: inline-block;
white-space: nowrap;
font-family: 'Courier New', Courier, monospace;
font-weight: bold;
font-size: 1rem;
line-height: 30px; /* Vertically centers text */
/* Start completely off-screen to the right */
position: absolute;
left: 100%;
}
.scroll-across {
animation: ticker-once 10s linear forwards;
}
@keyframes ticker-once {
0% { left: 100%; transform: translateX(0); }
100% { left: 0; transform: translateX(-100%); }
}
.version-display {
position: fixed;
bottom: 10px;
right: 15px;
font-family: 'Courier New', Courier, monospace;
font-size: 0.7rem;
color: #444;
z-index: 5; /* below ticker (which is z-index 10) */
cursor: default;
user-select: none;
}
/* Optional: Glow slightly on hover */
.version-display:hover {
color: #ccd;
text-shadow: 0 0 5px #ccd;
}
.iss-module {
margin-top: 2rem;
border: 1px solid #333;
padding: 10px;
display: inline-block;
background: #0f0f0f;
}
.module-title {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 0.5rem;
position: relative;
padding-right: 100px;
}
.title-text {
flex: 1;
text-align: center;
}
.collapse-btn {
background: none;
border: none;
color: #888;
font-family: inherit;
cursor: pointer;
font-size: 0.9rem;
padding: 0 5px;
position: absolute;
right: 0;
}
.collapse-btn:hover {
color: #ccd;
}
.iss-header {
font-size: 0.8rem;
color: #888;
margin-bottom: 0.5rem;
text-align: center;
display: flex;
justify-content: space-between;
}
.iss-title {
font-size: 0.75rem;
color: #888;
margin-bottom: 0.5rem;
font-weight: bold;
text-align: center;
position: relative;
z-index: 1;
}
.iss-footer {
font-size: 1rem;
color: #444;
margin-top: 0.5rem;
text-align: right;
}
#sat-name {
color: #ccd;
font-weight: bold;
margin-left: 2rem;
}
#ascii-map-display {
margin: 0;
color: #444; /* Dim background map */
font-family: 'Courier New', Courier, monospace;
line-height: 1.15;
font-weight: bold;
overflow: hidden;
white-space: pre; /* fixes ascii layout... idk css is css */
}
/* Make the satellites glow */
.sat-active {
color: #fff;
text-shadow: 0 0 5px #fff;
background-color: #333;
}
.git-module {
margin-top: 2rem;
border: 1px solid #333;
padding: 10px 15px;
display: inline-block;
min-width: 350px;
text-align: center;
background: #0f0f0f;
}
.git-header {
font-size: 0.75rem;
color: #888;
margin-bottom: 0.8rem;
font-weight: bold;
text-align: center;
}
.git-log {
list-style: none;
padding: 0;
margin: 0;
text-align: left;
font-family: 'Courier New', Courier, monospace;
font-size: 0.8rem;
max-height: 240px;
overflow-y: auto;
scroll-behavior: smooth;
scrollbar-width: thin;
scrollbar-color: #333 #0f0f0f;
}
.git-log::-webkit-scrollbar {
width: 6px;
}
.git-log::-webkit-scrollbar-track {
background: #0f0f0f;
}
.git-log::-webkit-scrollbar-thumb {
background: #333;
border-radius: 3px;
}
.git-log::-webkit-scrollbar-thumb:hover {
background: #555;
}
.git-log li {
margin-bottom: 4px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
border-left: 2px solid #333;
padding-left: 8px;
color: #888;
}
.git-log li:first-child {
color: #ccd;
border-left: 2px solid #4a9eff;
font-weight: bold;
}
.git-log a {
color: inherit;
text-decoration: none;
}
.git-log a:hover {
text-decoration: underline;
}
.git-footer {
font-size: 0.7rem;
color: #666;
margin-top: 0.8rem;
text-align: center;
}
@keyframes git-flicker {
0% { filter: invert(1); } /* ON */
10% { filter: invert(0); } /* OFF */
20% { filter: invert(1); } /* ON */
30% { filter: invert(0.7); } /* DIM */
40% { filter: invert(1); } /* ON */
50% { filter: invert(0); } /* OFF */
60% { filter: invert(1); } /* ON */
70% { filter: invert(1); } /* ON */
75% { filter: invert(1); } /* ON */
80% { filter: invert(0.5); } /* DYING... */
90% { filter: invert(1); }
100% { filter: invert(0); } /* OFF */
}
/* Invert git module during flicker */
.flickering-overlay .git-module {
animation: git-flicker 2s linear forwards;
}
.weather-module {
margin-top: 2rem;
border: 1px solid #333;
padding: 10px 15px;
display: inline-block;
min-width: 200px;
text-align: center;
background: #0f0f0f;
vertical-align: top; /* Aligns nicely next to other boxes */
}
.weather-header {
font-size: 0.75rem;
color: #888;
margin-bottom: 0.5rem;
font-weight: bold;
}
.weather-display {
font-size: 1.5rem;
font-weight: bold;
color: #ff9d00;
font-family: 'Courier New', Courier, monospace;
margin: 10px 0;
}
.weather-footer {
font-size: 0.7rem;
color: #666;
}
@keyframes weather-flicker {
0% { filter: invert(1); } /* ON */
10% { filter: invert(0); } /* OFF */
20% { filter: invert(1); } /* ON */
30% { filter: invert(0.7); } /* DIM */
40% { filter: invert(1); } /* ON */
50% { filter: invert(0); } /* OFF */
60% { filter: invert(1); } /* ON */
70% { filter: invert(1); } /* ON */
75% { filter: invert(1); } /* ON */
80% { filter: invert(0.5); } /* DYING... */
90% { filter: invert(1); }
100% { filter: invert(0); } /* OFF */
}
/* Invert weather module during flicker */
.flickering-overlay .weather-module {
animation: weather-flicker 2s linear forwards;
}