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;
21 border-bottom: 1px solid $separator-border-color !important;
25 &.theater-enabled #video-wrapper {
26 flex-direction: column;
27 justify-content: center;
34 $height: calc(100vh - #{$header-height} - #{$theater-bottom-space});
40 my-video-watch-playlist /deep/ .playlist {
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) {
84 width: getPlayerWidth(66vh);
87 // VideoJS create an inner video player
90 position: relative !important;
94 @media screen and (max-width: 600px) {
98 height: getPlayerHeight(100vw)
113 font-weight: $font-semibold;
123 // Set min width for flex item
127 .video-info-first-row {
130 & > div:first-child {
136 min-height: 40px; // Align with the action buttons
138 font-weight: $font-semibold;
142 .video-info-date-views {
149 .video-info-channel {
150 font-weight: $font-semibold;
154 @include disable-default-a-behaviour;
156 color: var(--mainForegroundColor);
163 @include avatar(18px);
165 margin: -2px 2px 0 5px;
169 my-subscribe-button {
177 @include disable-default-a-behaviour;
182 color: var(--mainForegroundColor);
189 @include avatar(18px);
208 .video-actions-rates {
209 margin: 20px 0 10px 0;
213 height: 40px; // Align with the title
217 .action-button:not(:first-child),
219 my-video-actions-dropdown {
224 @include peertube-button;
225 @include grey-button;
226 @include button-with-icon(21px, 0, -1px);
227 @include apply-svg-color($grey-foreground-color);
230 font-weight: $font-semibold;
231 display: inline-block;
232 padding: 0 10px 0 10px;
239 &.action-button-like.activated {
240 background-color: $green;
243 @include apply-svg-color(#fff);
247 &.action-button-dislike.activated {
248 background-color: $red;
251 @include apply-svg-color(#fff);
255 &.action-button-save {
268 .video-info-likes-dislikes-bar {
269 $likes-bar-height: 2px;
270 height: $likes-bar-height;
271 margin-top: -$likes-bar-height;
273 background-color: $red;
279 background-color: $green;
285 .video-info-description {
289 .video-info-description-html {
290 @include peertube-word-wrap;
293 .glyphicon, .description-loading {
297 .description-loading {
298 display: inline-block;
301 .video-info-description-more {
303 font-weight: $font-semibold;
304 color: $grey-foreground-color;
314 .video-attributes .video-attribute {
319 .video-attribute-label {
322 display: inline-block;
323 color: $grey-foreground-color;
324 font-weight: $font-bold;
327 a.video-attribute-value {
328 @include disable-default-a-behaviour;
329 color: var(--mainForegroundColor);
336 &.video-attribute-tags {
337 .video-attribute-value:not(:nth-child(2)) {
346 /deep/ .other-videos {
348 flex-basis: $other-videos-width;
351 margin-top: 0 !important;
356 width: $other-videos-width;
369 display: inline-block;
374 // If the view is not expanded, take into account the menu
376 width: calc(100% - #{$menu-width});
379 @media screen and (max-width: $small-view) {
381 margin-left: $menu-width - 15px; // Menu is absolute
385 :host-context(.expanded) {
401 justify-content: flex-start;
402 background-color: rgba(0, 0, 0, 0.9);
405 .privacy-concerns-text {
410 @include disable-default-a-behaviour;
412 color: var(--mainColor);
413 transition: color 0.3s;
420 .privacy-concerns-okay {
421 background-color: var(--mainColor);
422 padding: 5px 8px 5px 7px;
426 transition: background-color 0.3s;
427 font-weight: $font-semibold;
430 background-color: #000;
435 @media screen and (max-width: 1600px) {
436 .video-bottom .video-info .video-attributes .video-attribute {
441 @media screen and (max-width: 1300px) {
446 .privacy-concerns-text {
452 @media screen and (max-width: 1100px) {
454 flex-direction: column;
455 justify-content: center;
457 my-video-watch-playlist /deep/ .playlist {
458 @include playlist-below-player;
463 flex-direction: column;
465 /deep/ .other-videos {
466 padding-left: 0 !important;
468 /deep/ .video-miniature {
476 @media screen and (max-width: 600px) {
478 margin: 20px 0 0 0 !important;
483 .video-info-first-row {
493 /deep/ .other-videos .video-miniature {
494 flex-direction: column;
506 @media screen and (max-width: 450px) {
508 .action-button .icon-text {
509 display: none !important;
512 .video-info .video-info-first-row {
517 .video-info-date-views {
521 .video-actions-rates {
526 .video-info-description {
527 font-size: 14px !important;