aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/+video-watch/video-watch.component.scss
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/videos/+video-watch/video-watch.component.scss')
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.scss101
1 files changed, 74 insertions, 27 deletions
diff --git a/client/src/app/videos/+video-watch/video-watch.component.scss b/client/src/app/videos/+video-watch/video-watch.component.scss
index 281b9240b..11406e887 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.scss
+++ b/client/src/app/videos/+video-watch/video-watch.component.scss
@@ -4,9 +4,43 @@
4@import '_miniature'; 4@import '_miniature';
5 5
6$other-videos-width: 260px; 6$other-videos-width: 260px;
7$player-factor: 1.7; // 16/9
7 8
8.root-row { 9@function getPlayerHeight($width){
9 flex-direction: column; 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%;
19 border-bottom: 1px solid $separator-border-color;
20}
21
22.root {
23 margin: 0 -15px;
24
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 }
10} 44}
11 45
12.blacklisted-label { 46.blacklisted-label {
@@ -17,7 +51,6 @@ $other-videos-width: 260px;
17 background-color: #000; 51 background-color: #000;
18 display: flex; 52 display: flex;
19 justify-content: center; 53 justify-content: center;
20 flex-grow: 1;
21 54
22 .remote-server-down { 55 .remote-server-down {
23 color: #fff; 56 color: #fff;
@@ -93,14 +126,9 @@ $other-videos-width: 260px;
93 } 126 }
94 127
95 /deep/ .video-js { 128 /deep/ .video-js {
96 width: calc(66vh * 1.77); 129 width: getPlayerWidth(66vh);
97 height: 66vh; 130 height: 66vh;
98 131
99 &.vjs-theater-enabled {
100 height: calc(100vh - #{$header-height} - #{$theater-bottom-space});
101 width: 100%;
102 }
103
104 // VideoJS create an inner video player 132 // VideoJS create an inner video player
105 video { 133 video {
106 outline: 0; 134 outline: 0;
@@ -112,7 +140,7 @@ $other-videos-width: 260px;
112 .remote-server-down, 140 .remote-server-down,
113 /deep/ .video-js { 141 /deep/ .video-js {
114 width: 100vw; 142 width: 100vw;
115 height: calc(100vw / 1.7); // 16/9 143 height: getPlayerHeight(100vw)
116 } 144 }
117 } 145 }
118} 146}
@@ -131,6 +159,7 @@ $other-videos-width: 260px;
131} 159}
132 160
133.video-bottom { 161.video-bottom {
162 display: flex;
134 margin-top: 40px; 163 margin-top: 40px;
135 164
136 .video-info { 165 .video-info {
@@ -366,7 +395,7 @@ $other-videos-width: 260px;
366 395
367 /deep/ .other-videos { 396 /deep/ .other-videos {
368 padding-left: 15px; 397 padding-left: 15px;
369 width: $other-videos-width; 398 flex-basis: $other-videos-width;
370 399
371 .title-page { 400 .title-page {
372 margin-top: 0 !important; 401 margin-top: 0 !important;
@@ -374,14 +403,11 @@ $other-videos-width: 260px;
374 403
375 .video-miniature { 404 .video-miniature {
376 display: flex; 405 display: flex;
406 width: $other-videos-width;
377 height: 100%; 407 height: 100%;
378 margin-bottom: 20px; 408 margin-bottom: 20px;
379 flex-wrap: wrap; 409 flex-wrap: wrap;
380 410
381 .video-miniature-information {
382 flex-grow: 1;
383 }
384
385 .video-thumbnail { 411 .video-thumbnail {
386 margin-right: 10px 412 margin-right: 10px
387 } 413 }
@@ -455,12 +481,6 @@ my-video-comments {
455 } 481 }
456} 482}
457 483
458@media screen and (min-width: map-get($grid-breakpoints, xl)) {
459 .video-bottom .video-info {
460 max-width: calc(100% - #{$other-videos-width});
461 }
462}
463
464@media screen and (max-width: 1600px) { 484@media screen and (max-width: 1600px) {
465 .video-bottom .video-info .video-attributes .video-attribute { 485 .video-bottom .video-info .video-attributes .video-attribute {
466 margin-bottom: 5px; 486 margin-bottom: 5px;
@@ -478,6 +498,37 @@ my-video-comments {
478 } 498 }
479} 499}
480 500
501@media screen and (max-width: 1100px) {
502 .video-bottom {
503 flex-direction: column;
504
505 /deep/ .other-videos {
506 padding-left: 0 !important;
507
508 /deep/ .video-miniature {
509 flex-direction: row;
510 width: auto;
511 }
512 }
513 }
514}
515
516@media screen and (max-width: 900px) {
517 #video-wrapper {
518 flex-direction: column;
519 justify-content: center;
520
521 #videojs-wrapper {
522 display: flex;
523 justify-content: center;
524 }
525
526 .playlist {
527 @include playlist-below-player;
528 }
529 }
530}
531
481@media screen and (max-width: 600px) { 532@media screen and (max-width: 600px) {
482 .video-bottom { 533 .video-bottom {
483 margin: 20px 0 0 0; 534 margin: 20px 0 0 0;
@@ -495,12 +546,8 @@ my-video-comments {
495 } 546 }
496 } 547 }
497 548
498 /deep/ .other-videos { 549 /deep/ .other-videos .video-miniature {
499 padding-left: 0 !important; 550 flex-direction: column;
500
501 /deep/ .video-miniature {
502 flex-direction: column;
503 }
504 } 551 }
505 552
506 .privacy-concerns { 553 .privacy-concerns {