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