-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.css
98 lines (79 loc) · 1.57 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
html,
body {
padding: 0;
margin: 0;
font-family: sans-serif;
width: 100%;
height: 100%;
overflow: hidden;
color: #444;
}
button {
background: none;
padding: 0;
border: 0;
}
.controls {
position: absolute;
left: 0;
bottom: 0;
right: 0;
min-height: 100px;
}
.capture {
font-size: 40px;
}
fxos-camera .focus {
width: 80px;
height: 80px;
}
fxos-camera .focus:before {
content: '';
display: block;
width: 100%;
height: 100%;
border: solid 1.5px;
border-radius: 50%;
color: rgba(255,255,255,0.9);
box-shadow: 0 0 2px rgba(0,0,0,0.4);
transition: opacity 180ms 200ms;
opacity: 0;
}
fxos-camera .focus[data-state="focusing"]:before,
fxos-camera .focus[data-state="focused"]:before {
transition-delay: 0ms;
opacity: 1;
}
fxos-camera .focus[data-state="focusing"]:before {
animation: 0.1s ring-animation 1 ease-in forwards;
}
/**
* [state=focused]
*/
fxos-camera .focus[data-state="focused"]:before {
color: #afff3d;
transition: transform 0.1s ease-in;
animation: 0.15s focuslocked ease-in forwards;
}
fxos-camera .face {
border: solid 1.5px;
border-radius: 50%;
color: rgba(255,255,255,0.8);
opacity: 0;
transition: opacity 180ms;
}
fxos-camera .face.active {
opacity: 1;
}
fxos-camera .face.largest {
color: #afff3d;
}
@keyframes ring-animation {
0% { transform: rotate(0deg) scale(1); }
100% { transform: rotate(45deg) scale(1); }
}
@keyframes focuslocked {
0% { transform: rotate(45deg) scale(1); }
50% { transform: rotate(45deg) scale(0.8478); }
100% { transform: rotate(45deg) scale(0.95); }
}