4 @mixin big-play-button-triangle-size($triangle-size) {
6 height: $triangle-size;
7 top: calc(50% - #{$triangle-size / 2});
8 left: calc(53% - #{($triangle-size / 2)});
11 $primary-foreground-color: #fff;
12 $primary-foreground-opacity: 0.9;
13 $primary-foreground-opacity-hover: 1;
14 $primary-background-color: #000;
17 $control-bar-height: 34px;
19 $slider-bg-color: lighten($primary-background-color, 33%);
21 $setting-transition-duration: 0.15s;
22 $setting-transition-easing: ease-out;
24 .video-js.vjs-peertube-skin {
25 font-size: $font-size;
26 color: $primary-foreground-color;
32 .vjs-dock-description {
36 display: inline-block;
46 transform: scale(-1, 1);
50 .vjs-button > .vjs-icon-placeholder::before {
51 line-height: $control-bar-height;
54 .vjs-volume-level::before {
55 content: ''; /* Remove Circle From Progress Bar */
62 .vjs-big-play-button {
66 $big-play-width: 1.2em;
67 $big-play-height: 1.2em;
69 border: 6px solid #fff;
74 width: $big-play-width;
75 height: $big-play-height;
76 line-height: $big-play-height;
77 margin-left: -($big-play-width / 2);
78 margin-top: -($big-play-height / 2);
79 transition: 0.4s opacity;
86 .vjs-icon-placeholder::before {
87 @include big-play-button-triangle-size(45px);
90 background-image: url('../assets/player/images/big-play-button.svg');
98 // Small effect when we click on the play button
99 &.vjs-has-big-play-button-clicked {
101 .vjs-big-play-button, .vjs-poster {
105 &.vjs-big-play-button, &.vjs-big-play-button::before {
107 transition: visibility 0.2s, opacity 0.2s;
110 &.vjs-poster, &.vjs-poster::before {
112 transition: visibility 0.3s, opacity 0.3s;
113 transition-delay: 0.05s;
118 // Hide the big play button on autoplay
120 .vjs-big-play-button {
121 display: none !important;
126 .vjs-big-play-button,
127 .vjs-settings-dialog {
128 background-color: rgba($primary-background-color, 0.5);
132 background-color: rgba(255, 255, 255, .3);
137 background: $primary-foreground-color;
157 background: rgba($slider-bg-color, 0.5);
160 background: rgba($slider-bg-color, 0.75);
165 outline: none; /* Remove Blue Outline on Click*/
170 height: $control-bar-height;
172 .vjs-progress-control,
177 .vjs-resolution-control,
178 .vjs-fullscreen-control,
182 color: $primary-foreground-color !important;
183 opacity: $primary-foreground-opacity;
184 transition: opacity .1s;
187 opacity: $primary-foreground-opacity-hover;
194 color: $primary-foreground-color;
195 opacity: $primary-foreground-opacity;
198 .vjs-progress-control {
204 .vjs-progress-holder {
211 @include disable-outline;
214 font-size: $font-size;
221 font-size: $font-size;
222 display: inline-block;
225 .vjs-current-time-display {
226 line-height: calc(#{$control-bar-height} + 1px);
236 font-size: $font-size;
237 display: inline-block;
239 .vjs-duration-display {
240 line-height: calc(#{$control-bar-height} + 1px);
244 &.vjs-remaining-time {
251 line-height: $control-bar-height;
254 .vjs-peertube-displayed {
258 .vjs-peertube-hidden {
262 .download-speed-number, .upload-speed-number, .peers-number {
263 font-weight: $font-semibold;
266 .download-speed-text, .upload-speed-text, .peers-text {
271 display: inline-block;
274 background-size: contain;
275 vertical-align: middle;
276 background-repeat: no-repeat;
282 background-image: url('../assets/player/images/arrow-down.svg');
286 background-image: url('../assets/player/images/arrow-up.svg');
293 width: 37px !important;
295 .vjs-playback-rate-value {
297 line-height: $control-bar-height;
300 .vjs-menu .vjs-menu-content {
301 width: 37px !important;
306 @include disable-outline;
308 line-height: $control-bar-height;
312 .vjs-icon-placeholder {
313 display: inline-block;
316 vertical-align: middle;
317 background: url('../assets/player/images/volume.svg') no-repeat;
318 background-size: contain;
325 &.vjs-vol-0 .vjs-icon-placeholder {
326 background: url('../assets/player/images/volume-mute.svg') no-repeat;
327 background-size: contain;
331 .vjs-volume-control {
337 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
338 background-size: 22px 14px;
348 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
349 background-size: 22px 14px;
356 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
357 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
358 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
359 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
361 transition-property: none;
364 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
369 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
370 transition-property: none;
380 .vjs-volume-control {
381 display: inline-block;
391 @include disable-outline;
392 @include disable-default-a-behaviour;
394 text-decoration: none;
395 line-height: $control-bar-height;
396 font-weight: $font-semibold;
400 .vjs-fullscreen-control {
401 @include disable-outline;
405 .vjs-icon-placeholder {
406 display: inline-block;
409 vertical-align: middle;
410 background: url('../assets/player/images/fullscreen.svg') no-repeat;
411 background-size: contain;
419 .vjs-menu-button-popup {
420 font-weight: $font-semibold;
423 .vjs-resolution-button {
424 @include disable-outline;
437 text-transform: none;
444 @media screen and (max-width: 750px) {
449 .vjs-dock-description {
453 .vjs-big-play-button {
457 .vjs-icon-placeholder::before {
458 @include big-play-button-triangle-size(32px);
463 @media screen and (max-width: 570px) {
468 .vjs-big-play-button {
472 .vjs-icon-placeholder::before {
473 @include big-play-button-triangle-size(27px);
482 padding: 0 !important;
484 .vjs-peertube-displayed {
485 display: none !important;
490 @media screen and (max-width: 300px) {
495 .vjs-big-play-button {
499 .vjs-icon-placeholder::before {
500 @include big-play-button-triangle-size(20px);
504 .vjs-volume-control {
505 display: none !important;
509 padding: 0 !important;
518 // Play/pause animations
519 .vjs-has-started .vjs-play-control {
521 animation: remove-pause-button 0.25s ease;
525 animation: add-play-button 0.25s ease;
528 @keyframes remove-pause-button {
530 transform: rotate(90deg);
533 transform: rotate(0deg);
537 @keyframes add-play-button {
539 transform: rotate(-90deg);
542 transform: rotate(0deg);
547 // Thanks: https://projects.lukehaas.me/css-loaders/
548 .vjs-loading-spinner {
551 text-indent: -9999em;
552 border: 0.7em solid rgba(255, 255, 255, 0.2);
553 border-left-color: #ffffff;
554 transform: translateZ(0);
555 animation: 0.3s ease-out 1.1s forwards vjs-spinner-show, spinner 1.4s infinite linear !important;
560 animation: none !important;
567 animation: none !important;
572 transform: rotate(0deg);
575 transform: rotate(360deg);
579 @keyframes vjs-spinner-show {
599 // Error display disabled
600 .vjs-error:not(.vjs-error-display-enabled) {
605 .vjs-loading-spinner {
610 // Error display enabled
611 .vjs-error.vjs-error-display-enabled {
618 /* Sass for videojs-settings-menu */
623 @include disable-outline;
628 .vjs-icon-placeholder {
629 display: inline-block;
632 vertical-align: middle;
633 background: url('../assets/player/images/settings.svg') no-repeat;
634 background-size: contain;
642 .vjs-settings-sub-menu-title {
644 text-transform: initial;
647 .vjs-settings-dialog {
651 color: $primary-foreground-color;
652 opacity: $primary-foreground-opacity;
654 font-size: $font-size !important;
659 transition: width $setting-transition-duration $setting-transition-easing, height $setting-transition-duration $setting-transition-easing;
661 .vjs-settings-sub-menu-value,
662 .vjs-settings-sub-menu-title {
667 .vjs-settings-sub-menu-title {
669 font-weight: $font-semibold;
672 .vjs-settings-sub-menu-value {
682 .vjs-settings-panel {
691 .vjs-settings-panel-child {
694 align-items: flex-end;
708 > .vjs-settings-sub-menu {
709 transition: all $setting-transition-duration $setting-transition-easing;
714 background-color: rgba(255, 255, 255, 0.2);
728 text-transform: initial;
741 .vjs-settings-sub-menu-value::after {
742 @include chevron-right(9px, 2px);
748 > .vjs-settings-sub-menu {
753 font-weight: $font-semibold;
759 background-color: inherit;
760 padding: 8px 8px 13px 8px;
762 border-bottom: 1px solid grey;
765 @include chevron-left(9px, 2px);
772 background-color: inherit;
783 background-image: url('../assets/player/images/tick.svg');