3 @import '_bootstrap-variables';
6 $player-factor: 1.7; // 16/9
7 $video-info-margin-left: 44px;
9 @function getPlayerHeight($width){
10 @return calc(#{$width} / #{$player-factor})
13 @function getPlayerWidth($height){
14 @return calc(#{$height} * #{$player-factor})
17 @mixin playlist-below-player {
18 width: 100% !important;
19 height: auto !important;
20 max-height: 300px !important;
22 border-bottom: 1px solid $separator-border-color !important;
26 &.theater-enabled #video-wrapper {
27 flex-direction: column;
28 justify-content: center;
35 $height: calc(100vh - #{$header-height} - #{$theater-bottom-space});
42 my-video-watch-playlist ::ng-deep .playlist {
43 @include playlist-below-player;
49 font-weight: $font-semibold;
53 background-color: #000;
55 justify-content: center;
60 justify-content: center;
67 flex-direction: column;
70 justify-content: center;
71 background-color: #141313;
76 @media screen and (max-width: 1000px) {
80 @media screen and (max-width: 600px) {
87 max-width: getPlayerWidth(66vh);
90 // VideoJS create an inner video player
93 position: relative !important;
97 @media screen and (max-width: 600px) {
101 height: getPlayerHeight(100vw)
111 .flex-direction-column {
112 flex-direction: column;
120 font-weight: $font-semibold;
130 // Set min width for flex item
134 .video-info-first-row {
137 & > div:first-child {
143 min-height: 40px; // Align with the action buttons
145 font-weight: $font-semibold;
149 .video-info-first-row-bottom {
151 grid-template-columns: 1fr auto;
156 .video-info-date-views {
164 .video-info-channel {
165 font-weight: $font-semibold;
169 @include disable-default-a-behaviour;
171 color: var(--mainForegroundColor);
178 @include avatar(18px);
180 margin: -2px 5px 0 0;
184 .video-info-channel-left {
187 .video-info-channel-left-links {
189 flex-direction: column;
200 my-subscribe-button {
210 .video-actions-rates {
217 height: 40px; // Align with the title
221 .action-button:not(:first-child),
223 my-video-actions-dropdown {
228 @include peertube-button;
229 @include grey-button;
230 @include button-with-icon(21px, 0, -1px);
231 @include apply-svg-color($grey-foreground-color);
234 font-weight: $font-semibold;
235 display: inline-block;
236 padding: 0 10px 0 10px;
244 .action-button-dislike {
250 &.action-button-like.activated {
251 background-color: $green;
258 @include apply-svg-color(#fff);
262 &.action-button-dislike.activated {
263 background-color: $red;
270 @include apply-svg-color(#fff);
274 &.action-button-support {
275 color: var(--supportButtonColor);
276 background-color: var(--supportButtonBackgroundColor);
283 @include apply-svg-color(var(--supportButtonColor));
287 &.action-button-save {
300 .video-info-likes-dislikes-bar-outerContainer {
304 .video-info-likes-dislikes-bar-innerContainer {
309 .video-info-likes-dislikes-bar {
310 $likes-bar-height: 2px;
311 height: $likes-bar-height;
312 margin-top: -$likes-bar-height;
314 background-color: $red;
320 background-color: $green;
326 .video-info-description {
328 margin-left: $video-info-margin-left;
331 .video-info-description-html {
332 @include peertube-word-wrap;
335 .glyphicon, .description-loading {
339 .description-loading {
340 display: inline-block;
343 .video-info-description-more {
345 font-weight: $font-semibold;
346 color: $grey-foreground-color;
357 margin-left: $video-info-margin-left;
360 .video-attributes .video-attribute {
365 .video-attribute-label {
368 display: inline-block;
369 color: $grey-foreground-color;
370 font-weight: $font-bold;
373 a.video-attribute-value {
374 @include disable-default-a-behaviour;
375 color: var(--mainForegroundColor);
382 &.video-attribute-tags {
383 .video-attribute-value:not(:nth-child(2)) {
392 ::ng-deep .other-videos {
396 margin: 0 !important;
414 display: inline-block;
419 // If the view is not expanded, take into account the menu
421 width: calc(100% - #{$menu-width});
424 @media screen and (max-width: $small-view) {
426 margin-left: $menu-width - 15px; // Menu is absolute
430 :host-context(.expanded) {
446 justify-content: flex-start;
447 background-color: rgba(0, 0, 0, 0.9);
450 .privacy-concerns-text {
455 @include disable-default-a-behaviour;
457 color: var(--mainColor);
458 transition: color 0.3s;
465 .privacy-concerns-okay {
466 background-color: var(--mainColor);
467 padding: 5px 8px 5px 7px;
471 transition: background-color 0.3s;
472 font-weight: $font-semibold;
475 background-color: #000;
480 @media screen and (max-width: 1600px) {
481 .video-bottom .video-info .video-attributes .video-attribute {
486 @media screen and (max-width: 1300px) {
491 .privacy-concerns-text {
497 @media screen and (max-width: 1100px) {
499 flex-direction: column;
500 justify-content: center;
502 my-video-watch-playlist ::ng-deep .playlist {
503 @include playlist-below-player;
508 flex-direction: column;
510 ::ng-deep .other-videos {
511 padding-left: 0 !important;
513 ::ng-deep .video-miniature {
521 @media screen and (max-width: 600px) {
523 margin: 20px 0 0 0 !important;
528 .video-info-first-row {
538 ::ng-deep .other-videos .video-miniature {
539 flex-direction: column;
551 @media screen and (max-width: 450px) {
553 .action-button .icon-text {
554 display: none !important;
557 .video-info .video-info-first-row {
562 .video-info-date-views {
566 .video-actions-rates {
571 .video-info-description {
572 font-size: 14px !important;