2 @use '_variables' as *;
4 @use './_player-variables' as *;
7 --embedForegroundColor: #{$primary-foreground-color};
9 --embedBigPlayBackgroundColor: #{$primary-background-color};
12 @mixin big-play-button-triangle-size($triangle-size) {
13 width: $triangle-size;
14 height: $triangle-size;
15 top: calc(50% - #{math.div($triangle-size, 2)});
16 left: calc(53% - #{math.div($triangle-size, 2)});
19 .video-js.vjs-peertube-skin {
20 font-size: $font-size;
21 color: pvar(--embedForegroundColor);
24 @include padding-right(60px);
26 padding: $dock-padding;
27 background: linear-gradient(to bottom, rgba(0, 0, 0, .6) 0, rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0) 100%);
31 .vjs-dock-description {
32 text-shadow: 0 0 2px rgba(0, 0, 0, .5);
35 .vjs-dock-description {
39 @include margin-right(4px);
43 @include margin-left(4px);
44 transform: scale(-1, 1);
48 .vjs-volume-level::before {
49 content: ''; /* Remove Circle From Progress Bar */
56 .vjs-big-play-button {
57 $big-play-width: 1.2em;
58 $big-play-height: 1.2em;
60 @include margin-left(-(math.div($big-play-width, 2)));
65 border: 2px solid #fff;
70 width: $big-play-width;
71 height: $big-play-height;
72 line-height: $big-play-height;
73 margin-top: -(math.div($big-play-height, 2));
74 transition: 0.4s opacity;
81 .vjs-icon-placeholder::before {
82 @include big-play-button-triangle-size(45px);
85 background-image: url('#{$assets-path}/player/images/big-play-button.svg');
90 background-color: var(--mainColor, #696969);
95 // Small effect when we click on the play button
96 &.vjs-has-big-play-button-clicked {
103 &.vjs-big-play-button,
104 &.vjs-big-play-button::before {
106 transition: visibility 0.2s, opacity 0.2s;
110 &.vjs-poster::before {
112 transition: visibility 0.3s, opacity 0.3s;
113 transition-delay: 0.05s;
118 // Show poster and controls when playing audio-only content
119 &.vjs-playing-audio-only-content {
126 opacity: $primary-foreground-opacity-hover;
130 // Do not display poster when video is starting
131 &.vjs-has-autoplay:not(.vjs-has-started) {
138 // Hide the big play button on autoplay
140 .vjs-big-play-button {
141 display: none !important;
146 .vjs-big-play-button,
147 .vjs-settings-dialog {
148 background-color: pvar(--embedBigPlayBackgroundColor);
152 outline: none; /* Remove Blue Outline on Click*/
157 height: $control-bar-height;
158 background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
159 box-shadow: 0 -15px 40px 10px rgba(0, 0, 0, 0.2);
160 text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
162 > button:first-child {
163 @include margin-left($first-control-bar-element-margin-left);
166 .vjs-progress-control,
171 .vjs-resolution-control,
172 .vjs-fullscreen-control,
174 .vjs-theater-control,
176 color: pvar(--embedForegroundColor) !important;
178 opacity: $primary-foreground-opacity;
179 transition: opacity .1s;
182 opacity: $primary-foreground-opacity-hover;
189 color: pvar(--embedForegroundColor);
190 opacity: $primary-foreground-opacity;
193 .vjs-progress-control {
194 @include margin-left($progress-margin);
197 z-index: 100; // On top of the progress bar
199 width: calc(100% - (2 * #{$progress-margin}));
205 background-color: rgba(255, 255, 255, .2);
210 background: pvar(--embedForegroundColor);
212 // Not display the circle if the progress is not hovered
215 transition: opacity 0.1s ease;
229 background: rgba(255, 255, 255, .2);
235 .vjs-progress-control:hover .vjs-slider,
236 .vjs-progress-control .vjs-slider.vjs-sliding {
239 .vjs-play-progress::before {
246 @include disable-outline;
251 .vjs-icon-placeholder {
252 line-height: $control-bar-height;
265 line-height: inherit;
268 @include margin-left(.5em);
270 font-size: $font-size;
271 display: inline-block;
274 .vjs-current-time-display {
275 line-height: calc(#{$control-bar-height} - 1px);
278 @include margin(0, 1px, 0, 2px);
286 font-size: $font-size;
287 display: inline-block;
290 .vjs-duration-display {
291 line-height: calc(#{$control-bar-height} - 1px);
295 &.vjs-remaining-time {
301 line-height: $control-bar-height;
307 @include margin-right(6px);
310 line-height: $control-bar-height;
314 .vjs-peertube-displayed {
318 .vjs-peertube-hidden {
322 .download-speed-number,
323 .upload-speed-number,
326 font-weight: $font-semibold;
329 .download-speed-text,
333 @include margin-right(15px);
338 background-image: url('#{$assets-path}/player/images/arrow-down.svg');
342 background-image: url('#{$assets-path}/player/images/arrow-up.svg');
348 .vjs-previous-video {
349 line-height: $control-bar-height;
355 mask-image: url('#{$assets-path}/player/images/next.svg');
356 -webkit-mask-image: url('#{$assets-path}/player/images/next.svg');
358 -webkit-mask-size: cover;
360 background-color: #fff;
364 display: inline-block;
368 transform: rotate(180deg);
375 display: inline-block;
378 background-size: contain;
379 vertical-align: middle;
380 background-repeat: no-repeat;
388 width: 37px !important;
390 .vjs-playback-rate-value {
392 line-height: $control-bar-height;
395 .vjs-menu .vjs-menu-content {
396 width: 37px !important;
401 @include disable-outline;
406 .vjs-icon-placeholder {
407 display: inline-block;
410 vertical-align: middle;
411 background: url('#{$assets-path}/player/images/volume.svg') no-repeat;
412 background-size: contain;
419 &.vjs-vol-0 .vjs-icon-placeholder {
420 background: url('#{$assets-path}/player/images/volume-mute.svg') no-repeat;
421 background-size: contain;
425 .vjs-volume-control {
426 @include margin(0, 5px, 0, 0);
432 background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC') no-repeat;
433 background-size: 22px 14px;
443 background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC') no-repeat;
444 background-size: 22px 14px;
456 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
457 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
458 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
459 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
461 transition-property: none;
464 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
469 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
470 transition-property: none;
480 .vjs-volume-control {
481 display: inline-block;
491 @include disable-outline;
492 @include disable-default-a-behaviour;
494 text-decoration: none;
495 line-height: $control-bar-height;
496 font-weight: $font-semibold;
500 .vjs-theater-control {
501 @include disable-outline;
502 @include margin-right(1px);
507 .vjs-icon-placeholder {
508 transition: transform 0.2s ease;
509 display: inline-block;
512 vertical-align: middle;
513 background: url('#{$assets-path}/player/images/theater.svg') no-repeat;
514 background-size: contain;
522 .vjs-fullscreen-control {
523 @include disable-outline;
524 @include margin-left($first-control-bar-element-margin-left);
528 .vjs-icon-placeholder {
529 display: inline-block;
532 vertical-align: middle;
533 background: url('#{$assets-path}/player/images/fullscreen.svg') no-repeat;
534 background-size: contain;
542 .vjs-menu-button-popup {
543 font-weight: $font-semibold;
546 .vjs-resolution-button {
547 @include disable-outline;
560 text-transform: none;
567 @media screen and (max-width: 750px) {
568 .vjs-theater-control {
576 .vjs-dock-description {
580 .vjs-big-play-button {
584 .vjs-icon-placeholder::before {
585 @include big-play-button-triangle-size(32px);
590 @media screen and (max-width: 570px) {
595 .vjs-big-play-button {
599 .vjs-icon-placeholder::before {
600 @include big-play-button-triangle-size(27px);
605 padding: 0 !important;
607 .vjs-peertube-displayed {
608 display: none !important;
614 display: none !important;
618 display: none !important;
623 @media screen and (max-width: 350px) {
628 .vjs-big-play-button {
632 .vjs-icon-placeholder::before {
633 @include big-play-button-triangle-size(20px);
639 .vjs-previous-video {
640 display: none !important;
644 padding: 0 !important;
652 > button:first-child {
653 @include margin-left($first-control-bar-element-margin-left-small-width);
657 .vjs-fullscreen-control {
658 @include margin-right($first-control-bar-element-margin-left-small-width);
663 display: none !important;
668 // Theater mode is enabled
669 &.vjs-theater-enabled {
670 .vjs-theater-control {
673 .vjs-icon-placeholder {
674 transform: scale(0.8);
679 // On fullscreen, hide theater control
681 .vjs-theater-control {
687 // Play/pause animations
688 .vjs-has-started .vjs-play-control {
690 animation: remove-pause-button 0.25s ease;
694 animation: add-play-button 0.25s ease;
697 @keyframes remove-pause-button {
699 transform: rotate(90deg);
702 transform: rotate(0deg);
706 @keyframes add-play-button {
708 transform: rotate(-90deg);
711 transform: rotate(0deg);
716 // Error display disabled
717 .vjs-error:not(.vjs-error-display-enabled) {
722 .vjs-loading-spinner {
727 // Error display enabled
728 .vjs-error.vjs-error-display-enabled {
734 .vjs-no-next-in-playlist {
739 background-color: rgba(255, 255, 255, 0.5);