-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
621 lines (540 loc) · 12.1 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
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
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
html,
body {
height: 100%;
width: 100%;
margin: 0;
background-color: #13161f;
color: #fff;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
[data-slot="root"] {
overflow: hidden;
display: flex;
flex-direction: column;
gap: 2rem;
}
a,
a:visited {
color: #94aefc;
text-decoration: none;
position: relative;
display: inline;
}
a::after {
content: "";
bottom: 0;
height: 2px;
left: 0;
right: 0;
width: 0px;
background-color: #94aefc;
display: block;
position: absolute;
transition: width 0.2s ease;
}
a:hover::after {
width: 100%;
}
.header {
/* max-height: 180px;
height: 30vmax; */
font-size: 1.5rem;
padding: 24px;
background: rgba(255, 255, 255, 0.05);
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
gap: 1rem;
}
.header p,
.header h1 {
margin: 0;
}
.results {
flex-direction: column;
overflow-x: hidden;
scrollbar-width: thin;
scrollbar-color: #7c859e #13161f;
/* margin: 0 2vmax; */
}
.results::-webkit-scrollbar {
width: 5px;
height: 8px;
background: transparent;
}
.results::-webkit-scrollbar-thumb {
transition: background 0.2s ease;
width: 5px;
height: 3px;
background: #7c859e00;
border-radius: 999px;
}
.results:hover::-webkit-scrollbar-thumb {
width: 5px;
height: 3px;
background: #7c859e99;
border-radius: 999px;
}
.results .video-card {
/* transform: translateX(6%); */
margin-bottom:25px;
justify-self: center;
}
.cards-wrapper {
overflow-x: scroll;
scrollbar-width: thin;
scrollbar-color: #7c859e #13161f;
/* margin: 0 2vmax; */
}
.cards-wrapper::-webkit-scrollbar {
width: 5px;
height: 8px;
background: transparent;
}
.cards-wrapper::-webkit-scrollbar-thumb {
transition: background 0.2s ease;
width: 5px;
height: 3px;
background: #7c859e00;
border-radius: 999px;
}
.cards-wrapper:hover::-webkit-scrollbar-thumb {
width: 5px;
height: 3px;
background: #7c859e99;
border-radius: 999px;
}
.cards {
display: flex;
justify-content: flex-start;
flex-wrap: nowrap;
width: max-content;
gap: 2rem;
height: 16rem;
padding: 2rem 2vmax;
height: 289px;
}
.card {
background: linear-gradient(
136.18deg,
rgba(255, 255, 255, 0.05) 43.85%,
rgba(217, 217, 217, 0) 106.64%
);
border: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: 0px 15px 22px 2px rgba(0, 0, 0, 0.5);
border-radius: 14px;
height: 100%;
width: 400px;
max-width: 400px;
transition: outline 0.2s ease;
outline: 0px solid #fff0;
}
.card:hover {
outline: 1px solid #fff;
}
.video-card {
position: relative;
background-size: cover;
background-position: center;
border-color: #45474e;
border-radius: 14px;
overflow: clip;
aspect-ratio: 16 / 9;
cursor: pointer;
height: fit-content;
}
.video-card .overlay {
background: linear-gradient(to bottom, #0000 10%, #000e 100%);
position: absolute;
width: 100%;
height: 100%;
z-index: 0;
opacity: 0.7;
transition: all 0.35s ease-in-out;
}
.video-card:hover .overlay {
opacity: 1;
}
.video-card .details {
position: absolute;
bottom: 10px;
left: 10px;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
gap: 0.5rem;
}
.video-card .author,
.details .author {
display: flex;
justify-content: flex-start;
align-items: center;
gap: 0.25rem;
}
.video-card .author .author-pfp,
.details .author .author-pfp {
width: 32px;
height: 32px;
border-radius: 50%;
border: 1px solid rgba(255, 255, 255, 0.2);
}
.video-card .thumbnail {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
width: 400px;
}
.status-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
border-top: 1px solid rgba(255, 255, 255, 0.2);
padding: 16px;
backdrop-filter: blur(10px) contrast(1.1) saturate(0.9);
-webkit-backdrop-filter: blur(10px) contrast(1.1) saturate(0.9);
}
#player {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
background-color: #000;
opacity: 0;
transform: scale(0.5);
pointer-events: none;
transition: transform 0.5s cubic-bezier(0.87, 0, 0.13, 1), opacity 0.5s linear;
}
.video-container {
position: relative;
height: 100%;
width: 100%;
}
#player.show {
display: flex !important;
transform: unset;
opacity: 1;
pointer-events: auto !important;
}
#player video {
position: absolute;
width: 100%;
height: 100vh;
aspect-ratio: 16 / 9;
background-color: #222;
/* background-image: url('loading.gif');
background-size: 5vmax 5vmax;
background-position: center;
background-repeat: no-repeat; */
}
/* #player .controls {
background: linear-gradient(to bottom, #0000 0%, #00000075 60%, #000);
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 20%;
z-index: 10;
opacity: 0;
transform: translateY(25%);
transition: transform 0.2s ease, opacity 0.2s ease;
}
#player .controls:hover {
opacity: 1;
transform: translateY(0%);
} */
* {
box-sizing: border-box;
}
@media screen and (max-width: 860px) {
/* Mobile layout */
.header {
min-height: calc(100vh - 32rem);
}
/* Modal thumbnail should be small */
.thumbnail-wrapper {
width: unset !important;
max-height: 240px !important;
}
#search {
width: calc(100vw - 15%);
}
}
section[data-slot="browse"] h1 {
font-size: 2rem;
padding: 0 2vmax;
margin-bottom: 0;
}
section[data-slot="browse"] {
padding-bottom: 5rem;
}
.modal {
display: flex;
flex-direction: column;
position: fixed;
top: 50%;
left: 50%;
transition: opacity 0.5s ease, transform 0.5s ease;
opacity: 0;
transform: translate(-50%, -20%);
z-index: 10;
height: max-content;
width: min-content;
max-height: 100vh;
padding: 16px;
background: #181b24;
border: 1px solid #fff5;
border-radius: 14px;
box-shadow: 0px 15px 89px 10px rgba(0, 0, 0, 0.25);
max-width: 100vw;
}
.modal h1 {
font-weight: 550;
font-size: 1.5rem;
}
.modal.show {
opacity: 1;
transform: translate(-50%, -50%);
overflow: auto;
}
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: #0009;
opacity: 0;
transition: backdrop-filter 0.5s ease, opacity 0.5s ease;
backdrop-filter: blur(0px) contrast(1) saturate(1) brightness(1);
-webkit-backdrop-filter: blur(0px) contrast(1) saturate(1) brightness(1);
z-index: 9;
}
.modal-overlay.show {
opacity: 1;
backdrop-filter: blur(2px) contrast(1.1) saturate(1.1) brightness(1.1);
-webkit-backdrop-filter: blur(2px) contrast(1.1) saturate(1.1) brightness(1.1);
}
.muted {
color: #3d4660;
}
.thumbnail-wrapper {
width: 640px;
height: 360px;
position: relative;
aspect-ratio: 16 / 9;
overflow: clip;
border-radius: 16px;
border: 1px solid #fff5;
max-width: calc(100vw - 32px);
}
.thumbnail-wrapper .thumbnail {
position: absolute;
top: 50%;
transform: translate(-50%, -50%);
left: 50%;
width: 100%;
}
.thumbnail-wrapper .close {
position: absolute;
top: 12px;
right: 12px;
z-index: 9;
width: 48px;
height: 48px;
appearance: none;
background: #0005;
color: #fff;
font-size: 24px;
border: 1px solid #fff3;
border-radius: 10px;
padding-left: 7px;
}
.thumbnail-wrapper .close:hover {
background: #000a;
}
.modal .description-wrapper {
position: relative;
}
.modal .description-wrapper .description {
max-height: 10em;
overflow: auto;
position: relative;
padding-bottom: 2rem;
white-space: pre-wrap;
}
.modal .description-wrapper::after {
content: "";
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: linear-gradient(180deg, rgba(24, 27, 36, 0) 72.57%, #181b24 100%);
pointer-events: none;
}
.link-hashtag::before {
content: "#";
color: #5b6ea9;
}
.link-generic,
.link-timestamp {
padding-left: 28px;
position: relative;
}
.link-generic::before {
/* SVG Icon */
content: "";
width: 24px;
height: 24px;
position: absolute;
top: 0;
left: 0;
background-image: url("data:image/svg+xml,%3Csvg width='96' height='96' viewBox='0 0 96 96' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_1909_2810)'%3E%3Cpath d='M25.0898 25.0899C29.9264 20.2533 37.7894 20.2533 42.626 25.0899L53.9397 36.4036L59.3138 31.0296L48 19.7159C40.1936 11.9094 27.5222 11.9094 19.7158 19.7159C11.9093 27.5223 11.9093 40.1937 19.7158 48.0001L31.0295 59.3138L36.4035 53.9398L25.0898 42.6261C20.2532 37.7895 20.2532 29.9265 25.0898 25.0899ZM33.8579 39.5149L56.4853 62.1423L62.1422 56.4854L39.5148 33.858L33.8579 39.5149ZM76.2843 48.0001L64.9706 36.6864L59.5966 42.0604L70.9103 53.3741C75.7469 58.2108 75.7469 66.0738 70.9103 70.9104C66.0737 75.747 58.2107 75.747 53.3741 70.9104L42.0603 59.5967L36.6863 64.9707L48 76.2844C55.8065 84.0909 68.4779 84.0909 76.2843 76.2844C84.0908 68.4779 84.0908 55.8066 76.2843 48.0001Z' fill='%235b6ea9'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_1909_2810'%3E%3Crect width='96' height='96' fill='%235b6ea9'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
background-size: cover;
}
.link-timestamp::before {
content: "";
width: 24px;
height: 24px;
position: absolute;
top: 0;
left: 0;
background-image: url("data:image/svg+xml,%3Csvg width='96' height='96' viewBox='0 0 96 96' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_1910_2820)'%3E%3Cpath d='M47.96 8C25.88 8 8 25.92 8 48C8 70.08 25.88 88 47.96 88C70.08 88 88 70.08 88 48C88 25.92 70.08 8 47.96 8ZM48 80C30.32 80 16 65.68 16 48C16 30.32 30.32 16 48 16C65.68 16 80 30.32 80 48C80 65.68 65.68 80 48 80Z' fill='%235b6ea9'/%3E%3Cpath d='M50 28H44V52L65 64.6L68 59.68L50 49V28Z' fill='%235b6ea9'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_1910_2820'%3E%3Crect width='96' height='96' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
background-size: cover;
}
button {
background: #2a3042;
border-radius: 12px;
color: #6e87d1;
border: 1px solid rgba(255, 255, 255, 0.2);
padding: 8px 14px;
}
button,
input,
textarea {
font: inherit;
}
button:hover {
border: 1px solid rgba(255, 255, 255, 0.8);
}
input {
background-color: #20242e;
border: 1px solid rgba(255, 255, 255, 0.2);
color: inherit;
padding: 8px 14px;
border-radius: 8px;
}
.video-meta .length {
color: #7c859e;
}
.modal .results {
/* Search results */
max-width: 816px;
gap: 16px;
min-width: 50vmin;
}
/* Landing Page */
.nav-container {
background-color: #0b0d13;
display: inline-flex;
width: 100%;
height: 54px;
margin-bottom: 0px;
}
@media (max-width: 475px) {
.nav-container .nav ul li {
display: none;
}
}
.nav-container .nav {
width: 100%;
display: flex;
margin-right: 15px;
justify-content: flex-end;
}
.nav-container img {
margin-left: 10px;
display: flex;
justify-content: flex-start;
width: 240px;
height: 54px;
}
.nav-container .nav ul {
display: flex;
flex-direction: row-reverse;
text-decoration: none;
list-style-type: none;
gap: 15px;
justify-content: flex-end;
}
.nav-container .nav ul li a {
text-decoration: none;
color: #fff;
}
.nav-container .nav .show {
display: none;
}
.content {
display: flex;
flex-direction: column;
}
.content .banner {
display: flex;
margin: 0px;
width: 100%;
text-align: center;
align-items: center;
justify-content: center;
height: 25vh;
background-color: #171c2b;
flex-direction: column;
}
.content .banner * {
display: flex;
margin:0px;
padding: 0px;
}
.content .aboutus div {
display: flex;
justify-content: center;
/* flex-direction: row; */
text-align: center;
}
.content .aboutus {
text-align: center;
}
.content .aboutus .card-container {
width: 100vw;
display: flex;
gap: 15px;
padding: 0px 15px 0px 15px;
}
/* @media (max-width: 1258px) { */
@media (max-width: 1110px) {
.content .aboutus .card-container {
flex-direction: column;
align-items: center;
}
}
.content .aboutus .card-container .card {
display: flex;
width: inherit;
flex-direction: column;
margin: 10px;
}
.content .aboutus .card-container .card * {
margin: 2px 12px 2px 12px;
padding: 2px;
}
.footer {
padding-top: 30px;
text-align: center;
}