3 @import './_player-variables';
6 --embedForegroundColor: #{$primary-foreground-color};
8 --embedBigPlayBackgroundColor: #{$primary-background-color};
11 @mixin big-play-button-triangle-size($triangle-size) {
12 width: $triangle-size;
13 height: $triangle-size;
14 top: calc(50% - #{$triangle-size / 2});
15 left: calc(53% - #{($triangle-size / 2)});
18 .video-js.vjs-peertube-skin {
19 font-size: $font-size;
20 color: pvar(--embedForegroundColor);
23 @include padding-right(60px);
25 padding: $dock-padding;
26 background: linear-gradient(to bottom, rgba(0, 0, 0, .6) 0, rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0) 100%);
30 .vjs-dock-description {
31 text-shadow: 0 0 2px rgba(0, 0, 0, .5);
34 .vjs-dock-description {
38 @include margin-right(4px);
42 @include margin-left(4px);
43 transform: scale(-1, 1);
47 .vjs-volume-level::before {
48 content: ''; /* Remove Circle From Progress Bar */
55 .vjs-big-play-button {
56 $big-play-width: 1.2em;
57 $big-play-height: 1.2em;
59 @include margin-left(-($big-play-width / 2));
64 border: 2px solid #fff;
69 width: $big-play-width;
70 height: $big-play-height;
71 line-height: $big-play-height;
72 margin-top: -($big-play-height / 2);
73 transition: 0.4s opacity;
80 .vjs-icon-placeholder::before {
81 @include big-play-button-triangle-size(45px);
84 background-image: url('#{$assets-path}/player/images/big-play-button.svg');
89 background-color: var(--mainColor, #696969);
94 // Small effect when we click on the play button
95 &.vjs-has-big-play-button-clicked {
102 &.vjs-big-play-button,
103 &.vjs-big-play-button::before {
105 transition: visibility 0.2s, opacity 0.2s;
109 &.vjs-poster::before {
111 transition: visibility 0.3s, opacity 0.3s;
112 transition-delay: 0.05s;
117 // Show poster and controls when playing audio-only content
118 &.vjs-playing-audio-only-content {
125 opacity: $primary-foreground-opacity-hover;
129 // Do not display poster when video is starting
130 &.vjs-has-autoplay:not(.vjs-has-started) {
137 // Hide the big play button on autoplay
139 .vjs-big-play-button {
140 display: none !important;
145 .vjs-big-play-button,
146 .vjs-settings-dialog {
147 background-color: pvar(--embedBigPlayBackgroundColor);
151 outline: none; /* Remove Blue Outline on Click*/
156 height: $control-bar-height;
157 background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
158 box-shadow: 0 -15px 40px 10px rgba(0, 0, 0, 0.2);
159 text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
161 > button:first-child {
162 @include margin-left($first-control-bar-element-margin-left);
165 .vjs-progress-control,
170 .vjs-resolution-control,
171 .vjs-fullscreen-control,
173 .vjs-theater-control,
175 color: pvar(--embedForegroundColor) !important;
177 opacity: $primary-foreground-opacity;
178 transition: opacity .1s;
181 opacity: $primary-foreground-opacity-hover;
188 color: pvar(--embedForegroundColor);
189 opacity: $primary-foreground-opacity;
192 .vjs-progress-control {
193 @include margin-left($progress-margin);
196 z-index: 100; // On top of the progress bar
198 width: calc(100% - (2 * #{$progress-margin}));
204 background-color: rgba(255, 255, 255, .2);
209 background: pvar(--embedForegroundColor);
211 // Not display the circle if the progress is not hovered
214 transition: opacity 0.1s ease;
228 background: rgba(255, 255, 255, .2);
234 .vjs-progress-control:hover .vjs-slider,
235 .vjs-progress-control .vjs-slider.vjs-sliding {
238 .vjs-play-progress::before {
245 @include disable-outline;
250 .vjs-icon-placeholder {
251 line-height: $control-bar-height;
264 line-height: inherit;
267 @include margin-left(.5em);
269 font-size: $font-size;
270 display: inline-block;
273 .vjs-current-time-display {
274 line-height: calc(#{$control-bar-height} - 1px);
277 @include margin(0, 1px, 0, 2px);
285 font-size: $font-size;
286 display: inline-block;
289 .vjs-duration-display {
290 line-height: calc(#{$control-bar-height} - 1px);
294 &.vjs-remaining-time {
300 line-height: $control-bar-height;
306 @include margin-right(6px);
309 line-height: $control-bar-height;
313 .vjs-peertube-displayed {
317 .vjs-peertube-hidden {
321 .download-speed-number,
322 .upload-speed-number,
325 font-weight: $font-semibold;
328 .download-speed-text,
332 @include margin-right(15px);
337 background-image: url('#{$assets-path}/player/images/arrow-down.svg');
341 background-image: url('#{$assets-path}/player/images/arrow-up.svg');
347 .vjs-previous-video {
348 line-height: $control-bar-height;
354 mask-image: url('#{$assets-path}/player/images/next.svg');
355 -webkit-mask-image: url('#{$assets-path}/player/images/next.svg');
357 background-color: #fff;
362 display: inline-block;
366 transform: rotate(180deg);
373 display: inline-block;
376 background-size: contain;
377 vertical-align: middle;
378 background-repeat: no-repeat;
386 width: 37px !important;
388 .vjs-playback-rate-value {
390 line-height: $control-bar-height;
393 .vjs-menu .vjs-menu-content {
394 width: 37px !important;
399 @include disable-outline;
404 .vjs-icon-placeholder {
405 display: inline-block;
408 vertical-align: middle;
409 background: url('#{$assets-path}/player/images/volume.svg') no-repeat;
410 background-size: contain;
417 &.vjs-vol-0 .vjs-icon-placeholder {
418 background: url('#{$assets-path}/player/images/volume-mute.svg') no-repeat;
419 background-size: contain;
423 .vjs-volume-control {
424 @include margin(0, 5px, 0, 0);
430 background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC') no-repeat;
431 background-size: 22px 14px;
441 background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC') no-repeat;
442 background-size: 22px 14px;
454 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
455 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
456 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
457 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
459 transition-property: none;
462 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
467 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
468 transition-property: none;
478 .vjs-volume-control {
479 display: inline-block;
489 @include disable-outline;
490 @include disable-default-a-behaviour;
492 text-decoration: none;
493 line-height: $control-bar-height;
494 font-weight: $font-semibold;
498 .vjs-theater-control {
499 @include disable-outline;
500 @include margin-right(1px);
505 .vjs-icon-placeholder {
506 transition: transform 0.2s ease;
507 display: inline-block;
510 vertical-align: middle;
511 background: url('#{$assets-path}/player/images/theater.svg') no-repeat;
512 background-size: contain;
520 .vjs-fullscreen-control {
521 @include disable-outline;
522 @include margin-left($first-control-bar-element-margin-left);
526 .vjs-icon-placeholder {
527 display: inline-block;
530 vertical-align: middle;
531 background: url('#{$assets-path}/player/images/fullscreen.svg') no-repeat;
532 background-size: contain;
540 .vjs-menu-button-popup {
541 font-weight: $font-semibold;
544 .vjs-resolution-button {
545 @include disable-outline;
558 text-transform: none;
565 @media screen and (max-width: 750px) {
566 .vjs-theater-control {
574 .vjs-dock-description {
578 .vjs-big-play-button {
582 .vjs-icon-placeholder::before {
583 @include big-play-button-triangle-size(32px);
588 @media screen and (max-width: 570px) {
593 .vjs-big-play-button {
597 .vjs-icon-placeholder::before {
598 @include big-play-button-triangle-size(27px);
603 padding: 0 !important;
605 .vjs-peertube-displayed {
606 display: none !important;
612 display: none !important;
616 display: none !important;
621 @media screen and (max-width: 350px) {
626 .vjs-big-play-button {
630 .vjs-icon-placeholder::before {
631 @include big-play-button-triangle-size(20px);
637 .vjs-previous-video {
638 display: none !important;
642 padding: 0 !important;
650 > button:first-child {
651 @include margin-left($first-control-bar-element-margin-left-small-width);
655 .vjs-fullscreen-control {
656 @include margin-right($first-control-bar-element-margin-left-small-width);
661 display: none !important;
666 // Theater mode is enabled
667 &.vjs-theater-enabled {
668 .vjs-theater-control {
671 .vjs-icon-placeholder {
672 transform: scale(0.8);
677 // On fullscreen, hide theater control
679 .vjs-theater-control {
685 // Play/pause animations
686 .vjs-has-started .vjs-play-control {
688 animation: remove-pause-button 0.25s ease;
692 animation: add-play-button 0.25s ease;
695 @keyframes remove-pause-button {
697 transform: rotate(90deg);
700 transform: rotate(0deg);
704 @keyframes add-play-button {
706 transform: rotate(-90deg);
709 transform: rotate(0deg);
714 // Error display disabled
715 .vjs-error:not(.vjs-error-display-enabled) {
720 .vjs-loading-spinner {
725 // Error display enabled
726 .vjs-error.vjs-error-display-enabled {
732 .vjs-no-next-in-playlist {
737 background-color: rgba(255, 255, 255, 0.5);