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 // Show poster and controls when playing audio-only content
108 &.vjs-playing-audio-only-content {
115 opacity: $primary-foreground-opacity-hover;
119 // Hide the big play button on autoplay
121 .vjs-big-play-button {
122 display: none !important;
127 .vjs-big-play-button,
128 .vjs-settings-dialog {
129 background-color: var(--embedBigPlayBackgroundColor);
133 outline: none; /* Remove Blue Outline on Click*/
138 height: $control-bar-height;
139 background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
140 box-shadow: 0 -15px 40px 10px rgba(0, 0, 0, 0.2);
141 text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
143 .vjs-progress-control,
148 .vjs-resolution-control,
149 .vjs-fullscreen-control,
151 .vjs-theater-control,
154 color: var(--embedForegroundColor) !important;
156 opacity: $primary-foreground-opacity;
157 transition: opacity .1s;
160 opacity: $primary-foreground-opacity-hover;
167 color: var(--embedForegroundColor);
168 opacity: $primary-foreground-opacity;
171 .vjs-progress-control {
173 z-index: 100; // On top of the progress bar
175 width: calc(100% - (2 * #{$progress-margin}));
176 margin-left: $progress-margin;
182 background-color: rgba(255, 255, 255, .2);
187 background: var(--embedForegroundColor);
189 // Not display the circle if the progress is not hovered
192 transition: opacity 0.1s ease;
205 background: rgba(255, 255, 255, .2);
211 .vjs-progress-control:hover .vjs-slider,
212 .vjs-progress-control .vjs-slider.vjs-sliding {
215 .vjs-play-progress::before {
222 @include disable-outline;
225 font-size: $font-size;
230 line-height: inherit;
233 font-size: $font-size;
234 display: inline-block;
237 .vjs-current-time-display {
238 line-height: calc(#{$control-bar-height} + 1px);
248 font-size: $font-size;
249 display: inline-block;
251 .vjs-duration-display {
252 line-height: calc(#{$control-bar-height} + 1px);
256 &.vjs-remaining-time {
263 line-height: $control-bar-height;
266 .vjs-peertube-displayed {
270 .vjs-peertube-hidden {
274 .download-speed-number, .upload-speed-number, .peers-number, .http-fallback {
275 font-weight: $font-semibold;
278 .download-speed-text, .upload-speed-text, .peers-text, .http-fallback {
283 display: inline-block;
286 background-size: contain;
287 vertical-align: middle;
288 background-repeat: no-repeat;
294 background-image: url('#{$assets-path}/player/images/arrow-down.svg');
298 background-image: url('#{$assets-path}/player/images/arrow-up.svg');
305 width: 37px !important;
307 .vjs-playback-rate-value {
309 line-height: $control-bar-height;
312 .vjs-menu .vjs-menu-content {
313 width: 37px !important;
318 @include disable-outline;
320 line-height: $control-bar-height;
324 .vjs-icon-placeholder {
325 display: inline-block;
328 vertical-align: middle;
329 background: url('#{$assets-path}/player/images/volume.svg') no-repeat;
330 background-size: contain;
337 &.vjs-vol-0 .vjs-icon-placeholder {
338 background: url('#{$assets-path}/player/images/volume-mute.svg') no-repeat;
339 background-size: contain;
343 .vjs-volume-control {
349 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
350 background-size: 22px 14px;
360 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
361 background-size: 22px 14px;
373 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
374 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
375 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
376 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
378 transition-property: none;
381 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
386 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
387 transition-property: none;
397 .vjs-volume-control {
398 display: inline-block;
408 @include disable-outline;
409 @include disable-default-a-behaviour;
411 text-decoration: none;
412 line-height: $control-bar-height;
413 font-weight: $font-semibold;
417 .vjs-theater-control {
418 @include disable-outline;
424 .vjs-icon-placeholder {
425 transition: transform 0.2s ease;
426 display: inline-block;
429 vertical-align: middle;
430 background: url('#{$assets-path}/player/images/theater.svg') no-repeat;
431 background-size: contain;
439 .vjs-fullscreen-control {
440 @include disable-outline;
445 .vjs-icon-placeholder {
446 display: inline-block;
449 vertical-align: middle;
450 background: url('#{$assets-path}/player/images/fullscreen.svg') no-repeat;
451 background-size: contain;
459 .vjs-menu-button-popup {
460 font-weight: $font-semibold;
463 .vjs-resolution-button {
464 @include disable-outline;
477 text-transform: none;
484 @media screen and (max-width: 750px) {
485 .vjs-theater-control {
493 .vjs-dock-description {
497 .vjs-big-play-button {
501 .vjs-icon-placeholder::before {
502 @include big-play-button-triangle-size(32px);
507 @media screen and (max-width: 570px) {
512 .vjs-big-play-button {
516 .vjs-icon-placeholder::before {
517 @include big-play-button-triangle-size(27px);
522 padding: 0 !important;
524 .vjs-peertube-displayed {
525 display: none !important;
530 @media screen and (max-width: 300px) {
535 .vjs-big-play-button {
539 .vjs-icon-placeholder::before {
540 @include big-play-button-triangle-size(20px);
544 .vjs-volume-control {
545 display: none !important;
549 padding: 0 !important;
557 // Theater mode is enabled
558 &.vjs-theater-enabled {
559 .vjs-theater-control {
562 .vjs-icon-placeholder {
563 transform: scale(0.8);
568 // On fullscreen, hide theater control
570 .vjs-theater-control {
576 // Play/pause animations
577 .vjs-has-started .vjs-play-control {
579 animation: remove-pause-button 0.25s ease;
583 animation: add-play-button 0.25s ease;
586 @keyframes remove-pause-button {
588 transform: rotate(90deg);
591 transform: rotate(0deg);
595 @keyframes add-play-button {
597 transform: rotate(-90deg);
600 transform: rotate(0deg);
605 // Error display disabled
606 .vjs-error:not(.vjs-error-display-enabled) {
611 .vjs-loading-spinner {
616 // Error display enabled
617 .vjs-error.vjs-error-display-enabled {