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