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 {
163 .video-info-channel {
164 font-weight: $font-semibold;
168 @include disable-default-a-behaviour;
170 color: var(--mainForegroundColor);
177 @include avatar(18px);
179 margin: -2px 5px 0 0;
183 .video-info-channel-left {
186 .video-info-channel-left-links {
188 flex-direction: column;
199 my-subscribe-button {
209 .video-actions-rates {
216 height: 40px; // Align with the title
220 .action-button:not(:first-child),
222 my-video-actions-dropdown {
227 @include peertube-button;
228 @include grey-button;
229 @include button-with-icon(21px, 0, -1px);
230 @include apply-svg-color($grey-foreground-color);
233 font-weight: $font-semibold;
234 display: inline-block;
235 padding: 0 10px 0 10px;
243 .action-button-dislike {
249 &.action-button-like.activated {
250 background-color: $green;
257 @include apply-svg-color(#fff);
261 &.action-button-dislike.activated {
262 background-color: $red;
269 @include apply-svg-color(#fff);
273 &.action-button-support {
274 color: var(--supportButtonColor);
275 background-color: var(--supportButtonBackgroundColor);
282 @include apply-svg-color(var(--supportButtonColor));
286 &.action-button-save {
299 .video-info-likes-dislikes-bar-outerContainer {
303 .video-info-likes-dislikes-bar-innerContainer {
308 .video-info-likes-dislikes-bar {
309 $likes-bar-height: 2px;
310 height: $likes-bar-height;
311 margin-top: -$likes-bar-height;
313 background-color: $red;
319 background-color: $green;
325 .video-info-description {
327 margin-left: $video-info-margin-left;
330 .video-info-description-html {
331 @include peertube-word-wrap;
334 .glyphicon, .description-loading {
338 .description-loading {
339 display: inline-block;
342 .video-info-description-more {
344 font-weight: $font-semibold;
345 color: $grey-foreground-color;
356 margin-left: $video-info-margin-left;
359 .video-attributes .video-attribute {
364 .video-attribute-label {
367 display: inline-block;
368 color: $grey-foreground-color;
369 font-weight: $font-bold;
372 a.video-attribute-value {
373 @include disable-default-a-behaviour;
374 color: var(--mainForegroundColor);
381 &.video-attribute-tags {
382 .video-attribute-value:not(:nth-child(2)) {
391 ::ng-deep .other-videos {
395 margin: 0 !important;
413 display: inline-block;
418 // If the view is not expanded, take into account the menu
420 width: calc(100% - #{$menu-width});
423 @media screen and (max-width: $small-view) {
425 margin-left: $menu-width - 15px; // Menu is absolute
429 :host-context(.expanded) {
445 justify-content: flex-start;
446 background-color: rgba(0, 0, 0, 0.9);
449 .privacy-concerns-text {
454 @include disable-default-a-behaviour;
456 color: var(--mainColor);
457 transition: color 0.3s;
464 .privacy-concerns-okay {
465 background-color: var(--mainColor);
466 padding: 5px 8px 5px 7px;
470 transition: background-color 0.3s;
471 font-weight: $font-semibold;
474 background-color: #000;
479 @media screen and (max-width: 1600px) {
480 .video-bottom .video-info .video-attributes .video-attribute {
485 @media screen and (max-width: 1300px) {
490 .privacy-concerns-text {
496 @media screen and (max-width: 1100px) {
498 flex-direction: column;
499 justify-content: center;
501 my-video-watch-playlist ::ng-deep .playlist {
502 @include playlist-below-player;
507 flex-direction: column;
509 ::ng-deep .other-videos {
510 padding-left: 0 !important;
512 ::ng-deep .video-miniature {
520 @media screen and (max-width: 600px) {
522 margin: 20px 0 0 0 !important;
527 .video-info-first-row {
537 ::ng-deep .other-videos .video-miniature {
538 flex-direction: column;
550 @media screen and (max-width: 450px) {
552 .action-button .icon-text {
553 display: none !important;
556 .video-info .video-info-first-row {
561 .video-info-date-views {
565 .video-actions-rates {
570 .video-info-description {
571 font-size: 14px !important;