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 {
149 @include peertube-word-wrap;
152 min-height: 40px; // Align with the action buttons
154 font-weight: $font-semibold;
158 .video-info-first-row-bottom {
165 .video-info-date-views {
172 .video-info-channel {
173 font-weight: $font-semibold;
177 @include disable-default-a-behaviour;
178 @include peertube-word-wrap;
180 color: pvar(--mainForegroundColor);
187 .video-info-channel-left {
190 .video-info-channel-left-links {
192 flex-direction: column;
197 font-weight: $font-regular;
207 my-subscribe-button {
212 .video-actions-rates {
219 height: 40px; // Align with the title
223 .action-button:not(:first-child),
225 my-video-actions-dropdown {
229 ::ng-deep.action-button {
230 @include peertube-button;
231 @include button-with-icon(21px, 0, -1px);
232 @include apply-svg-color(pvar(--actionButtonColor));
235 font-weight: $font-semibold;
236 display: inline-block;
239 background-color: transparent !important;
240 color: pvar(--actionButtonColor);
241 text-transform: uppercase;
251 &.action-button-like,
252 &.action-button-dislike {
253 filter: brightness(120%);
260 &.action-button-like.activated {
262 color: pvar(--activatedActionButtonColor);
266 @include apply-svg-color(pvar(--activatedActionButtonColor));
270 &.action-button-dislike.activated {
272 color: pvar(--activatedActionButtonColor);
276 @include apply-svg-color(pvar(--activatedActionButtonColor));
280 &.action-button-support {
281 color: pvar(--supportButtonColor);
284 @include apply-svg-color(pvar(--supportButtonColor));
288 &.action-button-support {
290 ::ng-deep path:first-child {
291 fill: pvar(--supportButtonHeartColor) !important;
296 &.action-button-save {
309 .video-info-likes-dislikes-bar-outer-container {
313 .video-info-likes-dislikes-bar-inner-container {
318 .video-info-likes-dislikes-bar {
319 $likes-bar-height: 2px;
320 height: $likes-bar-height;
321 margin-top: -$likes-bar-height;
323 background-color: #ccc;
329 background-color: #909090;
332 background-color: pvar(--activatedActionButtonColor);
339 .video-info-description {
341 margin-left: $video-info-margin-left;
344 .video-info-description-html {
345 @include peertube-word-wrap;
348 text-decoration: none;
353 .description-loading {
357 .description-loading {
358 display: inline-block;
361 .video-info-description-more {
363 font-weight: $font-semibold;
364 color: pvar(--greyForegroundColor);
375 margin-left: $video-info-margin-left;
378 .video-attributes .video-attribute {
383 .video-attribute-label {
386 display: inline-block;
387 color: pvar(--greyForegroundColor);
388 font-weight: $font-bold;
391 a.video-attribute-value {
392 @include disable-default-a-behaviour;
393 color: pvar(--mainForegroundColor);
400 &.video-attribute-tags {
401 .video-attribute-value:not(:nth-child(2)) {
411 my-recommended-videos {
418 display: inline-block;
423 // If the view is not expanded, take into account the menu
425 z-index: z(dropdown) + 1;
426 width: calc(100% - #{$menu-width});
429 @media screen and (max-width: $small-view) {
431 margin-left: $menu-width - 15px; // Menu is absolute
435 :host-context(.expanded) {
445 z-index: z(privacymsg);
452 justify-content: space-between;
453 background-color: rgba(0, 0, 0, 0.9);
456 .privacy-concerns-text {
461 @include disable-default-a-behaviour;
463 color: pvar(--mainColor);
464 transition: color 0.3s;
471 .privacy-concerns-button {
472 padding: 5px 8px 5px 7px;
477 transition: background-color 0.3s;
478 font-weight: $font-semibold;
481 background-color: #000;
485 .privacy-concerns-okay {
486 background-color: pvar(--mainColor);
491 @media screen and (max-width: 1600px) {
492 .video-bottom .video-info .video-attributes .video-attribute {
497 @media screen and (max-width: 1300px) {
502 .privacy-concerns-text {
508 // Use the same breakpoint than in the typescript component to display the other video miniatures as row
509 @media screen and (max-width: 1100px) {
511 flex-direction: column;
512 justify-content: center;
514 my-video-watch-playlist ::ng-deep .playlist {
515 @include playlist-below-player;
520 flex-direction: column;
523 my-recommended-videos {
528 @media screen and (max-width: 600px) {
530 margin-top: 20px !important;
531 padding-bottom: 20px !important;
536 .video-info-first-row {
551 @media screen and (max-width: 450px) {
553 .action-button .icon-text {
554 display: none !important;
557 .video-info .video-info-first-row {
562 .video-info-date-views {
566 .video-actions-rates {
571 .video-info-description {
572 font-size: 14px !important;
578 // Special case for iOS, that takes into account the width for fullscreens
579 #video-wrapper ::ng-deep .video-js.vjs-fullscreen {