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);
24 background: linear-gradient(to bottom, rgba(0, 0, 0, .6) 0, rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0) 100%);
28 .vjs-dock-description {
29 text-shadow: 0 0 2px rgba(0, 0, 0, .5);
32 .vjs-dock-description {
41 transform: scale(-1, 1);
45 .vjs-button > .vjs-icon-placeholder::before {
46 line-height: $control-bar-height;
49 .vjs-volume-level::before {
50 content: ''; /* Remove Circle From Progress Bar */
57 .vjs-big-play-button {
61 $big-play-width: 1.2em;
62 $big-play-height: 1.2em;
64 border: 2px solid #fff;
69 width: $big-play-width;
70 height: $big-play-height;
71 line-height: $big-play-height;
72 margin-left: -($big-play-width / 2);
73 margin-top: -($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');
88 &.focus-visible, &:hover {
89 background-color: var(--mainColor, dimgray);
94 // Small effect when we click on the play button
95 &.vjs-has-big-play-button-clicked {
97 .vjs-big-play-button, .vjs-poster {
101 &.vjs-big-play-button, &.vjs-big-play-button::before {
103 transition: visibility 0.2s, opacity 0.2s;
106 &.vjs-poster, &.vjs-poster::before {
108 transition: visibility 0.3s, opacity 0.3s;
109 transition-delay: 0.05s;
114 // Show poster and controls when playing audio-only content
115 &.vjs-playing-audio-only-content {
122 opacity: $primary-foreground-opacity-hover;
126 // Hide the big play button on autoplay
128 .vjs-big-play-button {
129 display: none !important;
134 .vjs-big-play-button,
135 .vjs-settings-dialog {
136 background-color: pvar(--embedBigPlayBackgroundColor);
140 outline: none; /* Remove Blue Outline on Click*/
145 height: $control-bar-height;
146 background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
147 box-shadow: 0 -15px 40px 10px rgba(0, 0, 0, 0.2);
148 text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
150 .vjs-progress-control,
155 .vjs-resolution-control,
156 .vjs-fullscreen-control,
158 .vjs-theater-control,
161 color: pvar(--embedForegroundColor) !important;
163 opacity: $primary-foreground-opacity;
164 transition: opacity .1s;
167 opacity: $primary-foreground-opacity-hover;
174 color: pvar(--embedForegroundColor);
175 opacity: $primary-foreground-opacity;
178 .vjs-progress-control {
180 z-index: 100; // On top of the progress bar
182 width: calc(100% - (2 * #{$progress-margin}));
183 margin-left: $progress-margin;
189 background-color: rgba(255, 255, 255, .2);
194 background: pvar(--embedForegroundColor);
196 // Not display the circle if the progress is not hovered
199 transition: opacity 0.1s ease;
212 background: rgba(255, 255, 255, .2);
218 .vjs-progress-control:hover .vjs-slider,
219 .vjs-progress-control .vjs-slider.vjs-sliding {
222 .vjs-play-progress::before {
229 @include disable-outline;
232 font-size: $font-size;
238 line-height: inherit;
241 font-size: $font-size;
242 display: inline-block;
246 .vjs-current-time-display {
247 line-height: calc(#{$control-bar-height} + 1px);
257 font-size: $font-size;
258 display: inline-block;
260 .vjs-duration-display {
261 line-height: calc(#{$control-bar-height} + 1px);
265 &.vjs-remaining-time {
272 line-height: $control-bar-height;
277 .vjs-peertube-displayed {
281 .vjs-peertube-hidden {
285 .download-speed-number, .upload-speed-number, .peers-number, .http-fallback {
286 font-weight: $font-semibold;
289 .download-speed-text, .upload-speed-text, .peers-text, .http-fallback {
295 background-image: url('#{$assets-path}/player/images/arrow-down.svg');
299 background-image: url('#{$assets-path}/player/images/arrow-up.svg');
305 line-height: $control-bar-height;
310 mask-image: url('#{$assets-path}/player/images/next.svg');
311 -webkit-mask-image: url('#{$assets-path}/player/images/next.svg');
312 background-color: white;
314 -webkit-mask-size: cover;
315 transform: scale(2.2);
323 display: inline-block;
326 background-size: contain;
327 vertical-align: middle;
328 background-repeat: no-repeat;
336 width: 37px !important;
338 .vjs-playback-rate-value {
340 line-height: $control-bar-height;
343 .vjs-menu .vjs-menu-content {
344 width: 37px !important;
349 @include disable-outline;
351 line-height: $control-bar-height;
355 .vjs-icon-placeholder {
356 display: inline-block;
359 vertical-align: middle;
360 background: url('#{$assets-path}/player/images/volume.svg') no-repeat;
361 background-size: contain;
368 &.vjs-vol-0 .vjs-icon-placeholder {
369 background: url('#{$assets-path}/player/images/volume-mute.svg') no-repeat;
370 background-size: contain;
374 .vjs-volume-control {
380 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
381 background-size: 22px 14px;
391 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
392 background-size: 22px 14px;
404 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
405 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
406 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
407 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
409 transition-property: none;
412 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
417 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
418 transition-property: none;
428 .vjs-volume-control {
429 display: inline-block;
439 @include disable-outline;
440 @include disable-default-a-behaviour;
442 text-decoration: none;
443 line-height: $control-bar-height;
444 font-weight: $font-semibold;
448 .vjs-theater-control {
449 @include disable-outline;
455 .vjs-icon-placeholder {
456 transition: transform 0.2s ease;
457 display: inline-block;
460 vertical-align: middle;
461 background: url('#{$assets-path}/player/images/theater.svg') no-repeat;
462 background-size: contain;
470 .vjs-fullscreen-control {
471 @include disable-outline;
476 .vjs-icon-placeholder {
477 display: inline-block;
480 vertical-align: middle;
481 background: url('#{$assets-path}/player/images/fullscreen.svg') no-repeat;
482 background-size: contain;
490 .vjs-menu-button-popup {
491 font-weight: $font-semibold;
494 .vjs-resolution-button {
495 @include disable-outline;
508 text-transform: none;
515 @media screen and (max-width: 750px) {
516 .vjs-theater-control {
524 .vjs-dock-description {
528 .vjs-big-play-button {
532 .vjs-icon-placeholder::before {
533 @include big-play-button-triangle-size(32px);
538 @media screen and (max-width: 570px) {
543 .vjs-big-play-button {
547 .vjs-icon-placeholder::before {
548 @include big-play-button-triangle-size(27px);
553 padding: 0 !important;
555 .vjs-peertube-displayed {
556 display: none !important;
561 @media screen and (max-width: 300px) {
566 .vjs-big-play-button {
570 .vjs-icon-placeholder::before {
571 @include big-play-button-triangle-size(20px);
575 .vjs-volume-control {
576 display: none !important;
580 padding: 0 !important;
588 // Theater mode is enabled
589 &.vjs-theater-enabled {
590 .vjs-theater-control {
593 .vjs-icon-placeholder {
594 transform: scale(0.8);
599 // On fullscreen, hide theater control
601 .vjs-theater-control {
607 // Play/pause animations
608 .vjs-has-started .vjs-play-control {
610 animation: remove-pause-button 0.25s ease;
614 animation: add-play-button 0.25s ease;
617 @keyframes remove-pause-button {
619 transform: rotate(90deg);
622 transform: rotate(0deg);
626 @keyframes add-play-button {
628 transform: rotate(-90deg);
631 transform: rotate(0deg);
636 // Error display disabled
637 .vjs-error:not(.vjs-error-display-enabled) {
642 .vjs-loading-spinner {
647 // Error display enabled
648 .vjs-error.vjs-error-display-enabled {