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);
24 background: linear-gradient(to bottom, rgba(0, 0, 0, .6) 0, rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0) 100%);
28 .vjs-dock-description {
29 text-shadow: 0 0 2px rgba(0, 0, 0, .5);
32 .vjs-dock-description {
41 transform: scale(-1, 1);
45 .vjs-button > .vjs-icon-placeholder::before {
46 line-height: $control-bar-height;
49 .vjs-volume-level::before {
50 content: ''; /* Remove Circle From Progress Bar */
57 .vjs-big-play-button {
61 $big-play-width: 1.2em;
62 $big-play-height: 1.2em;
64 border: 2px solid #fff;
69 width: $big-play-width;
70 height: $big-play-height;
71 line-height: $big-play-height;
72 margin-left: -($big-play-width / 2);
73 margin-top: -($big-play-height / 2);
74 transition: 0.4s opacity;
81 .vjs-icon-placeholder::before {
82 @include big-play-button-triangle-size(45px);
85 background-image: url('#{$assets-path}/player/images/big-play-button.svg');
88 &.focus-visible, &:hover {
89 background-color: var(--mainColor, dimgray);
94 // Small effect when we click on the play button
95 &.vjs-has-big-play-button-clicked {
97 .vjs-big-play-button, .vjs-poster {
101 &.vjs-big-play-button, &.vjs-big-play-button::before {
103 transition: visibility 0.2s, opacity 0.2s;
106 &.vjs-poster, &.vjs-poster::before {
108 transition: visibility 0.3s, opacity 0.3s;
109 transition-delay: 0.05s;
114 // Show poster and controls when playing audio-only content
115 &.vjs-playing-audio-only-content {
122 opacity: $primary-foreground-opacity-hover;
126 // Hide the big play button on autoplay
128 .vjs-big-play-button {
129 display: none !important;
134 .vjs-big-play-button,
135 .vjs-settings-dialog {
136 background-color: pvar(--embedBigPlayBackgroundColor);
140 outline: none; /* Remove Blue Outline on Click*/
145 height: $control-bar-height;
146 background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
147 box-shadow: 0 -15px 40px 10px rgba(0, 0, 0, 0.2);
148 text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
150 .vjs-progress-control,
155 .vjs-resolution-control,
156 .vjs-fullscreen-control,
158 .vjs-theater-control,
161 color: pvar(--embedForegroundColor) !important;
163 opacity: $primary-foreground-opacity;
164 transition: opacity .1s;
167 opacity: $primary-foreground-opacity-hover;
174 color: pvar(--embedForegroundColor);
175 opacity: $primary-foreground-opacity;
178 .vjs-progress-control {
180 z-index: 100; // On top of the progress bar
182 width: calc(100% - (2 * #{$progress-margin}));
183 margin-left: $progress-margin;
189 background-color: rgba(255, 255, 255, .2);
194 background: pvar(--embedForegroundColor);
196 // Not display the circle if the progress is not hovered
199 transition: opacity 0.1s ease;
212 background: rgba(255, 255, 255, .2);
218 .vjs-progress-control:hover .vjs-slider,
219 .vjs-progress-control .vjs-slider.vjs-sliding {
222 .vjs-play-progress::before {
229 @include disable-outline;
232 font-size: $font-size;
238 line-height: inherit;
241 font-size: $font-size;
242 display: inline-block;
246 .vjs-current-time-display {
247 line-height: calc(#{$control-bar-height} + 1px);
257 font-size: $font-size;
258 display: inline-block;
260 .vjs-duration-display {
261 line-height: calc(#{$control-bar-height} + 1px);
265 &.vjs-remaining-time {
272 line-height: $control-bar-height;
277 .vjs-peertube-displayed {
281 .vjs-peertube-hidden {
285 .download-speed-number, .upload-speed-number, .peers-number, .http-fallback {
286 font-weight: $font-semibold;
289 .download-speed-text, .upload-speed-text, .peers-text, .http-fallback {
295 background-image: url('#{$assets-path}/player/images/arrow-down.svg');
299 background-image: url('#{$assets-path}/player/images/arrow-up.svg');
305 line-height: $control-bar-height;
310 mask-image: url('#{$assets-path}/player/images/next.svg');
311 background-color: white;
313 transform: scale(2.2);
321 display: inline-block;
324 background-size: contain;
325 vertical-align: middle;
326 background-repeat: no-repeat;
334 width: 37px !important;
336 .vjs-playback-rate-value {
338 line-height: $control-bar-height;
341 .vjs-menu .vjs-menu-content {
342 width: 37px !important;
347 @include disable-outline;
349 line-height: $control-bar-height;
353 .vjs-icon-placeholder {
354 display: inline-block;
357 vertical-align: middle;
358 background: url('#{$assets-path}/player/images/volume.svg') no-repeat;
359 background-size: contain;
366 &.vjs-vol-0 .vjs-icon-placeholder {
367 background: url('#{$assets-path}/player/images/volume-mute.svg') no-repeat;
368 background-size: contain;
372 .vjs-volume-control {
378 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
379 background-size: 22px 14px;
389 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
390 background-size: 22px 14px;
402 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
403 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
404 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
405 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
407 transition-property: none;
410 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
415 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
416 transition-property: none;
426 .vjs-volume-control {
427 display: inline-block;
437 @include disable-outline;
438 @include disable-default-a-behaviour;
440 text-decoration: none;
441 line-height: $control-bar-height;
442 font-weight: $font-semibold;
446 .vjs-theater-control {
447 @include disable-outline;
453 .vjs-icon-placeholder {
454 transition: transform 0.2s ease;
455 display: inline-block;
458 vertical-align: middle;
459 background: url('#{$assets-path}/player/images/theater.svg') no-repeat;
460 background-size: contain;
468 .vjs-fullscreen-control {
469 @include disable-outline;
474 .vjs-icon-placeholder {
475 display: inline-block;
478 vertical-align: middle;
479 background: url('#{$assets-path}/player/images/fullscreen.svg') no-repeat;
480 background-size: contain;
488 .vjs-menu-button-popup {
489 font-weight: $font-semibold;
492 .vjs-resolution-button {
493 @include disable-outline;
506 text-transform: none;
513 @media screen and (max-width: 750px) {
514 .vjs-theater-control {
522 .vjs-dock-description {
526 .vjs-big-play-button {
530 .vjs-icon-placeholder::before {
531 @include big-play-button-triangle-size(32px);
536 @media screen and (max-width: 570px) {
541 .vjs-big-play-button {
545 .vjs-icon-placeholder::before {
546 @include big-play-button-triangle-size(27px);
551 padding: 0 !important;
553 .vjs-peertube-displayed {
554 display: none !important;
559 @media screen and (max-width: 300px) {
564 .vjs-big-play-button {
568 .vjs-icon-placeholder::before {
569 @include big-play-button-triangle-size(20px);
573 .vjs-volume-control {
574 display: none !important;
578 padding: 0 !important;
586 // Theater mode is enabled
587 &.vjs-theater-enabled {
588 .vjs-theater-control {
591 .vjs-icon-placeholder {
592 transform: scale(0.8);
597 // On fullscreen, hide theater control
599 .vjs-theater-control {
605 // Play/pause animations
606 .vjs-has-started .vjs-play-control {
608 animation: remove-pause-button 0.25s ease;
612 animation: add-play-button 0.25s ease;
615 @keyframes remove-pause-button {
617 transform: rotate(90deg);
620 transform: rotate(0deg);
624 @keyframes add-play-button {
626 transform: rotate(-90deg);
629 transform: rotate(0deg);
634 // Error display disabled
635 .vjs-error:not(.vjs-error-display-enabled) {
640 .vjs-loading-spinner {
645 // Error display enabled
646 .vjs-error.vjs-error-display-enabled {