]>
Commit | Line | Data |
---|---|---|
63c4db6d C |
1 | @import '_variables'; |
2 | @import '_mixins'; | |
19f22055 | 3 | @import '_bootstrap-variables'; |
e2f01c47 | 4 | @import '_miniature'; |
19f22055 C |
5 | |
6 | $other-videos-width: 260px; | |
9a18a625 | 7 | $player-factor: 1.7; // 16/9 |
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 RK |
149 | .video-info-first-row-bottom { |
150 | display: grid; | |
151 | grid-template-columns: 1fr auto; | |
152 | align-items: center; | |
153 | width: 100%; | |
154 | } | |
155 | ||
1f788f20 | 156 | .video-info-date-views { |
1f788f20 | 157 | flex-grow: 1; |
8ff3f883 C |
158 | margin-bottom: 10px; |
159 | margin-right: 10px; | |
160 | font-size: 16px; | |
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 | ||
179 | margin: -2px 2px 0 5px; | |
180 | } | |
95166f9a | 181 | } |
22a16e36 C |
182 | |
183 | my-subscribe-button { | |
22a16e36 C |
184 | margin-left: 5px; |
185 | } | |
1f788f20 C |
186 | } |
187 | ||
b7f5b524 C |
188 | .video-info-by { |
189 | ||
190 | a { | |
191 | @include disable-default-a-behaviour; | |
03e12d7c | 192 | |
b7f5b524 C |
193 | display: inline; |
194 | align-items: center; | |
195 | font-size: 13px; | |
9a0fc840 | 196 | color: var(--mainForegroundColor); |
1f788f20 | 197 | |
b7f5b524 C |
198 | span:hover { |
199 | opacity: 0.8; | |
200 | } | |
201 | ||
202 | img { | |
203 | @include avatar(18px); | |
66dc5907 | 204 | |
b7f5b524 C |
205 | margin-top: -2px; |
206 | margin-left: 7px; | |
207 | } | |
208 | } | |
6e33bf28 | 209 | |
b7f5b524 C |
210 | my-help { |
211 | position: relative; | |
212 | top: 1px; | |
213 | margin-left: 2px; | |
6e33bf28 | 214 | } |
1f788f20 | 215 | } |
b2731bff | 216 | |
c199c427 | 217 | my-feed { |
244e76a5 RK |
218 | margin-left: 5px; |
219 | margin-top: 1px; | |
220 | } | |
221 | ||
1f788f20 | 222 | .video-actions-rates { |
7fc441cc | 223 | margin: 0 0 10px 0; |
2303a803 | 224 | align-items: start; |
7fc441cc | 225 | width: max-content; |
09223546 | 226 | |
1f788f20 C |
227 | .video-actions { |
228 | height: 40px; // Align with the title | |
1f788f20 C |
229 | display: flex; |
230 | align-items: center; | |
09223546 | 231 | |
3a0fb65c C |
232 | .action-button:not(:first-child), |
233 | .action-dropdown, | |
234 | my-video-actions-dropdown { | |
1f788f20 C |
235 | margin-left: 10px; |
236 | } | |
0727cab0 | 237 | |
1f788f20 C |
238 | .action-button { |
239 | @include peertube-button; | |
240 | @include grey-button; | |
457bb213 C |
241 | @include button-with-icon(21px, 0, -1px); |
242 | @include apply-svg-color($grey-foreground-color); | |
7b272fd7 | 243 | |
1f788f20 C |
244 | font-size: 15px; |
245 | font-weight: $font-semibold; | |
246 | display: inline-block; | |
247 | padding: 0 10px 0 10px; | |
07fa4c97 | 248 | white-space: nowrap; |
7b272fd7 | 249 | |
63347a0f C |
250 | &::after { |
251 | display: none; | |
252 | } | |
253 | ||
0d3a9be9 C |
254 | .action-button-like, |
255 | .action-button-dislike { | |
256 | .count { | |
257 | margin-right: 5px; | |
258 | } | |
259 | } | |
260 | ||
1f788f20 | 261 | &.action-button-like.activated { |
41a676db | 262 | background-color: $green; |
4e1b0973 | 263 | |
0d3a9be9 C |
264 | .count { |
265 | color: #fff; | |
266 | } | |
267 | ||
457bb213 C |
268 | my-global-icon { |
269 | @include apply-svg-color(#fff); | |
1f788f20 | 270 | } |
7b272fd7 | 271 | } |
6e33bf28 | 272 | |
1f788f20 | 273 | &.action-button-dislike.activated { |
41a676db | 274 | background-color: $red; |
d38b8281 | 275 | |
0d3a9be9 C |
276 | .count { |
277 | color: #fff; | |
278 | } | |
279 | ||
457bb213 C |
280 | my-global-icon { |
281 | @include apply-svg-color(#fff); | |
1f788f20 | 282 | } |
7b272fd7 | 283 | } |
457bb213 | 284 | |
2fcc2294 C |
285 | &.action-button-support { |
286 | color: var(--supportButtonColor); | |
287 | background-color: var(--supportButtonBackgroundColor); | |
288 | ||
289 | &:hover { | |
290 | opacity: 0.9; | |
291 | } | |
292 | ||
293 | my-global-icon { | |
294 | @include apply-svg-color(var(--supportButtonColor)); | |
295 | } | |
296 | } | |
297 | ||
f0a39880 C |
298 | &.action-button-save { |
299 | my-global-icon { | |
300 | top: 0 !important; | |
301 | right: -1px; | |
302 | } | |
303 | } | |
304 | ||
457bb213 C |
305 | .icon-text { |
306 | margin-left: 3px; | |
307 | } | |
b1fa3eba | 308 | } |
4e1b0973 | 309 | } |
6a9e1d42 | 310 | |
1f788f20 | 311 | .video-info-likes-dislikes-bar { |
2d9fea16 RK |
312 | $likes-bar-height: 2px; |
313 | height: $likes-bar-height; | |
314 | margin-top: -$likes-bar-height; | |
1f788f20 | 315 | width: 186px; |
1d6587aa | 316 | background-color: $red; |
2d9fea16 RK |
317 | position: relative; |
318 | top: 10px; | |
6a9e1d42 | 319 | |
1f788f20 C |
320 | .likes-bar { |
321 | height: 100%; | |
1d6587aa | 322 | background-color: $green; |
1f788f20 | 323 | } |
6a9e1d42 C |
324 | } |
325 | } | |
d1992b93 C |
326 | } |
327 | ||
b1fa3eba C |
328 | .video-info-description { |
329 | margin: 20px 0; | |
330 | font-size: 15px; | |
d1992b93 | 331 | |
54a932e8 | 332 | .video-info-description-html { |
7a14004b | 333 | @include peertube-word-wrap; |
54a932e8 C |
334 | } |
335 | ||
9e9afa45 C |
336 | .glyphicon, .description-loading { |
337 | margin-left: 3px; | |
338 | } | |
339 | ||
80958c78 C |
340 | .description-loading { |
341 | display: inline-block; | |
342 | } | |
343 | ||
b1fa3eba | 344 | .video-info-description-more { |
2de96f4d | 345 | cursor: pointer; |
b1fa3eba | 346 | font-weight: $font-semibold; |
457bb213 | 347 | color: $grey-foreground-color; |
b1fa3eba | 348 | font-size: 14px; |
2de96f4d C |
349 | |
350 | .glyphicon { | |
351 | position: relative; | |
352 | top: 2px; | |
353 | } | |
354 | } | |
09223546 C |
355 | } |
356 | ||
1f788f20 C |
357 | .video-attributes .video-attribute { |
358 | font-size: 13px; | |
359 | display: block; | |
360 | margin-bottom: 12px; | |
361 | ||
362 | .video-attribute-label { | |
adb115f5 | 363 | min-width: 142px; |
c6c357ac | 364 | padding-right: 5px; |
1f788f20 | 365 | display: inline-block; |
457bb213 | 366 | color: $grey-foreground-color; |
1f788f20 | 367 | font-weight: $font-bold; |
3eeeb87f | 368 | } |
4278710d C |
369 | |
370 | a.video-attribute-value { | |
371 | @include disable-default-a-behaviour; | |
9a0fc840 | 372 | color: var(--mainForegroundColor); |
4278710d C |
373 | |
374 | &:hover { | |
375 | opacity: 0.9; | |
376 | } | |
377 | } | |
378 | ||
379 | &.video-attribute-tags { | |
380 | .video-attribute-value:not(:nth-child(2)) { | |
381 | &::before { | |
382 | content: ', ' | |
383 | } | |
384 | } | |
385 | } | |
3eeeb87f | 386 | } |
41c3dfac C |
387 | } |
388 | ||
03652b31 | 389 | ::ng-deep .other-videos { |
1c66c35c | 390 | padding-left: 15px; |
9a18a625 | 391 | flex-basis: $other-videos-width; |
011e1e6b | 392 | min-width: $other-videos-width; |
f7ecffa4 | 393 | |
41c3dfac | 394 | .title-page { |
9a2f7ea7 | 395 | margin-top: 0 !important; |
41c3dfac C |
396 | } |
397 | ||
8ff3f883 | 398 | .video-miniature { |
41c3dfac | 399 | display: flex; |
9a18a625 | 400 | width: $other-videos-width; |
41c3dfac C |
401 | height: 100%; |
402 | margin-bottom: 20px; | |
9e01e510 | 403 | flex-wrap: wrap; |
a01f107b | 404 | |
22a16e36 C |
405 | .video-thumbnail { |
406 | margin-right: 10px | |
41c3dfac C |
407 | } |
408 | } | |
a01f107b | 409 | } |
d1992b93 | 410 | } |
41c3dfac | 411 | |
1d6587aa C |
412 | my-video-comments { |
413 | display: inline-block; | |
66467298 | 414 | width: 100%; |
1d6587aa C |
415 | margin-bottom: 20px; |
416 | } | |
417 | ||
2b3b76ab C |
418 | // If the view is not expanded, take into account the menu |
419 | .privacy-concerns { | |
420 | width: calc(100% - #{$menu-width}); | |
421 | } | |
422 | ||
8ff3f883 C |
423 | @media screen and (max-width: $small-view) { |
424 | .privacy-concerns { | |
28e0e40d | 425 | margin-left: $menu-width - 15px; // Menu is absolute |
8ff3f883 C |
426 | } |
427 | } | |
428 | ||
2b3b76ab C |
429 | :host-context(.expanded) { |
430 | .privacy-concerns { | |
431 | width: 100%; | |
28e0e40d | 432 | margin-left: -15px; |
2b3b76ab C |
433 | } |
434 | } | |
435 | ||
436 | .privacy-concerns { | |
437 | position: fixed; | |
438 | bottom: 0; | |
439 | ||
440 | padding: 5px 15px; | |
441 | ||
442 | display: flex; | |
28e0e40d | 443 | flex-wrap: nowrap; |
2b3b76ab C |
444 | align-items: center; |
445 | justify-content: flex-start; | |
446 | background-color: rgba(0, 0, 0, 0.9); | |
447 | color: #fff; | |
448 | ||
449 | .privacy-concerns-text { | |
450 | margin: 0 5px; | |
451 | } | |
452 | ||
453 | a { | |
454 | @include disable-default-a-behaviour; | |
455 | ||
9a0fc840 | 456 | color: var(--mainColor); |
2b3b76ab C |
457 | transition: color 0.3s; |
458 | ||
459 | &:hover { | |
460 | color: #fff; | |
461 | } | |
462 | } | |
463 | ||
464 | .privacy-concerns-okay { | |
9a0fc840 | 465 | background-color: var(--mainColor); |
2b3b76ab C |
466 | padding: 5px 8px 5px 7px; |
467 | margin-left: auto; | |
468 | border-radius: 3px; | |
469 | cursor: pointer; | |
470 | transition: background-color 0.3s; | |
471 | font-weight: $font-semibold; | |
472 | ||
473 | &:hover { | |
474 | background-color: #000; | |
475 | } | |
476 | } | |
477 | } | |
478 | ||
07fa4c97 | 479 | @media screen and (max-width: 1600px) { |
8ff3f883 C |
480 | .video-bottom .video-info .video-attributes .video-attribute { |
481 | margin-bottom: 5px; | |
b9828abe C |
482 | } |
483 | } | |
b2731bff | 484 | |
23f4c3d4 | 485 | @media screen and (max-width: 1300px) { |
2b3b76ab C |
486 | .privacy-concerns { |
487 | font-size: 12px; | |
488 | padding: 2px 5px; | |
489 | ||
490 | .privacy-concerns-text { | |
491 | margin: 0; | |
492 | } | |
493 | } | |
07fa4c97 C |
494 | } |
495 | ||
9a18a625 | 496 | @media screen and (max-width: 1100px) { |
3143ae17 C |
497 | #video-wrapper { |
498 | flex-direction: column; | |
499 | justify-content: center; | |
500 | ||
03652b31 | 501 | my-video-watch-playlist ::ng-deep .playlist { |
3143ae17 C |
502 | @include playlist-below-player; |
503 | } | |
504 | } | |
505 | ||
9a18a625 C |
506 | .video-bottom { |
507 | flex-direction: column; | |
508 | ||
03652b31 | 509 | ::ng-deep .other-videos { |
9a18a625 C |
510 | padding-left: 0 !important; |
511 | ||
03652b31 | 512 | ::ng-deep .video-miniature { |
9a18a625 C |
513 | flex-direction: row; |
514 | width: auto; | |
515 | } | |
516 | } | |
517 | } | |
518 | } | |
519 | ||
1f788f20 | 520 | @media screen and (max-width: 600px) { |
b2731bff | 521 | .video-bottom { |
11dd0c2e | 522 | margin: 20px 0 0 0 !important; |
1f788f20 C |
523 | |
524 | .video-info { | |
93ea9c47 | 525 | padding: 0; |
1f788f20 C |
526 | |
527 | .video-info-first-row { | |
528 | ||
529 | .video-info-name { | |
530 | font-size: 20px; | |
531 | height: auto; | |
532 | } | |
533 | } | |
534 | } | |
b2731bff | 535 | } |
2b3b76ab | 536 | |
03652b31 | 537 | ::ng-deep .other-videos .video-miniature { |
9a18a625 | 538 | flex-direction: column; |
a8981e0b C |
539 | } |
540 | ||
2b3b76ab C |
541 | .privacy-concerns { |
542 | width: 100%; | |
543 | ||
544 | strong { | |
545 | display: none; | |
546 | } | |
547 | } | |
b2731bff | 548 | } |
07fa4c97 C |
549 | |
550 | @media screen and (max-width: 450px) { | |
93ea9c47 C |
551 | .video-bottom { |
552 | .action-button .icon-text { | |
553 | display: none !important; | |
554 | } | |
555 | ||
556 | .video-info .video-info-first-row { | |
557 | .video-info-name { | |
558 | font-size: 18px; | |
559 | } | |
560 | ||
561 | .video-info-date-views { | |
562 | font-size: 14px; | |
563 | } | |
564 | ||
565 | .video-actions-rates { | |
566 | margin-top: 10px; | |
567 | } | |
568 | } | |
569 | ||
570 | .video-info-description { | |
571 | font-size: 14px !important; | |
572 | } | |
07fa4c97 C |
573 | } |
574 | } |