3 @import '_bootstrap-variables';
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 $height: calc(100vh - #{$header-height} - #{$theater-bottom-space});
29 flex-direction: column;
30 justify-content: center;
43 my-video-watch-playlist ::ng-deep .playlist {
44 @include playlist-below-player;
50 font-weight: $font-semibold;
60 background-color: #000;
62 justify-content: center;
66 justify-content: center;
68 height: $video-height;
74 flex-direction: column;
77 justify-content: center;
78 background-color: #141313;
83 @media screen and (max-width: 1000px) {
87 @media screen and (max-width: 600px) {
94 max-width: getPlayerWidth(66vh);
95 height: $video-height;
97 // VideoJS create an inner video player
100 position: relative !important;
104 @media screen and (max-width: 600px) {
106 height: getPlayerHeight(100vw) !important;
110 ::ng-deep .video-js {
112 height: getPlayerHeight(100vw) !important;
122 .flex-direction-column {
123 flex-direction: column;
131 font-weight: $font-semibold;
141 // Set min width for flex item
145 .video-info-first-row {
153 @include peertube-word-wrap;
156 min-height: 40px; // Align with the action buttons
158 font-weight: $font-semibold;
162 .video-info-first-row-bottom {
169 .video-info-date-views {
176 .video-info-channel {
177 font-weight: $font-semibold;
181 @include disable-default-a-behaviour;
182 @include peertube-word-wrap;
184 color: pvar(--mainForegroundColor);
191 .video-info-channel-left {
194 .video-info-channel-left-links {
196 flex-direction: column;
201 font-weight: $font-regular;
211 my-subscribe-button {
216 .video-actions-rates {
223 height: 40px; // Align with the title
227 .action-button:not(:first-child),
229 my-video-actions-dropdown {
233 ::ng-deep.action-button {
234 @include peertube-button;
235 @include button-with-icon(21px, 0, -1px);
236 @include apply-svg-color(pvar(--actionButtonColor));
239 font-weight: $font-semibold;
240 display: inline-block;
243 background-color: transparent !important;
244 color: pvar(--actionButtonColor);
245 text-transform: uppercase;
255 &.action-button-like,
256 &.action-button-dislike {
257 filter: brightness(120%);
264 &.action-button-like.activated {
266 color: pvar(--activatedActionButtonColor);
270 @include apply-svg-color(pvar(--activatedActionButtonColor));
274 &.action-button-dislike.activated {
276 color: pvar(--activatedActionButtonColor);
280 @include apply-svg-color(pvar(--activatedActionButtonColor));
284 &.action-button-support {
285 color: pvar(--supportButtonColor);
288 @include apply-svg-color(pvar(--supportButtonColor));
292 &.action-button-support {
294 ::ng-deep path:first-child {
295 fill: pvar(--supportButtonHeartColor) !important;
300 &.action-button-save {
313 .video-info-likes-dislikes-bar-outer-container {
317 .video-info-likes-dislikes-bar-inner-container {
322 .video-info-likes-dislikes-bar {
323 $likes-bar-height: 2px;
324 height: $likes-bar-height;
325 margin-top: -$likes-bar-height;
327 background-color: #ccc;
333 background-color: #909090;
336 background-color: pvar(--activatedActionButtonColor);
343 .video-info-description {
345 margin-left: $video-info-margin-left;
348 .video-info-description-html {
349 @include peertube-word-wrap;
352 text-decoration: none;
357 .description-loading {
361 .description-loading {
362 display: inline-block;
365 .video-info-description-more {
367 font-weight: $font-semibold;
368 color: pvar(--greyForegroundColor);
379 margin-left: $video-info-margin-left;
382 .video-attributes .video-attribute {
387 .video-attribute-label {
390 display: inline-block;
391 color: pvar(--greyForegroundColor);
392 font-weight: $font-bold;
395 a.video-attribute-value {
396 @include disable-default-a-behaviour;
397 color: pvar(--mainForegroundColor);
404 &.video-attribute-tags {
405 .video-attribute-value:not(:nth-child(2)) {
415 my-recommended-videos {
422 display: inline-block;
427 // If the view is not expanded, take into account the menu
429 z-index: z(dropdown) + 1;
430 width: calc(100% - #{$menu-width});
433 @media screen and (max-width: $small-view) {
435 margin-left: $menu-width - 15px; // Menu is absolute
439 :host-context(.expanded) {
449 z-index: z(privacymsg);
456 justify-content: space-between;
457 background-color: rgba(0, 0, 0, 0.9);
460 .privacy-concerns-text {
465 @include disable-default-a-behaviour;
467 color: pvar(--mainColor);
468 transition: color 0.3s;
475 .privacy-concerns-button {
476 padding: 5px 8px 5px 7px;
481 transition: background-color 0.3s;
482 font-weight: $font-semibold;
485 background-color: #000;
489 .privacy-concerns-okay {
490 background-color: pvar(--mainColor);
495 @media screen and (max-width: 1600px) {
496 .video-bottom .video-info .video-attributes .video-attribute {
501 @media screen and (max-width: 1300px) {
506 .privacy-concerns-text {
512 // Use the same breakpoint than in the typescript component to display the other video miniatures as row
513 @media screen and (max-width: 1100px) {
515 flex-direction: column;
516 justify-content: center;
518 my-video-watch-playlist ::ng-deep .playlist {
519 @include playlist-below-player;
524 flex-direction: column;
527 my-recommended-videos {
532 @media screen and (max-width: 600px) {
534 margin-top: 20px !important;
535 padding-bottom: 20px !important;
540 .video-info-first-row {
555 @media screen and (max-width: 450px) {
557 .action-button .icon-text {
558 display: none !important;
561 .video-info .video-info-first-row {
566 .video-info-date-views {
570 .video-actions-rates {
575 .video-info-description {
576 font-size: 14px !important;
582 // Special case for iOS, that takes into account the width for fullscreens
583 #video-wrapper ::ng-deep .video-js.vjs-fullscreen {