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 {
21 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 justify-content: center;
65 flex-direction: column;
68 justify-content: center;
69 background-color: #141313;
74 @media screen and (max-width: 1000px) {
78 @media screen and (max-width: 600px) {
87 background-color: var(--mainBackgroundColor);
89 border-bottom: 1px solid $separator-border-color;
93 background-color: #e4e4e4;
95 .playlist-display-name {
97 font-weight: $font-semibold;
102 color: $grey-foreground-color;
109 .playlist-index span:first-child::after {
116 my-video-playlist-element-miniature {
131 @include thumbnail-size-component(90px, 50px);
138 width: getPlayerWidth(66vh);
141 // VideoJS create an inner video player
144 position: relative !important;
148 @media screen and (max-width: 600px) {
152 height: getPlayerHeight(100vw)
167 font-weight: $font-semibold;
177 // Set min width for flex item
181 .video-info-first-row {
184 & > div:first-child {
190 min-height: 40px; // Align with the action buttons
192 font-weight: $font-semibold;
196 .video-info-date-views {
203 .video-info-channel {
204 font-weight: $font-semibold;
208 @include disable-default-a-behaviour;
210 color: var(--mainForegroundColor);
217 @include avatar(18px);
219 margin: -2px 2px 0 5px;
223 my-subscribe-button {
231 @include disable-default-a-behaviour;
236 color: var(--mainForegroundColor);
243 @include avatar(18px);
262 .video-actions-rates {
263 margin: 20px 0 10px 0;
267 height: 40px; // Align with the title
271 .action-button:not(:first-child),
273 my-video-actions-dropdown {
278 @include peertube-button;
279 @include grey-button;
280 @include button-with-icon(21px, 0, -1px);
281 @include apply-svg-color($grey-foreground-color);
284 font-weight: $font-semibold;
285 display: inline-block;
286 padding: 0 10px 0 10px;
293 &.action-button-like.activated {
294 background-color: $green;
297 @include apply-svg-color(#fff);
301 &.action-button-dislike.activated {
302 background-color: $red;
305 @include apply-svg-color(#fff);
309 &.action-button-save {
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: $red;
333 background-color: $green;
339 .video-info-description {
343 .video-info-description-html {
344 @include peertube-word-wrap;
347 .glyphicon, .description-loading {
351 .description-loading {
352 display: inline-block;
355 .video-info-description-more {
357 font-weight: $font-semibold;
358 color: $grey-foreground-color;
368 .video-attributes .video-attribute {
373 .video-attribute-label {
376 display: inline-block;
377 color: $grey-foreground-color;
378 font-weight: $font-bold;
381 a.video-attribute-value {
382 @include disable-default-a-behaviour;
383 color: var(--mainForegroundColor);
390 &.video-attribute-tags {
391 .video-attribute-value:not(:nth-child(2)) {
400 /deep/ .other-videos {
402 flex-basis: $other-videos-width;
405 margin-top: 0 !important;
410 width: $other-videos-width;
423 display: inline-block;
428 // If the view is not expanded, take into account the menu
430 width: calc(100% - #{$menu-width});
433 @media screen and (max-width: $small-view) {
435 margin-left: $menu-width - 15px; // Menu is absolute
439 :host-context(.expanded) {
455 justify-content: flex-start;
456 background-color: rgba(0, 0, 0, 0.9);
459 .privacy-concerns-text {
464 @include disable-default-a-behaviour;
466 color: var(--mainColor);
467 transition: color 0.3s;
474 .privacy-concerns-okay {
475 background-color: var(--mainColor);
476 padding: 5px 8px 5px 7px;
480 transition: background-color 0.3s;
481 font-weight: $font-semibold;
484 background-color: #000;
489 @media screen and (max-width: 1600px) {
490 .video-bottom .video-info .video-attributes .video-attribute {
495 @media screen and (max-width: 1300px) {
500 .privacy-concerns-text {
506 @media screen and (max-width: 1100px) {
508 flex-direction: column;
509 justify-content: center;
512 @include playlist-below-player;
517 flex-direction: column;
519 /deep/ .other-videos {
520 padding-left: 0 !important;
522 /deep/ .video-miniature {
530 @media screen and (max-width: 600px) {
532 margin: 20px 0 0 0 !important;
537 .video-info-first-row {
547 /deep/ .other-videos .video-miniature {
548 flex-direction: column;
560 @media screen and (max-width: 450px) {
562 .action-button .icon-text {
563 display: none !important;
566 .video-info .video-info-first-row {
571 .video-info-date-views {
575 .video-actions-rates {
580 .video-info-description {
581 font-size: 14px !important;