-
-
Notifications
You must be signed in to change notification settings - Fork 625
Expand file tree
/
Copy pathQrScanner.module.scss
More file actions
100 lines (86 loc) · 1.72 KB
/
QrScanner.module.scss
File metadata and controls
100 lines (86 loc) · 1.72 KB
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
@import "../../../styles/mixins";
@keyframes colorfulBorder {
0% {
border-color: #ffffff50;
}
50% {
border-color: #00000050;
}
100% {
border-color: #ffffff50
}
}
.videoContainer {
position: relative;
display: flex;
justify-content: center;
align-items: center;
.permissionMessage {
position: absolute;
width: 100vw;
padding: 20px;
text-align: center;
background-color: #000000;
color: #fff;
z-index: 3;
a {
color: #dddddd;
text-decoration: underline;
}
}
.flashToggle {
position: absolute;
top: 20px;
left: 20px;
z-index: 2;
}
.soundToggle {
position: absolute;
bottom: 20px;
left: 20px;
z-index: 2;
}
.closeButton {
position: absolute;
top: 20px;
right: 20px;
z-index: 2;
}
.switchCameraButton {
position: absolute;
bottom: 20px;
right: 20px;
z-index: 2;
}
//scanner overlay is a square div that scales as the browser window scales
.scannerOverlay {
width: 60vw;
height: 60vw;
border: 5px solid #ffffff50;
position: absolute;
animation: colorfulBorder 10s infinite;
border-radius: 10px;
outline: solid 50vmax rgb(71 46 120 / 50%);
transition: outline-color .2s ease-out;
min-width: 200px;
min-height: 200px;
@include respond-above(md) {
width: 40vw;
height: 40vw;
}
}
.scannerOverlay.success {
outline: solid 50vmax rgb(80 148 80 / 75%);
}
.scannerOverlay.failure {
outline: solid 50vmax rgb(193 72 72 / 75%);
}
.scannerOverlay.checkingIn {
outline: solid 50vmax rgb(172 158 85 / 60%);
}
video {
width: 100vw !important;
height: 100vh !important;
object-fit: cover;
}
}