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: var(--embedForegroundColor);
20 .vjs-dock-description {
29 transform: scale(-1, 1);
33 .vjs-button > .vjs-icon-placeholder::before {
34 line-height: $control-bar-height;
37 .vjs-volume-level::before {
38 content: ''; /* Remove Circle From Progress Bar */
45 .vjs-big-play-button {
49 $big-play-width: 1.2em;
50 $big-play-height: 1.2em;
52 border: 4px solid #fff;
57 width: $big-play-width;
58 height: $big-play-height;
59 line-height: $big-play-height;
60 margin-left: -($big-play-width / 2);
61 margin-top: -($big-play-height / 2);
62 transition: 0.4s opacity;
69 .vjs-icon-placeholder::before {
70 @include big-play-button-triangle-size(45px);
73 background-image: url('#{$assets-path}/player/images/big-play-button.svg');
81 // Small effect when we click on the play button
82 &.vjs-has-big-play-button-clicked {
84 .vjs-big-play-button, .vjs-poster {
88 &.vjs-big-play-button, &.vjs-big-play-button::before {
90 transition: visibility 0.2s, opacity 0.2s;
93 &.vjs-poster, &.vjs-poster::before {
95 transition: visibility 0.3s, opacity 0.3s;
96 transition-delay: 0.05s;
101 // Hide the big play button on autoplay
103 .vjs-big-play-button {
104 display: none !important;
109 .vjs-big-play-button,
110 .vjs-settings-dialog {
111 background-color: var(--embedBigPlayBackgroundColor);
115 outline: none; /* Remove Blue Outline on Click*/
120 height: $control-bar-height;
121 background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
122 box-shadow: 0 -15px 40px 10px rgba(0, 0, 0, 0.2);
123 text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
125 .vjs-progress-control,
130 .vjs-resolution-control,
131 .vjs-fullscreen-control,
133 .vjs-theater-control,
136 color: var(--embedForegroundColor) !important;
138 opacity: $primary-foreground-opacity;
139 transition: opacity .1s;
142 opacity: $primary-foreground-opacity-hover;
149 color: var(--embedForegroundColor);
150 opacity: $primary-foreground-opacity;
153 .vjs-progress-control {
155 z-index: 100; // On top of the progress bar
157 width: calc(100% - (2 * #{$progress-margin}));
158 margin-left: $progress-margin;
164 background-color: rgba(255, 255, 255, .2);
169 background: var(--embedForegroundColor);
171 // Not display the circle if the progress is not hovered
174 transition: opacity 0.1s ease;
187 background: rgba(255, 255, 255, .2);
193 .vjs-progress-control:hover .vjs-slider,
194 .vjs-progress-control .vjs-slider.vjs-sliding {
197 .vjs-play-progress::before {
204 @include disable-outline;
207 font-size: $font-size;
212 line-height: inherit;
215 font-size: $font-size;
216 display: inline-block;
219 .vjs-current-time-display {
220 line-height: calc(#{$control-bar-height} + 1px);
230 font-size: $font-size;
231 display: inline-block;
233 .vjs-duration-display {
234 line-height: calc(#{$control-bar-height} + 1px);
238 &.vjs-remaining-time {
245 line-height: $control-bar-height;
248 .vjs-peertube-displayed {
252 .vjs-peertube-hidden {
256 .download-speed-number, .upload-speed-number, .peers-number, .http-fallback {
257 font-weight: $font-semibold;
260 .download-speed-text, .upload-speed-text, .peers-text, .http-fallback {
265 display: inline-block;
268 background-size: contain;
269 vertical-align: middle;
270 background-repeat: no-repeat;
276 background-image: url('#{$assets-path}/player/images/arrow-down.svg');
280 background-image: url('#{$assets-path}/player/images/arrow-up.svg');
287 width: 37px !important;
289 .vjs-playback-rate-value {
291 line-height: $control-bar-height;
294 .vjs-menu .vjs-menu-content {
295 width: 37px !important;
300 @include disable-outline;
302 line-height: $control-bar-height;
306 .vjs-icon-placeholder {
307 display: inline-block;
310 vertical-align: middle;
311 background: url('#{$assets-path}/player/images/volume.svg') no-repeat;
312 background-size: contain;
319 &.vjs-vol-0 .vjs-icon-placeholder {
320 background: url('#{$assets-path}/player/images/volume-mute.svg') no-repeat;
321 background-size: contain;
325 .vjs-volume-control {
331 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
332 background-size: 22px 14px;
342 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
343 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;
406 .vjs-icon-placeholder {
407 transition: transform 0.2s ease;
408 display: inline-block;
411 vertical-align: middle;
412 background: url('#{$assets-path}/player/images/theater.svg') no-repeat;
413 background-size: contain;
421 .vjs-fullscreen-control {
422 @include disable-outline;
427 .vjs-icon-placeholder {
428 display: inline-block;
431 vertical-align: middle;
432 background: url('#{$assets-path}/player/images/fullscreen.svg') no-repeat;
433 background-size: contain;
441 .vjs-menu-button-popup {
442 font-weight: $font-semibold;
445 .vjs-resolution-button {
446 @include disable-outline;
459 text-transform: none;
466 @media screen and (max-width: 750px) {
467 .vjs-theater-control {
475 .vjs-dock-description {
479 .vjs-big-play-button {
483 .vjs-icon-placeholder::before {
484 @include big-play-button-triangle-size(32px);
489 @media screen and (max-width: 570px) {
494 .vjs-big-play-button {
498 .vjs-icon-placeholder::before {
499 @include big-play-button-triangle-size(27px);
504 padding: 0 !important;
506 .vjs-peertube-displayed {
507 display: none !important;
512 @media screen and (max-width: 300px) {
517 .vjs-big-play-button {
521 .vjs-icon-placeholder::before {
522 @include big-play-button-triangle-size(20px);
526 .vjs-volume-control {
527 display: none !important;
531 padding: 0 !important;
539 // Theater mode is enabled
540 &.vjs-theater-enabled {
541 .vjs-theater-control {
544 .vjs-icon-placeholder {
545 transform: scale(0.8);
550 // On fullscreen, hide theater control
552 .vjs-theater-control {
558 // Play/pause animations
559 .vjs-has-started .vjs-play-control {
561 animation: remove-pause-button 0.25s ease;
565 animation: add-play-button 0.25s ease;
568 @keyframes remove-pause-button {
570 transform: rotate(90deg);
573 transform: rotate(0deg);
577 @keyframes add-play-button {
579 transform: rotate(-90deg);
582 transform: rotate(0deg);
587 // Error display disabled
588 .vjs-error:not(.vjs-error-display-enabled) {
593 .vjs-loading-spinner {
598 // Error display enabled
599 .vjs-error.vjs-error-display-enabled {