]>
Commit | Line | Data |
---|---|---|
1 | @import '_variables'; | |
2 | @import '_mixins'; | |
3 | @import '_bootstrap-variables'; | |
4 | @import '_miniature'; | |
5 | ||
6 | $other-videos-width: 260px; | |
7 | $player-factor: 1.7; // 16/9 | |
8 | ||
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 { | |
18 | width: 100% !important; | |
19 | height: auto !important; | |
20 | max-height: 300px !important; | |
21 | max-width: initial; | |
22 | border-bottom: 1px solid $separator-border-color !important; | |
23 | } | |
24 | ||
25 | .root { | |
26 | &.theater-enabled #video-wrapper { | |
27 | flex-direction: column; | |
28 | justify-content: center; | |
29 | ||
30 | #videojs-wrapper { | |
31 | width: 100%; | |
32 | } | |
33 | ||
34 | ::ng-deep .video-js { | |
35 | $height: calc(100vh - #{$header-height} - #{$theater-bottom-space}); | |
36 | ||
37 | height: $height; | |
38 | width: 100%; | |
39 | max-width: initial; | |
40 | } | |
41 | ||
42 | my-video-watch-playlist ::ng-deep .playlist { | |
43 | @include playlist-below-player; | |
44 | } | |
45 | } | |
46 | } | |
47 | ||
48 | .blacklisted-label { | |
49 | font-weight: $font-semibold; | |
50 | } | |
51 | ||
52 | #video-wrapper { | |
53 | background-color: #000; | |
54 | display: flex; | |
55 | justify-content: center; | |
56 | margin: 0 -15px; | |
57 | ||
58 | #videojs-wrapper { | |
59 | display: flex; | |
60 | justify-content: center; | |
61 | flex-grow: 1; | |
62 | } | |
63 | ||
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%; | |
73 | font-size: 24px; | |
74 | height: 500px; | |
75 | ||
76 | @media screen and (max-width: 1000px) { | |
77 | font-size: 20px; | |
78 | } | |
79 | ||
80 | @media screen and (max-width: 600px) { | |
81 | font-size: 16px; | |
82 | } | |
83 | } | |
84 | ||
85 | ::ng-deep .video-js { | |
86 | width: 100%; | |
87 | max-width: getPlayerWidth(66vh); | |
88 | height: 66vh; | |
89 | ||
90 | // VideoJS create an inner video player | |
91 | video { | |
92 | outline: 0; | |
93 | position: relative !important; | |
94 | } | |
95 | } | |
96 | ||
97 | @media screen and (max-width: 600px) { | |
98 | .remote-server-down, | |
99 | ::ng-deep .video-js { | |
100 | width: 100vw; | |
101 | height: getPlayerHeight(100vw) | |
102 | } | |
103 | } | |
104 | } | |
105 | ||
106 | .alert { | |
107 | text-align: center; | |
108 | border-radius: 0; | |
109 | } | |
110 | ||
111 | .flex-direction-column { | |
112 | flex-direction: column; | |
113 | } | |
114 | ||
115 | #video-not-found { | |
116 | height: 300px; | |
117 | line-height: 300px; | |
118 | margin-top: 50px; | |
119 | text-align: center; | |
120 | font-weight: $font-semibold; | |
121 | font-size: 15px; | |
122 | } | |
123 | ||
124 | .video-bottom { | |
125 | display: flex; | |
126 | margin-top: 40px; | |
127 | ||
128 | .video-info { | |
129 | flex-grow: 1; | |
130 | // Set min width for flex item | |
131 | min-width: 1px; | |
132 | max-width: 100%; | |
133 | ||
134 | .video-info-first-row { | |
135 | display: flex; | |
136 | ||
137 | & > div:first-child { | |
138 | flex-grow: 1; | |
139 | } | |
140 | ||
141 | .video-info-name { | |
142 | margin-right: 30px; | |
143 | min-height: 40px; // Align with the action buttons | |
144 | font-size: 27px; | |
145 | font-weight: $font-semibold; | |
146 | flex-grow: 1; | |
147 | } | |
148 | ||
149 | .video-info-first-row-bottom { | |
150 | display: grid; | |
151 | grid-template-columns: 1fr auto; | |
152 | align-items: center; | |
153 | width: 100%; | |
154 | } | |
155 | ||
156 | .video-info-date-views { | |
157 | flex-grow: 1; | |
158 | margin-bottom: 10px; | |
159 | margin-right: 10px; | |
160 | font-size: 16px; | |
161 | } | |
162 | ||
163 | .video-info-channel { | |
164 | font-weight: $font-semibold; | |
165 | font-size: 15px; | |
166 | ||
167 | a { | |
168 | @include disable-default-a-behaviour; | |
169 | ||
170 | color: var(--mainForegroundColor); | |
171 | ||
172 | &:hover { | |
173 | opacity: 0.8; | |
174 | } | |
175 | ||
176 | img { | |
177 | @include avatar(18px); | |
178 | ||
179 | margin: -2px 5px 0 0; | |
180 | } | |
181 | } | |
182 | ||
183 | my-subscribe-button { | |
184 | margin-left: 5px; | |
185 | } | |
186 | } | |
187 | ||
188 | .video-info-by { | |
189 | ||
190 | a { | |
191 | @include disable-default-a-behaviour; | |
192 | ||
193 | display: inline; | |
194 | align-items: center; | |
195 | font-size: 13px; | |
196 | color: var(--mainForegroundColor); | |
197 | ||
198 | span:hover { | |
199 | opacity: 0.8; | |
200 | } | |
201 | ||
202 | span { | |
203 | margin-left: 2px; | |
204 | } | |
205 | ||
206 | img { | |
207 | @include avatar(18px); | |
208 | ||
209 | margin: -2px 5px 0 0; | |
210 | } | |
211 | } | |
212 | ||
213 | my-help { | |
214 | position: relative; | |
215 | top: 1px; | |
216 | margin-left: 2px; | |
217 | } | |
218 | } | |
219 | ||
220 | my-feed { | |
221 | margin-left: 5px; | |
222 | margin-top: 1px; | |
223 | } | |
224 | ||
225 | .video-actions-rates { | |
226 | margin: 0 0 10px 0; | |
227 | align-items: start; | |
228 | width: max-content; | |
229 | ||
230 | .video-actions { | |
231 | height: 40px; // Align with the title | |
232 | display: flex; | |
233 | align-items: center; | |
234 | ||
235 | .action-button:not(:first-child), | |
236 | .action-dropdown, | |
237 | my-video-actions-dropdown { | |
238 | margin-left: 10px; | |
239 | } | |
240 | ||
241 | .action-button { | |
242 | @include peertube-button; | |
243 | @include grey-button; | |
244 | @include button-with-icon(21px, 0, -1px); | |
245 | @include apply-svg-color($grey-foreground-color); | |
246 | ||
247 | font-size: 15px; | |
248 | font-weight: $font-semibold; | |
249 | display: inline-block; | |
250 | padding: 0 10px 0 10px; | |
251 | white-space: nowrap; | |
252 | ||
253 | &::after { | |
254 | display: none; | |
255 | } | |
256 | ||
257 | .action-button-like, | |
258 | .action-button-dislike { | |
259 | .count { | |
260 | margin-right: 5px; | |
261 | } | |
262 | } | |
263 | ||
264 | &.action-button-like.activated { | |
265 | background-color: $green; | |
266 | ||
267 | .count { | |
268 | color: #fff; | |
269 | } | |
270 | ||
271 | my-global-icon { | |
272 | @include apply-svg-color(#fff); | |
273 | } | |
274 | } | |
275 | ||
276 | &.action-button-dislike.activated { | |
277 | background-color: $red; | |
278 | ||
279 | .count { | |
280 | color: #fff; | |
281 | } | |
282 | ||
283 | my-global-icon { | |
284 | @include apply-svg-color(#fff); | |
285 | } | |
286 | } | |
287 | ||
288 | &.action-button-support { | |
289 | color: var(--supportButtonColor); | |
290 | background-color: var(--supportButtonBackgroundColor); | |
291 | ||
292 | &:hover { | |
293 | opacity: 0.9; | |
294 | } | |
295 | ||
296 | my-global-icon { | |
297 | @include apply-svg-color(var(--supportButtonColor)); | |
298 | } | |
299 | } | |
300 | ||
301 | &.action-button-save { | |
302 | my-global-icon { | |
303 | top: 0 !important; | |
304 | right: -1px; | |
305 | } | |
306 | } | |
307 | ||
308 | .icon-text { | |
309 | margin-left: 3px; | |
310 | } | |
311 | } | |
312 | } | |
313 | ||
314 | .video-info-likes-dislikes-bar { | |
315 | $likes-bar-height: 2px; | |
316 | height: $likes-bar-height; | |
317 | margin-top: -$likes-bar-height; | |
318 | width: 186px; | |
319 | background-color: $red; | |
320 | position: relative; | |
321 | top: 10px; | |
322 | ||
323 | .likes-bar { | |
324 | height: 100%; | |
325 | background-color: $green; | |
326 | } | |
327 | } | |
328 | } | |
329 | } | |
330 | ||
331 | .video-info-description { | |
332 | margin: 20px 0; | |
333 | font-size: 15px; | |
334 | ||
335 | .video-info-description-html { | |
336 | @include peertube-word-wrap; | |
337 | } | |
338 | ||
339 | .glyphicon, .description-loading { | |
340 | margin-left: 3px; | |
341 | } | |
342 | ||
343 | .description-loading { | |
344 | display: inline-block; | |
345 | } | |
346 | ||
347 | .video-info-description-more { | |
348 | cursor: pointer; | |
349 | font-weight: $font-semibold; | |
350 | color: $grey-foreground-color; | |
351 | font-size: 14px; | |
352 | ||
353 | .glyphicon { | |
354 | position: relative; | |
355 | top: 2px; | |
356 | } | |
357 | } | |
358 | } | |
359 | ||
360 | .video-attributes .video-attribute { | |
361 | font-size: 13px; | |
362 | display: block; | |
363 | margin-bottom: 12px; | |
364 | ||
365 | .video-attribute-label { | |
366 | min-width: 142px; | |
367 | padding-right: 5px; | |
368 | display: inline-block; | |
369 | color: $grey-foreground-color; | |
370 | font-weight: $font-bold; | |
371 | } | |
372 | ||
373 | a.video-attribute-value { | |
374 | @include disable-default-a-behaviour; | |
375 | color: var(--mainForegroundColor); | |
376 | ||
377 | &:hover { | |
378 | opacity: 0.9; | |
379 | } | |
380 | } | |
381 | ||
382 | &.video-attribute-tags { | |
383 | .video-attribute-value:not(:nth-child(2)) { | |
384 | &::before { | |
385 | content: ', ' | |
386 | } | |
387 | } | |
388 | } | |
389 | } | |
390 | } | |
391 | ||
392 | ::ng-deep .other-videos { | |
393 | padding-left: 15px; | |
394 | flex-basis: $other-videos-width; | |
395 | min-width: $other-videos-width; | |
396 | ||
397 | .title-page { | |
398 | margin-top: 0 !important; | |
399 | } | |
400 | ||
401 | .video-miniature { | |
402 | display: flex; | |
403 | width: max-content; | |
404 | height: 100%; | |
405 | margin-bottom: 20px; | |
406 | flex-wrap: wrap; | |
407 | ||
408 | .video-thumbnail { | |
409 | margin-right: 10px | |
410 | } | |
411 | } | |
412 | } | |
413 | } | |
414 | ||
415 | my-video-comments { | |
416 | display: inline-block; | |
417 | width: 100%; | |
418 | margin-bottom: 20px; | |
419 | } | |
420 | ||
421 | // If the view is not expanded, take into account the menu | |
422 | .privacy-concerns { | |
423 | width: calc(100% - #{$menu-width}); | |
424 | } | |
425 | ||
426 | @media screen and (max-width: $small-view) { | |
427 | .privacy-concerns { | |
428 | margin-left: $menu-width - 15px; // Menu is absolute | |
429 | } | |
430 | } | |
431 | ||
432 | :host-context(.expanded) { | |
433 | .privacy-concerns { | |
434 | width: 100%; | |
435 | margin-left: -15px; | |
436 | } | |
437 | } | |
438 | ||
439 | .privacy-concerns { | |
440 | position: fixed; | |
441 | bottom: 0; | |
442 | ||
443 | padding: 5px 15px; | |
444 | ||
445 | display: flex; | |
446 | flex-wrap: nowrap; | |
447 | align-items: center; | |
448 | justify-content: flex-start; | |
449 | background-color: rgba(0, 0, 0, 0.9); | |
450 | color: #fff; | |
451 | ||
452 | .privacy-concerns-text { | |
453 | margin: 0 5px; | |
454 | } | |
455 | ||
456 | a { | |
457 | @include disable-default-a-behaviour; | |
458 | ||
459 | color: var(--mainColor); | |
460 | transition: color 0.3s; | |
461 | ||
462 | &:hover { | |
463 | color: #fff; | |
464 | } | |
465 | } | |
466 | ||
467 | .privacy-concerns-okay { | |
468 | background-color: var(--mainColor); | |
469 | padding: 5px 8px 5px 7px; | |
470 | margin-left: auto; | |
471 | border-radius: 3px; | |
472 | cursor: pointer; | |
473 | transition: background-color 0.3s; | |
474 | font-weight: $font-semibold; | |
475 | ||
476 | &:hover { | |
477 | background-color: #000; | |
478 | } | |
479 | } | |
480 | } | |
481 | ||
482 | @media screen and (max-width: 1600px) { | |
483 | .video-bottom .video-info .video-attributes .video-attribute { | |
484 | margin-bottom: 5px; | |
485 | } | |
486 | } | |
487 | ||
488 | @media screen and (max-width: 1300px) { | |
489 | .privacy-concerns { | |
490 | font-size: 12px; | |
491 | padding: 2px 5px; | |
492 | ||
493 | .privacy-concerns-text { | |
494 | margin: 0; | |
495 | } | |
496 | } | |
497 | } | |
498 | ||
499 | @media screen and (max-width: 1100px) { | |
500 | #video-wrapper { | |
501 | flex-direction: column; | |
502 | justify-content: center; | |
503 | ||
504 | my-video-watch-playlist ::ng-deep .playlist { | |
505 | @include playlist-below-player; | |
506 | } | |
507 | } | |
508 | ||
509 | .video-bottom { | |
510 | flex-direction: column; | |
511 | ||
512 | ::ng-deep .other-videos { | |
513 | padding-left: 0 !important; | |
514 | ||
515 | ::ng-deep .video-miniature { | |
516 | flex-direction: row; | |
517 | width: auto; | |
518 | } | |
519 | } | |
520 | } | |
521 | } | |
522 | ||
523 | @media screen and (max-width: 600px) { | |
524 | .video-bottom { | |
525 | margin: 20px 0 0 0 !important; | |
526 | ||
527 | .video-info { | |
528 | padding: 0; | |
529 | ||
530 | .video-info-first-row { | |
531 | ||
532 | .video-info-name { | |
533 | font-size: 20px; | |
534 | height: auto; | |
535 | } | |
536 | } | |
537 | } | |
538 | } | |
539 | ||
540 | ::ng-deep .other-videos .video-miniature { | |
541 | flex-direction: column; | |
542 | } | |
543 | ||
544 | .privacy-concerns { | |
545 | width: 100%; | |
546 | ||
547 | strong { | |
548 | display: none; | |
549 | } | |
550 | } | |
551 | } | |
552 | ||
553 | @media screen and (max-width: 450px) { | |
554 | .video-bottom { | |
555 | .action-button .icon-text { | |
556 | display: none !important; | |
557 | } | |
558 | ||
559 | .video-info .video-info-first-row { | |
560 | .video-info-name { | |
561 | font-size: 18px; | |
562 | } | |
563 | ||
564 | .video-info-date-views { | |
565 | font-size: 14px; | |
566 | } | |
567 | ||
568 | .video-actions-rates { | |
569 | margin-top: 10px; | |
570 | } | |
571 | } | |
572 | ||
573 | .video-info-description { | |
574 | font-size: 14px !important; | |
575 | } | |
576 | } | |
577 | } |