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 $context-menu-width: 350px;
26 .video-js.vjs-peertube-skin {
27 font-size: $font-size;
28 color: $primary-foreground-color;
34 .vjs-dock-description {
38 display: inline-block;
48 transform: scale(-1, 1);
52 .vjs-button > .vjs-icon-placeholder::before {
53 line-height: $control-bar-height;
56 .vjs-volume-level::before {
57 content: ''; /* Remove Circle From Progress Bar */
64 .vjs-big-play-button {
68 $big-play-width: 1.2em;
69 $big-play-height: 1.2em;
71 border: 6px solid #fff;
76 width: $big-play-width;
77 height: $big-play-height;
78 line-height: $big-play-height;
79 margin-left: -($big-play-width / 2);
80 margin-top: -($big-play-height / 2);
81 transition: 0.4s opacity;
88 .vjs-icon-placeholder::before {
89 @include big-play-button-triangle-size(45px);
92 background-image: url('../assets/player/images/big-play-button.svg');
100 // Small effect when we click on the play button
101 &.vjs-has-big-play-button-clicked {
103 .vjs-big-play-button, .vjs-poster {
107 &.vjs-big-play-button, &.vjs-big-play-button::before {
109 transition: visibility 0.2s, opacity 0.2s;
112 &.vjs-poster, &.vjs-poster::before {
114 transition: visibility 0.3s, opacity 0.3s;
115 transition-delay: 0.05s;
120 // Hide the big play button on autoplay
122 .vjs-big-play-button {
123 display: none !important;
128 .vjs-big-play-button,
129 .vjs-settings-dialog {
130 background-color: rgba($primary-background-color, 0.5);
134 outline: none; /* Remove Blue Outline on Click*/
139 height: $control-bar-height;
141 .vjs-progress-control,
146 .vjs-resolution-control,
147 .vjs-fullscreen-control,
151 color: $primary-foreground-color !important;
152 opacity: $primary-foreground-opacity;
153 transition: opacity .1s;
156 opacity: $primary-foreground-opacity-hover;
163 color: $primary-foreground-color;
164 opacity: $primary-foreground-opacity;
168 background-color: rgba(255, 255, 255, .2);
173 background: $primary-foreground-color;
195 background: rgba(255, 255, 255, .2);
199 .vjs-progress-control {
205 .vjs-progress-holder {
212 @include disable-outline;
215 font-size: $font-size;
221 line-height: inherit;
224 font-size: $font-size;
225 display: inline-block;
228 .vjs-current-time-display {
229 line-height: calc(#{$control-bar-height} + 1px);
239 font-size: $font-size;
240 display: inline-block;
242 .vjs-duration-display {
243 line-height: calc(#{$control-bar-height} + 1px);
247 &.vjs-remaining-time {
254 line-height: $control-bar-height;
257 .vjs-peertube-displayed {
261 .vjs-peertube-hidden {
265 .download-speed-number, .upload-speed-number, .peers-number {
266 font-weight: $font-semibold;
269 .download-speed-text, .upload-speed-text, .peers-text {
274 display: inline-block;
277 background-size: contain;
278 vertical-align: middle;
279 background-repeat: no-repeat;
285 background-image: url('../assets/player/images/arrow-down.svg');
289 background-image: url('../assets/player/images/arrow-up.svg');
296 width: 37px !important;
298 .vjs-playback-rate-value {
300 line-height: $control-bar-height;
303 .vjs-menu .vjs-menu-content {
304 width: 37px !important;
309 @include disable-outline;
311 line-height: $control-bar-height;
315 .vjs-icon-placeholder {
316 display: inline-block;
319 vertical-align: middle;
320 background: url('../assets/player/images/volume.svg') no-repeat;
321 background-size: contain;
328 &.vjs-vol-0 .vjs-icon-placeholder {
329 background: url('../assets/player/images/volume-mute.svg') no-repeat;
330 background-size: contain;
334 .vjs-volume-control {
340 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
341 background-size: 22px 14px;
351 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
352 background-size: 22px 14px;
359 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
360 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
361 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
362 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
364 transition-property: none;
367 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
372 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
373 transition-property: none;
383 .vjs-volume-control {
384 display: inline-block;
394 @include disable-outline;
395 @include disable-default-a-behaviour;
397 text-decoration: none;
398 line-height: $control-bar-height;
399 font-weight: $font-semibold;
403 .vjs-fullscreen-control {
404 @include disable-outline;
408 .vjs-icon-placeholder {
409 display: inline-block;
412 vertical-align: middle;
413 background: url('../assets/player/images/fullscreen.svg') no-repeat;
414 background-size: contain;
422 .vjs-menu-button-popup {
423 font-weight: $font-semibold;
426 .vjs-resolution-button {
427 @include disable-outline;
440 text-transform: none;
447 @media screen and (max-width: 750px) {
452 .vjs-dock-description {
456 .vjs-big-play-button {
460 .vjs-icon-placeholder::before {
461 @include big-play-button-triangle-size(32px);
466 @media screen and (max-width: 570px) {
471 .vjs-big-play-button {
475 .vjs-icon-placeholder::before {
476 @include big-play-button-triangle-size(27px);
485 padding: 0 !important;
487 .vjs-peertube-displayed {
488 display: none !important;
493 @media screen and (max-width: 300px) {
498 .vjs-big-play-button {
502 .vjs-icon-placeholder::before {
503 @include big-play-button-triangle-size(20px);
507 .vjs-volume-control {
508 display: none !important;
512 padding: 0 !important;
521 // Play/pause animations
522 .vjs-has-started .vjs-play-control {
524 animation: remove-pause-button 0.25s ease;
528 animation: add-play-button 0.25s ease;
531 @keyframes remove-pause-button {
533 transform: rotate(90deg);
536 transform: rotate(0deg);
540 @keyframes add-play-button {
542 transform: rotate(-90deg);
545 transform: rotate(0deg);
550 // Thanks: https://projects.lukehaas.me/css-loaders/
551 .vjs-loading-spinner {
554 text-indent: -9999em;
555 border: 0.7em solid rgba(255, 255, 255, 0.2);
556 border-left-color: #ffffff;
557 transform: translateZ(0);
558 animation: 0.3s ease-out 1.1s forwards vjs-spinner-show, spinner 1.4s infinite linear !important;
563 animation: none !important;
570 animation: none !important;
575 transform: rotate(0deg);
578 transform: rotate(360deg);
582 @keyframes vjs-spinner-show {
602 // Error display disabled
603 .vjs-error:not(.vjs-error-display-enabled) {
608 .vjs-loading-spinner {
613 // Error display enabled
614 .vjs-error.vjs-error-display-enabled {
621 /* Sass for videojs-settings-menu */
626 @include disable-outline;
631 .vjs-icon-placeholder {
632 display: inline-block;
635 vertical-align: middle;
636 background: url('../assets/player/images/settings.svg') no-repeat;
637 background-size: contain;
645 .vjs-settings-sub-menu-title {
647 text-transform: initial;
650 .vjs-settings-dialog {
654 color: $primary-foreground-color;
655 opacity: $primary-foreground-opacity;
657 font-size: $font-size !important;
662 transition: width $setting-transition-duration $setting-transition-easing, height $setting-transition-duration $setting-transition-easing;
664 .vjs-settings-sub-menu-value,
665 .vjs-settings-sub-menu-title {
670 .vjs-settings-sub-menu-title {
672 font-weight: $font-semibold;
675 .vjs-settings-sub-menu-value {
685 .vjs-settings-panel {
694 .vjs-settings-panel-child {
697 align-items: flex-end;
711 > .vjs-settings-sub-menu {
712 transition: all $setting-transition-duration $setting-transition-easing;
717 background-color: rgba(255, 255, 255, 0.2);
731 text-transform: initial;
744 .vjs-settings-sub-menu-value::after {
745 @include chevron-right(9px, 2px);
751 > .vjs-settings-sub-menu {
756 font-weight: $font-semibold;
762 background-color: inherit;
763 padding: 8px 8px 13px 8px;
765 border-bottom: 1px solid grey;
768 @include chevron-left(9px, 2px);
775 background-color: inherit;
786 background-image: url('../assets/player/images/tick.svg');
795 /* Sass for videojs-contextmenu-ui */
797 .video-js .vjs-contextmenu-ui-menu {
799 background-color: rgba(0, 0, 0, 0.5);
801 width: $context-menu-width;
804 opacity: $primary-foreground-opacity;
805 color: $primary-foreground-color;
806 font-size: $font-size !important;
807 font-weight: $font-semibold;
815 text-transform: none;
818 background-color: rgba(255, 255, 255, 0.2);