]>
Commit | Line | Data |
---|---|---|
63c4db6d C |
1 | @import '_variables'; |
2 | @import '_mixins'; | |
3 | ||
09edde40 | 4 | #video-element-wrapper { |
be6a4802 C |
5 | background-color: #000; |
6 | display: flex; | |
7 | justify-content: center; | |
6d88de72 | 8 | height: 500px; |
be6a4802 | 9 | |
6d88de72 C |
10 | @media screen and (max-width: 600px) { |
11 | width: 100vw; | |
12 | height: calc(100vw / 1.7); // 16/9 | |
13 | } | |
14 | ||
15 | .remote-server-down { | |
16 | color: #fff; | |
17 | display: flex; | |
18 | flex-direction: column; | |
19 | align-items: center; | |
20 | text-align: center; | |
21 | justify-content: center; | |
22 | background-color: #141313; | |
23 | width: 100%; | |
24 | height: 100%; | |
25 | font-size: 24px; | |
26 | ||
27 | @media screen and (max-width: 1000px) { | |
28 | font-size: 20px; | |
29 | } | |
7b272fd7 | 30 | |
acbffe9c | 31 | @media screen and (max-width: 600px) { |
6d88de72 | 32 | font-size: 16px; |
b9828abe | 33 | } |
6d88de72 C |
34 | } |
35 | ||
36 | /deep/ .video-js { | |
37 | width: 888px; | |
38 | height: 100%; | |
b9828abe | 39 | |
7b272fd7 C |
40 | // VideoJS create an inner video player |
41 | video { | |
42 | outline: 0; | |
b9828abe | 43 | position: relative !important; |
7b272fd7 | 44 | } |
be6a4802 | 45 | } |
054a103b C |
46 | |
47 | /deep/ .video-js.vjs-theater-enabled { | |
48 | width: 100%; | |
49 | height: calc(100vh - #{$header-height} - #{$theater-bottom-space}); | |
50 | } | |
e56b20f5 C |
51 | } |
52 | ||
bbe0f064 | 53 | .alert { |
2186386c C |
54 | text-align: center; |
55 | } | |
56 | ||
9c89a45c C |
57 | #video-not-found { |
58 | height: 300px; | |
59 | line-height: 300px; | |
60 | margin-top: 50px; | |
61 | text-align: center; | |
fb4fd623 C |
62 | font-weight: $font-semibold; |
63 | font-size: 15px; | |
9c89a45c C |
64 | } |
65 | ||
b1fa3eba C |
66 | .video-bottom { |
67 | margin-top: 40px; | |
68 | display: flex; | |
d1992b93 | 69 | |
b1fa3eba C |
70 | .video-info { |
71 | flex-grow: 1; | |
20acba1c C |
72 | margin-right: 40px; |
73 | // Set min width for flex item | |
74 | min-width: 1px; | |
3eeeb87f | 75 | |
1f788f20 | 76 | .video-info-first-row { |
b1fa3eba | 77 | display: flex; |
1f788f20 | 78 | |
196b7790 | 79 | & > div:first-child { |
1f788f20 C |
80 | flex-grow: 1; |
81 | } | |
d1992b93 | 82 | |
b1fa3eba | 83 | .video-info-name { |
b2731bff | 84 | margin-right: 30px; |
196b7790 | 85 | min-height: 40px; // Align with the action buttons |
b1fa3eba C |
86 | font-size: 27px; |
87 | font-weight: $font-semibold; | |
88 | flex-grow: 1; | |
89 | } | |
09223546 | 90 | |
1f788f20 C |
91 | .video-info-date-views { |
92 | font-size: 16px; | |
93 | margin-bottom: 10px; | |
94 | flex-grow: 1; | |
95 | } | |
96 | ||
97 | .video-info-channel { | |
98 | font-weight: $font-semibold; | |
99 | font-size: 15px; | |
95166f9a C |
100 | |
101 | a { | |
102 | @include disable-default-a-behaviour; | |
103 | ||
104 | color: #000; | |
105 | ||
106 | &:hover { | |
107 | opacity: 0.8; | |
108 | } | |
52d9f792 C |
109 | |
110 | img { | |
111 | @include avatar(18px); | |
112 | ||
113 | margin: -2px 2px 0 5px; | |
114 | } | |
95166f9a | 115 | } |
169310b2 R |
116 | |
117 | my-help { | |
118 | display: inline-block; | |
119 | } | |
1f788f20 C |
120 | } |
121 | ||
03e12d7c C |
122 | .video-info-by a { |
123 | @include disable-default-a-behaviour; | |
124 | ||
77af3a97 | 125 | display: inline; |
1f788f20 C |
126 | align-items: center; |
127 | font-size: 13px; | |
03e12d7c | 128 | color: #000; |
1f788f20 | 129 | |
03e12d7c C |
130 | span:hover { |
131 | opacity: 0.8; | |
66dc5907 C |
132 | } |
133 | ||
1f788f20 C |
134 | img { |
135 | @include avatar(18px); | |
6e33bf28 | 136 | |
52d9f792 | 137 | margin-top: -2px; |
1f788f20 | 138 | margin-left: 7px; |
6e33bf28 | 139 | } |
1f788f20 | 140 | } |
b2731bff | 141 | |
244e76a5 RK |
142 | my-video-feed { |
143 | margin-left: 5px; | |
144 | margin-top: 1px; | |
145 | } | |
146 | ||
1f788f20 C |
147 | .video-actions-rates { |
148 | display: flex; | |
149 | flex-direction: column; | |
196b7790 | 150 | align-items: flex-end; |
09223546 | 151 | |
1f788f20 C |
152 | .video-actions { |
153 | height: 40px; // Align with the title | |
1f788f20 C |
154 | display: flex; |
155 | align-items: center; | |
09223546 | 156 | |
1f788f20 C |
157 | .action-button:not(:first-child), .action-more { |
158 | margin-left: 10px; | |
159 | } | |
0727cab0 | 160 | |
1f788f20 C |
161 | .action-button { |
162 | @include peertube-button; | |
163 | @include grey-button; | |
7b272fd7 | 164 | |
1f788f20 C |
165 | font-size: 15px; |
166 | font-weight: $font-semibold; | |
167 | display: inline-block; | |
168 | padding: 0 10px 0 10px; | |
07fa4c97 | 169 | white-space: nowrap; |
7b272fd7 | 170 | |
1f788f20 C |
171 | .icon { |
172 | @include icon(21px); | |
7b272fd7 | 173 | |
1f788f20 C |
174 | position: relative; |
175 | top: -2px; | |
176 | ||
177 | &.icon-like { | |
178 | background-image: url('../../../assets/images/video/like-grey.svg'); | |
179 | } | |
180 | ||
181 | &.icon-dislike { | |
182 | background-image: url('../../../assets/images/video/dislike-grey.svg'); | |
183 | } | |
7b272fd7 | 184 | |
07fa4c97 C |
185 | &.icon-support { |
186 | background-image: url('../../../assets/images/video/heart.svg'); | |
187 | } | |
188 | ||
1f788f20 C |
189 | &.icon-share { |
190 | background-image: url('../../../assets/images/video/share.svg'); | |
191 | } | |
192 | ||
193 | &.icon-more { | |
194 | background-image: url('../../../assets/images/video/more.svg'); | |
195 | top: -1px; | |
196 | } | |
7b272fd7 | 197 | } |
d38b8281 | 198 | |
8c40b7dc C |
199 | .icon-text { |
200 | margin-left: 3px; | |
196b7790 C |
201 | } |
202 | ||
1f788f20 C |
203 | &.action-button-like.activated { |
204 | background-color: #39CC0B; | |
4e1b0973 | 205 | |
1f788f20 C |
206 | .icon-like { |
207 | background-image: url('../../../assets/images/video/like-white.svg'); | |
208 | } | |
7b272fd7 | 209 | } |
6e33bf28 | 210 | |
1f788f20 C |
211 | &.action-button-dislike.activated { |
212 | background-color: #FF0000; | |
d38b8281 | 213 | |
1f788f20 C |
214 | .icon-dislike { |
215 | background-image: url('../../../assets/images/video/dislike-white.svg'); | |
216 | } | |
7b272fd7 | 217 | } |
b1fa3eba | 218 | } |
d38b8281 | 219 | |
1f788f20 C |
220 | .action-more { |
221 | display: inline-block; | |
4f8c0eb0 | 222 | |
1f788f20 C |
223 | .dropdown-menu .dropdown-item { |
224 | padding: 6px 24px; | |
7b272fd7 | 225 | |
1f788f20 C |
226 | .icon { |
227 | @include icon(24px); | |
7b272fd7 | 228 | |
1f788f20 C |
229 | margin-right: 10px; |
230 | position: relative; | |
231 | top: -1px; | |
5f0805d3 | 232 | |
1f788f20 C |
233 | &.icon-download { |
234 | background-image: url('../../../assets/images/video/download-black.svg'); | |
235 | } | |
5f0805d3 | 236 | |
1f788f20 C |
237 | &.icon-edit { |
238 | background-image: url('../../../assets/images/global/edit-black.svg'); | |
239 | } | |
4635f59d | 240 | |
1f788f20 C |
241 | &.icon-alert { |
242 | background-image: url('../../../assets/images/video/alert.svg'); | |
243 | } | |
7b272fd7 | 244 | |
1f788f20 C |
245 | &.icon-blacklist { |
246 | background-image: url('../../../assets/images/video/blacklist.svg'); | |
247 | } | |
5f0805d3 | 248 | } |
7b272fd7 | 249 | } |
b1fa3eba | 250 | } |
4e1b0973 | 251 | } |
6a9e1d42 | 252 | |
1f788f20 C |
253 | .video-info-likes-dislikes-bar { |
254 | height: 5px; | |
255 | width: 186px; | |
256 | background-color: #E5E5E5; | |
257 | margin-top: 25px; | |
6a9e1d42 | 258 | |
1f788f20 C |
259 | .likes-bar { |
260 | height: 100%; | |
261 | background-color: #39CC0B; | |
262 | } | |
6a9e1d42 C |
263 | } |
264 | } | |
d1992b93 C |
265 | } |
266 | ||
b1fa3eba C |
267 | .video-info-description { |
268 | margin: 20px 0; | |
269 | font-size: 15px; | |
d1992b93 | 270 | |
54a932e8 | 271 | .video-info-description-html { |
7a14004b | 272 | @include peertube-word-wrap; |
54a932e8 C |
273 | } |
274 | ||
9e9afa45 C |
275 | .glyphicon, .description-loading { |
276 | margin-left: 3px; | |
277 | } | |
278 | ||
80958c78 C |
279 | .description-loading { |
280 | display: inline-block; | |
281 | } | |
282 | ||
b1fa3eba | 283 | .video-info-description-more { |
2de96f4d | 284 | cursor: pointer; |
b1fa3eba C |
285 | font-weight: $font-semibold; |
286 | color: #585858; | |
287 | font-size: 14px; | |
2de96f4d C |
288 | |
289 | .glyphicon { | |
290 | position: relative; | |
291 | top: 2px; | |
292 | } | |
293 | } | |
09223546 C |
294 | } |
295 | ||
1f788f20 C |
296 | .video-attributes .video-attribute { |
297 | font-size: 13px; | |
298 | display: block; | |
299 | margin-bottom: 12px; | |
300 | ||
301 | .video-attribute-label { | |
302 | width: 86px; | |
303 | display: inline-block; | |
304 | color: #585858; | |
305 | font-weight: $font-bold; | |
3eeeb87f C |
306 | } |
307 | } | |
41c3dfac C |
308 | } |
309 | ||
310 | .other-videos { | |
ea5cd0fa | 311 | padding-left: 1em; |
f7ecffa4 | 312 | |
41c3dfac C |
313 | .title-page { |
314 | margin-top: 0; | |
315 | } | |
316 | ||
317 | /deep/ .video-miniature { | |
318 | display: flex; | |
319 | height: 100%; | |
320 | margin-bottom: 20px; | |
9e01e510 | 321 | flex-wrap: wrap; |
a01f107b | 322 | |
41c3dfac | 323 | .video-miniature-information { |
9e01e510 | 324 | flex-grow: 1; |
41c3dfac C |
325 | } |
326 | } | |
a01f107b | 327 | } |
d1992b93 | 328 | } |
41c3dfac | 329 | |
2b3b76ab C |
330 | // If the view is not expanded, take into account the menu |
331 | .privacy-concerns { | |
332 | width: calc(100% - #{$menu-width}); | |
333 | } | |
334 | ||
335 | :host-context(.expanded) { | |
336 | .privacy-concerns { | |
337 | width: 100%; | |
338 | } | |
339 | } | |
340 | ||
341 | .privacy-concerns { | |
342 | position: fixed; | |
343 | bottom: 0; | |
344 | ||
345 | padding: 5px 15px; | |
346 | ||
347 | display: flex; | |
348 | align-items: center; | |
349 | justify-content: flex-start; | |
350 | background-color: rgba(0, 0, 0, 0.9); | |
351 | color: #fff; | |
352 | ||
353 | .privacy-concerns-text { | |
354 | margin: 0 5px; | |
355 | } | |
356 | ||
357 | a { | |
358 | @include disable-default-a-behaviour; | |
359 | ||
360 | color: $orange-color; | |
361 | transition: color 0.3s; | |
362 | ||
363 | &:hover { | |
364 | color: #fff; | |
365 | } | |
366 | } | |
367 | ||
368 | .privacy-concerns-okay { | |
369 | background-color: $orange-color; | |
370 | padding: 5px 8px 5px 7px; | |
371 | margin-left: auto; | |
372 | border-radius: 3px; | |
373 | cursor: pointer; | |
374 | transition: background-color 0.3s; | |
375 | font-weight: $font-semibold; | |
376 | ||
377 | &:hover { | |
378 | background-color: #000; | |
379 | } | |
380 | } | |
381 | } | |
382 | ||
b9828abe | 383 | |
07fa4c97 | 384 | @media screen and (max-width: 1600px) { |
b9828abe C |
385 | .video-bottom { |
386 | .video-info { | |
abf1c585 | 387 | margin-right: 20px; |
9b7d1c72 | 388 | |
1f788f20 | 389 | .video-info-first-row { |
b9828abe C |
390 | flex-direction: column; |
391 | margin-bottom: 30px; | |
1f788f20 C |
392 | |
393 | .video-actions-rates { | |
394 | margin-top: 20px; | |
80109b2d | 395 | align-items: start; |
1f788f20 C |
396 | |
397 | .video-info-likes-dislikes-bar { | |
398 | margin-top: 10px; | |
399 | } | |
400 | } | |
b9828abe C |
401 | } |
402 | ||
1f788f20 | 403 | .video-info-date-views { |
b9828abe C |
404 | flex-direction: column; |
405 | margin-bottom: 30px; | |
406 | ||
407 | .video-info-likes-dislikes-bar { | |
408 | margin-top: 0; | |
409 | } | |
410 | } | |
1f788f20 C |
411 | |
412 | .video-attributes .video-attribute { | |
413 | margin-bottom: 5px; | |
414 | } | |
b9828abe C |
415 | } |
416 | } | |
417 | } | |
b2731bff | 418 | |
23f4c3d4 | 419 | @media screen and (max-width: 1300px) { |
9e01e510 S |
420 | .video-bottom { |
421 | flex-direction: column; | |
422 | } | |
423 | ||
07fa4c97 | 424 | .other-videos { |
9e01e510 | 425 | padding-left: 0; |
ac862a8c C |
426 | |
427 | /deep/ .video-miniature .video-miniature-information { | |
428 | margin-left: 10px; | |
429 | } | |
07fa4c97 | 430 | } |
2b3b76ab C |
431 | |
432 | .privacy-concerns { | |
433 | font-size: 12px; | |
434 | padding: 2px 5px; | |
435 | ||
436 | .privacy-concerns-text { | |
437 | margin: 0; | |
438 | } | |
439 | } | |
07fa4c97 C |
440 | } |
441 | ||
1f788f20 | 442 | @media screen and (max-width: 600px) { |
b2731bff C |
443 | .video-bottom { |
444 | margin: 20px 0 0 0; | |
1f788f20 C |
445 | |
446 | .video-info { | |
447 | ||
448 | .video-info-first-row { | |
449 | ||
450 | .video-info-name { | |
451 | font-size: 20px; | |
452 | height: auto; | |
453 | } | |
454 | } | |
455 | } | |
b2731bff | 456 | } |
2b3b76ab C |
457 | |
458 | .privacy-concerns { | |
459 | width: 100%; | |
460 | ||
461 | strong { | |
462 | display: none; | |
463 | } | |
464 | } | |
b2731bff | 465 | } |
07fa4c97 C |
466 | |
467 | @media screen and (max-width: 450px) { | |
468 | .video-bottom .action-button .icon-text { | |
469 | display: none !important; | |
470 | } | |
471 | } |