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;
30 $height: calc(100vh - #{$header-height} - #{$theater-bottom-space});
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 {
144 & > div:first-child {
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 @include avatar(18px);
186 margin: -2px 5px 0 0;
190 .video-info-channel-left {
193 .video-info-channel-left-links {
195 flex-direction: column;
210 my-subscribe-button {
220 .video-actions-rates {
227 height: 40px; // Align with the title
231 .action-button:not(:first-child),
233 my-video-actions-dropdown {
237 ::ng-deep.action-button {
238 @include peertube-button;
239 @include button-with-icon(21px, 0, -1px);
240 @include apply-svg-color(pvar(--actionButtonColor));
243 font-weight: $font-semibold;
244 display: inline-block;
245 padding: 0 10px 0 10px;
247 background-color: transparent !important;
248 color: pvar(--actionButtonColor);
249 text-transform: uppercase;
259 &.action-button-like,
260 &.action-button-dislike {
261 filter: brightness(120%);
268 &.action-button-like.activated {
270 color: pvar(--activatedActionButtonColor);
274 @include apply-svg-color(pvar(--activatedActionButtonColor));
278 &.action-button-dislike.activated {
280 color: pvar(--activatedActionButtonColor);
284 @include apply-svg-color(pvar(--activatedActionButtonColor));
288 &.action-button-support {
289 color: pvar(--supportButtonColor);
292 @include apply-svg-color(pvar(--supportButtonColor));
296 &.action-button-support {
298 ::ng-deep path:first-child {
299 fill: pvar(--supportButtonHeartColor) !important;
304 &.action-button-save {
317 .video-info-likes-dislikes-bar-outer-container {
321 .video-info-likes-dislikes-bar-inner-container {
326 .video-info-likes-dislikes-bar {
327 $likes-bar-height: 2px;
328 height: $likes-bar-height;
329 margin-top: -$likes-bar-height;
331 background-color: #ccc;
337 background-color: #909090;
340 background-color: pvar(--activatedActionButtonColor);
347 .video-info-description {
349 margin-left: $video-info-margin-left;
352 .video-info-description-html {
353 @include peertube-word-wrap;
356 text-decoration: none;
360 .glyphicon, .description-loading {
364 .description-loading {
365 display: inline-block;
368 .video-info-description-more {
370 font-weight: $font-semibold;
371 color: pvar(--greyForegroundColor);
382 margin-left: $video-info-margin-left;
385 .video-attributes .video-attribute {
390 .video-attribute-label {
393 display: inline-block;
394 color: pvar(--greyForegroundColor);
395 font-weight: $font-bold;
398 a.video-attribute-value {
399 @include disable-default-a-behaviour;
400 color: pvar(--mainForegroundColor);
407 &.video-attribute-tags {
408 .video-attribute-value:not(:nth-child(2)) {
417 ::ng-deep .other-videos {
419 min-width: $video-miniature-width;
421 @media screen and (min-width: 1800px - (3* $video-miniature-width)) {
426 margin: 0 !important;
433 padding-bottom: 20px;
438 @media screen and (max-width: 1800px - (3* $video-miniature-width)) {
441 @media screen and (max-width: 500px) {
450 display: inline-block;
455 // If the view is not expanded, take into account the menu
457 z-index: z(dropdown) + 1;
458 width: calc(100% - #{$menu-width});
461 @media screen and (max-width: $small-view) {
463 margin-left: $menu-width - 15px; // Menu is absolute
467 :host-context(.expanded) {
477 z-index: z(privacymsg);
484 justify-content: space-between;
485 background-color: rgba(0, 0, 0, 0.9);
488 .privacy-concerns-text {
493 @include disable-default-a-behaviour;
495 color: pvar(--mainColor);
496 transition: color 0.3s;
503 .privacy-concerns-button {
504 padding: 5px 8px 5px 7px;
509 transition: background-color 0.3s;
510 font-weight: $font-semibold;
513 background-color: #000;
517 .privacy-concerns-okay {
518 background-color: pvar(--mainColor);
523 @media screen and (max-width: 1600px) {
524 .video-bottom .video-info .video-attributes .video-attribute {
529 @media screen and (max-width: 1300px) {
534 .privacy-concerns-text {
540 @media screen and (max-width: 1100px) {
542 flex-direction: column;
543 justify-content: center;
545 my-video-watch-playlist ::ng-deep .playlist {
546 @include playlist-below-player;
551 flex-direction: column;
553 ::ng-deep .other-videos {
554 padding-left: 0 !important;
556 ::ng-deep .video-miniature {
564 @media screen and (max-width: 600px) {
566 margin-top: 20px !important;
567 padding-bottom: 20px !important;
572 .video-info-first-row {
582 ::ng-deep .other-videos .video-miniature {
583 flex-direction: column;
591 @media screen and (max-width: 450px) {
593 .action-button .icon-text {
594 display: none !important;
597 .video-info .video-info-first-row {
602 .video-info-date-views {
606 .video-actions-rates {
611 .video-info-description {
612 font-size: 14px !important;
618 // Special case for iOS, that takes into account the width for fullscreens
619 #video-wrapper ::ng-deep .video-js.vjs-fullscreen {