3 @import '_bootstrap-variables';
6 $player-factor: 1.7; // 16/9
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 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;
59 justify-content: center;
66 flex-direction: column;
69 justify-content: center;
70 background-color: #141313;
75 @media screen and (max-width: 1000px) {
79 @media screen and (max-width: 600px) {
86 max-width: getPlayerWidth(66vh);
89 // VideoJS create an inner video player
92 position: relative !important;
96 @media screen and (max-width: 600px) {
100 height: getPlayerHeight(100vw)
110 .flex-direction-column {
111 flex-direction: column;
119 font-weight: $font-semibold;
129 // Set min width for flex item
133 .video-info-first-row {
136 & > div:first-child {
142 min-height: 40px; // Align with the action buttons
144 font-weight: $font-semibold;
148 .video-info-first-row-bottom {
155 .video-info-date-views {
162 .video-info-channel {
163 font-weight: $font-semibold;
167 @include disable-default-a-behaviour;
169 color: var(--mainForegroundColor);
176 @include avatar(18px);
178 margin: -2px 5px 0 0;
182 .video-info-channel-left {
185 .video-info-channel-left-links {
187 flex-direction: column;
198 my-subscribe-button {
208 .video-actions-rates {
215 height: 40px; // Align with the title
219 .action-button:not(:first-child),
221 my-video-actions-dropdown {
225 ::ng-deep.action-button {
226 @include peertube-button;
227 @include button-with-icon(21px, 0, -1px);
228 @include apply-svg-color(var(--actionButtonColor));
231 font-weight: $font-semibold;
232 display: inline-block;
233 padding: 0 10px 0 10px;
235 background-color: transparent !important;
236 color: var(--actionButtonColor);
237 text-transform: uppercase;
247 &.action-button-like,
248 &.action-button-dislike {
249 filter: brightness(120%);
256 &.action-button-like.activated {
258 color: $activated-action-button-color;
262 @include apply-svg-color($activated-action-button-color);
266 &.action-button-dislike.activated {
268 color: $activated-action-button-color;
272 @include apply-svg-color($activated-action-button-color);
276 &.action-button-support {
277 color: var(--supportButtonColor);
280 @include apply-svg-color(var(--supportButtonColor));
284 &.action-button-support {
286 ::ng-deep path:first-child {
287 fill: var(--supportButtonHeartColor) !important;
292 &.action-button-save {
305 .video-info-likes-dislikes-bar-outer-container {
309 .video-info-likes-dislikes-bar-inner-container {
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: #ccc;
325 background-color: #909090;
328 background-color: $activated-action-button-color;
335 .video-info-description {
337 margin-left: $video-info-margin-left;
340 .video-info-description-html {
341 @include peertube-word-wrap;
344 text-decoration: none;
348 .glyphicon, .description-loading {
352 .description-loading {
353 display: inline-block;
356 .video-info-description-more {
358 font-weight: $font-semibold;
359 color: $grey-foreground-color;
370 margin-left: $video-info-margin-left;
373 .video-attributes .video-attribute {
378 .video-attribute-label {
381 display: inline-block;
382 color: $grey-foreground-color;
383 font-weight: $font-bold;
386 a.video-attribute-value {
387 @include disable-default-a-behaviour;
388 color: var(--mainForegroundColor);
395 &.video-attribute-tags {
396 .video-attribute-value:not(:nth-child(2)) {
405 ::ng-deep .other-videos {
407 min-width: $video-miniature-width;
409 @media screen and (min-width: 1800px - (3* $video-miniature-width)) {
414 margin: 0 !important;
426 @media screen and (max-width: 1800px - (3* $video-miniature-width)) {
429 @media screen and (max-width: 500px) {
438 display: inline-block;
443 // If the view is not expanded, take into account the menu
445 z-index: z(dropdown) + 1;
446 width: calc(100% - #{$menu-width});
449 @media screen and (max-width: $small-view) {
451 margin-left: $menu-width - 15px; // Menu is absolute
455 :host-context(.expanded) {
465 z-index: z(privacymsg);
472 justify-content: space-between;
473 background-color: rgba(0, 0, 0, 0.9);
476 .privacy-concerns-text {
481 @include disable-default-a-behaviour;
483 color: var(--mainColor);
484 transition: color 0.3s;
491 .privacy-concerns-button {
492 padding: 5px 8px 5px 7px;
497 transition: background-color 0.3s;
498 font-weight: $font-semibold;
501 background-color: #000;
505 .privacy-concerns-okay {
506 background-color: var(--mainColor);
511 @media screen and (max-width: 1600px) {
512 .video-bottom .video-info .video-attributes .video-attribute {
517 @media screen and (max-width: 1300px) {
522 .privacy-concerns-text {
528 @media screen and (max-width: 1100px) {
530 flex-direction: column;
531 justify-content: center;
533 my-video-watch-playlist ::ng-deep .playlist {
534 @include playlist-below-player;
539 flex-direction: column;
541 ::ng-deep .other-videos {
542 padding-left: 0 !important;
544 ::ng-deep .video-miniature {
552 @media screen and (max-width: 600px) {
554 margin: 20px 0 0 0 !important;
559 .video-info-first-row {
569 ::ng-deep .other-videos .video-miniature {
570 flex-direction: column;
582 @media screen and (max-width: 450px) {
584 .action-button .icon-text {
585 display: none !important;
588 .video-info .video-info-first-row {
593 .video-info-date-views {
597 .video-actions-rates {
602 .video-info-description {
603 font-size: 14px !important;