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