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.2s background-color;
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);
94 // Show poster and controls when playing audio-only content
95 &.vjs-playing-audio-only-content {
102 opacity: $primary-foreground-opacity-hover;
106 // Do not display poster when video is starting
107 &.vjs-has-autoplay:not(.vjs-has-started) {
114 // Hide the big play button on autoplay
116 .vjs-big-play-button {
117 display: none !important;
122 .vjs-big-play-button,
123 .vjs-settings-dialog {
124 background-color: pvar(--embedBigPlayBackgroundColor);
128 outline: none; /* Remove Blue Outline on Click*/
133 height: $control-bar-height;
134 background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
135 box-shadow: 0 -15px 40px 10px rgba(0, 0, 0, 0.2);
136 text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
137 transition: visibility 0.3s, opacity 0.3s !important;
139 > button:first-child {
140 @include margin-left($first-control-bar-element-margin-left);
143 .vjs-progress-control,
148 .vjs-resolution-control,
149 .vjs-fullscreen-control,
151 .vjs-theater-control,
153 color: pvar(--embedForegroundColor) !important;
155 opacity: $primary-foreground-opacity;
156 transition: opacity .1s;
159 opacity: $primary-foreground-opacity-hover;
166 color: pvar(--embedForegroundColor);
167 opacity: $primary-foreground-opacity;
170 .vjs-progress-control {
171 @include margin-left($progress-margin);
174 z-index: 100; // On top of the progress bar
176 width: calc(100% - (2 * #{$progress-margin}));
182 background-color: rgba(255, 255, 255, .2);
187 background: pvar(--embedForegroundColor);
189 // Not display the circle if the progress is not hovered
192 transition: opacity 0.1s ease;
206 background: rgba(255, 255, 255, .2);
212 .vjs-progress-control:hover .vjs-slider,
213 .vjs-progress-control .vjs-slider.vjs-sliding {
216 .vjs-play-progress::before {
223 @include disable-outline;
228 .vjs-icon-placeholder {
229 line-height: $control-bar-height;
242 line-height: inherit;
245 @include margin-left(.5em);
247 font-size: $font-size;
248 display: inline-block;
251 .vjs-current-time-display {
252 line-height: calc(#{$control-bar-height} - 1px);
255 @include margin(0, 1px, 0, 2px);
263 font-size: $font-size;
264 display: inline-block;
267 .vjs-duration-display {
268 line-height: calc(#{$control-bar-height} - 1px);
272 &.vjs-remaining-time {
278 line-height: $control-bar-height;
284 @include margin-right(6px);
287 line-height: $control-bar-height;
291 .vjs-peertube-displayed {
295 .vjs-peertube-hidden {
299 .download-speed-number,
300 .upload-speed-number,
303 font-weight: $font-semibold;
306 .download-speed-text,
310 @include margin-right(15px);
315 background-image: url('#{$assets-path}/player/images/arrow-down.svg');
319 background-image: url('#{$assets-path}/player/images/arrow-up.svg');
325 .vjs-previous-video {
326 line-height: $control-bar-height;
332 mask-image: url('#{$assets-path}/player/images/next.svg');
333 -webkit-mask-image: url('#{$assets-path}/player/images/next.svg');
335 -webkit-mask-size: cover;
337 background-color: #fff;
341 display: inline-block;
345 transform: rotate(180deg);
352 display: inline-block;
355 background-size: contain;
356 vertical-align: middle;
357 background-repeat: no-repeat;
365 width: 37px !important;
367 .vjs-playback-rate-value {
369 line-height: $control-bar-height;
372 .vjs-menu .vjs-menu-content {
373 width: 37px !important;
378 @include disable-outline;
383 .vjs-icon-placeholder {
384 display: inline-block;
387 vertical-align: middle;
388 background: url('#{$assets-path}/player/images/volume.svg') no-repeat;
389 background-size: contain;
396 &.vjs-vol-0 .vjs-icon-placeholder {
397 background: url('#{$assets-path}/player/images/volume-mute.svg') no-repeat;
398 background-size: contain;
402 .vjs-volume-control {
403 @include margin(0, 5px, 0, 0);
409 background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC') no-repeat;
410 background-size: 22px 14px;
420 background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC') no-repeat;
421 background-size: 22px 14px;
433 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
434 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
435 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
436 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
438 transition-property: none;
441 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
446 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
447 transition-property: none;
457 .vjs-volume-control {
458 display: inline-block;
468 @include disable-outline;
469 @include disable-default-a-behaviour;
471 text-decoration: none;
472 line-height: $control-bar-height;
473 font-weight: $font-semibold;
477 .vjs-theater-control {
478 @include disable-outline;
479 @include margin-right(1px);
484 .vjs-icon-placeholder {
485 transition: transform 0.2s ease;
486 display: inline-block;
489 vertical-align: middle;
490 background: url('#{$assets-path}/player/images/theater.svg') no-repeat;
491 background-size: contain;
499 .vjs-fullscreen-control {
500 @include disable-outline;
501 @include margin-left($first-control-bar-element-margin-left);
505 .vjs-icon-placeholder {
506 display: inline-block;
509 vertical-align: middle;
510 background: url('#{$assets-path}/player/images/fullscreen.svg') no-repeat;
511 background-size: contain;
519 .vjs-menu-button-popup {
520 font-weight: $font-semibold;
523 .vjs-resolution-button {
524 @include disable-outline;
537 text-transform: none;
544 @media screen and (max-width: 750px) {
545 .vjs-theater-control {
553 .vjs-dock-description {
557 .vjs-big-play-button {
561 .vjs-icon-placeholder::before {
562 @include big-play-button-triangle-size(32px);
567 @media screen and (max-width: 570px) {
572 .vjs-big-play-button {
576 .vjs-icon-placeholder::before {
577 @include big-play-button-triangle-size(27px);
582 padding: 0 !important;
584 .vjs-peertube-displayed {
585 display: none !important;
591 display: none !important;
595 display: none !important;
600 @media screen and (max-width: 350px) {
605 .vjs-big-play-button {
609 .vjs-icon-placeholder::before {
610 @include big-play-button-triangle-size(20px);
616 .vjs-previous-video {
617 display: none !important;
621 padding: 0 !important;
629 > button:first-child {
630 @include margin-left($first-control-bar-element-margin-left-small-width);
634 .vjs-fullscreen-control {
635 @include margin-right($first-control-bar-element-margin-left-small-width);
640 display: none !important;
645 // Theater mode is enabled
646 &.vjs-theater-enabled {
647 .vjs-theater-control {
650 .vjs-icon-placeholder {
651 transform: scale(0.8);
656 // On fullscreen, hide theater control
658 .vjs-theater-control {
664 // Play/pause animations
665 .vjs-has-started .vjs-play-control {
667 animation: remove-pause-button 0.25s ease;
671 animation: add-play-button 0.25s ease;
674 @keyframes remove-pause-button {
676 transform: rotate(90deg);
679 transform: rotate(0deg);
683 @keyframes add-play-button {
685 transform: rotate(-90deg);
688 transform: rotate(0deg);
693 // Error display disabled
694 .vjs-error:not(.vjs-error-display-enabled) {
699 .vjs-loading-spinner {
704 // Error display enabled
705 .vjs-error.vjs-error-display-enabled {
711 .vjs-no-next-in-playlist {
716 background-color: rgba(255, 255, 255, 0.5);