-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBotControl.css
170 lines (149 loc) · 3.54 KB
/
BotControl.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
html {
height: 100%;
margin: 0;
width: 100%;
}
* {
-webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
-webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
/* make transparent link selection, adjust last value opacity 0 to 1.0 */
-webkit-tap-highlight-color: rgba(0,0,0,0);
-webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */
-webkit-tap-highlight-color: rgba(0,0,0,0);
}
body {
background-color: #333;
font-family: 'Roboto', 'Open Sans', 'Lucida Grande', sans-serif;
height: 100%;
margin: 0;
padding: 0;
width: 100%;
color: #fff;
}
canvas {
display: block;
position: absolute;
left: 0;
top: 0;
/*background-color: #000000;*/
}
#videos {
font-size: 0; /* to fix whitespace/scrollbars problem */
height: 100%;
pointer-events: none;
position: absolute;
transition: all 1s;
width: 100%;
}
#videos.active {
-moz-transform: rotateY(180deg);
-ms-transform: rotateY(180deg);
-o-transform: rotateY(180deg);
-webkit-transform: rotateY(180deg);
transform: rotateY(180deg);
}
#remote-canvas {
display: none;
height: 100%;
margin: 0 auto;
width: 100%;
}
#local-video {
height: 100%;
max-height: 100%;
max-width: 100%;
object-fit: cover; /* no letterboxing */
transition: opacity 1s;
-moz-transform: scale(-1, 1);
-ms-transform: scale(-1, 1);
-o-transform: scale(-1, 1);
-webkit-transform: scale(-1, 1);
transform: scale(-1, 1);
width: 100%;
}
#mini-video {
border: 1px solid gray;
top: 20px;
left: 20px;
/* video div is flipped horizontally when active*/
max-height: 17%;
max-width: 17%;
opacity: 0;
position: absolute;
transition: opacity 1s;
}
#mini-video.active {
opacity: 1;
z-index: 2;
}
#remote-video {
display: block;
height: 100%;
max-height: 100%;
max-width: 100%;
object-fit: cover; /* no letterboxing */
opacity: 0;
position: absolute;
-moz-transform: rotateY(180deg);
-ms-transform: rotateY(180deg);
-o-transform: rotateY(180deg);
-webkit-transform: rotateY(180deg);
transform: rotateY(180deg);
transition: opacity 1s;
width: 100%;
}
#remote-video.active {
opacity: 1;
z-index: 1;
}
#controls {
position: absolute;
top: 10px;
left: 10px;
z-index: 99999;
background-color: rgba(0,0,0,.6);
width: 600px;
padding: 20px;
border-radius: 20px;
height: 90%;
overflow:hidden;
}
#cords{
width:30%;
height: 50%;
position: absolute;
top: 10px;
right: 10px;
overflow: hidden;
}
li.bot {
list-style: none;
cursor: pointer;
color: lime;
font-size: 2em;
}
.container {
width: auto;
text-align: center;
background-color: #ff0000;
}
.hangup {
background: #ff0346;
background-image: -webkit-linear-gradient(top, #ff0346, #a11729);
background-image: -moz-linear-gradient(top, #ff0346, #a11729);
background-image: -ms-linear-gradient(top, #ff0346, #a11729);
background-image: -o-linear-gradient(top, #ff0346, #a11729);
background-image: linear-gradient(to bottom, #ff0346, #a11729);
-webkit-border-radius: 16px;
-moz-border-radius: 16px;
border-radius: 14px;
text-shadow: 1px 1px 3px #333333;
font-family: Arial;
color: #ffffff;
font-size: 12px;
padding: 7px 17px 5px 17px;
text-decoration: none;
}
.hangup:hover {
text-decoration: none;
}