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;
60 justify-content: center;
67 flex-direction: column;
70 justify-content: center;
71 background-color: #141313;
76 @media screen and (max-width: 1000px) {
80 @media screen and (max-width: 600px) {
87 max-width: getPlayerWidth(66vh);
90 // VideoJS create an inner video player
93 position: relative !important;
97 @media screen and (max-width: 600px) {
101 height: getPlayerHeight(100vw)
111 .flex-direction-column {
112 flex-direction: column;
120 font-weight: $font-semibold;
130 // Set min width for flex item
134 .video-info-first-row {
137 & > div:first-child {
143 min-height: 40px; // Align with the action buttons
145 font-weight: $font-semibold;
149 .video-info-first-row-bottom {
151 grid-template-columns: 1fr auto;
156 .video-info-date-views {
163 .video-info-channel {
164 font-weight: $font-semibold;
168 @include disable-default-a-behaviour;
170 color: var(--mainForegroundColor);
177 @include avatar(18px);
179 margin: -2px 5px 0 0;
183 .video-info-channel-left {
186 .video-info-channel-left-links {
188 flex-direction: column;
199 my-subscribe-button {
209 .video-actions-rates {
215 height: 40px; // Align with the title
219 .action-button:not(:first-child),
221 my-video-actions-dropdown {
226 @include peertube-button;
227 @include grey-button;
228 @include button-with-icon(21px, 0, -1px);
229 @include apply-svg-color($grey-foreground-color);
232 font-weight: $font-semibold;
233 display: inline-block;
234 padding: 0 10px 0 10px;
242 .action-button-dislike {
248 &.action-button-like.activated {
249 background-color: $green;
256 @include apply-svg-color(#fff);
260 &.action-button-dislike.activated {
261 background-color: $red;
268 @include apply-svg-color(#fff);
272 &.action-button-support {
273 color: var(--supportButtonColor);
274 background-color: var(--supportButtonBackgroundColor);
281 @include apply-svg-color(var(--supportButtonColor));
285 &.action-button-save {
298 .video-info-likes-dislikes-bar {
299 $likes-bar-height: 2px;
300 height: $likes-bar-height;
301 margin-top: -$likes-bar-height;
303 background-color: $red;
309 background-color: $green;
315 .video-info-description {
317 margin-left: $video-info-margin-left;
320 .video-info-description-html {
321 @include peertube-word-wrap;
324 .glyphicon, .description-loading {
328 .description-loading {
329 display: inline-block;
332 .video-info-description-more {
334 font-weight: $font-semibold;
335 color: $grey-foreground-color;
346 margin-left: $video-info-margin-left;
349 .video-attributes .video-attribute {
354 .video-attribute-label {
357 display: inline-block;
358 color: $grey-foreground-color;
359 font-weight: $font-bold;
362 a.video-attribute-value {
363 @include disable-default-a-behaviour;
364 color: var(--mainForegroundColor);
371 &.video-attribute-tags {
372 .video-attribute-value:not(:nth-child(2)) {
381 ::ng-deep .other-videos {
385 margin: 0 !important;
403 display: inline-block;
408 // If the view is not expanded, take into account the menu
410 width: calc(100% - #{$menu-width});
413 @media screen and (max-width: $small-view) {
415 margin-left: $menu-width - 15px; // Menu is absolute
419 :host-context(.expanded) {
435 justify-content: flex-start;
436 background-color: rgba(0, 0, 0, 0.9);
439 .privacy-concerns-text {
444 @include disable-default-a-behaviour;
446 color: var(--mainColor);
447 transition: color 0.3s;
454 .privacy-concerns-okay {
455 background-color: var(--mainColor);
456 padding: 5px 8px 5px 7px;
460 transition: background-color 0.3s;
461 font-weight: $font-semibold;
464 background-color: #000;
469 @media screen and (max-width: 1600px) {
470 .video-bottom .video-info .video-attributes .video-attribute {
475 @media screen and (max-width: 1300px) {
480 .privacy-concerns-text {
486 @media screen and (max-width: 1100px) {
488 flex-direction: column;
489 justify-content: center;
491 my-video-watch-playlist ::ng-deep .playlist {
492 @include playlist-below-player;
497 flex-direction: column;
499 ::ng-deep .other-videos {
500 padding-left: 0 !important;
502 ::ng-deep .video-miniature {
510 @media screen and (max-width: 600px) {
512 margin: 20px 0 0 0 !important;
517 .video-info-first-row {
527 ::ng-deep .other-videos .video-miniature {
528 flex-direction: column;
540 @media screen and (max-width: 450px) {
542 .action-button .icon-text {
543 display: none !important;
546 .video-info .video-info-first-row {
551 .video-info-date-views {
555 .video-actions-rates {
560 .video-info-description {
561 font-size: 14px !important;