]>
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.activated { | |
243 | background-color: $green; | |
244 | ||
245 | my-global-icon { | |
246 | @include apply-svg-color(#fff); | |
247 | } | |
248 | } | |
249 | ||
250 | &.action-button-dislike.activated { | |
251 | background-color: $red; | |
252 | ||
253 | my-global-icon { | |
254 | @include apply-svg-color(#fff); | |
255 | } | |
256 | } | |
257 | ||
258 | &.action-button-save { | |
259 | my-global-icon { | |
260 | top: 0 !important; | |
261 | right: -1px; | |
262 | } | |
263 | } | |
264 | ||
265 | .icon-text { | |
266 | margin-left: 3px; | |
267 | } | |
268 | } | |
269 | } | |
270 | ||
271 | .video-info-likes-dislikes-bar { | |
272 | $likes-bar-height: 2px; | |
273 | height: $likes-bar-height; | |
274 | margin-top: -$likes-bar-height; | |
275 | width: 186px; | |
276 | background-color: $red; | |
277 | position: relative; | |
278 | top: 10px; | |
279 | ||
280 | .likes-bar { | |
281 | height: 100%; | |
282 | background-color: $green; | |
283 | } | |
284 | } | |
285 | } | |
286 | } | |
287 | ||
288 | .video-info-description { | |
289 | margin: 20px 0; | |
290 | font-size: 15px; | |
291 | ||
292 | .video-info-description-html { | |
293 | @include peertube-word-wrap; | |
294 | } | |
295 | ||
296 | .glyphicon, .description-loading { | |
297 | margin-left: 3px; | |
298 | } | |
299 | ||
300 | .description-loading { | |
301 | display: inline-block; | |
302 | } | |
303 | ||
304 | .video-info-description-more { | |
305 | cursor: pointer; | |
306 | font-weight: $font-semibold; | |
307 | color: $grey-foreground-color; | |
308 | font-size: 14px; | |
309 | ||
310 | .glyphicon { | |
311 | position: relative; | |
312 | top: 2px; | |
313 | } | |
314 | } | |
315 | } | |
316 | ||
317 | .video-attributes .video-attribute { | |
318 | font-size: 13px; | |
319 | display: block; | |
320 | margin-bottom: 12px; | |
321 | ||
322 | .video-attribute-label { | |
323 | min-width: 142px; | |
324 | padding-right: 5px; | |
325 | display: inline-block; | |
326 | color: $grey-foreground-color; | |
327 | font-weight: $font-bold; | |
328 | } | |
329 | ||
330 | a.video-attribute-value { | |
331 | @include disable-default-a-behaviour; | |
332 | color: var(--mainForegroundColor); | |
333 | ||
334 | &:hover { | |
335 | opacity: 0.9; | |
336 | } | |
337 | } | |
338 | ||
339 | &.video-attribute-tags { | |
340 | .video-attribute-value:not(:nth-child(2)) { | |
341 | &::before { | |
342 | content: ', ' | |
343 | } | |
344 | } | |
345 | } | |
346 | } | |
347 | } | |
348 | ||
349 | ::ng-deep .other-videos { | |
350 | padding-left: 15px; | |
351 | flex-basis: $other-videos-width; | |
352 | min-width: $other-videos-width; | |
353 | ||
354 | .title-page { | |
355 | margin-top: 0 !important; | |
356 | } | |
357 | ||
358 | .video-miniature { | |
359 | display: flex; | |
360 | width: $other-videos-width; | |
361 | height: 100%; | |
362 | margin-bottom: 20px; | |
363 | flex-wrap: wrap; | |
364 | ||
365 | .video-thumbnail { | |
366 | margin-right: 10px | |
367 | } | |
368 | } | |
369 | } | |
370 | } | |
371 | ||
372 | my-video-comments { | |
373 | display: inline-block; | |
374 | width: 100%; | |
375 | margin-bottom: 20px; | |
376 | } | |
377 | ||
378 | // If the view is not expanded, take into account the menu | |
379 | .privacy-concerns { | |
380 | width: calc(100% - #{$menu-width}); | |
381 | } | |
382 | ||
383 | @media screen and (max-width: $small-view) { | |
384 | .privacy-concerns { | |
385 | margin-left: $menu-width - 15px; // Menu is absolute | |
386 | } | |
387 | } | |
388 | ||
389 | :host-context(.expanded) { | |
390 | .privacy-concerns { | |
391 | width: 100%; | |
392 | margin-left: -15px; | |
393 | } | |
394 | } | |
395 | ||
396 | .privacy-concerns { | |
397 | position: fixed; | |
398 | bottom: 0; | |
399 | ||
400 | padding: 5px 15px; | |
401 | ||
402 | display: flex; | |
403 | flex-wrap: nowrap; | |
404 | align-items: center; | |
405 | justify-content: flex-start; | |
406 | background-color: rgba(0, 0, 0, 0.9); | |
407 | color: #fff; | |
408 | ||
409 | .privacy-concerns-text { | |
410 | margin: 0 5px; | |
411 | } | |
412 | ||
413 | a { | |
414 | @include disable-default-a-behaviour; | |
415 | ||
416 | color: var(--mainColor); | |
417 | transition: color 0.3s; | |
418 | ||
419 | &:hover { | |
420 | color: #fff; | |
421 | } | |
422 | } | |
423 | ||
424 | .privacy-concerns-okay { | |
425 | background-color: var(--mainColor); | |
426 | padding: 5px 8px 5px 7px; | |
427 | margin-left: auto; | |
428 | border-radius: 3px; | |
429 | cursor: pointer; | |
430 | transition: background-color 0.3s; | |
431 | font-weight: $font-semibold; | |
432 | ||
433 | &:hover { | |
434 | background-color: #000; | |
435 | } | |
436 | } | |
437 | } | |
438 | ||
439 | @media screen and (max-width: 1600px) { | |
440 | .video-bottom .video-info .video-attributes .video-attribute { | |
441 | margin-bottom: 5px; | |
442 | } | |
443 | } | |
444 | ||
445 | @media screen and (max-width: 1300px) { | |
446 | .privacy-concerns { | |
447 | font-size: 12px; | |
448 | padding: 2px 5px; | |
449 | ||
450 | .privacy-concerns-text { | |
451 | margin: 0; | |
452 | } | |
453 | } | |
454 | } | |
455 | ||
456 | @media screen and (max-width: 1100px) { | |
457 | #video-wrapper { | |
458 | flex-direction: column; | |
459 | justify-content: center; | |
460 | ||
461 | my-video-watch-playlist ::ng-deep .playlist { | |
462 | @include playlist-below-player; | |
463 | } | |
464 | } | |
465 | ||
466 | .video-bottom { | |
467 | flex-direction: column; | |
468 | ||
469 | ::ng-deep .other-videos { | |
470 | padding-left: 0 !important; | |
471 | ||
472 | ::ng-deep .video-miniature { | |
473 | flex-direction: row; | |
474 | width: auto; | |
475 | } | |
476 | } | |
477 | } | |
478 | } | |
479 | ||
480 | @media screen and (max-width: 600px) { | |
481 | .video-bottom { | |
482 | margin: 20px 0 0 0 !important; | |
483 | ||
484 | .video-info { | |
485 | padding: 0; | |
486 | ||
487 | .video-info-first-row { | |
488 | ||
489 | .video-info-name { | |
490 | font-size: 20px; | |
491 | height: auto; | |
492 | } | |
493 | } | |
494 | } | |
495 | } | |
496 | ||
497 | ::ng-deep .other-videos .video-miniature { | |
498 | flex-direction: column; | |
499 | } | |
500 | ||
501 | .privacy-concerns { | |
502 | width: 100%; | |
503 | ||
504 | strong { | |
505 | display: none; | |
506 | } | |
507 | } | |
508 | } | |
509 | ||
510 | @media screen and (max-width: 450px) { | |
511 | .video-bottom { | |
512 | .action-button .icon-text { | |
513 | display: none !important; | |
514 | } | |
515 | ||
516 | .video-info .video-info-first-row { | |
517 | .video-info-name { | |
518 | font-size: 18px; | |
519 | } | |
520 | ||
521 | .video-info-date-views { | |
522 | font-size: 14px; | |
523 | } | |
524 | ||
525 | .video-actions-rates { | |
526 | margin-top: 10px; | |
527 | } | |
528 | } | |
529 | ||
530 | .video-info-description { | |
531 | font-size: 14px !important; | |
532 | } | |
533 | } | |
534 | } |