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