3 @import '_bootstrap-variables';
6 $other-videos-width: 260px;
7 $player-factor: 1.7; // 16/9
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)
116 font-weight: $font-semibold;
126 // Set min width for flex item
130 .video-info-first-row {
133 & > div:first-child {
139 min-height: 40px; // Align with the action buttons
141 font-weight: $font-semibold;
145 .video-info-date-views {
152 .video-info-channel {
153 font-weight: $font-semibold;
157 @include disable-default-a-behaviour;
159 color: var(--mainForegroundColor);
166 @include avatar(18px);
168 margin: -2px 2px 0 5px;
172 my-subscribe-button {
180 @include disable-default-a-behaviour;
185 color: var(--mainForegroundColor);
192 @include avatar(18px);
211 .video-actions-rates {
212 margin: 20px 0 10px 0;
216 height: 40px; // Align with the title
220 .action-button:not(:first-child),
222 my-video-actions-dropdown {
227 @include peertube-button;
228 @include grey-button;
229 @include button-with-icon(21px, 0, -1px);
230 @include apply-svg-color($grey-foreground-color);
233 font-weight: $font-semibold;
234 display: inline-block;
235 padding: 0 10px 0 10px;
242 &.action-button-like.activated {
243 background-color: $green;
246 @include apply-svg-color(#fff);
250 &.action-button-dislike.activated {
251 background-color: $red;
254 @include apply-svg-color(#fff);
258 &.action-button-save {
271 .video-info-likes-dislikes-bar {
272 $likes-bar-height: 2px;
273 height: $likes-bar-height;
274 margin-top: -$likes-bar-height;
276 background-color: $red;
282 background-color: $green;
288 .video-info-description {
292 .video-info-description-html {
293 @include peertube-word-wrap;
296 .glyphicon, .description-loading {
300 .description-loading {
301 display: inline-block;
304 .video-info-description-more {
306 font-weight: $font-semibold;
307 color: $grey-foreground-color;
317 .video-attributes .video-attribute {
322 .video-attribute-label {
325 display: inline-block;
326 color: $grey-foreground-color;
327 font-weight: $font-bold;
330 a.video-attribute-value {
331 @include disable-default-a-behaviour;
332 color: var(--mainForegroundColor);
339 &.video-attribute-tags {
340 .video-attribute-value:not(:nth-child(2)) {
349 ::ng-deep .other-videos {
351 flex-basis: $other-videos-width;
352 min-width: $other-videos-width;
355 margin-top: 0 !important;
360 width: $other-videos-width;
373 display: inline-block;
378 // If the view is not expanded, take into account the menu
380 width: calc(100% - #{$menu-width});
383 @media screen and (max-width: $small-view) {
385 margin-left: $menu-width - 15px; // Menu is absolute
389 :host-context(.expanded) {
405 justify-content: flex-start;
406 background-color: rgba(0, 0, 0, 0.9);
409 .privacy-concerns-text {
414 @include disable-default-a-behaviour;
416 color: var(--mainColor);
417 transition: color 0.3s;
424 .privacy-concerns-okay {
425 background-color: var(--mainColor);
426 padding: 5px 8px 5px 7px;
430 transition: background-color 0.3s;
431 font-weight: $font-semibold;
434 background-color: #000;
439 @media screen and (max-width: 1600px) {
440 .video-bottom .video-info .video-attributes .video-attribute {
445 @media screen and (max-width: 1300px) {
450 .privacy-concerns-text {
456 @media screen and (max-width: 1100px) {
458 flex-direction: column;
459 justify-content: center;
461 my-video-watch-playlist ::ng-deep .playlist {
462 @include playlist-below-player;
467 flex-direction: column;
469 ::ng-deep .other-videos {
470 padding-left: 0 !important;
472 ::ng-deep .video-miniature {
480 @media screen and (max-width: 600px) {
482 margin: 20px 0 0 0 !important;
487 .video-info-first-row {
497 ::ng-deep .other-videos .video-miniature {
498 flex-direction: column;
510 @media screen and (max-width: 450px) {
512 .action-button .icon-text {
513 display: none !important;
516 .video-info .video-info-first-row {
521 .video-info-date-views {
525 .video-actions-rates {
530 .video-info-description {
531 font-size: 14px !important;