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 // 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: var(--embedBigPlayBackgroundColor);
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: var(--embedForegroundColor) !important;
144 opacity: $primary-foreground-opacity;
145 transition: opacity .1s;
148 opacity: $primary-foreground-opacity-hover;
155 color: var(--embedForegroundColor);
156 opacity: $primary-foreground-opacity;
159 .vjs-progress-control {
161 z-index: 100; // On top of the progress bar
163 width: calc(100% - (2 * #{$progress-margin}));
164 margin-left: $progress-margin;
170 background-color: rgba(255, 255, 255, .2);
175 background: var(--embedForegroundColor);
177 // Not display the circle if the progress is not hovered
180 transition: opacity 0.1s ease;
193 background: rgba(255, 255, 255, .2);
199 .vjs-progress-control:hover .vjs-slider,
200 .vjs-progress-control .vjs-slider.vjs-sliding {
203 .vjs-play-progress::before {
210 @include disable-outline;
213 font-size: $font-size;
218 line-height: inherit;
221 font-size: $font-size;
222 display: inline-block;
225 .vjs-current-time-display {
226 line-height: calc(#{$control-bar-height} + 1px);
236 font-size: $font-size;
237 display: inline-block;
239 .vjs-duration-display {
240 line-height: calc(#{$control-bar-height} + 1px);
244 &.vjs-remaining-time {
251 line-height: $control-bar-height;
254 .vjs-peertube-displayed {
258 .vjs-peertube-hidden {
262 .download-speed-number, .upload-speed-number, .peers-number, .http-fallback {
263 font-weight: $font-semibold;
266 .download-speed-text, .upload-speed-text, .peers-text, .http-fallback {
271 display: inline-block;
274 background-size: contain;
275 vertical-align: middle;
276 background-repeat: no-repeat;
282 background-image: url('#{$assets-path}/player/images/arrow-down.svg');
286 background-image: url('#{$assets-path}/player/images/arrow-up.svg');
293 width: 37px !important;
295 .vjs-playback-rate-value {
297 line-height: $control-bar-height;
300 .vjs-menu .vjs-menu-content {
301 width: 37px !important;
306 @include disable-outline;
308 line-height: $control-bar-height;
312 .vjs-icon-placeholder {
313 display: inline-block;
316 vertical-align: middle;
317 background: url('#{$assets-path}/player/images/volume.svg') no-repeat;
318 background-size: contain;
325 &.vjs-vol-0 .vjs-icon-placeholder {
326 background: url('#{$assets-path}/player/images/volume-mute.svg') no-repeat;
327 background-size: contain;
331 .vjs-volume-control {
337 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
338 background-size: 22px 14px;
348 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
349 background-size: 22px 14px;
361 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
362 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
363 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
364 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
366 transition-property: none;
369 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
374 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
375 transition-property: none;
385 .vjs-volume-control {
386 display: inline-block;
396 @include disable-outline;
397 @include disable-default-a-behaviour;
399 text-decoration: none;
400 line-height: $control-bar-height;
401 font-weight: $font-semibold;
405 .vjs-theater-control {
406 @include disable-outline;
412 .vjs-icon-placeholder {
413 transition: transform 0.2s ease;
414 display: inline-block;
417 vertical-align: middle;
418 background: url('#{$assets-path}/player/images/theater.svg') no-repeat;
419 background-size: contain;
427 .vjs-fullscreen-control {
428 @include disable-outline;
433 .vjs-icon-placeholder {
434 display: inline-block;
437 vertical-align: middle;
438 background: url('#{$assets-path}/player/images/fullscreen.svg') no-repeat;
439 background-size: contain;
447 .vjs-menu-button-popup {
448 font-weight: $font-semibold;
451 .vjs-resolution-button {
452 @include disable-outline;
465 text-transform: none;
472 @media screen and (max-width: 750px) {
473 .vjs-theater-control {
481 .vjs-dock-description {
485 .vjs-big-play-button {
489 .vjs-icon-placeholder::before {
490 @include big-play-button-triangle-size(32px);
495 @media screen and (max-width: 570px) {
500 .vjs-big-play-button {
504 .vjs-icon-placeholder::before {
505 @include big-play-button-triangle-size(27px);
510 padding: 0 !important;
512 .vjs-peertube-displayed {
513 display: none !important;
518 @media screen and (max-width: 300px) {
523 .vjs-big-play-button {
527 .vjs-icon-placeholder::before {
528 @include big-play-button-triangle-size(20px);
532 .vjs-volume-control {
533 display: none !important;
537 padding: 0 !important;
545 // Theater mode is enabled
546 &.vjs-theater-enabled {
547 .vjs-theater-control {
550 .vjs-icon-placeholder {
551 transform: scale(0.8);
556 // On fullscreen, hide theater control
558 .vjs-theater-control {
564 // Play/pause animations
565 .vjs-has-started .vjs-play-control {
567 animation: remove-pause-button 0.25s ease;
571 animation: add-play-button 0.25s ease;
574 @keyframes remove-pause-button {
576 transform: rotate(90deg);
579 transform: rotate(0deg);
583 @keyframes add-play-button {
585 transform: rotate(-90deg);
588 transform: rotate(0deg);
593 // Error display disabled
594 .vjs-error:not(.vjs-error-display-enabled) {
599 .vjs-loading-spinner {
604 // Error display enabled
605 .vjs-error.vjs-error-display-enabled {