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 text-decoration: none;
339 .glyphicon, .description-loading {
343 .description-loading {
344 display: inline-block;
347 .video-info-description-more {
349 font-weight: $font-semibold;
350 color: $grey-foreground-color;
361 margin-left: $video-info-margin-left;
364 .video-attributes .video-attribute {
369 .video-attribute-label {
372 display: inline-block;
373 color: $grey-foreground-color;
374 font-weight: $font-bold;
377 a.video-attribute-value {
378 @include disable-default-a-behaviour;
379 color: var(--mainForegroundColor);
386 &.video-attribute-tags {
387 .video-attribute-value:not(:nth-child(2)) {
396 ::ng-deep .other-videos {
400 margin: 0 !important;
412 @media screen and (max-width: 1800px - (3* $video-miniature-width)) {
415 @media screen and (max-width: 500px) {
424 display: inline-block;
429 // If the view is not expanded, take into account the menu
431 width: calc(100% - #{$menu-width});
434 @media screen and (max-width: $small-view) {
436 margin-left: $menu-width - 15px; // Menu is absolute
440 :host-context(.expanded) {
456 justify-content: flex-start;
457 background-color: rgba(0, 0, 0, 0.9);
460 .privacy-concerns-text {
465 @include disable-default-a-behaviour;
467 color: var(--mainColor);
468 transition: color 0.3s;
475 .privacy-concerns-okay {
476 background-color: var(--mainColor);
477 padding: 5px 8px 5px 7px;
481 transition: background-color 0.3s;
482 font-weight: $font-semibold;
485 background-color: #000;
490 @media screen and (max-width: 1600px) {
491 .video-bottom .video-info .video-attributes .video-attribute {
496 @media screen and (max-width: 1300px) {
501 .privacy-concerns-text {
507 @media screen and (max-width: 1100px) {
509 flex-direction: column;
510 justify-content: center;
512 my-video-watch-playlist ::ng-deep .playlist {
513 @include playlist-below-player;
518 flex-direction: column;
520 ::ng-deep .other-videos {
521 padding-left: 0 !important;
523 ::ng-deep .video-miniature {
531 @media screen and (max-width: 600px) {
533 margin: 20px 0 0 0 !important;
538 .video-info-first-row {
548 ::ng-deep .other-videos .video-miniature {
549 flex-direction: column;
561 @media screen and (max-width: 450px) {
563 .action-button .icon-text {
564 display: none !important;
567 .video-info .video-info-first-row {
572 .video-info-date-views {
576 .video-actions-rates {
581 .video-info-description {
582 font-size: 14px !important;