-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.css
139 lines (117 loc) · 2.18 KB
/
main.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
* {
box-sizing: border-box;
}
.mdc-text-field {
padding: 0;
}
body {
color: rgba(0, 0, 0, 0.87);
font-family: Roboto, Helvetica, Arial, sans-serif;
margin: 0;
padding: 0;
}
button {
margin: 5px;
}
/* remote videos */
div#videos {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
/*
div#videos {
display: none;
} */
div#videos > video {
background: black;
width: 300px;
height: 100%;
display: block;
transform: rotateY(180deg);
-webkit-transform: rotateY(180deg);
-moz-transform: rotateY(180deg);
}
/* one video */
#videos > video:first-child:nth-last-child(1) {
width: 100%;
height: 100vh;
}
/* two videos */
#videos > video:first-child:nth-last-child(2),
#videos > video:first-child:nth-last-child(2) ~ video {
width: 50%;
height: 100vh;
}
/* three videos */
#videos > video:first-child:nth-last-child(3),
#videos > video:first-child:nth-last-child(3) ~ video {
width: 50%;
height: 50vh;
}
/* four videos */
#videos > video:first-child:nth-last-child(4),
#videos > video:first-child:nth-last-child(4) ~ video {
width: 50%;
height: 50vh;
}
/* five videos */
#videos > video:first-child:nth-last-child(5),
#videos > video:first-child:nth-last-child(5) ~ video {
width: 33.33%;
height: 50vh;
}
/* six videos */
#videos > video:first-child:nth-last-child(6),
#videos > video:first-child:nth-last-child(6) ~ video {
width: 33.33%;
height: 50vh;
}
/* buttons wrapper before call */
.in-call #buttons {
display: none;
}
#buttons {
z-index: 3;
width: 254px;
position: absolute;
border: 2px solid var(--mdc-theme-primary);
padding: 20px;
border-radius: 4px;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
background: white;
}
#buttons button {
width: 200px;
}
/* hangup button */
#hangupBtn {
display: none;
}
.in-call #hangupBtn {
display: block;
position: absolute;
bottom: 50px;
left: 50%;
transform: translateX(-50%);
z-index: 3;
}
/* current room text */
#currentRoom {
position: absolute;
bottom: 0;
left: 0;
color: red;
z-index: 3;
}
/* mobile devices */
@media (max-width: 768px) {
/* two videos */
#videos > video:first-child:nth-last-child(2),
#videos > video:first-child:nth-last-child(2) ~ video {
width: 100%;
height: 50vh;
}
}