forked from shbatm/MMM-RTSPStream
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MMM-RTSPStream.css
91 lines (83 loc) · 1.67 KB
/
MMM-RTSPStream.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
/*
*
* MMM-RTSPStream
*
* shbatm
* MIT Licensed.
*
* Custom here your css module
*
*/
.MMM-RTSPStream .wrapper {
position: relative;
left: 50%;
vertical-align: middle;
text-align: center;
-webkit-transform: translateX(-50%); /*translateX(-30px);*/
transform: translateX(-50%); /* translateX(-30px);*/
}
.MMM-RTSPStream .wrapper br {
clear: both;
}
.MMM-RTSPStream .innerWrapper {
position: relative;
width: 352px; /* Video width + 2*border + 2*padding */
height: 242px;
border: 1px solid white;
/*float: left;*/
display: inline-block;
text-align: center;
margin: 2px;
}
.MMM-RTSPStream .canvas {
position: absolute;
z-index: 1;
left: 50%;
top: 50%;
/*width: 352px;
height: 240px;*/
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
width: 100%;
height: 100%;
}
/* Next and Previous arrow */
.MMM-RTSPStream .control {
z-index: 55;
/*opacity: 0.0;*/
display: inline-block;
position: absolute;
left: 50%;
top: 50%;
line-height: 50%;
width: 100%;
height: 100%;
vertical-align: middle;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
/* Show button when you hover near */
.MMM-RTSPStream .control:hover label {
opacity: 0.6;
cursor: pointer !important;
}
.MMM-RTSPStream .control:hover {
opacity: 0.6;
cursor: pointer !important;
}
.MMM-RTSPStream .control label {
z-index: 100;
display: block;
text-align: center;
line-height: 50px;
width: 100px;
height: 100px;
position: absolute;
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
font-size: 100px;
color: #FFF;
opacity: 0.0;
}