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 {
13 font-size: $font-size;
14 color: $primary-foreground-color;
20 .vjs-dock-description {
24 display: inline-block;
34 transform: scale(-1, 1);
38 .vjs-button > .vjs-icon-placeholder::before {
39 line-height: $control-bar-height;
42 .vjs-volume-level::before {
43 content: ''; /* Remove Circle From Progress Bar */
50 .vjs-big-play-button {
54 $big-play-width: 1.2em;
55 $big-play-height: 1.2em;
57 border: 6px solid #fff;
62 width: $big-play-width;
63 height: $big-play-height;
64 line-height: $big-play-height;
65 margin-left: -($big-play-width / 2);
66 margin-top: -($big-play-height / 2);
67 transition: 0.4s opacity;
74 .vjs-icon-placeholder::before {
75 @include big-play-button-triangle-size(45px);
78 background-image: url('#{$assets-path}/player/images/big-play-button.svg');
86 // Small effect when we click on the play button
87 &.vjs-has-big-play-button-clicked {
89 .vjs-big-play-button, .vjs-poster {
93 &.vjs-big-play-button, &.vjs-big-play-button::before {
95 transition: visibility 0.2s, opacity 0.2s;
98 &.vjs-poster, &.vjs-poster::before {
100 transition: visibility 0.3s, opacity 0.3s;
101 transition-delay: 0.05s;
106 // Hide the big play button on autoplay
108 .vjs-big-play-button {
109 display: none !important;
114 .vjs-big-play-button,
115 .vjs-settings-dialog {
116 background-color: rgba($primary-background-color, 0.5);
120 outline: none; /* Remove Blue Outline on Click*/
125 height: $control-bar-height;
126 background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
127 box-shadow: 0 -15px 40px 10px rgba(0, 0, 0, 0.2);
128 text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
130 .vjs-progress-control,
135 .vjs-resolution-control,
136 .vjs-fullscreen-control,
140 color: $primary-foreground-color !important;
141 opacity: $primary-foreground-opacity;
142 transition: opacity .1s;
145 opacity: $primary-foreground-opacity-hover;
152 color: $primary-foreground-color;
153 opacity: $primary-foreground-opacity;
156 .vjs-progress-control {
158 z-index: 100; // On top of the progress bar
160 width: calc(100% - (2 * #{$progress-margin}));
161 margin-left: $progress-margin;
167 background-color: rgba(255, 255, 255, .2);
172 background: $primary-foreground-color;
174 // Not display the circle if the progress is not hovered
177 transition: opacity 0.1s ease;
190 background: rgba(255, 255, 255, .2);
196 .vjs-progress-control:hover .vjs-slider,
197 .vjs-slider.vjs-sliding {
200 .vjs-play-progress::before {
207 @include disable-outline;
210 font-size: $font-size;
215 line-height: inherit;
218 font-size: $font-size;
219 display: inline-block;
222 .vjs-current-time-display {
223 line-height: calc(#{$control-bar-height} + 1px);
233 font-size: $font-size;
234 display: inline-block;
236 .vjs-duration-display {
237 line-height: calc(#{$control-bar-height} + 1px);
241 &.vjs-remaining-time {
248 line-height: $control-bar-height;
251 .vjs-peertube-displayed {
255 .vjs-peertube-hidden {
259 .download-speed-number, .upload-speed-number, .peers-number {
260 font-weight: $font-semibold;
263 .download-speed-text, .upload-speed-text, .peers-text {
268 display: inline-block;
271 background-size: contain;
272 vertical-align: middle;
273 background-repeat: no-repeat;
279 background-image: url('#{$assets-path}/player/images/arrow-down.svg');
283 background-image: url('#{$assets-path}/player/images/arrow-up.svg');
290 width: 37px !important;
292 .vjs-playback-rate-value {
294 line-height: $control-bar-height;
297 .vjs-menu .vjs-menu-content {
298 width: 37px !important;
303 @include disable-outline;
305 line-height: $control-bar-height;
309 .vjs-icon-placeholder {
310 display: inline-block;
313 vertical-align: middle;
314 background: url('#{$assets-path}/player/images/volume.svg') no-repeat;
315 background-size: contain;
322 &.vjs-vol-0 .vjs-icon-placeholder {
323 background: url('#{$assets-path}/player/images/volume-mute.svg') no-repeat;
324 background-size: contain;
328 .vjs-volume-control {
334 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
335 background-size: 22px 14px;
345 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
346 background-size: 22px 14px;
353 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
354 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
355 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
356 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
358 transition-property: none;
361 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
366 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
367 transition-property: none;
377 .vjs-volume-control {
378 display: inline-block;
388 @include disable-outline;
389 @include disable-default-a-behaviour;
391 text-decoration: none;
392 line-height: $control-bar-height;
393 font-weight: $font-semibold;
397 .vjs-fullscreen-control {
398 @include disable-outline;
403 .vjs-icon-placeholder {
404 display: inline-block;
407 vertical-align: middle;
408 background: url('#{$assets-path}/player/images/fullscreen.svg') no-repeat;
409 background-size: contain;
417 .vjs-menu-button-popup {
418 font-weight: $font-semibold;
421 .vjs-resolution-button {
422 @include disable-outline;
435 text-transform: none;
442 @media screen and (max-width: 750px) {
447 .vjs-dock-description {
451 .vjs-big-play-button {
455 .vjs-icon-placeholder::before {
456 @include big-play-button-triangle-size(32px);
461 @media screen and (max-width: 570px) {
466 .vjs-big-play-button {
470 .vjs-icon-placeholder::before {
471 @include big-play-button-triangle-size(27px);
480 padding: 0 !important;
482 .vjs-peertube-displayed {
483 display: none !important;
488 @media screen and (max-width: 300px) {
493 .vjs-big-play-button {
497 .vjs-icon-placeholder::before {
498 @include big-play-button-triangle-size(20px);
502 .vjs-volume-control {
503 display: none !important;
507 padding: 0 !important;
516 // Play/pause animations
517 .vjs-has-started .vjs-play-control {
519 animation: remove-pause-button 0.25s ease;
523 animation: add-play-button 0.25s ease;
526 @keyframes remove-pause-button {
528 transform: rotate(90deg);
531 transform: rotate(0deg);
535 @keyframes add-play-button {
537 transform: rotate(-90deg);
540 transform: rotate(0deg);
545 // Error display disabled
546 .vjs-error:not(.vjs-error-display-enabled) {
551 .vjs-loading-spinner {
556 // Error display enabled
557 .vjs-error.vjs-error-display-enabled {