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 {
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: 6px 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-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 {
262 font-weight: $font-semibold;
265 .download-speed-text, .upload-speed-text, .peers-text {
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;
355 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
356 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
357 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
358 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
360 transition-property: none;
363 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
368 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
369 transition-property: none;
379 .vjs-volume-control {
380 display: inline-block;
390 @include disable-outline;
391 @include disable-default-a-behaviour;
393 text-decoration: none;
394 line-height: $control-bar-height;
395 font-weight: $font-semibold;
399 .vjs-theater-control {
400 @include disable-outline;
405 .vjs-icon-placeholder {
406 transition: transform 0.2s ease;
407 display: inline-block;
410 vertical-align: middle;
411 background: url('#{$assets-path}/player/images/theater.svg') no-repeat;
412 background-size: contain;
420 .vjs-fullscreen-control {
421 @include disable-outline;
426 .vjs-icon-placeholder {
427 display: inline-block;
430 vertical-align: middle;
431 background: url('#{$assets-path}/player/images/fullscreen.svg') no-repeat;
432 background-size: contain;
440 .vjs-menu-button-popup {
441 font-weight: $font-semibold;
444 .vjs-resolution-button {
445 @include disable-outline;
458 text-transform: none;
465 @media screen and (max-width: 750px) {
466 .vjs-theater-control {
474 .vjs-dock-description {
478 .vjs-big-play-button {
482 .vjs-icon-placeholder::before {
483 @include big-play-button-triangle-size(32px);
488 @media screen and (max-width: 570px) {
493 .vjs-big-play-button {
497 .vjs-icon-placeholder::before {
498 @include big-play-button-triangle-size(27px);
507 padding: 0 !important;
509 .vjs-peertube-displayed {
510 display: none !important;
515 @media screen and (max-width: 300px) {
520 .vjs-big-play-button {
524 .vjs-icon-placeholder::before {
525 @include big-play-button-triangle-size(20px);
529 .vjs-volume-control {
530 display: none !important;
534 padding: 0 !important;
542 // Theater mode is enabled
543 &.vjs-theater-enabled {
544 .vjs-theater-control {
547 .vjs-icon-placeholder {
548 transform: scale(0.8);
553 // On fullscreen, hide theater control
555 .vjs-theater-control {
561 // Play/pause animations
562 .vjs-has-started .vjs-play-control {
564 animation: remove-pause-button 0.25s ease;
568 animation: add-play-button 0.25s ease;
571 @keyframes remove-pause-button {
573 transform: rotate(90deg);
576 transform: rotate(0deg);
580 @keyframes add-play-button {
582 transform: rotate(-90deg);
585 transform: rotate(0deg);
590 // Error display disabled
591 .vjs-error:not(.vjs-error-display-enabled) {
596 .vjs-loading-spinner {
601 // Error display enabled
602 .vjs-error.vjs-error-display-enabled {