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: pvar(--embedForegroundColor);
23 padding: $dock-padding;
25 background: linear-gradient(to bottom, rgba(0, 0, 0, .6) 0, rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0) 100%);
29 .vjs-dock-description {
30 text-shadow: 0 0 2px rgba(0, 0, 0, .5);
33 .vjs-dock-description {
42 transform: scale(-1, 1);
46 .vjs-button > .vjs-icon-placeholder::before {
47 line-height: $control-bar-height;
50 .vjs-volume-level::before {
51 content: ''; /* Remove Circle From Progress Bar */
58 .vjs-big-play-button {
62 $big-play-width: 1.2em;
63 $big-play-height: 1.2em;
65 border: 2px solid #fff;
70 width: $big-play-width;
71 height: $big-play-height;
72 line-height: $big-play-height;
73 margin-left: -($big-play-width / 2);
74 margin-top: -($big-play-height / 2);
75 transition: 0.4s opacity;
82 .vjs-icon-placeholder::before {
83 @include big-play-button-triangle-size(45px);
86 background-image: url('#{$assets-path}/player/images/big-play-button.svg');
89 &.focus-visible, &:hover {
90 background-color: var(--mainColor, dimgray);
95 // Small effect when we click on the play button
96 &.vjs-has-big-play-button-clicked {
98 .vjs-big-play-button, .vjs-poster {
102 &.vjs-big-play-button, &.vjs-big-play-button::before {
104 transition: visibility 0.2s, opacity 0.2s;
107 &.vjs-poster, &.vjs-poster::before {
109 transition: visibility 0.3s, opacity 0.3s;
110 transition-delay: 0.05s;
115 // Show poster and controls when playing audio-only content
116 &.vjs-playing-audio-only-content {
123 opacity: $primary-foreground-opacity-hover;
127 // Do not display poster when video is starting
128 &.vjs-has-autoplay:not(.vjs-has-started) {
135 // Hide the big play button on autoplay
137 .vjs-big-play-button {
138 display: none !important;
143 .vjs-big-play-button,
144 .vjs-settings-dialog {
145 background-color: pvar(--embedBigPlayBackgroundColor);
149 outline: none; /* Remove Blue Outline on Click*/
154 height: $control-bar-height;
155 background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
156 box-shadow: 0 -15px 40px 10px rgba(0, 0, 0, 0.2);
157 text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
159 > button:first-child {
160 margin-left: $first-control-bar-element-margin-left;
163 .vjs-progress-control,
168 .vjs-resolution-control,
169 .vjs-fullscreen-control,
171 .vjs-theater-control,
174 color: pvar(--embedForegroundColor) !important;
176 opacity: $primary-foreground-opacity;
177 transition: opacity .1s;
180 opacity: $primary-foreground-opacity-hover;
187 color: pvar(--embedForegroundColor);
188 opacity: $primary-foreground-opacity;
191 .vjs-progress-control {
193 z-index: 100; // On top of the progress bar
195 width: calc(100% - (2 * #{$progress-margin}));
196 margin-left: $progress-margin;
202 background-color: rgba(255, 255, 255, .2);
207 background: pvar(--embedForegroundColor);
209 // Not display the circle if the progress is not hovered
212 transition: opacity 0.1s ease;
225 background: rgba(255, 255, 255, .2);
231 .vjs-progress-control:hover .vjs-slider,
232 .vjs-progress-control .vjs-slider.vjs-sliding {
235 .vjs-play-progress::before {
242 @include disable-outline;
245 font-size: $font-size;
250 line-height: inherit;
253 font-size: $font-size;
254 display: inline-block;
258 .vjs-current-time-display {
259 line-height: calc(#{$control-bar-height} + 1px);
269 font-size: $font-size;
270 display: inline-block;
272 .vjs-duration-display {
273 line-height: calc(#{$control-bar-height} + 1px);
277 &.vjs-remaining-time {
284 line-height: $control-bar-height;
289 .vjs-peertube-displayed {
293 .vjs-peertube-hidden {
297 .download-speed-number, .upload-speed-number, .peers-number, .http-fallback {
298 font-weight: $font-semibold;
301 .download-speed-text, .upload-speed-text, .peers-text, .http-fallback {
307 background-image: url('#{$assets-path}/player/images/arrow-down.svg');
311 background-image: url('#{$assets-path}/player/images/arrow-up.svg');
317 .vjs-previous-video {
318 line-height: $control-bar-height;
324 mask-image: url('#{$assets-path}/player/images/next.svg');
325 -webkit-mask-image: url('#{$assets-path}/player/images/next.svg');
326 background-color: white;
328 -webkit-mask-size: cover;
332 display: inline-block;
336 transform: rotate(180deg);
343 display: inline-block;
346 background-size: contain;
347 vertical-align: middle;
348 background-repeat: no-repeat;
356 width: 37px !important;
358 .vjs-playback-rate-value {
360 line-height: $control-bar-height;
363 .vjs-menu .vjs-menu-content {
364 width: 37px !important;
369 @include disable-outline;
371 line-height: $control-bar-height;
375 .vjs-icon-placeholder {
376 display: inline-block;
379 vertical-align: middle;
380 background: url('#{$assets-path}/player/images/volume.svg') no-repeat;
381 background-size: contain;
388 &.vjs-vol-0 .vjs-icon-placeholder {
389 background: url('#{$assets-path}/player/images/volume-mute.svg') no-repeat;
390 background-size: contain;
394 .vjs-volume-control {
400 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
401 background-size: 22px 14px;
411 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
412 background-size: 22px 14px;
424 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
425 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
426 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
427 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
429 transition-property: none;
432 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
437 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
438 transition-property: none;
448 .vjs-volume-control {
449 display: inline-block;
459 @include disable-outline;
460 @include disable-default-a-behaviour;
462 text-decoration: none;
463 line-height: $control-bar-height;
464 font-weight: $font-semibold;
468 .vjs-theater-control {
469 @include disable-outline;
475 .vjs-icon-placeholder {
476 transition: transform 0.2s ease;
477 display: inline-block;
480 vertical-align: middle;
481 background: url('#{$assets-path}/player/images/theater.svg') no-repeat;
482 background-size: contain;
490 .vjs-fullscreen-control {
491 @include disable-outline;
496 .vjs-icon-placeholder {
497 display: inline-block;
500 vertical-align: middle;
501 background: url('#{$assets-path}/player/images/fullscreen.svg') no-repeat;
502 background-size: contain;
510 .vjs-menu-button-popup {
511 font-weight: $font-semibold;
514 .vjs-resolution-button {
515 @include disable-outline;
528 text-transform: none;
535 @media screen and (max-width: 750px) {
536 .vjs-theater-control {
544 .vjs-dock-description {
548 .vjs-big-play-button {
552 .vjs-icon-placeholder::before {
553 @include big-play-button-triangle-size(32px);
558 @media screen and (max-width: 570px) {
563 .vjs-big-play-button {
567 .vjs-icon-placeholder::before {
568 @include big-play-button-triangle-size(27px);
573 padding: 0 !important;
575 .vjs-peertube-displayed {
576 display: none !important;
581 @media screen and (max-width: 300px) {
586 .vjs-big-play-button {
590 .vjs-icon-placeholder::before {
591 @include big-play-button-triangle-size(20px);
597 .vjs-previous-video {
598 display: none !important;
602 padding: 0 !important;
610 margin-left: $first-control-bar-element-margin-left;
614 // Theater mode is enabled
615 &.vjs-theater-enabled {
616 .vjs-theater-control {
619 .vjs-icon-placeholder {
620 transform: scale(0.8);
625 // On fullscreen, hide theater control
627 .vjs-theater-control {
633 // Play/pause animations
634 .vjs-has-started .vjs-play-control {
636 animation: remove-pause-button 0.25s ease;
640 animation: add-play-button 0.25s ease;
643 @keyframes remove-pause-button {
645 transform: rotate(90deg);
648 transform: rotate(0deg);
652 @keyframes add-play-button {
654 transform: rotate(-90deg);
657 transform: rotate(0deg);
662 // Error display disabled
663 .vjs-error:not(.vjs-error-display-enabled) {
668 .vjs-loading-spinner {
673 // Error display enabled
674 .vjs-error.vjs-error-display-enabled {
680 .vjs-no-next-in-playlist {
685 background-color: rgba(255, 255, 255, 0.5);