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;
36 $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 ::ng-deep .video-js {
104 height: getPlayerHeight(100vw)
114 .flex-direction-column {
115 flex-direction: column;
123 font-weight: $font-semibold;
133 // Set min width for flex item
137 .video-info-first-row {
140 & > div:first-child {
146 min-height: 40px; // Align with the action buttons
148 font-weight: $font-semibold;
152 .video-info-first-row-bottom {
159 .video-info-date-views {
166 .video-info-channel {
167 font-weight: $font-semibold;
171 @include disable-default-a-behaviour;
173 color: pvar(--mainForegroundColor);
180 @include avatar(18px);
182 margin: -2px 5px 0 0;
186 .video-info-channel-left {
189 .video-info-channel-left-links {
191 flex-direction: column;
206 my-subscribe-button {
216 .video-actions-rates {
223 height: 40px; // Align with the title
227 .action-button:not(:first-child),
229 my-video-actions-dropdown {
233 ::ng-deep.action-button {
234 @include peertube-button;
235 @include button-with-icon(21px, 0, -1px);
236 @include apply-svg-color(pvar(--actionButtonColor));
239 font-weight: $font-semibold;
240 display: inline-block;
241 padding: 0 10px 0 10px;
243 background-color: transparent !important;
244 color: pvar(--actionButtonColor);
245 text-transform: uppercase;
255 &.action-button-like,
256 &.action-button-dislike {
257 filter: brightness(120%);
264 &.action-button-like.activated {
266 color: pvar(--activatedActionButtonColor);
270 @include apply-svg-color(pvar(--activatedActionButtonColor));
274 &.action-button-dislike.activated {
276 color: pvar(--activatedActionButtonColor);
280 @include apply-svg-color(pvar(--activatedActionButtonColor));
284 &.action-button-support {
285 color: pvar(--supportButtonColor);
288 @include apply-svg-color(pvar(--supportButtonColor));
292 &.action-button-support {
294 ::ng-deep path:first-child {
295 fill: pvar(--supportButtonHeartColor) !important;
300 &.action-button-save {
313 .video-info-likes-dislikes-bar-outer-container {
317 .video-info-likes-dislikes-bar-inner-container {
322 .video-info-likes-dislikes-bar {
323 $likes-bar-height: 2px;
324 height: $likes-bar-height;
325 margin-top: -$likes-bar-height;
327 background-color: #ccc;
333 background-color: #909090;
336 background-color: pvar(--activatedActionButtonColor);
343 .video-info-description {
345 margin-left: $video-info-margin-left;
348 .video-info-description-html {
349 @include peertube-word-wrap;
352 text-decoration: none;
356 .glyphicon, .description-loading {
360 .description-loading {
361 display: inline-block;
364 .video-info-description-more {
366 font-weight: $font-semibold;
367 color: pvar(--greyForegroundColor);
378 margin-left: $video-info-margin-left;
381 .video-attributes .video-attribute {
386 .video-attribute-label {
389 display: inline-block;
390 color: pvar(--greyForegroundColor);
391 font-weight: $font-bold;
394 a.video-attribute-value {
395 @include disable-default-a-behaviour;
396 color: pvar(--mainForegroundColor);
403 &.video-attribute-tags {
404 .video-attribute-value:not(:nth-child(2)) {
413 ::ng-deep .other-videos {
415 min-width: $video-miniature-width;
417 @media screen and (min-width: 1800px - (3* $video-miniature-width)) {
422 margin: 0 !important;
429 padding-bottom: 20px;
434 @media screen and (max-width: 1800px - (3* $video-miniature-width)) {
437 @media screen and (max-width: 500px) {
446 display: inline-block;
451 // If the view is not expanded, take into account the menu
453 z-index: z(dropdown) + 1;
454 width: calc(100% - #{$menu-width});
457 @media screen and (max-width: $small-view) {
459 margin-left: $menu-width - 15px; // Menu is absolute
463 :host-context(.expanded) {
473 z-index: z(privacymsg);
480 justify-content: space-between;
481 background-color: rgba(0, 0, 0, 0.9);
484 .privacy-concerns-text {
489 @include disable-default-a-behaviour;
491 color: pvar(--mainColor);
492 transition: color 0.3s;
499 .privacy-concerns-button {
500 padding: 5px 8px 5px 7px;
505 transition: background-color 0.3s;
506 font-weight: $font-semibold;
509 background-color: #000;
513 .privacy-concerns-okay {
514 background-color: pvar(--mainColor);
519 @media screen and (max-width: 1600px) {
520 .video-bottom .video-info .video-attributes .video-attribute {
525 @media screen and (max-width: 1300px) {
530 .privacy-concerns-text {
536 @media screen and (max-width: 1100px) {
538 flex-direction: column;
539 justify-content: center;
541 my-video-watch-playlist ::ng-deep .playlist {
542 @include playlist-below-player;
547 flex-direction: column;
549 ::ng-deep .other-videos {
550 padding-left: 0 !important;
552 ::ng-deep .video-miniature {
560 @media screen and (max-width: 600px) {
562 margin-top: 20px !important;
563 padding-bottom: 20px !important;
568 .video-info-first-row {
578 ::ng-deep .other-videos .video-miniature {
579 flex-direction: column;
587 @media screen and (max-width: 450px) {
589 .action-button .icon-text {
590 display: none !important;
593 .video-info .video-info-first-row {
598 .video-info-date-views {
602 .video-actions-rates {
607 .video-info-description {
608 font-size: 14px !important;
614 // Special case for iOS, that takes into account the width for fullscreens
615 #video-wrapper ::ng-deep .video-js.vjs-fullscreen {