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