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 padding: $dock-padding;
25 background: linear-gradient(to bottom, rgba(0, 0, 0, .6) 0, rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0) 100%);
29 .vjs-dock-description {
30 text-shadow: 0 0 2px rgba(0, 0, 0, .5);
33 .vjs-dock-description {
42 transform: scale(-1, 1);
46 .vjs-volume-level::before {
47 content: ''; /* Remove Circle From Progress Bar */
54 .vjs-big-play-button {
58 $big-play-width: 1.2em;
59 $big-play-height: 1.2em;
61 border: 2px solid #fff;
66 width: $big-play-width;
67 height: $big-play-height;
68 line-height: $big-play-height;
69 margin-left: -($big-play-width / 2);
70 margin-top: -($big-play-height / 2);
71 transition: 0.4s opacity;
78 .vjs-icon-placeholder::before {
79 @include big-play-button-triangle-size(45px);
82 background-image: url('#{$assets-path}/player/images/big-play-button.svg');
85 &.focus-visible, &:hover {
86 background-color: var(--mainColor, dimgray);
91 // Small effect when we click on the play button
92 &.vjs-has-big-play-button-clicked {
94 .vjs-big-play-button, .vjs-poster {
98 &.vjs-big-play-button, &.vjs-big-play-button::before {
100 transition: visibility 0.2s, opacity 0.2s;
103 &.vjs-poster, &.vjs-poster::before {
105 transition: visibility 0.3s, opacity 0.3s;
106 transition-delay: 0.05s;
111 // Show poster and controls when playing audio-only content
112 &.vjs-playing-audio-only-content {
119 opacity: $primary-foreground-opacity-hover;
123 // Do not display poster when video is starting
124 &.vjs-has-autoplay:not(.vjs-has-started) {
131 // Hide the big play button on autoplay
133 .vjs-big-play-button {
134 display: none !important;
139 .vjs-big-play-button,
140 .vjs-settings-dialog {
141 background-color: pvar(--embedBigPlayBackgroundColor);
145 outline: none; /* Remove Blue Outline on Click*/
150 height: $control-bar-height;
151 background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
152 box-shadow: 0 -15px 40px 10px rgba(0, 0, 0, 0.2);
153 text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
155 > button:first-child {
156 margin-left: $first-control-bar-element-margin-left;
159 .vjs-progress-control,
164 .vjs-resolution-control,
165 .vjs-fullscreen-control,
167 .vjs-theater-control,
170 color: pvar(--embedForegroundColor) !important;
172 opacity: $primary-foreground-opacity;
173 transition: opacity .1s;
176 opacity: $primary-foreground-opacity-hover;
183 color: pvar(--embedForegroundColor);
184 opacity: $primary-foreground-opacity;
187 .vjs-progress-control {
189 z-index: 100; // On top of the progress bar
191 width: calc(100% - (2 * #{$progress-margin}));
192 margin-left: $progress-margin;
198 background-color: rgba(255, 255, 255, .2);
203 background: pvar(--embedForegroundColor);
205 // Not display the circle if the progress is not hovered
208 transition: opacity 0.1s ease;
221 background: rgba(255, 255, 255, .2);
227 .vjs-progress-control:hover .vjs-slider,
228 .vjs-progress-control .vjs-slider.vjs-sliding {
231 .vjs-play-progress::before {
238 @include disable-outline;
243 .vjs-icon-placeholder {
244 line-height: $control-bar-height;
257 line-height: inherit;
260 font-size: $font-size;
261 display: inline-block;
265 .vjs-current-time-display {
266 line-height: calc(#{$control-bar-height} - 1px);
276 font-size: $font-size;
277 display: inline-block;
280 .vjs-duration-display {
281 line-height: calc(#{$control-bar-height} - 1px);
285 &.vjs-remaining-time {
291 line-height: $control-bar-height;
298 line-height: $control-bar-height;
303 .vjs-peertube-displayed {
307 .vjs-peertube-hidden {
311 .download-speed-number, .upload-speed-number, .peers-number, .http-fallback {
312 font-weight: $font-semibold;
315 .download-speed-text, .upload-speed-text, .peers-text, .http-fallback {
321 background-image: url('#{$assets-path}/player/images/arrow-down.svg');
325 background-image: url('#{$assets-path}/player/images/arrow-up.svg');
331 .vjs-previous-video {
332 line-height: $control-bar-height;
338 mask-image: url('#{$assets-path}/player/images/next.svg');
339 -webkit-mask-image: url('#{$assets-path}/player/images/next.svg');
340 background-color: white;
342 -webkit-mask-size: cover;
346 display: inline-block;
350 transform: rotate(180deg);
357 display: inline-block;
360 background-size: contain;
361 vertical-align: middle;
362 background-repeat: no-repeat;
370 width: 37px !important;
372 .vjs-playback-rate-value {
374 line-height: $control-bar-height;
377 .vjs-menu .vjs-menu-content {
378 width: 37px !important;
383 @include disable-outline;
388 .vjs-icon-placeholder {
389 display: inline-block;
392 vertical-align: middle;
393 background: url('#{$assets-path}/player/images/volume.svg') no-repeat;
394 background-size: contain;
401 &.vjs-vol-0 .vjs-icon-placeholder {
402 background: url('#{$assets-path}/player/images/volume-mute.svg') no-repeat;
403 background-size: contain;
407 .vjs-volume-control {
413 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
414 background-size: 22px 14px;
424 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
425 background-size: 22px 14px;
437 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
438 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
439 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
440 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
442 transition-property: none;
445 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
450 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
451 transition-property: none;
461 .vjs-volume-control {
462 display: inline-block;
472 @include disable-outline;
473 @include disable-default-a-behaviour;
475 text-decoration: none;
476 line-height: $control-bar-height;
477 font-weight: $font-semibold;
481 .vjs-theater-control {
482 @include disable-outline;
488 .vjs-icon-placeholder {
489 transition: transform 0.2s ease;
490 display: inline-block;
493 vertical-align: middle;
494 background: url('#{$assets-path}/player/images/theater.svg') no-repeat;
495 background-size: contain;
503 .vjs-fullscreen-control {
504 @include disable-outline;
507 margin-right: $first-control-bar-element-margin-left;
509 .vjs-icon-placeholder {
510 display: inline-block;
513 vertical-align: middle;
514 background: url('#{$assets-path}/player/images/fullscreen.svg') no-repeat;
515 background-size: contain;
523 .vjs-menu-button-popup {
524 font-weight: $font-semibold;
527 .vjs-resolution-button {
528 @include disable-outline;
541 text-transform: none;
548 @media screen and (max-width: 750px) {
549 .vjs-theater-control {
557 .vjs-dock-description {
561 .vjs-big-play-button {
565 .vjs-icon-placeholder::before {
566 @include big-play-button-triangle-size(32px);
571 @media screen and (max-width: 570px) {
576 .vjs-big-play-button {
580 .vjs-icon-placeholder::before {
581 @include big-play-button-triangle-size(27px);
586 padding: 0 !important;
588 .vjs-peertube-displayed {
589 display: none !important;
595 display: none !important;
599 display: none !important;
604 @media screen and (max-width: 350px) {
609 .vjs-big-play-button {
613 .vjs-icon-placeholder::before {
614 @include big-play-button-triangle-size(20px);
620 .vjs-previous-video {
621 display: none !important;
625 padding: 0 !important;
633 > button:first-child {
634 margin-left: $first-control-bar-element-margin-left-small-width;
638 .vjs-fullscreen-control {
639 margin-right: $first-control-bar-element-margin-left-small-width;
644 display: none !important;
649 // Theater mode is enabled
650 &.vjs-theater-enabled {
651 .vjs-theater-control {
654 .vjs-icon-placeholder {
655 transform: scale(0.8);
660 // On fullscreen, hide theater control
662 .vjs-theater-control {
668 // Play/pause animations
669 .vjs-has-started .vjs-play-control {
671 animation: remove-pause-button 0.25s ease;
675 animation: add-play-button 0.25s ease;
678 @keyframes remove-pause-button {
680 transform: rotate(90deg);
683 transform: rotate(0deg);
687 @keyframes add-play-button {
689 transform: rotate(-90deg);
692 transform: rotate(0deg);
697 // Error display disabled
698 .vjs-error:not(.vjs-error-display-enabled) {
703 .vjs-loading-spinner {
708 // Error display enabled
709 .vjs-error.vjs-error-display-enabled {
715 .vjs-no-next-in-playlist {
720 background-color: rgba(255, 255, 255, 0.5);