/
styles.css
320 lines (296 loc) · 5.02 KB
/
styles.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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
/*Makes the website take up the whole page*/
html, body {
margin: 0;
height: 100%;
width: 100%;
}
#notification {
z-index: -1;
position: absolute;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
background: white;
color: #4A5561;
font-size: 1.4em;
border-radius: 0.5em;
padding: 0.5em;
}
@keyframes notifyOpacity {
0% { opacity: 0; }
50% { opacity: 1; }
100% { opacity: 0; }
}
.notify {
animation-name: notifyOpacity;
animation-iteration-count: 1;
animation-duration: 1s;
}
/*Defines the width and height of all elements*/
.homepage {
display: grid;
grid-template-columns: 4fr 100fr 2fr 50fr 4fr;
grid-template-rows: 7fr 100fr 3fr 15fr 0.2fr 15fr 1fr 2fr 3fr;
height: 100%;
width: 100%;
}
/*Spacing at the top*/
.header {
grid-column-start: span 5;
}
/*Spacing on the left*/
.left {
grid-row-start: span 7;
}
/*Video container*/
.video {
background: #444;
background-image: url("images/video.PNG");
background-repeat: no-repeat;
background-size: contain;
background-position: center;
}
/*Toolbars container*/
.toolbar {
border: 1px solid #555;
color: #AAA;
overflow: hidden;
}
/*Spacing on the right*/
.right {
grid-row-start: span 7;
}
/*Spacing underneath the video and tabs*/
.middle {
grid-column-start: span 3;
}
/*Topmost bar beneath the video*/
.top-bar {
background: #444;
grid-column-start: span 3;
}
/*Spacing between the bars*/
.bar-spacing {
grid-column-start: span 3;
}
/*Bottommost bar beneath the video*/
.bottom-bar {
background: #444;
grid-column-start: span 3;
}
/*Spacing between the bottommost bar and the scrollbar*/
.scrollbar-spacing {
grid-column-start: span 3;
}
/*Scrollbar for the two bars above it*/
.scrollbar {
background: #444;
grid-column-start: span 3;
}
/*Spacing at the bottom*/
.footer {
grid-column-start: span 5;
}
/*Tab container*/
.tabs {
overflow: hidden;
width: 100%;
}
/*Buttons that link to each tab*/
.tabs button {
margin: 0;
background-color: inherit;
float: left;
border: 1px solid black;
padding: 0.5em 0;
width: 25%;
font-size: large;
outline: none;
cursor: pointer;
transition: 0.3s;
}
.tabs button:hover {
background-color: #ddd;
}
.tabs button.active {
background-color: #ccc;
}
/*Tabs themselves*/
.tabcontent {
display: none;
width: 100%;
height: calc(100% - 2.5em);
}
/*Videos tab*/
#Videos {
display: block;
height: calc(100% - 2.5em);
width: 100%;
}
#videoUtils {
width: 100%;
height: 1.8em;
margin-top: 0.9em;
}
#videoUtils span {
position: relative;
}
#videoUtils span p {
visibility: hidden;
position: absolute;
z-index: 1;
background: black;
color: white;
border-radius: 0.6em;
padding: 0.5em;
}
#videoUtils span a:hover+p {
visibility: visible;
}
#videoUtils #search {
width: calc(92% - 4em);
}
#videoUtils a {
padding: 0.4em 0.7em;
border-radius: 2em;
background-color: #31af91;
color: white;
font-weight: bolder;
margin: 0 2% 0 6%;
text-decoration: none;
}
#ScrollableVideos {
display: flex;
flex-direction: column;
max-height: calc(100% - 2.8em);
max-width: 99%;
}
#VideoDivs {
max-height: inherit;
overflow-y: auto;
}
.videoDiv {
width: 90%;
height: 6em;
margin: 10px 5%;
border: 1px solid #99a4b5;
overflow: hidden;
}
.videoDiv img {
width: 5.6em;
height: 4.3em;
position: relative;
left: 0.5em;
top: 0.7em;
}
.videoDiv p {
color: #505b66;
position: relative;
left: 7em;
}
.videoDiv .name {
top: -5em;
}
.videoDiv .length {
top: -6em;
}
.videoDiv .date {
top: -7em;
}
.videoDiv .size {
top: -8em;
margin-bottom: 0;
}
/*Tools tab*/
#Tools {
display: none;
}
#Tools p {
margin-left: 1em;
color: #48535f;
margin: 1em 0 0.3em 1em;
}
#Tools .flex-container{
display: flex;
flex-flow: row wrap;
margin-left: 1em;
}
#Tools img {
height: 2.8em;
width: 2.8em;
margin-left: 1em;
cursor: pointer;
}
#Tools span {
position: relative;
}
#Tools span p {
visibility: hidden;
position: absolute;
z-index: 1;
background: black;
color: white;
border-radius: 0.6em;
padding: 0.5em;
}
#Tools span:hover p {
visibility: visible;
}
/*Share tab*/
#Share {
display: none;
font-size: 1.4em;
color: #4A5561;
}
#Share table {
margin-top: 6%;
}
#Share p {
margin: 2em 0 0 0;
}
#Share hr {
width: 80%;
}
#Share img {
padding: 1em 0 0.4em 0;
}
#Share .button {
background-color: #00A6FF;
border: none;
color: #ffffff;
font-size: 22px;
padding: 0.4em 1.2em;
border-radius: 0.8em;
margin: 0 0 0 3em;
text-decoration: none;
}
/*Chat tab*/
#Chat {
display: none;
}
#Chat #chat-box {
border: 1px solid #8492a6;
width: 90%;
height: calc(100% - 6em);
margin: 4% 5% 2% 5%;
border-radius: 0.8em;
line-height: 1.8em;
}
#Chat #text-box #text-area{
width: calc(90% - 5em);
margin-left: 5%;
border: 1px solid black;
height: 2em;
border-radius: 0.8em;
font-size: 0.9em;
}
#Chat #text-box #send-button {
text-align: center;
background-color: #007aff;
border: none;
border-radius: 0.8em;
font-size: 1em;
color: white;
cursor: pointer;
padding: 0.5em 1em;
}