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 background-color: #fff;
354 display: inline-block;
358 transform: rotate(180deg);
365 display: inline-block;
368 background-size: contain;
369 vertical-align: middle;
370 background-repeat: no-repeat;
378 width: 37px !important;
380 .vjs-playback-rate-value {
382 line-height: $control-bar-height;
385 .vjs-menu .vjs-menu-content {
386 width: 37px !important;
391 @include disable-outline;
396 .vjs-icon-placeholder {
397 display: inline-block;
400 vertical-align: middle;
401 background: url('#{$assets-path}/player/images/volume.svg') no-repeat;
402 background-size: contain;
409 &.vjs-vol-0 .vjs-icon-placeholder {
410 background: url('#{$assets-path}/player/images/volume-mute.svg') no-repeat;
411 background-size: contain;
415 .vjs-volume-control {
421 background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC') no-repeat;
422 background-size: 22px 14px;
432 background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC') no-repeat;
433 background-size: 22px 14px;
445 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
446 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
447 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
448 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
450 transition-property: none;
453 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
458 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
459 transition-property: none;
469 .vjs-volume-control {
470 display: inline-block;
480 @include disable-outline;
481 @include disable-default-a-behaviour;
483 text-decoration: none;
484 line-height: $control-bar-height;
485 font-weight: $font-semibold;
489 .vjs-theater-control {
490 @include disable-outline;
496 .vjs-icon-placeholder {
497 transition: transform 0.2s ease;
498 display: inline-block;
501 vertical-align: middle;
502 background: url('#{$assets-path}/player/images/theater.svg') no-repeat;
503 background-size: contain;
511 .vjs-fullscreen-control {
512 @include disable-outline;
515 margin-right: $first-control-bar-element-margin-left;
517 .vjs-icon-placeholder {
518 display: inline-block;
521 vertical-align: middle;
522 background: url('#{$assets-path}/player/images/fullscreen.svg') no-repeat;
523 background-size: contain;
531 .vjs-menu-button-popup {
532 font-weight: $font-semibold;
535 .vjs-resolution-button {
536 @include disable-outline;
549 text-transform: none;
556 @media screen and (max-width: 750px) {
557 .vjs-theater-control {
565 .vjs-dock-description {
569 .vjs-big-play-button {
573 .vjs-icon-placeholder::before {
574 @include big-play-button-triangle-size(32px);
579 @media screen and (max-width: 570px) {
584 .vjs-big-play-button {
588 .vjs-icon-placeholder::before {
589 @include big-play-button-triangle-size(27px);
594 padding: 0 !important;
596 .vjs-peertube-displayed {
597 display: none !important;
603 display: none !important;
607 display: none !important;
612 @media screen and (max-width: 350px) {
617 .vjs-big-play-button {
621 .vjs-icon-placeholder::before {
622 @include big-play-button-triangle-size(20px);
628 .vjs-previous-video {
629 display: none !important;
633 padding: 0 !important;
641 > button:first-child {
642 margin-left: $first-control-bar-element-margin-left-small-width;
646 .vjs-fullscreen-control {
647 margin-right: $first-control-bar-element-margin-left-small-width;
652 display: none !important;
657 // Theater mode is enabled
658 &.vjs-theater-enabled {
659 .vjs-theater-control {
662 .vjs-icon-placeholder {
663 transform: scale(0.8);
668 // On fullscreen, hide theater control
670 .vjs-theater-control {
676 // Play/pause animations
677 .vjs-has-started .vjs-play-control {
679 animation: remove-pause-button 0.25s ease;
683 animation: add-play-button 0.25s ease;
686 @keyframes remove-pause-button {
688 transform: rotate(90deg);
691 transform: rotate(0deg);
695 @keyframes add-play-button {
697 transform: rotate(-90deg);
700 transform: rotate(0deg);
705 // Error display disabled
706 .vjs-error:not(.vjs-error-display-enabled) {
711 .vjs-loading-spinner {
716 // Error display enabled
717 .vjs-error.vjs-error-display-enabled {
723 .vjs-no-next-in-playlist {
728 background-color: rgba(255, 255, 255, 0.5);