3 @import './_player-variables';
5 @mixin big-play-button-triangle-size($triangle-size) {
7 height: $triangle-size;
8 top: calc(50% - #{$triangle-size / 2});
9 left: calc(53% - #{($triangle-size / 2)});
12 .video-js.vjs-peertube-skin {
13 font-size: $font-size;
14 color: $primary-foreground-color;
20 .vjs-dock-description {
24 display: inline-block;
34 transform: scale(-1, 1);
38 .vjs-button > .vjs-icon-placeholder::before {
39 line-height: $control-bar-height;
42 .vjs-volume-level::before {
43 content: ''; /* Remove Circle From Progress Bar */
50 .vjs-big-play-button {
54 $big-play-width: 1.2em;
55 $big-play-height: 1.2em;
57 border: 6px solid #fff;
62 width: $big-play-width;
63 height: $big-play-height;
64 line-height: $big-play-height;
65 margin-left: -($big-play-width / 2);
66 margin-top: -($big-play-height / 2);
67 transition: 0.4s opacity;
74 .vjs-icon-placeholder::before {
75 @include big-play-button-triangle-size(45px);
78 background-image: url('#{$assets-path}/player/images/big-play-button.svg');
86 // Small effect when we click on the play button
87 &.vjs-has-big-play-button-clicked {
89 .vjs-big-play-button, .vjs-poster {
93 &.vjs-big-play-button, &.vjs-big-play-button::before {
95 transition: visibility 0.2s, opacity 0.2s;
98 &.vjs-poster, &.vjs-poster::before {
100 transition: visibility 0.3s, opacity 0.3s;
101 transition-delay: 0.05s;
106 // Hide the big play button on autoplay
108 .vjs-big-play-button {
109 display: none !important;
114 .vjs-big-play-button,
115 .vjs-settings-dialog {
116 background-color: rgba($primary-background-color, 0.5);
120 outline: none; /* Remove Blue Outline on Click*/
125 height: $control-bar-height;
126 background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
127 box-shadow: 0 -15px 40px 10px rgba(0, 0, 0, 0.2);
128 text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
130 .vjs-progress-control,
135 .vjs-resolution-control,
136 .vjs-fullscreen-control,
138 .vjs-theater-control,
141 color: $primary-foreground-color !important;
142 opacity: $primary-foreground-opacity;
143 transition: opacity .1s;
146 opacity: $primary-foreground-opacity-hover;
153 color: $primary-foreground-color;
154 opacity: $primary-foreground-opacity;
157 .vjs-progress-control {
159 z-index: 100; // On top of the progress bar
161 width: calc(100% - (2 * #{$progress-margin}));
162 margin-left: $progress-margin;
168 background-color: rgba(255, 255, 255, .2);
173 background: $primary-foreground-color;
175 // Not display the circle if the progress is not hovered
178 transition: opacity 0.1s ease;
191 background: rgba(255, 255, 255, .2);
197 .vjs-progress-control:hover .vjs-slider,
198 .vjs-slider.vjs-sliding {
201 .vjs-play-progress::before {
208 @include disable-outline;
211 font-size: $font-size;
216 line-height: inherit;
219 font-size: $font-size;
220 display: inline-block;
223 .vjs-current-time-display {
224 line-height: calc(#{$control-bar-height} + 1px);
234 font-size: $font-size;
235 display: inline-block;
237 .vjs-duration-display {
238 line-height: calc(#{$control-bar-height} + 1px);
242 &.vjs-remaining-time {
249 line-height: $control-bar-height;
252 .vjs-peertube-displayed {
256 .vjs-peertube-hidden {
260 .download-speed-number, .upload-speed-number, .peers-number {
261 font-weight: $font-semibold;
264 .download-speed-text, .upload-speed-text, .peers-text {
269 display: inline-block;
272 background-size: contain;
273 vertical-align: middle;
274 background-repeat: no-repeat;
280 background-image: url('#{$assets-path}/player/images/arrow-down.svg');
284 background-image: url('#{$assets-path}/player/images/arrow-up.svg');
291 width: 37px !important;
293 .vjs-playback-rate-value {
295 line-height: $control-bar-height;
298 .vjs-menu .vjs-menu-content {
299 width: 37px !important;
304 @include disable-outline;
306 line-height: $control-bar-height;
310 .vjs-icon-placeholder {
311 display: inline-block;
314 vertical-align: middle;
315 background: url('#{$assets-path}/player/images/volume.svg') no-repeat;
316 background-size: contain;
323 &.vjs-vol-0 .vjs-icon-placeholder {
324 background: url('#{$assets-path}/player/images/volume-mute.svg') no-repeat;
325 background-size: contain;
329 .vjs-volume-control {
335 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
336 background-size: 22px 14px;
346 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
347 background-size: 22px 14px;
354 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
355 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
356 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
357 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
359 transition-property: none;
362 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
367 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
368 transition-property: none;
378 .vjs-volume-control {
379 display: inline-block;
389 @include disable-outline;
390 @include disable-default-a-behaviour;
392 text-decoration: none;
393 line-height: $control-bar-height;
394 font-weight: $font-semibold;
398 .vjs-theater-control {
399 @include disable-outline;
404 .vjs-icon-placeholder {
405 display: inline-block;
408 vertical-align: middle;
409 background: url('#{$assets-path}/player/images/theater.svg') no-repeat;
410 background-size: contain;
418 .vjs-fullscreen-control {
419 @include disable-outline;
424 .vjs-icon-placeholder {
425 display: inline-block;
428 vertical-align: middle;
429 background: url('#{$assets-path}/player/images/fullscreen.svg') no-repeat;
430 background-size: contain;
438 .vjs-menu-button-popup {
439 font-weight: $font-semibold;
442 .vjs-resolution-button {
443 @include disable-outline;
456 text-transform: none;
463 @media screen and (max-width: 750px) {
464 .vjs-theater-control {
472 .vjs-dock-description {
476 .vjs-big-play-button {
480 .vjs-icon-placeholder::before {
481 @include big-play-button-triangle-size(32px);
486 @media screen and (max-width: 570px) {
491 .vjs-big-play-button {
495 .vjs-icon-placeholder::before {
496 @include big-play-button-triangle-size(27px);
505 padding: 0 !important;
507 .vjs-peertube-displayed {
508 display: none !important;
513 @media screen and (max-width: 300px) {
518 .vjs-big-play-button {
522 .vjs-icon-placeholder::before {
523 @include big-play-button-triangle-size(20px);
527 .vjs-volume-control {
528 display: none !important;
532 padding: 0 !important;
541 // Play/pause animations
542 .vjs-has-started .vjs-play-control {
544 animation: remove-pause-button 0.25s ease;
548 animation: add-play-button 0.25s ease;
551 @keyframes remove-pause-button {
553 transform: rotate(90deg);
556 transform: rotate(0deg);
560 @keyframes add-play-button {
562 transform: rotate(-90deg);
565 transform: rotate(0deg);
570 // Error display disabled
571 .vjs-error:not(.vjs-error-display-enabled) {
576 .vjs-loading-spinner {
581 // Error display enabled
582 .vjs-error.vjs-error-display-enabled {