-
Notifications
You must be signed in to change notification settings - Fork 3
/
styles.css
521 lines (491 loc) · 15 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
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
html, body {
height: 100%;
}
body {
background: radial-gradient(ellipse at center, #43C6AC 0%,#191654 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
padding-top: 0px;
font-family: 'Open Sans', sans-serif;
color: #FFFFFF;
display: flex;
flex-direction: column;
margin: 0;
}
h1 {
font-family: "Bubblegum Sans";
font-size: 46px;
color: #FFFFFF;
text-align: center;
font-weight: normal;
}
footer {
left: 5px;
padding-bottom: 10px;
color:#FFFFFF;
text-align: center;
font-size: 16px;
flex-shrink: 0;
}
footer a {
color:#FFFFFF;
}
#video {
width: 1px;
height: 1px;
}
.video h2 {
font-family: "Bubblegum Sans";
font-size: 34px;
color: #191654;
text-align: center;
font-weight: normal;
position: absolute;
top: 140px;
left: 106px;
z-index: 0;
}
.container {
margin: auto;
flex: 1 0 auto;
padding-top: 50px;
}
.content > div.top {
padding-bottom: 10px;
}
div.top:after {
content: "";
display: table;
clear: both;
}
.container .video {
width: 800px; height: 800px;
position: relative;
float: left;
}
.video:after, .video:before{
mix-blend-mode:multiply;
filter:none;
z-index: -1;
content:'';
width:calc(100% + (50px * 2));
height:calc(100% + (50px * 2));
position: absolute;
display: block;
animation: border 10s ease-in-out infinite;
transform:translateX(-50px) translateY(-50px);
}
@keyframes border {
0%, 100% {
-webkit-clip-path: polygon(0 0, calc(100% - (33.3333333333px)) calc(0% + (33.3333333333px)), 100% 100%, calc(0% + (33.3333333333px)) calc(100% - (33.3333333333px)));
clip-path: polygon(0 0, calc(100% - (33.3333333333px)) calc(0% + (33.3333333333px)), 100% 100%, calc(0% + (33.3333333333px)) calc(100% - (33.3333333333px)));
}
50% {
-webkit-clip-path: polygon(calc(0% + (33.3333333333px)) calc(0% + (33.3333333333px)), 100% 0, calc(100% - (33.3333333333px)) calc(100% - (33.3333333333px)), 0 100%);
clip-path: polygon(calc(0% + (33.3333333333px)) calc(0% + (33.3333333333px)), 100% 0, calc(100% - (33.3333333333px)) calc(100% - (33.3333333333px)), 0 100%);
}
}
.video:after{
animation-delay: -5s;
background-color: #93e1d8;
clip-path: polygon(0 0, calc(100% - (33.3333333333px)) calc(0% + (33.3333333333px)), 100% 100%, calc(0% + (33.3333333333px)) calc(100% - (33.3333333333px)));
}
.video:before {
background-color: #AA4465;
clip-path: polygon(calc(0% + (33.3333333333px)) calc(0% + (33.3333333333px)), 100% 0, calc(100% - (33.3333333333px)) calc(100% - (33.3333333333px)), 0 100%);
}
.video:hover:after{
animation-delay: -0.1s;
}
.video:hover:before, .video:hover:after {
animation-duration: 0.2s;
}
.video #canvas {
z-index: 5;
position: absolute;
}
.container .video #fps {
position: absolute;
top: 130px;
right: 70px;
font-size: 15px;
background: rgba(0,0,0,0.5);
padding: 5px;
z-index: 10;
}
.container .controls {
position: absolute;
top: 655px;
left: 320px;
width: 100px;
z-index: 10;
display: flex;
justify-content: space-evenly;
}
.switch-option {
padding-left: 50px;
}
.switch-option span {
margin-top: 5px;
outline: none;
padding-left: 50px;
box-shadow: 1px 1px 0px 0px rgba(0,0,0,0.5) inset;
}
.switch-option span a {
outline: none!important;
box-shadow: 1px 1px 0px 0px rgba(0,0,0,0.5);
}
#template, #capture {
display: none;
}
@charset "UTF-8";
/*
* CSS TOGGLE SWITCH
*
* Ionuț Colceriu - ghinda.net
* https://github.com/ghinda/css-toggle-switch
*
*/
/* supported values are px, rem-calc, em-calc
*/
/* imports
*/
/* Functions
*/
/* Shared
*/
/* Hide by default
*/
.switch-toggle a,
.switch-light span span {
display: none; }
/* We can't test for a specific feature,
* so we only target browsers with support for media queries.
*/
@media only screen {
/* Checkbox
*/
.switch-light {
position: relative;
display: block;
/* simulate default browser focus outlines on the switch,
* when the inputs are focused.
*/ }
.switch-light::after {
clear: both;
content: '';
display: table; }
.switch-light *,
.switch-light *:before,
.switch-light *:after {
box-sizing: border-box; }
.switch-light a {
display: block;
transition: all 0.2s ease-out; }
.switch-light label,
.switch-light > span {
/* breathing room for bootstrap/foundation classes.
*/
line-height: 2em; }
.switch-light input:focus ~ span a,
.switch-light input:focus + label {
outline-width: 2px;
outline-style: solid;
outline-color: Highlight;
/* Chrome/Opera gets its native focus styles.
*/ } }
@media only screen and (-webkit-min-device-pixel-ratio: 0) {
.switch-light input:focus ~ span a,
.switch-light input:focus + label {
outline-color: -webkit-focus-ring-color;
outline-style: auto; } }
@media only screen {
/* don't hide the input from screen-readers and keyboard access
*/
.switch-light input {
position: absolute;
opacity: 0;
z-index: 3; }
.switch-light input:checked ~ span a {
right: 0%; }
/* inherit from label
*/
.switch-light strong {
font-weight: inherit; }
.switch-light > span {
position: relative;
overflow: hidden;
display: block;
min-height: 2em;
/* overwrite 3rd party classes padding
* eg. bootstrap .alert
*/
padding: 0;
text-align: left; }
.switch-light span span {
position: relative;
z-index: 2;
display: block;
float: left;
width: 50%;
text-align: center;
user-select: none; }
.switch-light a {
position: absolute;
right: 50%;
top: 0;
z-index: 1;
display: block;
width: 50%;
height: 100%;
padding: 0; }
/* bootstrap 4 tweaks
*/
.switch-light.row {
display: flex; }
.switch-light .alert-light {
color: #333; }
/* Radio Switch
*/
.switch-toggle {
position: relative;
display: block;
/* simulate default browser focus outlines on the switch,
* when the inputs are focused.
*/
/* For callout panels in foundation
*/
padding: 0 !important;
/* 2 items
*/
/* 3 items
*/
/* 4 items
*/
/* 5 items
*/
/* 6 items
*/ }
.switch-toggle::after {
clear: both;
content: '';
display: table; }
.switch-toggle *,
.switch-toggle *:before,
.switch-toggle *:after {
box-sizing: border-box; }
.switch-toggle a {
display: block;
transition: all 0.2s ease-out; }
.switch-toggle label,
.switch-toggle > span {
/* breathing room for bootstrap/foundation classes.
*/
line-height: 2em; }
.switch-toggle input:focus ~ span a,
.switch-toggle input:focus + label {
outline-width: 2px;
outline-style: solid;
outline-color: Highlight;
/* Chrome/Opera gets its native focus styles.
*/ } }
@media only screen and (-webkit-min-device-pixel-ratio: 0) {
.switch-toggle input:focus ~ span a,
.switch-toggle input:focus + label {
outline-color: -webkit-focus-ring-color;
outline-style: auto; } }
@media only screen {
.switch-toggle input {
position: absolute;
left: 0;
opacity: 0; }
.switch-toggle input + label {
position: relative;
z-index: 2;
display: block;
float: left;
padding: 0 0.5em;
margin: 0;
text-align: center; }
.switch-toggle a {
position: absolute;
top: 0;
left: 0;
padding: 0;
z-index: 1;
width: 10px;
height: 100%; }
.switch-toggle label:nth-child(2):nth-last-child(4),
.switch-toggle label:nth-child(2):nth-last-child(4) ~ label,
.switch-toggle label:nth-child(2):nth-last-child(4) ~ a {
width: 50%; }
.switch-toggle label:nth-child(2):nth-last-child(4) ~ input:checked:nth-child(3) + label ~ a {
left: 50%; }
.switch-toggle label:nth-child(2):nth-last-child(6),
.switch-toggle label:nth-child(2):nth-last-child(6) ~ label,
.switch-toggle label:nth-child(2):nth-last-child(6) ~ a {
width: 33.33%; }
.switch-toggle label:nth-child(2):nth-last-child(6) ~ input:checked:nth-child(3) + label ~ a {
left: 33.33%; }
.switch-toggle label:nth-child(2):nth-last-child(6) ~ input:checked:nth-child(5) + label ~ a {
left: 66.66%; }
.switch-toggle label:nth-child(2):nth-last-child(8),
.switch-toggle label:nth-child(2):nth-last-child(8) ~ label,
.switch-toggle label:nth-child(2):nth-last-child(8) ~ a {
width: 25%; }
.switch-toggle label:nth-child(2):nth-last-child(8) ~ input:checked:nth-child(3) + label ~ a {
left: 25%; }
.switch-toggle label:nth-child(2):nth-last-child(8) ~ input:checked:nth-child(5) + label ~ a {
left: 50%; }
.switch-toggle label:nth-child(2):nth-last-child(8) ~ input:checked:nth-child(7) + label ~ a {
left: 75%; }
.switch-toggle label:nth-child(2):nth-last-child(10),
.switch-toggle label:nth-child(2):nth-last-child(10) ~ label,
.switch-toggle label:nth-child(2):nth-last-child(10) ~ a {
width: 20%; }
.switch-toggle label:nth-child(2):nth-last-child(10) ~ input:checked:nth-child(3) + label ~ a {
left: 20%; }
.switch-toggle label:nth-child(2):nth-last-child(10) ~ input:checked:nth-child(5) + label ~ a {
left: 40%; }
.switch-toggle label:nth-child(2):nth-last-child(10) ~ input:checked:nth-child(7) + label ~ a {
left: 60%; }
.switch-toggle label:nth-child(2):nth-last-child(10) ~ input:checked:nth-child(9) + label ~ a {
left: 80%; }
.switch-toggle label:nth-child(2):nth-last-child(12),
.switch-toggle label:nth-child(2):nth-last-child(12) ~ label,
.switch-toggle label:nth-child(2):nth-last-child(12) ~ a {
width: 16.6%; }
.switch-toggle label:nth-child(2):nth-last-child(12) ~ input:checked:nth-child(3) + label ~ a {
left: 16.6%; }
.switch-toggle label:nth-child(2):nth-last-child(12) ~ input:checked:nth-child(5) + label ~ a {
left: 33.2%; }
.switch-toggle label:nth-child(2):nth-last-child(12) ~ input:checked:nth-child(7) + label ~ a {
left: 49.8%; }
.switch-toggle label:nth-child(2):nth-last-child(12) ~ input:checked:nth-child(9) + label ~ a {
left: 66.4%; }
.switch-toggle label:nth-child(2):nth-last-child(12) ~ input:checked:nth-child(11) + label ~ a {
left: 83%; }
/* Material Theme
*/
/* switch-light
*/
.switch-light.switch-material a {
top: -0.1875em;
width: 1.75em;
height: 1.75em;
border-radius: 50%;
background: #FFFFFF;
box-shadow: 0 0.125em 0.125em 0 rgba(0, 0, 0, 0.14), 0 0.1875em 0.125em -0.125em rgba(0, 0, 0, 0.2), 0 0.125em 0.25em 0 rgba(0, 0, 0, 0.12);
transition: right 0.28s cubic-bezier(0.4, 0, 0.2, 1); }
.switch-material.switch-light {
overflow: visible; }
.switch-material.switch-light::after {
clear: both;
content: '';
display: table; }
.switch-material.switch-light > span {
overflow: visible;
position: relative;
top: 0.1875em;
width: 3.25em;
height: 1.5em;
min-height: auto;
border-radius: 1em;
background: rgba(0, 0, 0, 0.26); }
.switch-material.switch-light span span {
position: absolute;
clip: rect(0 0 0 0); }
.switch-material.switch-light input:checked ~ span a {
right: 0;
/* background: #3f51b5; */
}
.switch-material.switch-light input:checked ~ span {
}
/* switch-toggle
*/
.switch-toggle.switch-material {
overflow: visible; }
.switch-toggle.switch-material::after {
clear: both;
content: '';
display: table; }
.switch-toggle.switch-material a {
top: 48%;
width: 0.375em !important;
height: 0.375em;
margin-left: 0.25em;
background: #3f51b5;
border-radius: 100%;
transform: translateY(-50%);
transition: transform .4s ease-in; }
.switch-toggle.switch-material label {
color: rgba(0, 0, 0, 0.54);
font-size: 1em; }
.switch-toggle.switch-material label:before {
content: '';
position: absolute;
top: 48%;
left: 0;
display: block;
width: 0.875em;
height: 0.875em;
border-radius: 100%;
border: 0.125em solid rgba(0, 0, 0, 0.54);
transform: translateY(-50%); }
.switch-toggle.switch-material input:checked + label:before {
border-color: #3f51b5; }
/* ripple
*/
.switch-light.switch-material > span:before,
.switch-light.switch-material > span:after,
.switch-toggle.switch-material label:after {
content: '';
position: absolute;
top: 0;
left: 0;
z-index: 3;
display: block;
width: 4em;
height: 4em;
border-radius: 100%;
background: #3f51b5;
opacity: .4;
margin-left: -1.25em;
margin-top: -1.25em;
transform: scale(0);
transition: opacity .4s ease-in; }
.switch-light.switch-material > span:after {
left: auto;
right: 0;
margin-left: 0;
margin-right: -1.25em; }
.switch-toggle.switch-material label:after {
width: 3.25em;
height: 3.25em;
margin-top: -0.75em; }
.switch-material.switch-light input:not(:checked) ~ span:after,
.switch-material.switch-light input:checked ~ span:before,
.switch-toggle.switch-material input:checked + label:after {
animation: materialRipple .4s ease-in; }
/* trick to prevent the default checked ripple animation from showing
* when the page loads.
* the ripples are hidden by default, and shown only when the input is focused.
*/
.switch-light.switch-material.switch-light input ~ span:before,
.switch-light.switch-material.switch-light input ~ span:after,
.switch-material.switch-toggle input + label:after {
visibility: hidden; }
.switch-light.switch-material.switch-light input:focus:checked ~ span:before,
.switch-light.switch-material.switch-light input:focus:not(:checked) ~ span:after,
.switch-material.switch-toggle input:focus:checked + label:after {
visibility: visible; } }
/* Bugfix for older Webkit, including mobile Webkit. Adapted from
* http://css-tricks.com/webkit-sibling-bug/
*/
@media only screen and (-webkit-max-device-pixel-ratio: 2) and (max-device-width: 80em) {
.switch-light,
.switch-toggle {
-webkit-animation: webkitSiblingBugfix infinite 1s; } }
@-webkit-keyframes webkitSiblingBugfix {
from {
-webkit-transform: translate3d(0, 0, 0); }
to {
-webkit-transform: translate3d(0, 0, 0); } }