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;
56 background-color: #000;
58 justify-content: center;
62 justify-content: center;
64 height: $video-height;
70 flex-direction: column;
73 justify-content: center;
74 background-color: #141313;
79 @media screen and (max-width: 1000px) {
83 @media screen and (max-width: 600px) {
90 max-width: getPlayerWidth(66vh);
91 height: $video-height;
93 // VideoJS create an inner video player
96 position: relative !important;
100 @media screen and (max-width: 600px) {
102 height: getPlayerHeight(100vw) !important;
106 ::ng-deep .video-js {
108 height: getPlayerHeight(100vw) !important;
118 .flex-direction-column {
119 flex-direction: column;
127 font-weight: $font-semibold;
137 // Set min width for flex item
141 .video-info-first-row {
150 min-height: 40px; // Align with the action buttons
152 font-weight: $font-semibold;
156 .video-info-first-row-bottom {
163 .video-info-date-views {
170 .video-info-channel {
171 font-weight: $font-semibold;
175 @include disable-default-a-behaviour;
177 color: pvar(--mainForegroundColor);
184 .video-info-channel-left {
187 .video-info-channel-left-links {
189 flex-direction: column;
194 font-weight: $font-regular;
204 my-subscribe-button {
209 .video-actions-rates {
216 height: 40px; // Align with the title
220 .action-button:not(:first-child),
222 my-video-actions-dropdown {
226 ::ng-deep.action-button {
227 @include peertube-button;
228 @include button-with-icon(21px, 0, -1px);
229 @include apply-svg-color(pvar(--actionButtonColor));
232 font-weight: $font-semibold;
233 display: inline-block;
236 background-color: transparent !important;
237 color: pvar(--actionButtonColor);
238 text-transform: uppercase;
248 &.action-button-like,
249 &.action-button-dislike {
250 filter: brightness(120%);
257 &.action-button-like.activated {
259 color: pvar(--activatedActionButtonColor);
263 @include apply-svg-color(pvar(--activatedActionButtonColor));
267 &.action-button-dislike.activated {
269 color: pvar(--activatedActionButtonColor);
273 @include apply-svg-color(pvar(--activatedActionButtonColor));
277 &.action-button-support {
278 color: pvar(--supportButtonColor);
281 @include apply-svg-color(pvar(--supportButtonColor));
285 &.action-button-support {
287 ::ng-deep path:first-child {
288 fill: pvar(--supportButtonHeartColor) !important;
293 &.action-button-save {
306 .video-info-likes-dislikes-bar-outer-container {
310 .video-info-likes-dislikes-bar-inner-container {
315 .video-info-likes-dislikes-bar {
316 $likes-bar-height: 2px;
317 height: $likes-bar-height;
318 margin-top: -$likes-bar-height;
320 background-color: #ccc;
326 background-color: #909090;
329 background-color: pvar(--activatedActionButtonColor);
336 .video-info-description {
338 margin-left: $video-info-margin-left;
341 .video-info-description-html {
342 @include peertube-word-wrap;
345 text-decoration: none;
350 .description-loading {
354 .description-loading {
355 display: inline-block;
358 .video-info-description-more {
360 font-weight: $font-semibold;
361 color: pvar(--greyForegroundColor);
372 margin-left: $video-info-margin-left;
375 .video-attributes .video-attribute {
380 .video-attribute-label {
383 display: inline-block;
384 color: pvar(--greyForegroundColor);
385 font-weight: $font-bold;
388 a.video-attribute-value {
389 @include disable-default-a-behaviour;
390 color: pvar(--mainForegroundColor);
397 &.video-attribute-tags {
398 .video-attribute-value:not(:nth-child(2)) {
408 my-recommended-videos {
415 display: inline-block;
420 // If the view is not expanded, take into account the menu
422 z-index: z(dropdown) + 1;
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) {
442 z-index: z(privacymsg);
449 justify-content: space-between;
450 background-color: rgba(0, 0, 0, 0.9);
453 .privacy-concerns-text {
458 @include disable-default-a-behaviour;
460 color: pvar(--mainColor);
461 transition: color 0.3s;
468 .privacy-concerns-button {
469 padding: 5px 8px 5px 7px;
474 transition: background-color 0.3s;
475 font-weight: $font-semibold;
478 background-color: #000;
482 .privacy-concerns-okay {
483 background-color: pvar(--mainColor);
488 @media screen and (max-width: 1600px) {
489 .video-bottom .video-info .video-attributes .video-attribute {
494 @media screen and (max-width: 1300px) {
499 .privacy-concerns-text {
505 // Use the same breakpoint than in the typescript component to display the other video miniatures as row
506 @media screen and (max-width: 1100px) {
508 flex-direction: column;
509 justify-content: center;
511 my-video-watch-playlist ::ng-deep .playlist {
512 @include playlist-below-player;
517 flex-direction: column;
520 my-recommended-videos {
525 @media screen and (max-width: 600px) {
527 margin-top: 20px !important;
528 padding-bottom: 20px !important;
533 .video-info-first-row {
548 @media screen and (max-width: 450px) {
550 .action-button .icon-text {
551 display: none !important;
554 .video-info .video-info-first-row {
559 .video-info-date-views {
563 .video-actions-rates {
568 .video-info-description {
569 font-size: 14px !important;
575 // Special case for iOS, that takes into account the width for fullscreens
576 #video-wrapper ::ng-deep .video-js.vjs-fullscreen {