3 @import '_bootstrap-variables';
6 $other-videos-width: 260px;
7 $player-factor: 1.7; // 16/9
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)
116 font-weight: $font-semibold;
126 // Set min width for flex item
130 .video-info-first-row {
133 & > div:first-child {
139 min-height: 40px; // Align with the action buttons
141 font-weight: $font-semibold;
145 .video-info-date-views {
152 .video-info-channel {
153 font-weight: $font-semibold;
157 @include disable-default-a-behaviour;
159 color: var(--mainForegroundColor);
166 @include avatar(18px);
168 margin: -2px 2px 0 5px;
172 my-subscribe-button {
180 @include disable-default-a-behaviour;
185 color: var(--mainForegroundColor);
192 @include avatar(18px);
211 .video-actions-rates {
212 margin: 20px 0 10px 0;
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;
242 &.action-button-like.activated {
243 background-color: $green;
246 @include apply-svg-color(#fff);
250 &.action-button-dislike.activated {
251 background-color: $red;
254 @include apply-svg-color(#fff);
258 &.action-button-support {
259 color: var(--supportButtonColor);
260 background-color: var(--supportButtonBackgroundColor);
267 @include apply-svg-color(var(--supportButtonColor));
271 &.action-button-save {
284 .video-info-likes-dislikes-bar {
285 $likes-bar-height: 2px;
286 height: $likes-bar-height;
287 margin-top: -$likes-bar-height;
289 background-color: $red;
295 background-color: $green;
301 .video-info-description {
305 .video-info-description-html {
306 @include peertube-word-wrap;
309 .glyphicon, .description-loading {
313 .description-loading {
314 display: inline-block;
317 .video-info-description-more {
319 font-weight: $font-semibold;
320 color: $grey-foreground-color;
330 .video-attributes .video-attribute {
335 .video-attribute-label {
338 display: inline-block;
339 color: $grey-foreground-color;
340 font-weight: $font-bold;
343 a.video-attribute-value {
344 @include disable-default-a-behaviour;
345 color: var(--mainForegroundColor);
352 &.video-attribute-tags {
353 .video-attribute-value:not(:nth-child(2)) {
362 ::ng-deep .other-videos {
364 flex-basis: $other-videos-width;
365 min-width: $other-videos-width;
368 margin-top: 0 !important;
373 width: $other-videos-width;
386 display: inline-block;
391 // If the view is not expanded, take into account the menu
393 width: calc(100% - #{$menu-width});
396 @media screen and (max-width: $small-view) {
398 margin-left: $menu-width - 15px; // Menu is absolute
402 :host-context(.expanded) {
418 justify-content: flex-start;
419 background-color: rgba(0, 0, 0, 0.9);
422 .privacy-concerns-text {
427 @include disable-default-a-behaviour;
429 color: var(--mainColor);
430 transition: color 0.3s;
437 .privacy-concerns-okay {
438 background-color: var(--mainColor);
439 padding: 5px 8px 5px 7px;
443 transition: background-color 0.3s;
444 font-weight: $font-semibold;
447 background-color: #000;
452 @media screen and (max-width: 1600px) {
453 .video-bottom .video-info .video-attributes .video-attribute {
458 @media screen and (max-width: 1300px) {
463 .privacy-concerns-text {
469 @media screen and (max-width: 1100px) {
471 flex-direction: column;
472 justify-content: center;
474 my-video-watch-playlist ::ng-deep .playlist {
475 @include playlist-below-player;
480 flex-direction: column;
482 ::ng-deep .other-videos {
483 padding-left: 0 !important;
485 ::ng-deep .video-miniature {
493 @media screen and (max-width: 600px) {
495 margin: 20px 0 0 0 !important;
500 .video-info-first-row {
510 ::ng-deep .other-videos .video-miniature {
511 flex-direction: column;
523 @media screen and (max-width: 450px) {
525 .action-button .icon-text {
526 display: none !important;
529 .video-info .video-info-first-row {
534 .video-info-date-views {
538 .video-actions-rates {
543 .video-info-description {
544 font-size: 14px !important;