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-button > .vjs-icon-placeholder::before {
47 line-height: $control-bar-height;
50 .vjs-volume-level::before {
51 content: ''; /* Remove Circle From Progress Bar */
58 .vjs-big-play-button {
62 $big-play-width: 1.2em;
63 $big-play-height: 1.2em;
65 border: 2px solid #fff;
70 width: $big-play-width;
71 height: $big-play-height;
72 line-height: $big-play-height;
73 margin-left: -($big-play-width / 2);
74 margin-top: -($big-play-height / 2);
75 transition: 0.4s opacity;
82 .vjs-icon-placeholder::before {
83 @include big-play-button-triangle-size(45px);
86 background-image: url('#{$assets-path}/player/images/big-play-button.svg');
89 &.focus-visible, &:hover {
90 background-color: var(--mainColor, dimgray);
95 // Small effect when we click on the play button
96 &.vjs-has-big-play-button-clicked {
98 .vjs-big-play-button, .vjs-poster {
102 &.vjs-big-play-button, &.vjs-big-play-button::before {
104 transition: visibility 0.2s, opacity 0.2s;
107 &.vjs-poster, &.vjs-poster::before {
109 transition: visibility 0.3s, opacity 0.3s;
110 transition-delay: 0.05s;
115 // Show poster and controls when playing audio-only content
116 &.vjs-playing-audio-only-content {
123 opacity: $primary-foreground-opacity-hover;
127 // Do not display poster when video is starting
128 &.vjs-has-autoplay:not(.vjs-has-started) {
135 // Hide the big play button on autoplay
137 .vjs-big-play-button {
138 display: none !important;
143 .vjs-big-play-button,
144 .vjs-settings-dialog {
145 background-color: pvar(--embedBigPlayBackgroundColor);
149 outline: none; /* Remove Blue Outline on Click*/
154 height: $control-bar-height;
155 background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
156 box-shadow: 0 -15px 40px 10px rgba(0, 0, 0, 0.2);
157 text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
159 > button:first-child {
160 margin-left: $first-control-bar-element-margin-left;
163 .vjs-progress-control,
168 .vjs-resolution-control,
169 .vjs-fullscreen-control,
171 .vjs-theater-control,
174 color: pvar(--embedForegroundColor) !important;
176 opacity: $primary-foreground-opacity;
177 transition: opacity .1s;
180 opacity: $primary-foreground-opacity-hover;
187 color: pvar(--embedForegroundColor);
188 opacity: $primary-foreground-opacity;
191 .vjs-progress-control {
193 z-index: 100; // On top of the progress bar
195 width: calc(100% - (2 * #{$progress-margin}));
196 margin-left: $progress-margin;
202 background-color: rgba(255, 255, 255, .2);
207 background: pvar(--embedForegroundColor);
209 // Not display the circle if the progress is not hovered
212 transition: opacity 0.1s ease;
225 background: rgba(255, 255, 255, .2);
231 .vjs-progress-control:hover .vjs-slider,
232 .vjs-progress-control .vjs-slider.vjs-sliding {
235 .vjs-play-progress::before {
242 @include disable-outline;
245 font-size: $play-control-font-size;
250 line-height: inherit;
253 font-size: $font-size;
254 display: inline-block;
258 .vjs-current-time-display {
259 line-height: calc(#{$control-bar-height} - 1px);
269 font-size: $font-size;
270 display: inline-block;
273 .vjs-duration-display {
274 line-height: calc(#{$control-bar-height} - 1px);
278 &.vjs-remaining-time {
284 line-height: $control-bar-height;
291 line-height: $control-bar-height;
296 .vjs-peertube-displayed {
300 .vjs-peertube-hidden {
304 .download-speed-number, .upload-speed-number, .peers-number, .http-fallback {
305 font-weight: $font-semibold;
308 .download-speed-text, .upload-speed-text, .peers-text, .http-fallback {
314 background-image: url('#{$assets-path}/player/images/arrow-down.svg');
318 background-image: url('#{$assets-path}/player/images/arrow-up.svg');
324 .vjs-previous-video {
325 line-height: $control-bar-height;
331 mask-image: url('#{$assets-path}/player/images/next.svg');
332 -webkit-mask-image: url('#{$assets-path}/player/images/next.svg');
333 background-color: white;
335 -webkit-mask-size: cover;
339 display: inline-block;
343 transform: rotate(180deg);
350 display: inline-block;
353 background-size: contain;
354 vertical-align: middle;
355 background-repeat: no-repeat;
363 width: 37px !important;
365 .vjs-playback-rate-value {
367 line-height: $control-bar-height;
370 .vjs-menu .vjs-menu-content {
371 width: 37px !important;
376 @include disable-outline;
378 line-height: $control-bar-height;
382 .vjs-icon-placeholder {
383 display: inline-block;
386 vertical-align: middle;
387 background: url('#{$assets-path}/player/images/volume.svg') no-repeat;
388 background-size: contain;
395 &.vjs-vol-0 .vjs-icon-placeholder {
396 background: url('#{$assets-path}/player/images/volume-mute.svg') no-repeat;
397 background-size: contain;
401 .vjs-volume-control {
407 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
408 background-size: 22px 14px;
418 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
419 background-size: 22px 14px;
431 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
432 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
433 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
434 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
436 transition-property: none;
439 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
444 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
445 transition-property: none;
455 .vjs-volume-control {
456 display: inline-block;
466 @include disable-outline;
467 @include disable-default-a-behaviour;
469 text-decoration: none;
470 line-height: $control-bar-height;
471 font-weight: $font-semibold;
475 .vjs-theater-control {
476 @include disable-outline;
482 .vjs-icon-placeholder {
483 transition: transform 0.2s ease;
484 display: inline-block;
487 vertical-align: middle;
488 background: url('#{$assets-path}/player/images/theater.svg') no-repeat;
489 background-size: contain;
497 .vjs-fullscreen-control {
498 @include disable-outline;
501 margin-right: $first-control-bar-element-margin-left;
503 .vjs-icon-placeholder {
504 display: inline-block;
507 vertical-align: middle;
508 background: url('#{$assets-path}/player/images/fullscreen.svg') no-repeat;
509 background-size: contain;
517 .vjs-menu-button-popup {
518 font-weight: $font-semibold;
521 .vjs-resolution-button {
522 @include disable-outline;
535 text-transform: none;
542 @media screen and (max-width: 750px) {
543 .vjs-theater-control {
551 .vjs-dock-description {
555 .vjs-big-play-button {
559 .vjs-icon-placeholder::before {
560 @include big-play-button-triangle-size(32px);
565 @media screen and (max-width: 570px) {
570 .vjs-big-play-button {
574 .vjs-icon-placeholder::before {
575 @include big-play-button-triangle-size(27px);
580 padding: 0 !important;
582 .vjs-peertube-displayed {
583 display: none !important;
589 display: none !important;
593 display: none !important;
598 @media screen and (max-width: 350px) {
603 .vjs-big-play-button {
607 .vjs-icon-placeholder::before {
608 @include big-play-button-triangle-size(20px);
614 .vjs-previous-video {
615 display: none !important;
619 padding: 0 !important;
627 > button:first-child {
628 margin-left: $first-control-bar-element-margin-left-small-width;
632 .vjs-fullscreen-control {
633 margin-right: $first-control-bar-element-margin-left-small-width;
638 display: none !important;
643 // Theater mode is enabled
644 &.vjs-theater-enabled {
645 .vjs-theater-control {
648 .vjs-icon-placeholder {
649 transform: scale(0.8);
654 // On fullscreen, hide theater control
656 .vjs-theater-control {
662 // Play/pause animations
663 .vjs-has-started .vjs-play-control {
665 animation: remove-pause-button 0.25s ease;
669 animation: add-play-button 0.25s ease;
672 @keyframes remove-pause-button {
674 transform: rotate(90deg);
677 transform: rotate(0deg);
681 @keyframes add-play-button {
683 transform: rotate(-90deg);
686 transform: rotate(0deg);
691 // Error display disabled
692 .vjs-error:not(.vjs-error-display-enabled) {
697 .vjs-loading-spinner {
702 // Error display enabled
703 .vjs-error.vjs-error-display-enabled {
709 .vjs-no-next-in-playlist {
714 background-color: rgba(255, 255, 255, 0.5);