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;
275 .vjs-peertube-displayed {
279 .vjs-peertube-hidden {
283 .download-speed-number, .upload-speed-number, .peers-number, .http-fallback {
284 font-weight: $font-semibold;
287 .download-speed-text, .upload-speed-text, .peers-text, .http-fallback {
293 background-image: url('#{$assets-path}/player/images/arrow-down.svg');
297 background-image: url('#{$assets-path}/player/images/arrow-up.svg');
303 line-height: $control-bar-height;
308 mask-image: url('#{$assets-path}/player/images/next.svg');
309 background-color: white;
311 transform: scale(2.2);
319 display: inline-block;
322 background-size: contain;
323 vertical-align: middle;
324 background-repeat: no-repeat;
332 width: 37px !important;
334 .vjs-playback-rate-value {
336 line-height: $control-bar-height;
339 .vjs-menu .vjs-menu-content {
340 width: 37px !important;
345 @include disable-outline;
347 line-height: $control-bar-height;
351 .vjs-icon-placeholder {
352 display: inline-block;
355 vertical-align: middle;
356 background: url('#{$assets-path}/player/images/volume.svg') no-repeat;
357 background-size: contain;
364 &.vjs-vol-0 .vjs-icon-placeholder {
365 background: url('#{$assets-path}/player/images/volume-mute.svg') no-repeat;
366 background-size: contain;
370 .vjs-volume-control {
376 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
377 background-size: 22px 14px;
387 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
388 background-size: 22px 14px;
400 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
401 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
402 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
403 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
405 transition-property: none;
408 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
413 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
414 transition-property: none;
424 .vjs-volume-control {
425 display: inline-block;
435 @include disable-outline;
436 @include disable-default-a-behaviour;
438 text-decoration: none;
439 line-height: $control-bar-height;
440 font-weight: $font-semibold;
444 .vjs-theater-control {
445 @include disable-outline;
451 .vjs-icon-placeholder {
452 transition: transform 0.2s ease;
453 display: inline-block;
456 vertical-align: middle;
457 background: url('#{$assets-path}/player/images/theater.svg') no-repeat;
458 background-size: contain;
466 .vjs-fullscreen-control {
467 @include disable-outline;
472 .vjs-icon-placeholder {
473 display: inline-block;
476 vertical-align: middle;
477 background: url('#{$assets-path}/player/images/fullscreen.svg') no-repeat;
478 background-size: contain;
486 .vjs-menu-button-popup {
487 font-weight: $font-semibold;
490 .vjs-resolution-button {
491 @include disable-outline;
504 text-transform: none;
511 @media screen and (max-width: 750px) {
512 .vjs-theater-control {
520 .vjs-dock-description {
524 .vjs-big-play-button {
528 .vjs-icon-placeholder::before {
529 @include big-play-button-triangle-size(32px);
534 @media screen and (max-width: 570px) {
539 .vjs-big-play-button {
543 .vjs-icon-placeholder::before {
544 @include big-play-button-triangle-size(27px);
549 padding: 0 !important;
551 .vjs-peertube-displayed {
552 display: none !important;
557 @media screen and (max-width: 300px) {
562 .vjs-big-play-button {
566 .vjs-icon-placeholder::before {
567 @include big-play-button-triangle-size(20px);
571 .vjs-volume-control {
572 display: none !important;
576 padding: 0 !important;
584 // Theater mode is enabled
585 &.vjs-theater-enabled {
586 .vjs-theater-control {
589 .vjs-icon-placeholder {
590 transform: scale(0.8);
595 // On fullscreen, hide theater control
597 .vjs-theater-control {
603 // Play/pause animations
604 .vjs-has-started .vjs-play-control {
606 animation: remove-pause-button 0.25s ease;
610 animation: add-play-button 0.25s ease;
613 @keyframes remove-pause-button {
615 transform: rotate(90deg);
618 transform: rotate(0deg);
622 @keyframes add-play-button {
624 transform: rotate(-90deg);
627 transform: rotate(0deg);
632 // Error display disabled
633 .vjs-error:not(.vjs-error-display-enabled) {
638 .vjs-loading-spinner {
643 // Error display enabled
644 .vjs-error.vjs-error-display-enabled {