2 @use '_variables' as *;
4 @use './_player-variables' as *;
7 --embedForegroundColor: #{$primary-foreground-color};
9 --embedBigPlayBackgroundColor: #{$primary-background-color};
12 @mixin big-play-button-triangle-size($triangle-size) {
13 width: $triangle-size;
14 height: $triangle-size;
15 top: calc(50% - #{math.div($triangle-size, 2)});
16 left: calc(53% - #{math.div($triangle-size, 2)});
19 .video-js.vjs-peertube-skin {
20 font-size: $font-size;
21 color: pvar(--embedForegroundColor);
24 @include padding-right(60px);
26 padding: $dock-padding;
27 background: linear-gradient(to bottom, rgba(0, 0, 0, .6) 0, rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0) 100%);
31 .vjs-dock-description {
32 text-shadow: 0 0 2px rgba(0, 0, 0, .5);
35 .vjs-dock-description {
39 @include margin-right(4px);
43 @include margin-left(4px);
44 transform: scale(-1, 1);
48 .vjs-volume-level::before {
49 content: ''; /* Remove Circle From Progress Bar */
56 .vjs-big-play-button {
57 $big-play-width: 1.2em;
58 $big-play-height: 1.2em;
60 @include margin-left(-(math.div($big-play-width, 2)));
65 border: 2px solid #fff;
70 width: $big-play-width;
71 height: $big-play-height;
72 line-height: $big-play-height;
73 margin-top: -(math.div($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');
90 background-color: var(--mainColor, #696969);
95 // Small effect when we click on the play button
96 &.vjs-has-big-play-button-clicked {
103 &.vjs-big-play-button,
104 &.vjs-big-play-button::before {
106 transition: visibility 0.2s, opacity 0.2s;
110 &.vjs-poster::before {
112 transition: visibility 0.3s, opacity 0.3s;
113 transition-delay: 0.05s;
118 // Show poster and controls when playing audio-only content
119 &.vjs-playing-audio-only-content {
126 opacity: $primary-foreground-opacity-hover;
130 // Do not display poster when video is starting
131 &.vjs-has-autoplay:not(.vjs-has-started) {
138 // Hide the big play button on autoplay
140 .vjs-big-play-button {
141 display: none !important;
146 .vjs-big-play-button,
147 .vjs-settings-dialog {
148 background-color: pvar(--embedBigPlayBackgroundColor);
152 outline: none; /* Remove Blue Outline on Click*/
157 height: $control-bar-height;
158 background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
159 box-shadow: 0 -15px 40px 10px rgba(0, 0, 0, 0.2);
160 text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
161 transition: visibility 0.3s, opacity 0.3s !important;
163 > button:first-child {
164 @include margin-left($first-control-bar-element-margin-left);
167 .vjs-progress-control,
172 .vjs-resolution-control,
173 .vjs-fullscreen-control,
175 .vjs-theater-control,
177 color: pvar(--embedForegroundColor) !important;
179 opacity: $primary-foreground-opacity;
180 transition: opacity .1s;
183 opacity: $primary-foreground-opacity-hover;
190 color: pvar(--embedForegroundColor);
191 opacity: $primary-foreground-opacity;
194 .vjs-progress-control {
195 @include margin-left($progress-margin);
198 z-index: 100; // On top of the progress bar
200 width: calc(100% - (2 * #{$progress-margin}));
206 background-color: rgba(255, 255, 255, .2);
211 background: pvar(--embedForegroundColor);
213 // Not display the circle if the progress is not hovered
216 transition: opacity 0.1s ease;
230 background: rgba(255, 255, 255, .2);
236 .vjs-progress-control:hover .vjs-slider,
237 .vjs-progress-control .vjs-slider.vjs-sliding {
240 .vjs-play-progress::before {
247 @include disable-outline;
252 .vjs-icon-placeholder {
253 line-height: $control-bar-height;
266 line-height: inherit;
269 @include margin-left(.5em);
271 font-size: $font-size;
272 display: inline-block;
275 .vjs-current-time-display {
276 line-height: calc(#{$control-bar-height} - 1px);
279 @include margin(0, 1px, 0, 2px);
287 font-size: $font-size;
288 display: inline-block;
291 .vjs-duration-display {
292 line-height: calc(#{$control-bar-height} - 1px);
296 &.vjs-remaining-time {
302 line-height: $control-bar-height;
308 @include margin-right(6px);
311 line-height: $control-bar-height;
315 .vjs-peertube-displayed {
319 .vjs-peertube-hidden {
323 .download-speed-number,
324 .upload-speed-number,
327 font-weight: $font-semibold;
330 .download-speed-text,
334 @include margin-right(15px);
339 background-image: url('#{$assets-path}/player/images/arrow-down.svg');
343 background-image: url('#{$assets-path}/player/images/arrow-up.svg');
349 .vjs-previous-video {
350 line-height: $control-bar-height;
356 mask-image: url('#{$assets-path}/player/images/next.svg');
357 -webkit-mask-image: url('#{$assets-path}/player/images/next.svg');
359 -webkit-mask-size: cover;
361 background-color: #fff;
365 display: inline-block;
369 transform: rotate(180deg);
376 display: inline-block;
379 background-size: contain;
380 vertical-align: middle;
381 background-repeat: no-repeat;
389 width: 37px !important;
391 .vjs-playback-rate-value {
393 line-height: $control-bar-height;
396 .vjs-menu .vjs-menu-content {
397 width: 37px !important;
402 @include disable-outline;
407 .vjs-icon-placeholder {
408 display: inline-block;
411 vertical-align: middle;
412 background: url('#{$assets-path}/player/images/volume.svg') no-repeat;
413 background-size: contain;
420 &.vjs-vol-0 .vjs-icon-placeholder {
421 background: url('#{$assets-path}/player/images/volume-mute.svg') no-repeat;
422 background-size: contain;
426 .vjs-volume-control {
427 @include margin(0, 5px, 0, 0);
433 background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC') no-repeat;
434 background-size: 22px 14px;
444 background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC') no-repeat;
445 background-size: 22px 14px;
457 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
458 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
459 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
460 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
462 transition-property: none;
465 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
470 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
471 transition-property: none;
481 .vjs-volume-control {
482 display: inline-block;
492 @include disable-outline;
493 @include disable-default-a-behaviour;
495 text-decoration: none;
496 line-height: $control-bar-height;
497 font-weight: $font-semibold;
501 .vjs-theater-control {
502 @include disable-outline;
503 @include margin-right(1px);
508 .vjs-icon-placeholder {
509 transition: transform 0.2s ease;
510 display: inline-block;
513 vertical-align: middle;
514 background: url('#{$assets-path}/player/images/theater.svg') no-repeat;
515 background-size: contain;
523 .vjs-fullscreen-control {
524 @include disable-outline;
525 @include margin-left($first-control-bar-element-margin-left);
529 .vjs-icon-placeholder {
530 display: inline-block;
533 vertical-align: middle;
534 background: url('#{$assets-path}/player/images/fullscreen.svg') no-repeat;
535 background-size: contain;
543 .vjs-menu-button-popup {
544 font-weight: $font-semibold;
547 .vjs-resolution-button {
548 @include disable-outline;
561 text-transform: none;
568 @media screen and (max-width: 750px) {
569 .vjs-theater-control {
577 .vjs-dock-description {
581 .vjs-big-play-button {
585 .vjs-icon-placeholder::before {
586 @include big-play-button-triangle-size(32px);
591 @media screen and (max-width: 570px) {
596 .vjs-big-play-button {
600 .vjs-icon-placeholder::before {
601 @include big-play-button-triangle-size(27px);
606 padding: 0 !important;
608 .vjs-peertube-displayed {
609 display: none !important;
615 display: none !important;
619 display: none !important;
624 @media screen and (max-width: 350px) {
629 .vjs-big-play-button {
633 .vjs-icon-placeholder::before {
634 @include big-play-button-triangle-size(20px);
640 .vjs-previous-video {
641 display: none !important;
645 padding: 0 !important;
653 > button:first-child {
654 @include margin-left($first-control-bar-element-margin-left-small-width);
658 .vjs-fullscreen-control {
659 @include margin-right($first-control-bar-element-margin-left-small-width);
664 display: none !important;
669 // Theater mode is enabled
670 &.vjs-theater-enabled {
671 .vjs-theater-control {
674 .vjs-icon-placeholder {
675 transform: scale(0.8);
680 // On fullscreen, hide theater control
682 .vjs-theater-control {
688 // Play/pause animations
689 .vjs-has-started .vjs-play-control {
691 animation: remove-pause-button 0.25s ease;
695 animation: add-play-button 0.25s ease;
698 @keyframes remove-pause-button {
700 transform: rotate(90deg);
703 transform: rotate(0deg);
707 @keyframes add-play-button {
709 transform: rotate(-90deg);
712 transform: rotate(0deg);
717 // Error display disabled
718 .vjs-error:not(.vjs-error-display-enabled) {
723 .vjs-loading-spinner {
728 // Error display enabled
729 .vjs-error.vjs-error-display-enabled {
735 .vjs-no-next-in-playlist {
740 background-color: rgba(255, 255, 255, 0.5);