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 {
19 border-bottom: 1px solid $separator-border-color;
25 &.theater-enabled #video-wrapper {
26 flex-direction: column;
27 justify-content: center;
34 $height: calc(100vh - #{$header-height} - #{$theater-bottom-space});
41 @include playlist-below-player;
47 font-weight: $font-semibold;
51 background-color: #000;
53 justify-content: center;
58 flex-direction: column;
61 justify-content: center;
62 background-color: #141313;
67 @media screen and (max-width: 1000px) {
71 @media screen and (max-width: 600px) {
79 background-color: var(--mainBackgroundColor);
84 background-color: #e4e4e4;
86 .playlist-display-name {
88 font-weight: $font-semibold;
93 color: $grey-foreground-color;
100 .playlist-index span:first-child::after {
107 my-video-playlist-element-miniature {
122 @include thumbnail-size-component(90px, 50px);
129 width: getPlayerWidth(66vh);
132 // VideoJS create an inner video player
135 position: relative !important;
139 @media screen and (max-width: 600px) {
143 height: getPlayerHeight(100vw)
157 font-weight: $font-semibold;
167 // Set min width for flex item
171 .video-info-first-row {
174 & > div:first-child {
180 min-height: 40px; // Align with the action buttons
182 font-weight: $font-semibold;
186 .video-info-date-views {
193 .video-info-channel {
194 font-weight: $font-semibold;
198 @include disable-default-a-behaviour;
200 color: var(--mainForegroundColor);
207 @include avatar(18px);
209 margin: -2px 2px 0 5px;
213 my-subscribe-button {
221 @include disable-default-a-behaviour;
226 color: var(--mainForegroundColor);
233 @include avatar(18px);
252 .video-actions-rates {
253 margin: 20px 0 10px 0;
257 height: 40px; // Align with the title
261 .action-button:not(:first-child), .action-dropdown {
266 @include peertube-button;
267 @include grey-button;
268 @include button-with-icon(21px, 0, -1px);
269 @include apply-svg-color($grey-foreground-color);
272 font-weight: $font-semibold;
273 display: inline-block;
274 padding: 0 10px 0 10px;
281 &.action-button-like.activated {
282 background-color: $green;
285 @include apply-svg-color(#fff);
289 &.action-button-dislike.activated {
290 background-color: $red;
293 @include apply-svg-color(#fff);
297 &.action-button-save {
310 display: inline-block;
312 .dropdown-menu .dropdown-item {
313 @include dropdown-with-icon-item;
318 .video-info-likes-dislikes-bar {
319 $likes-bar-height: 2px;
320 height: $likes-bar-height;
321 margin-top: -$likes-bar-height;
323 background-color: $red;
329 background-color: $green;
335 .video-info-description {
339 .video-info-description-html {
340 @include peertube-word-wrap;
343 .glyphicon, .description-loading {
347 .description-loading {
348 display: inline-block;
351 .video-info-description-more {
353 font-weight: $font-semibold;
354 color: $grey-foreground-color;
364 .video-attributes .video-attribute {
369 .video-attribute-label {
372 display: inline-block;
373 color: $grey-foreground-color;
374 font-weight: $font-bold;
377 a.video-attribute-value {
378 @include disable-default-a-behaviour;
379 color: var(--mainForegroundColor);
386 &.video-attribute-tags {
387 .video-attribute-value:not(:nth-child(2)) {
396 /deep/ .other-videos {
398 flex-basis: $other-videos-width;
401 margin-top: 0 !important;
406 width: $other-videos-width;
419 display: inline-block;
424 // If the view is not expanded, take into account the menu
426 width: calc(100% - #{$menu-width});
429 @media screen and (max-width: $small-view) {
431 margin-left: $menu-width;
435 :host-context(.expanded) {
450 justify-content: flex-start;
451 background-color: rgba(0, 0, 0, 0.9);
454 .privacy-concerns-text {
459 @include disable-default-a-behaviour;
461 color: var(--mainColor);
462 transition: color 0.3s;
469 .privacy-concerns-okay {
470 background-color: var(--mainColor);
471 padding: 5px 8px 5px 7px;
475 transition: background-color 0.3s;
476 font-weight: $font-semibold;
479 background-color: #000;
484 @media screen and (max-width: 1600px) {
485 .video-bottom .video-info .video-attributes .video-attribute {
490 @media screen and (max-width: 1300px) {
495 .privacy-concerns-text {
501 @media screen and (max-width: 1100px) {
503 flex-direction: column;
505 /deep/ .other-videos {
506 padding-left: 0 !important;
508 /deep/ .video-miniature {
516 @media screen and (max-width: 900px) {
518 flex-direction: column;
519 justify-content: center;
523 justify-content: center;
527 @include playlist-below-player;
532 @media screen and (max-width: 600px) {
539 .video-info-first-row {
549 /deep/ .other-videos .video-miniature {
550 flex-direction: column;
562 @media screen and (max-width: 450px) {
564 .action-button .icon-text {
565 display: none !important;
568 .video-info .video-info-first-row {
573 .video-info-date-views {
577 .video-actions-rates {
582 .video-info-description {
583 font-size: 14px !important;