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)
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 my-subscribe-button {
191 @include disable-default-a-behaviour;
196 color: var(--mainForegroundColor);
207 @include avatar(18px);
209 margin: -2px 5px 0 0;
225 .video-actions-rates {
231 height: 40px; // Align with the title
235 .action-button:not(:first-child),
237 my-video-actions-dropdown {
242 @include peertube-button;
243 @include grey-button;
244 @include button-with-icon(21px, 0, -1px);
245 @include apply-svg-color($grey-foreground-color);
248 font-weight: $font-semibold;
249 display: inline-block;
250 padding: 0 10px 0 10px;
258 .action-button-dislike {
264 &.action-button-like.activated {
265 background-color: $green;
272 @include apply-svg-color(#fff);
276 &.action-button-dislike.activated {
277 background-color: $red;
284 @include apply-svg-color(#fff);
288 &.action-button-support {
289 color: var(--supportButtonColor);
290 background-color: var(--supportButtonBackgroundColor);
297 @include apply-svg-color(var(--supportButtonColor));
301 &.action-button-save {
314 .video-info-likes-dislikes-bar {
315 $likes-bar-height: 2px;
316 height: $likes-bar-height;
317 margin-top: -$likes-bar-height;
319 background-color: $red;
325 background-color: $green;
331 .video-info-description {
335 .video-info-description-html {
336 @include peertube-word-wrap;
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;
360 .video-attributes .video-attribute {
365 .video-attribute-label {
368 display: inline-block;
369 color: $grey-foreground-color;
370 font-weight: $font-bold;
373 a.video-attribute-value {
374 @include disable-default-a-behaviour;
375 color: var(--mainForegroundColor);
382 &.video-attribute-tags {
383 .video-attribute-value:not(:nth-child(2)) {
392 ::ng-deep .other-videos {
394 flex-basis: $other-videos-width;
395 min-width: $other-videos-width;
398 margin-top: 0 !important;
416 display: inline-block;
421 // If the view is not expanded, take into account the menu
423 width: calc(100% - #{$menu-width});
426 @media screen and (max-width: $small-view) {
428 margin-left: $menu-width - 15px; // Menu is absolute
432 :host-context(.expanded) {
448 justify-content: flex-start;
449 background-color: rgba(0, 0, 0, 0.9);
452 .privacy-concerns-text {
457 @include disable-default-a-behaviour;
459 color: var(--mainColor);
460 transition: color 0.3s;
467 .privacy-concerns-okay {
468 background-color: var(--mainColor);
469 padding: 5px 8px 5px 7px;
473 transition: background-color 0.3s;
474 font-weight: $font-semibold;
477 background-color: #000;
482 @media screen and (max-width: 1600px) {
483 .video-bottom .video-info .video-attributes .video-attribute {
488 @media screen and (max-width: 1300px) {
493 .privacy-concerns-text {
499 @media screen and (max-width: 1100px) {
501 flex-direction: column;
502 justify-content: center;
504 my-video-watch-playlist ::ng-deep .playlist {
505 @include playlist-below-player;
510 flex-direction: column;
512 ::ng-deep .other-videos {
513 padding-left: 0 !important;
515 ::ng-deep .video-miniature {
523 @media screen and (max-width: 600px) {
525 margin: 20px 0 0 0 !important;
530 .video-info-first-row {
540 ::ng-deep .other-videos .video-miniature {
541 flex-direction: column;
553 @media screen and (max-width: 450px) {
555 .action-button .icon-text {
556 display: none !important;
559 .video-info .video-info-first-row {
564 .video-info-date-views {
568 .video-actions-rates {
573 .video-info-description {
574 font-size: 14px !important;