]>
Commit | Line | Data |
---|---|---|
63c4db6d C |
1 | @import '_variables'; |
2 | @import '_mixins'; | |
19f22055 | 3 | @import '_bootstrap-variables'; |
e2f01c47 | 4 | @import '_miniature'; |
19f22055 | 5 | |
9a18a625 | 6 | $player-factor: 1.7; // 16/9 |
dd4f25ee | 7 | $video-info-margin-left: 44px; |
63c4db6d | 8 | |
9a18a625 C |
9 | @function getPlayerHeight($width){ |
10 | @return calc(#{$width} / #{$player-factor}) | |
11 | } | |
12 | ||
13 | @function getPlayerWidth($height){ | |
14 | @return calc(#{$height} * #{$player-factor}) | |
15 | } | |
16 | ||
17 | @mixin playlist-below-player { | |
72675ebe C |
18 | width: 100% !important; |
19 | height: auto !important; | |
20 | max-height: 300px !important; | |
67c68723 | 21 | max-width: initial; |
72675ebe | 22 | border-bottom: 1px solid $separator-border-color !important; |
9a18a625 C |
23 | } |
24 | ||
25 | .root { | |
9a18a625 C |
26 | &.theater-enabled #video-wrapper { |
27 | flex-direction: column; | |
28 | justify-content: center; | |
29 | ||
30 | #videojs-wrapper { | |
31 | width: 100%; | |
99fa5c5b | 32 | height: auto; |
9a18a625 C |
33 | } |
34 | ||
03652b31 | 35 | ::ng-deep .video-js { |
9a18a625 C |
36 | $height: calc(100vh - #{$header-height} - #{$theater-bottom-space}); |
37 | ||
38 | height: $height; | |
39 | width: 100%; | |
466e3f20 | 40 | max-width: initial; |
9a18a625 C |
41 | } |
42 | ||
03652b31 | 43 | my-video-watch-playlist ::ng-deep .playlist { |
9a18a625 C |
44 | @include playlist-below-player; |
45 | } | |
46 | } | |
191764f3 C |
47 | } |
48 | ||
5baee5fc | 49 | .blocked-label { |
191764f3 C |
50 | font-weight: $font-semibold; |
51 | } | |
52 | ||
e2f01c47 | 53 | #video-wrapper { |
a5cf76af C |
54 | $video-height: 66vh; |
55 | ||
be6a4802 C |
56 | background-color: #000; |
57 | display: flex; | |
58 | justify-content: center; | |
6d88de72 | 59 | |
3143ae17 C |
60 | #videojs-wrapper { |
61 | display: flex; | |
62 | justify-content: center; | |
63 | flex-grow: 1; | |
a5cf76af | 64 | height: $video-height; |
3143ae17 C |
65 | } |
66 | ||
6d88de72 C |
67 | .remote-server-down { |
68 | color: #fff; | |
69 | display: flex; | |
70 | flex-direction: column; | |
71 | align-items: center; | |
72 | text-align: center; | |
73 | justify-content: center; | |
74 | background-color: #141313; | |
75 | width: 100%; | |
6d88de72 | 76 | font-size: 24px; |
3b492bff | 77 | height: 500px; |
6d88de72 C |
78 | |
79 | @media screen and (max-width: 1000px) { | |
80 | font-size: 20px; | |
81 | } | |
7b272fd7 | 82 | |
acbffe9c | 83 | @media screen and (max-width: 600px) { |
6d88de72 | 84 | font-size: 16px; |
b9828abe | 85 | } |
6d88de72 C |
86 | } |
87 | ||
03652b31 | 88 | ::ng-deep .video-js { |
58f3c3f1 C |
89 | width: 100%; |
90 | max-width: getPlayerWidth(66vh); | |
a5cf76af | 91 | height: $video-height; |
3b492bff | 92 | |
7b272fd7 C |
93 | // VideoJS create an inner video player |
94 | video { | |
95 | outline: 0; | |
b9828abe | 96 | position: relative !important; |
7b272fd7 | 97 | } |
be6a4802 | 98 | } |
054a103b | 99 | |
3b492bff C |
100 | @media screen and (max-width: 600px) { |
101 | .remote-server-down, | |
03652b31 | 102 | ::ng-deep .video-js { |
3b492bff | 103 | width: 100vw; |
9a18a625 | 104 | height: getPlayerHeight(100vw) |
3b492bff | 105 | } |
054a103b | 106 | } |
e56b20f5 C |
107 | } |
108 | ||
bbe0f064 | 109 | .alert { |
2186386c | 110 | text-align: center; |
2b3f1919 | 111 | border-radius: 0; |
2186386c C |
112 | } |
113 | ||
7fc441cc RK |
114 | .flex-direction-column { |
115 | flex-direction: column; | |
116 | } | |
117 | ||
9c89a45c C |
118 | #video-not-found { |
119 | height: 300px; | |
120 | line-height: 300px; | |
121 | margin-top: 50px; | |
122 | text-align: center; | |
fb4fd623 C |
123 | font-weight: $font-semibold; |
124 | font-size: 15px; | |
9c89a45c C |
125 | } |
126 | ||
b1fa3eba | 127 | .video-bottom { |
9a18a625 | 128 | display: flex; |
46788f21 | 129 | margin-top: 1.5rem; |
d1992b93 | 130 | |
b1fa3eba C |
131 | .video-info { |
132 | flex-grow: 1; | |
20acba1c C |
133 | // Set min width for flex item |
134 | min-width: 1px; | |
e452d2e2 | 135 | max-width: 100%; |
3eeeb87f | 136 | |
1f788f20 | 137 | .video-info-first-row { |
b1fa3eba | 138 | display: flex; |
1f788f20 | 139 | |
196b7790 | 140 | & > div:first-child { |
1f788f20 C |
141 | flex-grow: 1; |
142 | } | |
d1992b93 | 143 | |
b1fa3eba | 144 | .video-info-name { |
b2731bff | 145 | margin-right: 30px; |
196b7790 | 146 | min-height: 40px; // Align with the action buttons |
b1fa3eba C |
147 | font-size: 27px; |
148 | font-weight: $font-semibold; | |
149 | flex-grow: 1; | |
150 | } | |
09223546 | 151 | |
7fc441cc | 152 | .video-info-first-row-bottom { |
5def76eb RK |
153 | display: flex; |
154 | flex-wrap: wrap; | |
7fc441cc RK |
155 | align-items: center; |
156 | width: 100%; | |
157 | } | |
158 | ||
1f788f20 | 159 | .video-info-date-views { |
a0dedc02 | 160 | align-self: start; |
8ff3f883 C |
161 | margin-bottom: 10px; |
162 | margin-right: 10px; | |
a0dedc02 | 163 | font-size: 1em; |
1f788f20 C |
164 | } |
165 | ||
166 | .video-info-channel { | |
167 | font-weight: $font-semibold; | |
168 | font-size: 15px; | |
95166f9a C |
169 | |
170 | a { | |
171 | @include disable-default-a-behaviour; | |
172 | ||
e66883b3 | 173 | color: pvar(--mainForegroundColor); |
95166f9a C |
174 | |
175 | &:hover { | |
176 | opacity: 0.8; | |
177 | } | |
52d9f792 C |
178 | |
179 | img { | |
180 | @include avatar(18px); | |
181 | ||
94dfca3e | 182 | margin: -2px 5px 0 0; |
52d9f792 | 183 | } |
95166f9a | 184 | } |
22a16e36 | 185 | |
dd4f25ee RK |
186 | .video-info-channel-left { |
187 | flex-grow: 1; | |
1f788f20 | 188 | |
dd4f25ee RK |
189 | .video-info-channel-left-links { |
190 | display: flex; | |
191 | flex-direction: column; | |
192 | position: relative; | |
9d45db29 | 193 | line-height: 1.37; |
b7f5b524 | 194 | |
dd4f25ee RK |
195 | a:nth-of-type(2) { |
196 | font-weight: 500; | |
197 | font-size: 90%; | |
198 | } | |
b40a2193 K |
199 | |
200 | a.single-link { | |
201 | margin-top: 7px; | |
202 | } | |
b7f5b524 C |
203 | } |
204 | } | |
6e33bf28 | 205 | |
dd4f25ee RK |
206 | my-subscribe-button { |
207 | margin-left: 5px; | |
6e33bf28 | 208 | } |
1f788f20 | 209 | } |
b2731bff | 210 | |
c199c427 | 211 | my-feed { |
244e76a5 RK |
212 | margin-left: 5px; |
213 | margin-top: 1px; | |
214 | } | |
215 | ||
1f788f20 | 216 | .video-actions-rates { |
7fc441cc | 217 | margin: 0 0 10px 0; |
2303a803 | 218 | align-items: start; |
7fc441cc | 219 | width: max-content; |
5def76eb | 220 | margin-left: auto; |
09223546 | 221 | |
1f788f20 C |
222 | .video-actions { |
223 | height: 40px; // Align with the title | |
1f788f20 C |
224 | display: flex; |
225 | align-items: center; | |
09223546 | 226 | |
3a0fb65c C |
227 | .action-button:not(:first-child), |
228 | .action-dropdown, | |
229 | my-video-actions-dropdown { | |
0240da5c | 230 | margin-left: 5px; |
1f788f20 | 231 | } |
0727cab0 | 232 | |
0240da5c | 233 | ::ng-deep.action-button { |
1f788f20 | 234 | @include peertube-button; |
457bb213 | 235 | @include button-with-icon(21px, 0, -1px); |
e66883b3 | 236 | @include apply-svg-color(pvar(--actionButtonColor)); |
7b272fd7 | 237 | |
0240da5c | 238 | font-size: 100%; |
1f788f20 C |
239 | font-weight: $font-semibold; |
240 | display: inline-block; | |
241 | padding: 0 10px 0 10px; | |
07fa4c97 | 242 | white-space: nowrap; |
0240da5c | 243 | background-color: transparent !important; |
e66883b3 | 244 | color: pvar(--actionButtonColor); |
0240da5c | 245 | text-transform: uppercase; |
7b272fd7 | 246 | |
63347a0f C |
247 | &::after { |
248 | display: none; | |
249 | } | |
250 | ||
0240da5c RK |
251 | &:hover { |
252 | opacity: 0.9; | |
253 | } | |
254 | ||
255 | &.action-button-like, | |
256 | &.action-button-dislike { | |
257 | filter: brightness(120%); | |
258 | ||
0d3a9be9 | 259 | .count { |
c41c0e28 | 260 | margin: 0 5px; |
0d3a9be9 C |
261 | } |
262 | } | |
263 | ||
1f788f20 | 264 | &.action-button-like.activated { |
0d3a9be9 | 265 | .count { |
e66883b3 | 266 | color: pvar(--activatedActionButtonColor); |
0d3a9be9 C |
267 | } |
268 | ||
457bb213 | 269 | my-global-icon { |
e66883b3 | 270 | @include apply-svg-color(pvar(--activatedActionButtonColor)); |
1f788f20 | 271 | } |
7b272fd7 | 272 | } |
6e33bf28 | 273 | |
1f788f20 | 274 | &.action-button-dislike.activated { |
0d3a9be9 | 275 | .count { |
e66883b3 | 276 | color: pvar(--activatedActionButtonColor); |
0d3a9be9 C |
277 | } |
278 | ||
457bb213 | 279 | my-global-icon { |
e66883b3 | 280 | @include apply-svg-color(pvar(--activatedActionButtonColor)); |
1f788f20 | 281 | } |
7b272fd7 | 282 | } |
457bb213 | 283 | |
2fcc2294 | 284 | &.action-button-support { |
e66883b3 | 285 | color: pvar(--supportButtonColor); |
2fcc2294 | 286 | |
0240da5c | 287 | my-global-icon { |
e66883b3 | 288 | @include apply-svg-color(pvar(--supportButtonColor)); |
2fcc2294 | 289 | } |
0240da5c | 290 | } |
2fcc2294 | 291 | |
0240da5c | 292 | &.action-button-support { |
2fcc2294 | 293 | my-global-icon { |
0240da5c | 294 | ::ng-deep path:first-child { |
e66883b3 | 295 | fill: pvar(--supportButtonHeartColor) !important; |
0240da5c | 296 | } |
2fcc2294 C |
297 | } |
298 | } | |
299 | ||
f0a39880 C |
300 | &.action-button-save { |
301 | my-global-icon { | |
302 | top: 0 !important; | |
303 | right: -1px; | |
304 | } | |
305 | } | |
306 | ||
457bb213 C |
307 | .icon-text { |
308 | margin-left: 3px; | |
309 | } | |
b1fa3eba | 310 | } |
4e1b0973 | 311 | } |
6a9e1d42 | 312 | |
223b24e6 | 313 | .video-info-likes-dislikes-bar-outer-container { |
2de7f588 RK |
314 | position: relative; |
315 | } | |
316 | ||
223b24e6 | 317 | .video-info-likes-dislikes-bar-inner-container { |
2de7f588 | 318 | position: absolute; |
223b24e6 | 319 | height: 20px; |
2de7f588 RK |
320 | } |
321 | ||
1f788f20 | 322 | .video-info-likes-dislikes-bar { |
2d9fea16 RK |
323 | $likes-bar-height: 2px; |
324 | height: $likes-bar-height; | |
325 | margin-top: -$likes-bar-height; | |
0240da5c RK |
326 | width: 120px; |
327 | background-color: #ccc; | |
2d9fea16 RK |
328 | position: relative; |
329 | top: 10px; | |
6a9e1d42 | 330 | |
1f788f20 C |
331 | .likes-bar { |
332 | height: 100%; | |
0240da5c RK |
333 | background-color: #909090; |
334 | ||
335 | &.liked { | |
e66883b3 | 336 | background-color: pvar(--activatedActionButtonColor); |
0240da5c | 337 | } |
1f788f20 | 338 | } |
6a9e1d42 C |
339 | } |
340 | } | |
d1992b93 C |
341 | } |
342 | ||
b1fa3eba C |
343 | .video-info-description { |
344 | margin: 20px 0; | |
dd4f25ee | 345 | margin-left: $video-info-margin-left; |
b1fa3eba | 346 | font-size: 15px; |
d1992b93 | 347 | |
54a932e8 | 348 | .video-info-description-html { |
7a14004b | 349 | @include peertube-word-wrap; |
b29bf61d RK |
350 | |
351 | /deep/ a { | |
352 | text-decoration: none; | |
353 | } | |
54a932e8 C |
354 | } |
355 | ||
9e9afa45 C |
356 | .glyphicon, .description-loading { |
357 | margin-left: 3px; | |
358 | } | |
359 | ||
80958c78 C |
360 | .description-loading { |
361 | display: inline-block; | |
362 | } | |
363 | ||
b1fa3eba | 364 | .video-info-description-more { |
2de96f4d | 365 | cursor: pointer; |
b1fa3eba | 366 | font-weight: $font-semibold; |
e66883b3 | 367 | color: pvar(--greyForegroundColor); |
b1fa3eba | 368 | font-size: 14px; |
2de96f4d C |
369 | |
370 | .glyphicon { | |
371 | position: relative; | |
372 | top: 2px; | |
373 | } | |
374 | } | |
09223546 C |
375 | } |
376 | ||
dd4f25ee RK |
377 | .video-attributes { |
378 | margin-left: $video-info-margin-left; | |
379 | } | |
380 | ||
1f788f20 C |
381 | .video-attributes .video-attribute { |
382 | font-size: 13px; | |
383 | display: block; | |
384 | margin-bottom: 12px; | |
385 | ||
386 | .video-attribute-label { | |
adb115f5 | 387 | min-width: 142px; |
c6c357ac | 388 | padding-right: 5px; |
1f788f20 | 389 | display: inline-block; |
e66883b3 | 390 | color: pvar(--greyForegroundColor); |
1f788f20 | 391 | font-weight: $font-bold; |
3eeeb87f | 392 | } |
4278710d C |
393 | |
394 | a.video-attribute-value { | |
395 | @include disable-default-a-behaviour; | |
e66883b3 | 396 | color: pvar(--mainForegroundColor); |
4278710d C |
397 | |
398 | &:hover { | |
399 | opacity: 0.9; | |
400 | } | |
401 | } | |
402 | ||
403 | &.video-attribute-tags { | |
404 | .video-attribute-value:not(:nth-child(2)) { | |
405 | &::before { | |
406 | content: ', ' | |
407 | } | |
408 | } | |
409 | } | |
3eeeb87f | 410 | } |
41c3dfac C |
411 | } |
412 | ||
03652b31 | 413 | ::ng-deep .other-videos { |
1c66c35c | 414 | padding-left: 15px; |
10475dea | 415 | min-width: $video-miniature-width; |
f7ecffa4 | 416 | |
5def76eb RK |
417 | @media screen and (min-width: 1800px - (3* $video-miniature-width)) { |
418 | width: min-content; | |
419 | } | |
420 | ||
41c3dfac | 421 | .title-page { |
dd4f25ee | 422 | margin: 0 !important; |
41c3dfac C |
423 | } |
424 | ||
8ff3f883 | 425 | .video-miniature { |
41c3dfac | 426 | display: flex; |
94dfca3e | 427 | width: max-content; |
41c3dfac | 428 | height: 100%; |
46788f21 | 429 | padding-bottom: 20px; |
9e01e510 | 430 | flex-wrap: wrap; |
c8277d71 | 431 | } |
a01f107b | 432 | |
c8277d71 RK |
433 | .video-bottom { |
434 | @media screen and (max-width: 1800px - (3* $video-miniature-width)) { | |
435 | margin-left: 1rem; | |
41c3dfac | 436 | } |
5dfb7c1d RK |
437 | @media screen and (max-width: 500px) { |
438 | margin-left: 0; | |
439 | margin-top: .5rem; | |
440 | } | |
41c3dfac | 441 | } |
a01f107b | 442 | } |
d1992b93 | 443 | } |
41c3dfac | 444 | |
1d6587aa C |
445 | my-video-comments { |
446 | display: inline-block; | |
66467298 | 447 | width: 100%; |
1d6587aa C |
448 | margin-bottom: 20px; |
449 | } | |
450 | ||
2b3b76ab C |
451 | // If the view is not expanded, take into account the menu |
452 | .privacy-concerns { | |
d3217560 | 453 | z-index: z(dropdown) + 1; |
2b3b76ab C |
454 | width: calc(100% - #{$menu-width}); |
455 | } | |
456 | ||
8ff3f883 C |
457 | @media screen and (max-width: $small-view) { |
458 | .privacy-concerns { | |
28e0e40d | 459 | margin-left: $menu-width - 15px; // Menu is absolute |
8ff3f883 C |
460 | } |
461 | } | |
462 | ||
2b3b76ab C |
463 | :host-context(.expanded) { |
464 | .privacy-concerns { | |
465 | width: 100%; | |
28e0e40d | 466 | margin-left: -15px; |
2b3b76ab C |
467 | } |
468 | } | |
469 | ||
470 | .privacy-concerns { | |
471 | position: fixed; | |
472 | bottom: 0; | |
555fdc8c | 473 | z-index: z(privacymsg); |
2b3b76ab C |
474 | |
475 | padding: 5px 15px; | |
476 | ||
477 | display: flex; | |
28e0e40d | 478 | flex-wrap: nowrap; |
2b3b76ab | 479 | align-items: center; |
a7d3671d | 480 | justify-content: space-between; |
2b3b76ab C |
481 | background-color: rgba(0, 0, 0, 0.9); |
482 | color: #fff; | |
483 | ||
484 | .privacy-concerns-text { | |
485 | margin: 0 5px; | |
486 | } | |
487 | ||
488 | a { | |
489 | @include disable-default-a-behaviour; | |
490 | ||
e66883b3 | 491 | color: pvar(--mainColor); |
2b3b76ab C |
492 | transition: color 0.3s; |
493 | ||
494 | &:hover { | |
495 | color: #fff; | |
496 | } | |
497 | } | |
498 | ||
d3217560 | 499 | .privacy-concerns-button { |
2b3b76ab C |
500 | padding: 5px 8px 5px 7px; |
501 | margin-left: auto; | |
502 | border-radius: 3px; | |
d3217560 | 503 | white-space: nowrap; |
2b3b76ab C |
504 | cursor: pointer; |
505 | transition: background-color 0.3s; | |
506 | font-weight: $font-semibold; | |
507 | ||
508 | &:hover { | |
509 | background-color: #000; | |
510 | } | |
511 | } | |
d3217560 RK |
512 | |
513 | .privacy-concerns-okay { | |
e66883b3 | 514 | background-color: pvar(--mainColor); |
d3217560 RK |
515 | margin-left: 10px; |
516 | } | |
2b3b76ab C |
517 | } |
518 | ||
07fa4c97 | 519 | @media screen and (max-width: 1600px) { |
8ff3f883 C |
520 | .video-bottom .video-info .video-attributes .video-attribute { |
521 | margin-bottom: 5px; | |
b9828abe C |
522 | } |
523 | } | |
b2731bff | 524 | |
23f4c3d4 | 525 | @media screen and (max-width: 1300px) { |
2b3b76ab C |
526 | .privacy-concerns { |
527 | font-size: 12px; | |
528 | padding: 2px 5px; | |
529 | ||
530 | .privacy-concerns-text { | |
531 | margin: 0; | |
532 | } | |
533 | } | |
07fa4c97 C |
534 | } |
535 | ||
9a18a625 | 536 | @media screen and (max-width: 1100px) { |
3143ae17 C |
537 | #video-wrapper { |
538 | flex-direction: column; | |
539 | justify-content: center; | |
540 | ||
03652b31 | 541 | my-video-watch-playlist ::ng-deep .playlist { |
3143ae17 C |
542 | @include playlist-below-player; |
543 | } | |
544 | } | |
545 | ||
9a18a625 C |
546 | .video-bottom { |
547 | flex-direction: column; | |
548 | ||
03652b31 | 549 | ::ng-deep .other-videos { |
9a18a625 C |
550 | padding-left: 0 !important; |
551 | ||
03652b31 | 552 | ::ng-deep .video-miniature { |
9a18a625 C |
553 | flex-direction: row; |
554 | width: auto; | |
555 | } | |
556 | } | |
557 | } | |
558 | } | |
559 | ||
1f788f20 | 560 | @media screen and (max-width: 600px) { |
b2731bff | 561 | .video-bottom { |
c2a89b70 | 562 | margin-top: 20px !important; |
46788f21 | 563 | padding-bottom: 20px !important; |
1f788f20 C |
564 | |
565 | .video-info { | |
93ea9c47 | 566 | padding: 0; |
1f788f20 C |
567 | |
568 | .video-info-first-row { | |
569 | ||
570 | .video-info-name { | |
571 | font-size: 20px; | |
572 | height: auto; | |
573 | } | |
574 | } | |
575 | } | |
b2731bff | 576 | } |
2b3b76ab | 577 | |
03652b31 | 578 | ::ng-deep .other-videos .video-miniature { |
9a18a625 | 579 | flex-direction: column; |
a8981e0b C |
580 | } |
581 | ||
2b3b76ab C |
582 | .privacy-concerns { |
583 | width: 100%; | |
2b3b76ab | 584 | } |
b2731bff | 585 | } |
07fa4c97 C |
586 | |
587 | @media screen and (max-width: 450px) { | |
93ea9c47 C |
588 | .video-bottom { |
589 | .action-button .icon-text { | |
590 | display: none !important; | |
591 | } | |
592 | ||
593 | .video-info .video-info-first-row { | |
594 | .video-info-name { | |
595 | font-size: 18px; | |
596 | } | |
597 | ||
598 | .video-info-date-views { | |
599 | font-size: 14px; | |
600 | } | |
601 | ||
602 | .video-actions-rates { | |
603 | margin-top: 10px; | |
604 | } | |
605 | } | |
606 | ||
607 | .video-info-description { | |
608 | font-size: 14px !important; | |
609 | } | |
07fa4c97 C |
610 | } |
611 | } | |
d45f3641 C |
612 | |
613 | ||
614 | // Special case for iOS, that takes into account the width for fullscreens | |
615 | #video-wrapper ::ng-deep .video-js.vjs-fullscreen { | |
616 | max-width: unset; | |
617 | } |