2 @use '_variables' as *;
4 @use './_player-variables' as *;
6 .video-js.vjs-peertube-skin .vjs-control-bar {
7 height: $control-bar-height;
8 background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
9 box-shadow: 0 -15px 40px 10px rgba(0, 0, 0, 0.2);
10 text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
11 transition: visibility 0.3s, opacity 0.3s !important;
13 > button:first-child {
14 @include margin-left($first-control-bar-element-margin-left);
18 @include margin-right($first-control-bar-element-margin-left);
21 .vjs-progress-control,
26 .vjs-resolution-control,
27 .vjs-fullscreen-control,
31 color: pvar(--embedForegroundColor) !important;
33 opacity: $primary-foreground-opacity;
34 transition: opacity .1s;
37 opacity: $primary-foreground-opacity-hover;
44 color: pvar(--embedForegroundColor);
45 opacity: $primary-foreground-opacity;
48 .vjs-progress-control {
49 @include margin-left($progress-margin);
53 z-index: 100; // On top of the progress bar
54 width: calc(100% - (2 * #{$progress-margin}));
60 background-color: rgba(255, 255, 255, .2);
65 background: pvar(--embedForegroundColor);
67 // Not display the circle if the progress is not hovered
70 transition: opacity 0.1s ease;
84 background: rgba(255, 255, 255, .2);
90 .vjs-progress-control:hover .vjs-slider,
91 .vjs-progress-control .vjs-slider.vjs-sliding {
94 .vjs-play-progress::before {
101 @include disable-outline;
104 width: $control-bar-button-width;
106 .vjs-icon-placeholder::before {
107 font-size: $control-bar-play-font-size;
108 line-height: initial;
113 line-height: inherit;
116 @include margin-left(.5em);
118 font-size: $control-bar-font-size;
119 display: inline-block;
122 .vjs-current-time-display {
123 line-height: calc(#{$control-bar-height} - 1px);
126 @include margin(0, 1px, 0, 2px);
134 font-size: $control-bar-font-size;
135 display: inline-block;
138 .vjs-duration-display {
139 line-height: calc(#{$control-bar-height} - 1px);
143 &.vjs-remaining-time {
149 line-height: $control-bar-height;
155 @include margin-right(6px);
158 line-height: $control-bar-height;
161 font-size: $control-bar-font-size;
163 .vjs-peertube-displayed {
167 .vjs-peertube-hidden {
171 .download-speed-number,
172 .upload-speed-number,
175 font-weight: $font-semibold;
178 .download-speed-text,
182 @include margin-right(15px);
186 @include margin-right(2px);
188 display: inline-block;
191 background-size: contain;
192 vertical-align: middle;
193 background-repeat: no-repeat;
198 background-image: url('#{$assets-path}/player/images/arrow-down.svg');
202 background-image: url('#{$assets-path}/player/images/arrow-up.svg');
208 .vjs-previous-video {
209 width: $control-bar-button-width - 4px;
218 mask-image: url('#{$assets-path}/player/images/next.svg');
219 -webkit-mask-image: url('#{$assets-path}/player/images/next.svg');
221 -webkit-mask-size: cover;
223 background-color: #fff;
224 width: $control-bar-next-previous-play-font-size;
225 height: $control-bar-next-previous-play-font-size;
226 display: inline-block;
230 transform: rotate(180deg);
236 @include disable-outline;
239 width: $control-bar-icon-size;
241 .vjs-icon-placeholder {
242 display: inline-block;
243 width: $control-bar-icon-size;
244 height: $control-bar-icon-size;
245 vertical-align: middle;
246 background: url('#{$assets-path}/player/images/volume.svg') no-repeat;
247 background-size: contain;
254 &.vjs-vol-0 .vjs-icon-placeholder {
255 background: url('#{$assets-path}/player/images/volume-mute.svg') no-repeat;
256 background-size: contain;
260 .vjs-volume-control {
261 @include margin(0, 5px, 0, 5px);
263 width: $control-bar-icon-size;
269 background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC') no-repeat;
270 background-size: $control-bar-icon-size $control-bar-volume-slider-height;
273 max-width: $control-bar-icon-size;
274 max-height: $control-bar-volume-slider-height;
279 background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC') no-repeat;
280 background-size: $control-bar-icon-size $control-bar-volume-slider-height;
281 max-width: $control-bar-icon-size;
283 max-height: $control-bar-volume-slider-height;
292 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
293 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
294 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
295 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
297 transition-property: none;
300 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
305 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
306 transition-property: none;
316 .vjs-volume-control {
317 display: inline-block;
327 @include disable-outline;
330 width: $control-bar-button-width;
332 .vjs-icon-placeholder {
333 display: inline-block;
334 height: $control-bar-icon-size - 5px;
335 width: $control-bar-icon-size - 5px;
336 vertical-align: middle;
337 background: url('#{$assets-path}/player/images/settings.svg') no-repeat;
338 background-size: contain;
347 @include disable-outline;
348 @include disable-default-a-behaviour;
350 text-decoration: none;
351 line-height: $control-bar-height;
352 font-weight: $font-semibold;
356 .vjs-theater-control {
357 @include disable-outline;
359 width: $control-bar-button-width;
362 .vjs-icon-placeholder {
363 transition: transform 0.2s ease;
364 display: inline-block;
365 width: $control-bar-icon-size;
366 height: $control-bar-icon-size;
367 vertical-align: middle;
368 background: url('#{$assets-path}/player/images/theater.svg') no-repeat;
369 background-size: contain;
377 .vjs-fullscreen-control {
378 @include disable-outline;
380 width: $control-bar-button-width;
382 .vjs-icon-placeholder {
383 display: inline-block;
384 width: $control-bar-icon-size;
385 height: $control-bar-icon-size;
386 vertical-align: middle;
387 background: url('#{$assets-path}/player/images/fullscreen.svg') no-repeat;
388 background-size: contain;
396 @media screen and (max-width: $screen-width-750) {
397 .vjs-theater-control {
402 @media screen and (max-width: $screen-width-570) {
404 padding: 0 !important;
406 .vjs-peertube-displayed {
407 display: none !important;
413 display: none !important;
417 display: none !important;
422 @media screen and (max-width: $screen-width-350) {
425 .vjs-previous-video {
426 display: none !important;
430 padding: 0 !important;
433 > button:first-child {
434 @include margin-left($first-control-bar-element-margin-left-small-width);
437 > button:last-child {
438 @include margin-right($first-control-bar-element-margin-left-small-width);
443 display: none !important;