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 {
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-outer-container {
303 .video-info-likes-dislikes-bar-inner-container {
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 text-decoration: none;
338 .glyphicon, .description-loading {
342 .description-loading {
343 display: inline-block;
346 .video-info-description-more {
348 font-weight: $font-semibold;
349 color: $grey-foreground-color;
360 margin-left: $video-info-margin-left;
363 .video-attributes .video-attribute {
368 .video-attribute-label {
371 display: inline-block;
372 color: $grey-foreground-color;
373 font-weight: $font-bold;
376 a.video-attribute-value {
377 @include disable-default-a-behaviour;
378 color: var(--mainForegroundColor);
385 &.video-attribute-tags {
386 .video-attribute-value:not(:nth-child(2)) {
395 ::ng-deep .other-videos {
397 min-width: $video-miniature-width;
399 @media screen and (min-width: 1800px - (3* $video-miniature-width)) {
404 margin: 0 !important;
416 @media screen and (max-width: 1800px - (3* $video-miniature-width)) {
419 @media screen and (max-width: 500px) {
428 display: inline-block;
433 // If the view is not expanded, take into account the menu
435 width: calc(100% - #{$menu-width});
438 @media screen and (max-width: $small-view) {
440 margin-left: $menu-width - 15px; // Menu is absolute
444 :host-context(.expanded) {
460 justify-content: flex-start;
461 background-color: rgba(0, 0, 0, 0.9);
464 .privacy-concerns-text {
469 @include disable-default-a-behaviour;
471 color: var(--mainColor);
472 transition: color 0.3s;
479 .privacy-concerns-okay {
480 background-color: var(--mainColor);
481 padding: 5px 8px 5px 7px;
485 transition: background-color 0.3s;
486 font-weight: $font-semibold;
489 background-color: #000;
494 @media screen and (max-width: 1600px) {
495 .video-bottom .video-info .video-attributes .video-attribute {
500 @media screen and (max-width: 1300px) {
505 .privacy-concerns-text {
511 @media screen and (max-width: 1100px) {
513 flex-direction: column;
514 justify-content: center;
516 my-video-watch-playlist ::ng-deep .playlist {
517 @include playlist-below-player;
522 flex-direction: column;
524 ::ng-deep .other-videos {
525 padding-left: 0 !important;
527 ::ng-deep .video-miniature {
535 @media screen and (max-width: 600px) {
537 margin: 20px 0 0 0 !important;
542 .video-info-first-row {
552 ::ng-deep .other-videos .video-miniature {
553 flex-direction: column;
565 @media screen and (max-width: 450px) {
567 .action-button .icon-text {
568 display: none !important;
571 .video-info .video-info-first-row {
576 .video-info-date-views {
580 .video-actions-rates {
585 .video-info-description {
586 font-size: 14px !important;