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: var(--embedForegroundColor);
26 .vjs-dock-description {
35 transform: scale(-1, 1);
39 .vjs-button > .vjs-icon-placeholder::before {
40 line-height: $control-bar-height;
43 .vjs-volume-level::before {
44 content: ''; /* Remove Circle From Progress Bar */
51 .vjs-big-play-button {
55 $big-play-width: 1.2em;
56 $big-play-height: 1.2em;
58 border: 4px solid #fff;
63 width: $big-play-width;
64 height: $big-play-height;
65 line-height: $big-play-height;
66 margin-left: -($big-play-width / 2);
67 margin-top: -($big-play-height / 2);
68 transition: 0.4s opacity;
75 .vjs-icon-placeholder::before {
76 @include big-play-button-triangle-size(45px);
79 background-image: url('#{$assets-path}/player/images/big-play-button.svg');
87 // Small effect when we click on the play button
88 &.vjs-has-big-play-button-clicked {
90 .vjs-big-play-button, .vjs-poster {
94 &.vjs-big-play-button, &.vjs-big-play-button::before {
96 transition: visibility 0.2s, opacity 0.2s;
99 &.vjs-poster, &.vjs-poster::before {
101 transition: visibility 0.3s, opacity 0.3s;
102 transition-delay: 0.05s;
107 // Show poster and controls when playing audio-only content
108 &.vjs-playing-audio-only-content {
115 opacity: $primary-foreground-opacity-hover;
119 // Hide the big play button on autoplay
121 .vjs-big-play-button {
122 display: none !important;
127 .vjs-big-play-button,
128 .vjs-settings-dialog {
129 background-color: var(--embedBigPlayBackgroundColor);
133 outline: none; /* Remove Blue Outline on Click*/
138 height: $control-bar-height;
139 background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
140 box-shadow: 0 -15px 40px 10px rgba(0, 0, 0, 0.2);
141 text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
143 .vjs-progress-control,
148 .vjs-resolution-control,
149 .vjs-fullscreen-control,
151 .vjs-theater-control,
154 color: var(--embedForegroundColor) !important;
156 opacity: $primary-foreground-opacity;
157 transition: opacity .1s;
160 opacity: $primary-foreground-opacity-hover;
167 color: var(--embedForegroundColor);
168 opacity: $primary-foreground-opacity;
171 .vjs-progress-control {
173 z-index: 100; // On top of the progress bar
175 width: calc(100% - (2 * #{$progress-margin}));
176 margin-left: $progress-margin;
182 background-color: rgba(255, 255, 255, .2);
187 background: var(--embedForegroundColor);
189 // Not display the circle if the progress is not hovered
192 transition: opacity 0.1s ease;
205 background: rgba(255, 255, 255, .2);
211 .vjs-progress-control:hover .vjs-slider,
212 .vjs-progress-control .vjs-slider.vjs-sliding {
215 .vjs-play-progress::before {
222 @include disable-outline;
225 font-size: $font-size;
231 line-height: inherit;
234 font-size: $font-size;
235 display: inline-block;
239 .vjs-current-time-display {
240 line-height: calc(#{$control-bar-height} + 1px);
250 font-size: $font-size;
251 display: inline-block;
253 .vjs-duration-display {
254 line-height: calc(#{$control-bar-height} + 1px);
258 &.vjs-remaining-time {
265 line-height: $control-bar-height;
269 .vjs-peertube-displayed {
273 .vjs-peertube-hidden {
277 .download-speed-number, .upload-speed-number, .peers-number, .http-fallback {
278 font-weight: $font-semibold;
281 .download-speed-text, .upload-speed-text, .peers-text, .http-fallback {
287 background-image: url('#{$assets-path}/player/images/arrow-down.svg');
291 background-image: url('#{$assets-path}/player/images/arrow-up.svg');
297 line-height: $control-bar-height;
302 mask-image: url('#{$assets-path}/player/images/next.svg');
303 background-color: white;
305 transform: scale(2.2);
313 display: inline-block;
316 background-size: contain;
317 vertical-align: middle;
318 background-repeat: no-repeat;
326 width: 37px !important;
328 .vjs-playback-rate-value {
330 line-height: $control-bar-height;
333 .vjs-menu .vjs-menu-content {
334 width: 37px !important;
339 @include disable-outline;
341 line-height: $control-bar-height;
345 .vjs-icon-placeholder {
346 display: inline-block;
349 vertical-align: middle;
350 background: url('#{$assets-path}/player/images/volume.svg') no-repeat;
351 background-size: contain;
358 &.vjs-vol-0 .vjs-icon-placeholder {
359 background: url('#{$assets-path}/player/images/volume-mute.svg') no-repeat;
360 background-size: contain;
364 .vjs-volume-control {
370 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
371 background-size: 22px 14px;
381 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
382 background-size: 22px 14px;
394 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
395 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
396 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
397 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
399 transition-property: none;
402 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
407 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
408 transition-property: none;
418 .vjs-volume-control {
419 display: inline-block;
429 @include disable-outline;
430 @include disable-default-a-behaviour;
432 text-decoration: none;
433 line-height: $control-bar-height;
434 font-weight: $font-semibold;
438 .vjs-theater-control {
439 @include disable-outline;
445 .vjs-icon-placeholder {
446 transition: transform 0.2s ease;
447 display: inline-block;
450 vertical-align: middle;
451 background: url('#{$assets-path}/player/images/theater.svg') no-repeat;
452 background-size: contain;
460 .vjs-fullscreen-control {
461 @include disable-outline;
466 .vjs-icon-placeholder {
467 display: inline-block;
470 vertical-align: middle;
471 background: url('#{$assets-path}/player/images/fullscreen.svg') no-repeat;
472 background-size: contain;
480 .vjs-menu-button-popup {
481 font-weight: $font-semibold;
484 .vjs-resolution-button {
485 @include disable-outline;
498 text-transform: none;
505 @media screen and (max-width: 750px) {
506 .vjs-theater-control {
514 .vjs-dock-description {
518 .vjs-big-play-button {
522 .vjs-icon-placeholder::before {
523 @include big-play-button-triangle-size(32px);
528 @media screen and (max-width: 570px) {
533 .vjs-big-play-button {
537 .vjs-icon-placeholder::before {
538 @include big-play-button-triangle-size(27px);
543 padding: 0 !important;
545 .vjs-peertube-displayed {
546 display: none !important;
551 @media screen and (max-width: 300px) {
556 .vjs-big-play-button {
560 .vjs-icon-placeholder::before {
561 @include big-play-button-triangle-size(20px);
565 .vjs-volume-control {
566 display: none !important;
570 padding: 0 !important;
578 // Theater mode is enabled
579 &.vjs-theater-enabled {
580 .vjs-theater-control {
583 .vjs-icon-placeholder {
584 transform: scale(0.8);
589 // On fullscreen, hide theater control
591 .vjs-theater-control {
597 // Play/pause animations
598 .vjs-has-started .vjs-play-control {
600 animation: remove-pause-button 0.25s ease;
604 animation: add-play-button 0.25s ease;
607 @keyframes remove-pause-button {
609 transform: rotate(90deg);
612 transform: rotate(0deg);
616 @keyframes add-play-button {
618 transform: rotate(-90deg);
621 transform: rotate(0deg);
626 // Error display disabled
627 .vjs-error:not(.vjs-error-display-enabled) {
632 .vjs-loading-spinner {
637 // Error display enabled
638 .vjs-error.vjs-error-display-enabled {