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;
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 {
300 $likes-bar-height: 2px;
301 height: $likes-bar-height;
302 margin-top: -$likes-bar-height;
304 background-color: $red;
310 background-color: $green;
316 .video-info-description {
320 .video-info-description-html {
321 @include peertube-word-wrap;
324 .glyphicon, .description-loading {
328 .description-loading {
329 display: inline-block;
332 .video-info-description-more {
334 font-weight: $font-semibold;
335 color: $grey-foreground-color;
345 .video-attributes .video-attribute {
350 .video-attribute-label {
353 display: inline-block;
354 color: $grey-foreground-color;
355 font-weight: $font-bold;
358 a.video-attribute-value {
359 @include disable-default-a-behaviour;
360 color: var(--mainForegroundColor);
367 &.video-attribute-tags {
368 .video-attribute-value:not(:nth-child(2)) {
377 ::ng-deep .other-videos {
379 flex-basis: $other-videos-width;
380 min-width: $other-videos-width;
383 margin-top: 0 !important;
388 width: $other-videos-width;
401 display: inline-block;
406 // If the view is not expanded, take into account the menu
408 width: calc(100% - #{$menu-width});
411 @media screen and (max-width: $small-view) {
413 margin-left: $menu-width - 15px; // Menu is absolute
417 :host-context(.expanded) {
433 justify-content: flex-start;
434 background-color: rgba(0, 0, 0, 0.9);
437 .privacy-concerns-text {
442 @include disable-default-a-behaviour;
444 color: var(--mainColor);
445 transition: color 0.3s;
452 .privacy-concerns-okay {
453 background-color: var(--mainColor);
454 padding: 5px 8px 5px 7px;
458 transition: background-color 0.3s;
459 font-weight: $font-semibold;
462 background-color: #000;
467 @media screen and (max-width: 1600px) {
468 .video-bottom .video-info .video-attributes .video-attribute {
473 @media screen and (max-width: 1300px) {
478 .privacy-concerns-text {
484 @media screen and (max-width: 1100px) {
486 flex-direction: column;
487 justify-content: center;
489 my-video-watch-playlist ::ng-deep .playlist {
490 @include playlist-below-player;
495 flex-direction: column;
497 ::ng-deep .other-videos {
498 padding-left: 0 !important;
500 ::ng-deep .video-miniature {
508 @media screen and (max-width: 600px) {
510 margin: 20px 0 0 0 !important;
515 .video-info-first-row {
525 ::ng-deep .other-videos .video-miniature {
526 flex-direction: column;
538 @media screen and (max-width: 450px) {
540 .action-button .icon-text {
541 display: none !important;
544 .video-info .video-info-first-row {
549 .video-info-date-views {
553 .video-actions-rates {
558 .video-info-description {
559 font-size: 14px !important;