-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapp.css
98 lines (92 loc) · 1.75 KB
/
app.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
/* COMMON */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 900;
src: url('roboto-black.ttf') format('truetype');
}
body, button {
font-family: 'Roboto', sans-serif;
font-weight: 900;
}
body { background: #202020 }
* { user-select: none }
/* CAMERA */
#camera {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: 1;
}
/* OVERLAY */
#overlay {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: 2;
}
#overlay .dialog {
position: absolute;
left: 30px;
right: 30px;
top: 50%;
transform: translateY(-50%);
padding: 30px;
background: #21a8c6;
color: #fff;
border: solid 2px;
border-radius: 8px;
text-align: center;
font-size: 18px;
}
#overlay .result {
position: absolute;
left: 0;
right: 0;
top: 0;
padding: 15px 0;
color: #ff0;
-webkit-text-stroke: 1.7px #000;
filter: drop-shadow(-2px 1px 0 #fff) drop-shadow(2px 1px 0 #fff);
text-align: center;
font-size: 40px;
display: none;
}
#overlay .result::after {
content: '';
box-sizing: border-box;
position: absolute;
top: calc(100% - 20px);
left: 50%;
margin-left: -50px;
width: 100px;
height: 100px;
background: url('images/hotdog.png') no-repeat center;
background-size: 80%;
border-radius: 50%;
z-index: -1;
}
#overlay .result.hotdog,
#overlay .result.hotdog::after {
background-color: #0f0;
}
#overlay .result.not-hotdog,
#overlay .result.not-hotdog::after {
background-color: #f00;
}
#overlay .result.not-hotdog::before {
content: '';
position: absolute;
top: calc(100% - 20px);
left: 50%;
margin-left: -50px;
width: 100px;
height: 100px;
background: url('images/cross.png') no-repeat center;
background-size: 70%;
}