3 @import './_player-variables';
5 @mixin big-play-button-triangle-size($triangle-size) {
7 height: $triangle-size;
8 top: calc(50% - #{$triangle-size / 2});
9 left: calc(53% - #{($triangle-size / 2)});
12 .video-js.vjs-peertube-skin {
14 font-size: $font-size;
15 color: $primary-foreground-color;
21 .vjs-dock-description {
24 .text::before, .text::after {
25 display: inline-block;
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 // Hide the big play button on autoplay
109 .vjs-big-play-button {
110 display: none !important;
115 .vjs-big-play-button,
116 .vjs-settings-dialog {
117 background-color: rgba($primary-background-color, 0.5);
121 outline: none; /* Remove Blue Outline on Click*/
126 height: $control-bar-height;
127 background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
128 box-shadow: 0 -15px 40px 10px rgba(0, 0, 0, 0.2);
129 text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
131 .vjs-progress-control,
136 .vjs-resolution-control,
137 .vjs-fullscreen-control,
139 .vjs-theater-control,
142 color: $primary-foreground-color !important;
143 opacity: $primary-foreground-opacity;
144 transition: opacity .1s;
147 opacity: $primary-foreground-opacity-hover;
154 color: $primary-foreground-color;
155 opacity: $primary-foreground-opacity;
158 .vjs-progress-control {
160 z-index: 100; // On top of the progress bar
162 width: calc(100% - (2 * #{$progress-margin}));
163 margin-left: $progress-margin;
169 background-color: rgba(255, 255, 255, .2);
174 background: $primary-foreground-color;
176 // Not display the circle if the progress is not hovered
179 transition: opacity 0.1s ease;
192 background: rgba(255, 255, 255, .2);
198 .vjs-progress-control:hover .vjs-slider,
199 .vjs-progress-control .vjs-slider.vjs-sliding {
202 .vjs-play-progress::before {
209 @include disable-outline;
212 font-size: $font-size;
217 line-height: inherit;
220 font-size: $font-size;
221 display: inline-block;
224 .vjs-current-time-display {
225 line-height: calc(#{$control-bar-height} + 1px);
235 font-size: $font-size;
236 display: inline-block;
238 .vjs-duration-display {
239 line-height: calc(#{$control-bar-height} + 1px);
243 &.vjs-remaining-time {
250 line-height: $control-bar-height;
253 .vjs-peertube-displayed {
257 .vjs-peertube-hidden {
261 .download-speed-number, .upload-speed-number, .peers-number, .http-fallback {
262 font-weight: $font-semibold;
265 .download-speed-text, .upload-speed-text, .peers-text, .http-fallback {
270 display: inline-block;
273 background-size: contain;
274 vertical-align: middle;
275 background-repeat: no-repeat;
281 background-image: url('#{$assets-path}/player/images/arrow-down.svg');
285 background-image: url('#{$assets-path}/player/images/arrow-up.svg');
292 width: 37px !important;
294 .vjs-playback-rate-value {
296 line-height: $control-bar-height;
299 .vjs-menu .vjs-menu-content {
300 width: 37px !important;
305 @include disable-outline;
307 line-height: $control-bar-height;
311 .vjs-icon-placeholder {
312 display: inline-block;
315 vertical-align: middle;
316 background: url('#{$assets-path}/player/images/volume.svg') no-repeat;
317 background-size: contain;
324 &.vjs-vol-0 .vjs-icon-placeholder {
325 background: url('#{$assets-path}/player/images/volume-mute.svg') no-repeat;
326 background-size: contain;
330 .vjs-volume-control {
336 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
337 background-size: 22px 14px;
347 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
348 background-size: 22px 14px;
360 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
361 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
362 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
363 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
365 transition-property: none;
368 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
373 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
374 transition-property: none;
384 .vjs-volume-control {
385 display: inline-block;
395 @include disable-outline;
396 @include disable-default-a-behaviour;
398 text-decoration: none;
399 line-height: $control-bar-height;
400 font-weight: $font-semibold;
404 .vjs-theater-control {
405 @include disable-outline;
411 .vjs-icon-placeholder {
412 transition: transform 0.2s ease;
413 display: inline-block;
416 vertical-align: middle;
417 background: url('#{$assets-path}/player/images/theater.svg') no-repeat;
418 background-size: contain;
426 .vjs-fullscreen-control {
427 @include disable-outline;
432 .vjs-icon-placeholder {
433 display: inline-block;
436 vertical-align: middle;
437 background: url('#{$assets-path}/player/images/fullscreen.svg') no-repeat;
438 background-size: contain;
446 .vjs-menu-button-popup {
447 font-weight: $font-semibold;
450 .vjs-resolution-button {
451 @include disable-outline;
464 text-transform: none;
471 @media screen and (max-width: 750px) {
472 .vjs-theater-control {
480 .vjs-dock-description {
484 .vjs-big-play-button {
488 .vjs-icon-placeholder::before {
489 @include big-play-button-triangle-size(32px);
494 @media screen and (max-width: 570px) {
499 .vjs-big-play-button {
503 .vjs-icon-placeholder::before {
504 @include big-play-button-triangle-size(27px);
509 padding: 0 !important;
511 .vjs-peertube-displayed {
512 display: none !important;
517 @media screen and (max-width: 300px) {
522 .vjs-big-play-button {
526 .vjs-icon-placeholder::before {
527 @include big-play-button-triangle-size(20px);
531 .vjs-volume-control {
532 display: none !important;
536 padding: 0 !important;
544 // Theater mode is enabled
545 &.vjs-theater-enabled {
546 .vjs-theater-control {
549 .vjs-icon-placeholder {
550 transform: scale(0.8);
555 // On fullscreen, hide theater control
557 .vjs-theater-control {
563 // Play/pause animations
564 .vjs-has-started .vjs-play-control {
566 animation: remove-pause-button 0.25s ease;
570 animation: add-play-button 0.25s ease;
573 @keyframes remove-pause-button {
575 transform: rotate(90deg);
578 transform: rotate(0deg);
582 @keyframes add-play-button {
584 transform: rotate(-90deg);
587 transform: rotate(0deg);
592 // Error display disabled
593 .vjs-error:not(.vjs-error-display-enabled) {
598 .vjs-loading-spinner {
603 // Error display enabled
604 .vjs-error.vjs-error-display-enabled {