X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bvideos%2F%2Bvideo-watch%2Fvideo-watch.component.scss;h=4a2e05c62f8a0e5244e3903fb386e427a25ac416;hb=e2e0b645cdac3c705b1988fbb0eff723ad5e885d;hp=f22ffc0eaf0305a753e437ebf64626b6dc4d4e49;hpb=0f7407d926cf7774f8f730dba08327569c11680c;p=github%2FChocobozzz%2FPeerTube.git 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 f22ffc0ea..4a2e05c62 100644 --- a/client/src/app/+videos/+video-watch/video-watch.component.scss +++ b/client/src/app/+videos/+video-watch/video-watch.component.scss @@ -3,15 +3,15 @@ @import '_bootstrap-variables'; @import '_miniature'; -$player-factor: 1.7; // 16/9 +$player-factor: 16/9; $video-info-margin-left: 44px; -@function getPlayerHeight($width){ - @return calc(#{$width} / #{$player-factor}) +@function getPlayerHeight ($width) { + @return calc(#{$width} / #{$player-factor}); } -@function getPlayerWidth($height){ - @return calc(#{$height} * #{$player-factor}) +@function getPlayerWidth ($height) { + @return calc(#{$height} * #{$player-factor}); } @mixin playlist-below-player { @@ -24,11 +24,11 @@ $video-info-margin-left: 44px; .root { &.theater-enabled #video-wrapper { + $height: calc(100vh - #{$header-height} - #{$theater-bottom-space}); + flex-direction: column; justify-content: center; - $height: calc(100vh - #{$header-height} - #{$theater-bottom-space}); - #videojs-wrapper { width: 100%; height: $height; @@ -50,6 +50,10 @@ $video-info-margin-left: 44px; font-weight: $font-semibold; } +.placeholder-image { + height: 100%; +} + #video-wrapper { $video-height: 66vh; @@ -141,12 +145,14 @@ $video-info-margin-left: 44px; .video-info-first-row { display: flex; - & > div:first-child { + > div:first-child { flex-grow: 1; } .video-info-name { - margin-right: 30px; + @include peertube-word-wrap; + + @include margin-right(30px); min-height: 40px; // Align with the action buttons font-size: 27px; font-weight: $font-semibold; @@ -161,9 +167,10 @@ $video-info-margin-left: 44px; } .video-info-date-views { - align-self: start; + @include margin-right(10px); + margin-bottom: 10px; - margin-right: 10px; + align-self: start; font-size: 1em; } @@ -173,6 +180,7 @@ $video-info-margin-left: 44px; a { @include disable-default-a-behaviour; + @include peertube-word-wrap; color: pvar(--mainForegroundColor); @@ -202,20 +210,19 @@ $video-info-margin-left: 44px; } my-subscribe-button { - margin-left: 5px; + @include margin-left(5px); } } - my-feed { - margin-left: 5px; - margin-top: 1px; - } - .video-actions-rates { - margin: 0 0 10px 0; + @include margin-left(auto); + @include margin-right(0); + + margin-top: 0; + margin-bottom: 10px; + align-items: start; width: max-content; - margin-left: auto; .video-actions { height: 40px; // Align with the title @@ -225,7 +232,7 @@ $video-info-margin-left: 44px; .action-button:not(:first-child), .action-dropdown, my-video-actions-dropdown { - margin-left: 5px; + @include margin-left(5px); } ::ng-deep.action-button { @@ -236,7 +243,7 @@ $video-info-margin-left: 44px; font-size: 100%; font-weight: $font-semibold; display: inline-block; - padding: 0 10px 0 10px; + padding: 0 10px; white-space: nowrap; background-color: transparent !important; color: pvar(--actionButtonColor); @@ -303,7 +310,7 @@ $video-info-margin-left: 44px; } .icon-text { - margin-left: 3px; + @include margin-left(3px); } } } @@ -339,8 +346,11 @@ $video-info-margin-left: 44px; } .video-info-description { - margin: 20px 0; - margin-left: $video-info-margin-left; + @include margin-left($video-info-margin-left); + @include margin-right(0); + + margin-top: 20px; + margin-bottom: 20px; font-size: 15px; .video-info-description-html { @@ -351,8 +361,9 @@ $video-info-margin-left: 44px; } } - .glyphicon, .description-loading { - margin-left: 3px; + .glyphicon, + .description-loading { + @include margin-left(3px); } .description-loading { @@ -373,7 +384,7 @@ $video-info-margin-left: 44px; } .video-attributes { - margin-left: $video-info-margin-left; + @include margin-left($video-info-margin-left); } .video-attributes .video-attribute { @@ -382,8 +393,9 @@ $video-info-margin-left: 44px; margin-bottom: 12px; .video-attribute-label { + @include padding-right(5px); + min-width: 142px; - padding-right: 5px; display: inline-block; color: pvar(--greyForegroundColor); font-weight: $font-bold; @@ -401,7 +413,7 @@ $video-info-margin-left: 44px; &.video-attribute-tags { .video-attribute-value:not(:nth-child(2)) { &::before { - content: ', ' + content: ', '; } } } @@ -410,8 +422,9 @@ $video-info-margin-left: 44px; } my-recommended-videos { + @include padding-left(15px); + display: block; - padding-left: 15px; min-width: 250px; } @@ -429,14 +442,15 @@ my-video-comments { @media screen and (max-width: $small-view) { .privacy-concerns { - margin-left: $menu-width - 15px; // Menu is absolute + @include margin-left($menu-width - 15px); // Menu is absolute } } :host-context(.expanded) { .privacy-concerns { + @include margin-left(-15px); + width: 100%; - margin-left: -15px; } } @@ -470,8 +484,9 @@ my-video-comments { } .privacy-concerns-button { + @include margin-left(auto); + padding: 5px 8px 5px 7px; - margin-left: auto; border-radius: 3px; white-space: nowrap; cursor: pointer; @@ -484,8 +499,9 @@ my-video-comments { } .privacy-concerns-okay { + @include margin-left(10px); + background-color: pvar(--mainColor); - margin-left: 10px; } } @@ -522,7 +538,7 @@ my-video-comments { } my-recommended-videos { - padding-left: 0; + @include padding-left(0); } }