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: var(--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');
93 // Small effect when we click on the play button
94 &.vjs-has-big-play-button-clicked {
96 .vjs-big-play-button, .vjs-poster {
100 &.vjs-big-play-button, &.vjs-big-play-button::before {
102 transition: visibility 0.2s, opacity 0.2s;
105 &.vjs-poster, &.vjs-poster::before {
107 transition: visibility 0.3s, opacity 0.3s;
108 transition-delay: 0.05s;
113 // Show poster and controls when playing audio-only content
114 &.vjs-playing-audio-only-content {
121 opacity: $primary-foreground-opacity-hover;
125 // Hide the big play button on autoplay
127 .vjs-big-play-button {
128 display: none !important;
133 .vjs-big-play-button,
134 .vjs-settings-dialog {
135 background-color: var(--embedBigPlayBackgroundColor);
139 outline: none; /* Remove Blue Outline on Click*/
144 height: $control-bar-height;
145 background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
146 box-shadow: 0 -15px 40px 10px rgba(0, 0, 0, 0.2);
147 text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
149 .vjs-progress-control,
154 .vjs-resolution-control,
155 .vjs-fullscreen-control,
157 .vjs-theater-control,
160 color: var(--embedForegroundColor) !important;
162 opacity: $primary-foreground-opacity;
163 transition: opacity .1s;
166 opacity: $primary-foreground-opacity-hover;
173 color: var(--embedForegroundColor);
174 opacity: $primary-foreground-opacity;
177 .vjs-progress-control {
179 z-index: 100; // On top of the progress bar
181 width: calc(100% - (2 * #{$progress-margin}));
182 margin-left: $progress-margin;
188 background-color: rgba(255, 255, 255, .2);
193 background: var(--embedForegroundColor);
195 // Not display the circle if the progress is not hovered
198 transition: opacity 0.1s ease;
211 background: rgba(255, 255, 255, .2);
217 .vjs-progress-control:hover .vjs-slider,
218 .vjs-progress-control .vjs-slider.vjs-sliding {
221 .vjs-play-progress::before {
228 @include disable-outline;
231 font-size: $font-size;
237 line-height: inherit;
240 font-size: $font-size;
241 display: inline-block;
245 .vjs-current-time-display {
246 line-height: calc(#{$control-bar-height} + 1px);
256 font-size: $font-size;
257 display: inline-block;
259 .vjs-duration-display {
260 line-height: calc(#{$control-bar-height} + 1px);
264 &.vjs-remaining-time {
271 line-height: $control-bar-height;
276 .vjs-peertube-displayed {
280 .vjs-peertube-hidden {
284 .download-speed-number, .upload-speed-number, .peers-number, .http-fallback {
285 font-weight: $font-semibold;
288 .download-speed-text, .upload-speed-text, .peers-text, .http-fallback {
294 background-image: url('#{$assets-path}/player/images/arrow-down.svg');
298 background-image: url('#{$assets-path}/player/images/arrow-up.svg');
304 line-height: $control-bar-height;
309 mask-image: url('#{$assets-path}/player/images/next.svg');
310 background-color: white;
312 transform: scale(2.2);
320 display: inline-block;
323 background-size: contain;
324 vertical-align: middle;
325 background-repeat: no-repeat;
333 width: 37px !important;
335 .vjs-playback-rate-value {
337 line-height: $control-bar-height;
340 .vjs-menu .vjs-menu-content {
341 width: 37px !important;
346 @include disable-outline;
348 line-height: $control-bar-height;
352 .vjs-icon-placeholder {
353 display: inline-block;
356 vertical-align: middle;
357 background: url('#{$assets-path}/player/images/volume.svg') no-repeat;
358 background-size: contain;
365 &.vjs-vol-0 .vjs-icon-placeholder {
366 background: url('#{$assets-path}/player/images/volume-mute.svg') no-repeat;
367 background-size: contain;
371 .vjs-volume-control {
377 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
378 background-size: 22px 14px;
388 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
389 background-size: 22px 14px;
401 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
402 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
403 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
404 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
406 transition-property: none;
409 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
414 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
415 transition-property: none;
425 .vjs-volume-control {
426 display: inline-block;
436 @include disable-outline;
437 @include disable-default-a-behaviour;
439 text-decoration: none;
440 line-height: $control-bar-height;
441 font-weight: $font-semibold;
445 .vjs-theater-control {
446 @include disable-outline;
452 .vjs-icon-placeholder {
453 transition: transform 0.2s ease;
454 display: inline-block;
457 vertical-align: middle;
458 background: url('#{$assets-path}/player/images/theater.svg') no-repeat;
459 background-size: contain;
467 .vjs-fullscreen-control {
468 @include disable-outline;
473 .vjs-icon-placeholder {
474 display: inline-block;
477 vertical-align: middle;
478 background: url('#{$assets-path}/player/images/fullscreen.svg') no-repeat;
479 background-size: contain;
487 .vjs-menu-button-popup {
488 font-weight: $font-semibold;
491 .vjs-resolution-button {
492 @include disable-outline;
505 text-transform: none;
512 @media screen and (max-width: 750px) {
513 .vjs-theater-control {
521 .vjs-dock-description {
525 .vjs-big-play-button {
529 .vjs-icon-placeholder::before {
530 @include big-play-button-triangle-size(32px);
535 @media screen and (max-width: 570px) {
540 .vjs-big-play-button {
544 .vjs-icon-placeholder::before {
545 @include big-play-button-triangle-size(27px);
550 padding: 0 !important;
552 .vjs-peertube-displayed {
553 display: none !important;
558 @media screen and (max-width: 300px) {
563 .vjs-big-play-button {
567 .vjs-icon-placeholder::before {
568 @include big-play-button-triangle-size(20px);
572 .vjs-volume-control {
573 display: none !important;
577 padding: 0 !important;
585 // Theater mode is enabled
586 &.vjs-theater-enabled {
587 .vjs-theater-control {
590 .vjs-icon-placeholder {
591 transform: scale(0.8);
596 // On fullscreen, hide theater control
598 .vjs-theater-control {
604 // Play/pause animations
605 .vjs-has-started .vjs-play-control {
607 animation: remove-pause-button 0.25s ease;
611 animation: add-play-button 0.25s ease;
614 @keyframes remove-pause-button {
616 transform: rotate(90deg);
619 transform: rotate(0deg);
623 @keyframes add-play-button {
625 transform: rotate(-90deg);
628 transform: rotate(0deg);
633 // Error display disabled
634 .vjs-error:not(.vjs-error-display-enabled) {
639 .vjs-loading-spinner {
644 // Error display enabled
645 .vjs-error.vjs-error-display-enabled {