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-volume-level::before {
47 content: ''; /* Remove Circle From Progress Bar */
54 .vjs-big-play-button {
55 $big-play-width: 1.2em;
56 $big-play-height: 1.2em;
61 border: 2px solid #fff;
66 width: $big-play-width;
67 height: $big-play-height;
68 line-height: $big-play-height;
69 margin-left: -($big-play-width / 2);
70 margin-top: -($big-play-height / 2);
71 transition: 0.4s opacity;
78 .vjs-icon-placeholder::before {
79 @include big-play-button-triangle-size(45px);
82 background-image: url('#{$assets-path}/player/images/big-play-button.svg');
87 background-color: var(--mainColor, #696969);
92 // Small effect when we click on the play button
93 &.vjs-has-big-play-button-clicked {
100 &.vjs-big-play-button,
101 &.vjs-big-play-button::before {
103 transition: visibility 0.2s, opacity 0.2s;
107 &.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,
173 color: pvar(--embedForegroundColor) !important;
175 opacity: $primary-foreground-opacity;
176 transition: opacity .1s;
179 opacity: $primary-foreground-opacity-hover;
186 color: pvar(--embedForegroundColor);
187 opacity: $primary-foreground-opacity;
190 .vjs-progress-control {
192 z-index: 100; // On top of the progress bar
194 width: calc(100% - (2 * #{$progress-margin}));
195 margin-left: $progress-margin;
201 background-color: rgba(255, 255, 255, .2);
206 background: pvar(--embedForegroundColor);
208 // Not display the circle if the progress is not hovered
211 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;
247 .vjs-icon-placeholder {
248 line-height: $control-bar-height;
261 line-height: inherit;
264 font-size: $font-size;
265 display: inline-block;
269 .vjs-current-time-display {
270 line-height: calc(#{$control-bar-height} - 1px);
280 font-size: $font-size;
281 display: inline-block;
284 .vjs-duration-display {
285 line-height: calc(#{$control-bar-height} - 1px);
289 &.vjs-remaining-time {
295 line-height: $control-bar-height;
302 line-height: $control-bar-height;
307 .vjs-peertube-displayed {
311 .vjs-peertube-hidden {
315 .download-speed-number,
316 .upload-speed-number,
319 font-weight: $font-semibold;
322 .download-speed-text,
331 background-image: url('#{$assets-path}/player/images/arrow-down.svg');
335 background-image: url('#{$assets-path}/player/images/arrow-up.svg');
341 .vjs-previous-video {
342 line-height: $control-bar-height;
348 mask-image: url('#{$assets-path}/player/images/next.svg');
349 -webkit-mask-image: url('#{$assets-path}/player/images/next.svg');
351 background-color: #fff;
356 display: inline-block;
360 transform: rotate(180deg);
367 display: inline-block;
370 background-size: contain;
371 vertical-align: middle;
372 background-repeat: no-repeat;
380 width: 37px !important;
382 .vjs-playback-rate-value {
384 line-height: $control-bar-height;
387 .vjs-menu .vjs-menu-content {
388 width: 37px !important;
393 @include disable-outline;
398 .vjs-icon-placeholder {
399 display: inline-block;
402 vertical-align: middle;
403 background: url('#{$assets-path}/player/images/volume.svg') no-repeat;
404 background-size: contain;
411 &.vjs-vol-0 .vjs-icon-placeholder {
412 background: url('#{$assets-path}/player/images/volume-mute.svg') no-repeat;
413 background-size: contain;
417 .vjs-volume-control {
423 background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC') no-repeat;
424 background-size: 22px 14px;
434 background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC') no-repeat;
435 background-size: 22px 14px;
447 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
448 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
449 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
450 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
452 transition-property: none;
455 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
460 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
461 transition-property: none;
471 .vjs-volume-control {
472 display: inline-block;
482 @include disable-outline;
483 @include disable-default-a-behaviour;
485 text-decoration: none;
486 line-height: $control-bar-height;
487 font-weight: $font-semibold;
491 .vjs-theater-control {
492 @include disable-outline;
498 .vjs-icon-placeholder {
499 transition: transform 0.2s ease;
500 display: inline-block;
503 vertical-align: middle;
504 background: url('#{$assets-path}/player/images/theater.svg') no-repeat;
505 background-size: contain;
513 .vjs-fullscreen-control {
514 @include disable-outline;
517 margin-right: $first-control-bar-element-margin-left;
519 .vjs-icon-placeholder {
520 display: inline-block;
523 vertical-align: middle;
524 background: url('#{$assets-path}/player/images/fullscreen.svg') no-repeat;
525 background-size: contain;
533 .vjs-menu-button-popup {
534 font-weight: $font-semibold;
537 .vjs-resolution-button {
538 @include disable-outline;
551 text-transform: none;
558 @media screen and (max-width: 750px) {
559 .vjs-theater-control {
567 .vjs-dock-description {
571 .vjs-big-play-button {
575 .vjs-icon-placeholder::before {
576 @include big-play-button-triangle-size(32px);
581 @media screen and (max-width: 570px) {
586 .vjs-big-play-button {
590 .vjs-icon-placeholder::before {
591 @include big-play-button-triangle-size(27px);
596 padding: 0 !important;
598 .vjs-peertube-displayed {
599 display: none !important;
605 display: none !important;
609 display: none !important;
614 @media screen and (max-width: 350px) {
619 .vjs-big-play-button {
623 .vjs-icon-placeholder::before {
624 @include big-play-button-triangle-size(20px);
630 .vjs-previous-video {
631 display: none !important;
635 padding: 0 !important;
643 > button:first-child {
644 margin-left: $first-control-bar-element-margin-left-small-width;
648 .vjs-fullscreen-control {
649 margin-right: $first-control-bar-element-margin-left-small-width;
654 display: none !important;
659 // Theater mode is enabled
660 &.vjs-theater-enabled {
661 .vjs-theater-control {
664 .vjs-icon-placeholder {
665 transform: scale(0.8);
670 // On fullscreen, hide theater control
672 .vjs-theater-control {
678 // Play/pause animations
679 .vjs-has-started .vjs-play-control {
681 animation: remove-pause-button 0.25s ease;
685 animation: add-play-button 0.25s ease;
688 @keyframes remove-pause-button {
690 transform: rotate(90deg);
693 transform: rotate(0deg);
697 @keyframes add-play-button {
699 transform: rotate(-90deg);
702 transform: rotate(0deg);
707 // Error display disabled
708 .vjs-error:not(.vjs-error-display-enabled) {
713 .vjs-loading-spinner {
718 // Error display enabled
719 .vjs-error.vjs-error-display-enabled {
725 .vjs-no-next-in-playlist {
730 background-color: rgba(255, 255, 255, 0.5);