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});
41 my-video-watch-playlist ::ng-deep .playlist {
42 @include playlist-below-player;
48 font-weight: $font-semibold;
52 background-color: #000;
54 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)
115 font-weight: $font-semibold;
125 // Set min width for flex item
129 .video-info-first-row {
132 & > div:first-child {
138 min-height: 40px; // Align with the action buttons
140 font-weight: $font-semibold;
144 .video-info-date-views {
151 .video-info-channel {
152 font-weight: $font-semibold;
156 @include disable-default-a-behaviour;
158 color: var(--mainForegroundColor);
165 @include avatar(18px);
167 margin: -2px 2px 0 5px;
171 my-subscribe-button {
179 @include disable-default-a-behaviour;
184 color: var(--mainForegroundColor);
191 @include avatar(18px);
210 .video-actions-rates {
211 margin: 20px 0 10px 0;
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;
241 &.action-button-like.activated {
242 background-color: $green;
245 @include apply-svg-color(#fff);
249 &.action-button-dislike.activated {
250 background-color: $red;
253 @include apply-svg-color(#fff);
257 &.action-button-save {
270 .video-info-likes-dislikes-bar {
271 $likes-bar-height: 2px;
272 height: $likes-bar-height;
273 margin-top: -$likes-bar-height;
275 background-color: $red;
281 background-color: $green;
287 .video-info-description {
291 .video-info-description-html {
292 @include peertube-word-wrap;
295 .glyphicon, .description-loading {
299 .description-loading {
300 display: inline-block;
303 .video-info-description-more {
305 font-weight: $font-semibold;
306 color: $grey-foreground-color;
316 .video-attributes .video-attribute {
321 .video-attribute-label {
324 display: inline-block;
325 color: $grey-foreground-color;
326 font-weight: $font-bold;
329 a.video-attribute-value {
330 @include disable-default-a-behaviour;
331 color: var(--mainForegroundColor);
338 &.video-attribute-tags {
339 .video-attribute-value:not(:nth-child(2)) {
348 ::ng-deep .other-videos {
350 flex-basis: $other-videos-width;
351 min-width: $other-videos-width;
354 margin-top: 0 !important;
359 width: $other-videos-width;
372 display: inline-block;
377 // If the view is not expanded, take into account the menu
379 width: calc(100% - #{$menu-width});
382 @media screen and (max-width: $small-view) {
384 margin-left: $menu-width - 15px; // Menu is absolute
388 :host-context(.expanded) {
404 justify-content: flex-start;
405 background-color: rgba(0, 0, 0, 0.9);
408 .privacy-concerns-text {
413 @include disable-default-a-behaviour;
415 color: var(--mainColor);
416 transition: color 0.3s;
423 .privacy-concerns-okay {
424 background-color: var(--mainColor);
425 padding: 5px 8px 5px 7px;
429 transition: background-color 0.3s;
430 font-weight: $font-semibold;
433 background-color: #000;
438 @media screen and (max-width: 1600px) {
439 .video-bottom .video-info .video-attributes .video-attribute {
444 @media screen and (max-width: 1300px) {
449 .privacy-concerns-text {
455 @media screen and (max-width: 1100px) {
457 flex-direction: column;
458 justify-content: center;
460 my-video-watch-playlist ::ng-deep .playlist {
461 @include playlist-below-player;
466 flex-direction: column;
468 ::ng-deep .other-videos {
469 padding-left: 0 !important;
471 ::ng-deep .video-miniature {
479 @media screen and (max-width: 600px) {
481 margin: 20px 0 0 0 !important;
486 .video-info-first-row {
496 ::ng-deep .other-videos .video-miniature {
497 flex-direction: column;
509 @media screen and (max-width: 450px) {
511 .action-button .icon-text {
512 display: none !important;
515 .video-info .video-info-first-row {
520 .video-info-date-views {
524 .video-actions-rates {
529 .video-info-description {
530 font-size: 14px !important;