-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathimagecapture2.css
158 lines (134 loc) · 3.09 KB
/
imagecapture2.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
.video-container {
position: relative;
}
.video-container video {
height: auto;
vertical-align: middle;
width: 100%;
object-fit: contain;
z-index : 1;
}
/* Insert an .overlay-* in a .video-container: position:absolute is applied with
respect to the last postion:relative element :-)
*/
.overlay-shutter {
opacity: 0.5;
position: absolute;
top: 35%;
left: 75%;
width: 25%;
height: 25%;
z-index: 10;
}
.overlay-shutter img {
width: 100%;
height: 100%;
object-fit: contain;
}
.overlay-zoom-in-control {
opacity: 0.5;
position: absolute;
top: 80%;
left: 70%;
width: 15%;
height: 12%;
z-index: 10;`
}
.overlay-zoom-in-control img {
width: 100%;
height: 100%;
object-fit: contain;
}
.overlay-zoom-out-control {
opacity: 0.5;
position: absolute;
top: 80%;
left: 85%;
width: 15%;
height: 12%;
z-index: 10;
}
.overlay-zoom-out-control img {
width: 100%;
height: 100%;
object-fit: contain;
}
.overlay-timed-capture {
opacity: 0.5;
position: absolute;
top: 5%;
left: 85%;
width: 10%;
height: 10%;
z-index: 10;
}
.overlay-timed-capture img {
width: 100%;
height: 100%;
object-fit: contain;
}
.overlay-flipcam {
opacity: 1;
position: absolute;
top: 1%;
left: -5%;
width: 25%;
height: 25%;
z-index: 10;
}
.overlay-flipcam img {
width: 100%;
height: 100%;
object-fit: contain;
}
/* The snackbar - position it at the bottom and in the middle of the div
Adapted from https://www.w3schools.com/howto/howto_js_snackbar.asp.
*/
#snackbar {
visibility: hidden; /* Hidden by default. Visible on click */
min-width: 250px; /* Set a default minimum width */
margin-left: -125px; /* Divide value of min-width by 2 */
background-color: #0099ff;
color: #fff; /* White text color */
text-align: center; /* Centered text */
border-radius: 2px; /* Rounded borders */
padding: 16px; /* Padding */
position: absolute; /* Sit on top of the screen */
z-index: 1; /* Add a z-index if needed */
left: 50%; /* Center the snackbar */
bottom: 50%;
}
/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
visibility: visible;
/* Add animation: Take 0.5 seconds to fade in and out the snackbar. */
animation: fadein-snackbar 0.5s, fadeout 0.01s 4.99s;
}
@keyframes fadein-snackbar {
from {bottom: 0; opacity: 0;}
to {bottom: 50%; opacity: 1;}
}
@keyframes fadeout { from { opacity: 1; } to { opacity: 0; } }
#photo-taken {
visibility: hidden; /* Hidden by default. Visible on click */
bottom: 0%;
left: 0%;
width: 100%;
height: 5%;
background-color: #ff8000;
color: #fff; /* White text color */
text-align: center; /* Centered text */
vertical-align: center;
border-radius: 2px; /* Rounded borders */
position: absolute; /* Sit on top of the screen */
z-index: 1; /* Add a z-index if needed */
}
/* Show the snackbar when clicking on a button (class added with JavaScript) */
#photo-taken.show {
visibility: visible;
animation: fadein-photo-taken 1s, fadeout 0.5s 4.5s;
}
@keyframes fadein-photo-taken {
from {bottom: 100%; opacity: 0.25;}
to {bottom: 0%; opacity: 1;}
}