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