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 /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) {
85 width: getPlayerWidth(66vh);
88 // VideoJS create an inner video player
91 position: relative !important;
95 @media screen and (max-width: 600px) {
99 height: getPlayerHeight(100vw)
114 font-weight: $font-semibold;
124 // Set min width for flex item
128 .video-info-first-row {
131 & > div:first-child {
137 min-height: 40px; // Align with the action buttons
139 font-weight: $font-semibold;
143 .video-info-date-views {
150 .video-info-channel {
151 font-weight: $font-semibold;
155 @include disable-default-a-behaviour;
157 color: var(--mainForegroundColor);
164 @include avatar(18px);
166 margin: -2px 2px 0 5px;
170 my-subscribe-button {
178 @include disable-default-a-behaviour;
183 color: var(--mainForegroundColor);
190 @include avatar(18px);
209 .video-actions-rates {
210 margin: 20px 0 10px 0;
214 height: 40px; // Align with the title
218 .action-button:not(:first-child),
220 my-video-actions-dropdown {
225 @include peertube-button;
226 @include grey-button;
227 @include button-with-icon(21px, 0, -1px);
228 @include apply-svg-color($grey-foreground-color);
231 font-weight: $font-semibold;
232 display: inline-block;
233 padding: 0 10px 0 10px;
240 &.action-button-like.activated {
241 background-color: $green;
244 @include apply-svg-color(#fff);
248 &.action-button-dislike.activated {
249 background-color: $red;
252 @include apply-svg-color(#fff);
256 &.action-button-save {
269 .video-info-likes-dislikes-bar {
270 $likes-bar-height: 2px;
271 height: $likes-bar-height;
272 margin-top: -$likes-bar-height;
274 background-color: $red;
280 background-color: $green;
286 .video-info-description {
290 .video-info-description-html {
291 @include peertube-word-wrap;
294 .glyphicon, .description-loading {
298 .description-loading {
299 display: inline-block;
302 .video-info-description-more {
304 font-weight: $font-semibold;
305 color: $grey-foreground-color;
315 .video-attributes .video-attribute {
320 .video-attribute-label {
323 display: inline-block;
324 color: $grey-foreground-color;
325 font-weight: $font-bold;
328 a.video-attribute-value {
329 @include disable-default-a-behaviour;
330 color: var(--mainForegroundColor);
337 &.video-attribute-tags {
338 .video-attribute-value:not(:nth-child(2)) {
347 /deep/ .other-videos {
349 flex-basis: $other-videos-width;
350 min-width: $other-videos-width;
353 margin-top: 0 !important;
358 width: $other-videos-width;
371 display: inline-block;
376 // If the view is not expanded, take into account the menu
378 width: calc(100% - #{$menu-width});
381 @media screen and (max-width: $small-view) {
383 margin-left: $menu-width - 15px; // Menu is absolute
387 :host-context(.expanded) {
403 justify-content: flex-start;
404 background-color: rgba(0, 0, 0, 0.9);
407 .privacy-concerns-text {
412 @include disable-default-a-behaviour;
414 color: var(--mainColor);
415 transition: color 0.3s;
422 .privacy-concerns-okay {
423 background-color: var(--mainColor);
424 padding: 5px 8px 5px 7px;
428 transition: background-color 0.3s;
429 font-weight: $font-semibold;
432 background-color: #000;
437 @media screen and (max-width: 1600px) {
438 .video-bottom .video-info .video-attributes .video-attribute {
443 @media screen and (max-width: 1300px) {
448 .privacy-concerns-text {
454 @media screen and (max-width: 1100px) {
456 flex-direction: column;
457 justify-content: center;
459 my-video-watch-playlist /deep/ .playlist {
460 @include playlist-below-player;
465 flex-direction: column;
467 /deep/ .other-videos {
468 padding-left: 0 !important;
470 /deep/ .video-miniature {
478 @media screen and (max-width: 600px) {
480 margin: 20px 0 0 0 !important;
485 .video-info-first-row {
495 /deep/ .other-videos .video-miniature {
496 flex-direction: column;
508 @media screen and (max-width: 450px) {
510 .action-button .icon-text {
511 display: none !important;
514 .video-info .video-info-first-row {
519 .video-info-date-views {
523 .video-actions-rates {
528 .video-info-description {
529 font-size: 14px !important;