3 @import '_bootstrap-variables';
6 $player-factor: #{16/9};
7 $video-info-margin-left: 44px;
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;
30 $height: calc(100vh - #{$header-height} - #{$theater-bottom-space});
43 my-video-watch-playlist ::ng-deep .playlist {
44 @include playlist-below-player;
50 font-weight: $font-semibold;
56 background-color: #000;
58 justify-content: center;
62 justify-content: center;
64 height: $video-height;
70 flex-direction: column;
73 justify-content: center;
74 background-color: #141313;
79 @media screen and (max-width: 1000px) {
83 @media screen and (max-width: 600px) {
90 max-width: getPlayerWidth(66vh);
91 height: $video-height;
93 // VideoJS create an inner video player
96 position: relative !important;
100 @media screen and (max-width: 600px) {
102 height: getPlayerHeight(100vw) !important;
106 ::ng-deep .video-js {
108 height: getPlayerHeight(100vw) !important;
118 .flex-direction-column {
119 flex-direction: column;
127 font-weight: $font-semibold;
137 // Set min width for flex item
141 .video-info-first-row {
144 & > div:first-child {
150 min-height: 40px; // Align with the action buttons
152 font-weight: $font-semibold;
156 .video-info-first-row-bottom {
163 .video-info-date-views {
170 .video-info-channel {
171 font-weight: $font-semibold;
175 @include disable-default-a-behaviour;
177 color: pvar(--mainForegroundColor);
184 .video-info-channel-left {
187 .video-info-channel-left-links {
189 flex-direction: column;
194 font-weight: $font-regular;
204 my-subscribe-button {
214 .video-actions-rates {
221 height: 40px; // Align with the title
225 .action-button:not(:first-child),
227 my-video-actions-dropdown {
231 ::ng-deep.action-button {
232 @include peertube-button;
233 @include button-with-icon(21px, 0, -1px);
234 @include apply-svg-color(pvar(--actionButtonColor));
237 font-weight: $font-semibold;
238 display: inline-block;
239 padding: 0 10px 0 10px;
241 background-color: transparent !important;
242 color: pvar(--actionButtonColor);
243 text-transform: uppercase;
253 &.action-button-like,
254 &.action-button-dislike {
255 filter: brightness(120%);
262 &.action-button-like.activated {
264 color: pvar(--activatedActionButtonColor);
268 @include apply-svg-color(pvar(--activatedActionButtonColor));
272 &.action-button-dislike.activated {
274 color: pvar(--activatedActionButtonColor);
278 @include apply-svg-color(pvar(--activatedActionButtonColor));
282 &.action-button-support {
283 color: pvar(--supportButtonColor);
286 @include apply-svg-color(pvar(--supportButtonColor));
290 &.action-button-support {
292 ::ng-deep path:first-child {
293 fill: pvar(--supportButtonHeartColor) !important;
298 &.action-button-save {
311 .video-info-likes-dislikes-bar-outer-container {
315 .video-info-likes-dislikes-bar-inner-container {
320 .video-info-likes-dislikes-bar {
321 $likes-bar-height: 2px;
322 height: $likes-bar-height;
323 margin-top: -$likes-bar-height;
325 background-color: #ccc;
331 background-color: #909090;
334 background-color: pvar(--activatedActionButtonColor);
341 .video-info-description {
343 margin-left: $video-info-margin-left;
346 .video-info-description-html {
347 @include peertube-word-wrap;
350 text-decoration: none;
354 .glyphicon, .description-loading {
358 .description-loading {
359 display: inline-block;
362 .video-info-description-more {
364 font-weight: $font-semibold;
365 color: pvar(--greyForegroundColor);
376 margin-left: $video-info-margin-left;
379 .video-attributes .video-attribute {
384 .video-attribute-label {
387 display: inline-block;
388 color: pvar(--greyForegroundColor);
389 font-weight: $font-bold;
392 a.video-attribute-value {
393 @include disable-default-a-behaviour;
394 color: pvar(--mainForegroundColor);
401 &.video-attribute-tags {
402 .video-attribute-value:not(:nth-child(2)) {
412 my-recommended-videos {
419 display: inline-block;
424 // If the view is not expanded, take into account the menu
426 z-index: z(dropdown) + 1;
427 width: calc(100% - #{$menu-width});
430 @media screen and (max-width: $small-view) {
432 margin-left: $menu-width - 15px; // Menu is absolute
436 :host-context(.expanded) {
446 z-index: z(privacymsg);
453 justify-content: space-between;
454 background-color: rgba(0, 0, 0, 0.9);
457 .privacy-concerns-text {
462 @include disable-default-a-behaviour;
464 color: pvar(--mainColor);
465 transition: color 0.3s;
472 .privacy-concerns-button {
473 padding: 5px 8px 5px 7px;
478 transition: background-color 0.3s;
479 font-weight: $font-semibold;
482 background-color: #000;
486 .privacy-concerns-okay {
487 background-color: pvar(--mainColor);
492 @media screen and (max-width: 1600px) {
493 .video-bottom .video-info .video-attributes .video-attribute {
498 @media screen and (max-width: 1300px) {
503 .privacy-concerns-text {
509 // Use the same breakpoint than in the typescript component to display the other video miniatures as row
510 @media screen and (max-width: 1100px) {
512 flex-direction: column;
513 justify-content: center;
515 my-video-watch-playlist ::ng-deep .playlist {
516 @include playlist-below-player;
521 flex-direction: column;
524 my-recommended-videos {
529 @media screen and (max-width: 600px) {
531 margin-top: 20px !important;
532 padding-bottom: 20px !important;
537 .video-info-first-row {
552 @media screen and (max-width: 450px) {
554 .action-button .icon-text {
555 display: none !important;
558 .video-info .video-info-first-row {
563 .video-info-date-views {
567 .video-actions-rates {
572 .video-info-description {
573 font-size: 14px !important;
579 // Special case for iOS, that takes into account the width for fullscreens
580 #video-wrapper ::ng-deep .video-js.vjs-fullscreen {