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;
155 @include margin-right(30px);
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 {
170 @include margin-right(10px);
177 .video-info-channel {
178 font-weight: $font-semibold;
182 @include disable-default-a-behaviour;
183 @include peertube-word-wrap;
185 color: pvar(--mainForegroundColor);
192 .video-info-channel-left {
195 .video-info-channel-left-links {
197 flex-direction: column;
202 font-weight: $font-regular;
212 my-subscribe-button {
213 @include margin-left(5px);
217 .video-actions-rates {
218 @include margin-left(auto);
219 @include margin-right(0);
228 height: 40px; // Align with the title
232 .action-button:not(:first-child),
234 my-video-actions-dropdown {
235 @include margin-left(5px);
238 ::ng-deep.action-button {
239 @include peertube-button;
240 @include button-with-icon(21px, 0, -1px);
241 @include apply-svg-color(pvar(--actionButtonColor));
244 font-weight: $font-semibold;
245 display: inline-block;
248 background-color: transparent !important;
249 color: pvar(--actionButtonColor);
250 text-transform: uppercase;
260 &.action-button-like,
261 &.action-button-dislike {
262 filter: brightness(120%);
269 &.action-button-like.activated {
271 color: pvar(--activatedActionButtonColor);
275 @include apply-svg-color(pvar(--activatedActionButtonColor));
279 &.action-button-dislike.activated {
281 color: pvar(--activatedActionButtonColor);
285 @include apply-svg-color(pvar(--activatedActionButtonColor));
289 &.action-button-support {
290 color: pvar(--supportButtonColor);
293 @include apply-svg-color(pvar(--supportButtonColor));
297 &.action-button-support {
299 ::ng-deep path:first-child {
300 fill: pvar(--supportButtonHeartColor) !important;
305 &.action-button-save {
313 @include margin-left(3px);
318 .video-info-likes-dislikes-bar-outer-container {
322 .video-info-likes-dislikes-bar-inner-container {
327 .video-info-likes-dislikes-bar {
328 $likes-bar-height: 2px;
329 height: $likes-bar-height;
330 margin-top: -$likes-bar-height;
332 background-color: #ccc;
338 background-color: #909090;
341 background-color: pvar(--activatedActionButtonColor);
348 .video-info-description {
349 @include margin-left($video-info-margin-left);
350 @include margin-right(0);
356 .video-info-description-html {
357 @include peertube-word-wrap;
360 text-decoration: none;
365 .description-loading {
366 @include margin-left(3px);
369 .description-loading {
370 display: inline-block;
373 .video-info-description-more {
375 font-weight: $font-semibold;
376 color: pvar(--greyForegroundColor);
387 @include margin-left($video-info-margin-left);
390 .video-attributes .video-attribute {
395 .video-attribute-label {
396 @include padding-right(5px);
399 display: inline-block;
400 color: pvar(--greyForegroundColor);
401 font-weight: $font-bold;
404 a.video-attribute-value {
405 @include disable-default-a-behaviour;
406 color: pvar(--mainForegroundColor);
413 &.video-attribute-tags {
414 .video-attribute-value:not(:nth-child(2)) {
424 my-recommended-videos {
425 @include padding-left(15px);
432 display: inline-block;
437 // If the view is not expanded, take into account the menu
439 z-index: z(dropdown) + 1;
440 width: calc(100% - #{$menu-width});
443 @media screen and (max-width: $small-view) {
445 @include margin-left($menu-width - 15px); // Menu is absolute
449 :host-context(.expanded) {
451 @include margin-left(-15px);
460 z-index: z(privacymsg);
467 justify-content: space-between;
468 background-color: rgba(0, 0, 0, 0.9);
471 .privacy-concerns-text {
476 @include disable-default-a-behaviour;
478 color: pvar(--mainColor);
479 transition: color 0.3s;
486 .privacy-concerns-button {
487 @include margin-left(auto);
489 padding: 5px 8px 5px 7px;
493 transition: background-color 0.3s;
494 font-weight: $font-semibold;
497 background-color: #000;
501 .privacy-concerns-okay {
502 @include margin-left(10px);
504 background-color: pvar(--mainColor);
508 @media screen and (max-width: 1600px) {
509 .video-bottom .video-info .video-attributes .video-attribute {
514 @media screen and (max-width: 1300px) {
519 .privacy-concerns-text {
525 // Use the same breakpoint than in the typescript component to display the other video miniatures as row
526 @media screen and (max-width: 1100px) {
528 flex-direction: column;
529 justify-content: center;
531 my-video-watch-playlist ::ng-deep .playlist {
532 @include playlist-below-player;
537 flex-direction: column;
540 my-recommended-videos {
541 @include padding-left(0);
545 @media screen and (max-width: 600px) {
547 margin-top: 20px !important;
548 padding-bottom: 20px !important;
553 .video-info-first-row {
568 @media screen and (max-width: 450px) {
570 .action-button .icon-text {
571 display: none !important;
574 .video-info .video-info-first-row {
579 .video-info-date-views {
583 .video-actions-rates {
588 .video-info-description {
589 font-size: 14px !important;
595 // Special case for iOS, that takes into account the width for fullscreens
596 #video-wrapper ::ng-deep .video-js.vjs-fullscreen {