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 // Hide the big play button on autoplay
129 .vjs-big-play-button {
130 display: none !important;
135 .vjs-big-play-button,
136 .vjs-settings-dialog {
137 background-color: pvar(--embedBigPlayBackgroundColor);
141 outline: none; /* Remove Blue Outline on Click*/
146 height: $control-bar-height;
147 background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
148 box-shadow: 0 -15px 40px 10px rgba(0, 0, 0, 0.2);
149 text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
151 > button:first-child {
152 margin-left: $first-control-bar-element-margin-left;
155 .vjs-progress-control,
160 .vjs-resolution-control,
161 .vjs-fullscreen-control,
163 .vjs-theater-control,
166 color: pvar(--embedForegroundColor) !important;
168 opacity: $primary-foreground-opacity;
169 transition: opacity .1s;
172 opacity: $primary-foreground-opacity-hover;
179 color: pvar(--embedForegroundColor);
180 opacity: $primary-foreground-opacity;
183 .vjs-progress-control {
185 z-index: 100; // On top of the progress bar
187 width: calc(100% - (2 * #{$progress-margin}));
188 margin-left: $progress-margin;
194 background-color: rgba(255, 255, 255, .2);
199 background: pvar(--embedForegroundColor);
201 // Not display the circle if the progress is not hovered
204 transition: opacity 0.1s ease;
217 background: rgba(255, 255, 255, .2);
223 .vjs-progress-control:hover .vjs-slider,
224 .vjs-progress-control .vjs-slider.vjs-sliding {
227 .vjs-play-progress::before {
234 @include disable-outline;
237 font-size: $font-size;
242 line-height: inherit;
245 font-size: $font-size;
246 display: inline-block;
250 .vjs-current-time-display {
251 line-height: calc(#{$control-bar-height} + 1px);
261 font-size: $font-size;
262 display: inline-block;
264 .vjs-duration-display {
265 line-height: calc(#{$control-bar-height} + 1px);
269 &.vjs-remaining-time {
276 line-height: $control-bar-height;
281 .vjs-peertube-displayed {
285 .vjs-peertube-hidden {
289 .download-speed-number, .upload-speed-number, .peers-number, .http-fallback {
290 font-weight: $font-semibold;
293 .download-speed-text, .upload-speed-text, .peers-text, .http-fallback {
299 background-image: url('#{$assets-path}/player/images/arrow-down.svg');
303 background-image: url('#{$assets-path}/player/images/arrow-up.svg');
309 .vjs-previous-video {
310 line-height: $control-bar-height;
316 mask-image: url('#{$assets-path}/player/images/next.svg');
317 -webkit-mask-image: url('#{$assets-path}/player/images/next.svg');
318 background-color: white;
320 -webkit-mask-size: cover;
324 display: inline-block;
328 transform: rotate(180deg);
335 display: inline-block;
338 background-size: contain;
339 vertical-align: middle;
340 background-repeat: no-repeat;
348 width: 37px !important;
350 .vjs-playback-rate-value {
352 line-height: $control-bar-height;
355 .vjs-menu .vjs-menu-content {
356 width: 37px !important;
361 @include disable-outline;
363 line-height: $control-bar-height;
367 .vjs-icon-placeholder {
368 display: inline-block;
371 vertical-align: middle;
372 background: url('#{$assets-path}/player/images/volume.svg') no-repeat;
373 background-size: contain;
380 &.vjs-vol-0 .vjs-icon-placeholder {
381 background: url('#{$assets-path}/player/images/volume-mute.svg') no-repeat;
382 background-size: contain;
386 .vjs-volume-control {
392 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
393 background-size: 22px 14px;
403 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
404 background-size: 22px 14px;
416 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
417 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
418 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
419 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
421 transition-property: none;
424 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
429 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
430 transition-property: none;
440 .vjs-volume-control {
441 display: inline-block;
451 @include disable-outline;
452 @include disable-default-a-behaviour;
454 text-decoration: none;
455 line-height: $control-bar-height;
456 font-weight: $font-semibold;
460 .vjs-theater-control {
461 @include disable-outline;
467 .vjs-icon-placeholder {
468 transition: transform 0.2s ease;
469 display: inline-block;
472 vertical-align: middle;
473 background: url('#{$assets-path}/player/images/theater.svg') no-repeat;
474 background-size: contain;
482 .vjs-fullscreen-control {
483 @include disable-outline;
488 .vjs-icon-placeholder {
489 display: inline-block;
492 vertical-align: middle;
493 background: url('#{$assets-path}/player/images/fullscreen.svg') no-repeat;
494 background-size: contain;
502 .vjs-menu-button-popup {
503 font-weight: $font-semibold;
506 .vjs-resolution-button {
507 @include disable-outline;
520 text-transform: none;
527 @media screen and (max-width: 750px) {
528 .vjs-theater-control {
536 .vjs-dock-description {
540 .vjs-big-play-button {
544 .vjs-icon-placeholder::before {
545 @include big-play-button-triangle-size(32px);
550 @media screen and (max-width: 570px) {
555 .vjs-big-play-button {
559 .vjs-icon-placeholder::before {
560 @include big-play-button-triangle-size(27px);
565 padding: 0 !important;
567 .vjs-peertube-displayed {
568 display: none !important;
573 @media screen and (max-width: 300px) {
578 .vjs-big-play-button {
582 .vjs-icon-placeholder::before {
583 @include big-play-button-triangle-size(20px);
589 .vjs-previous-video {
590 display: none !important;
594 padding: 0 !important;
602 margin-left: $first-control-bar-element-margin-left;
606 // Theater mode is enabled
607 &.vjs-theater-enabled {
608 .vjs-theater-control {
611 .vjs-icon-placeholder {
612 transform: scale(0.8);
617 // On fullscreen, hide theater control
619 .vjs-theater-control {
625 // Play/pause animations
626 .vjs-has-started .vjs-play-control {
628 animation: remove-pause-button 0.25s ease;
632 animation: add-play-button 0.25s ease;
635 @keyframes remove-pause-button {
637 transform: rotate(90deg);
640 transform: rotate(0deg);
644 @keyframes add-play-button {
646 transform: rotate(-90deg);
649 transform: rotate(0deg);
654 // Error display disabled
655 .vjs-error:not(.vjs-error-display-enabled) {
660 .vjs-loading-spinner {
665 // Error display enabled
666 .vjs-error.vjs-error-display-enabled {
672 .vjs-no-next-in-playlist {
677 background-color: rgba(255, 255, 255, 0.5);