4 $primary-foreground-color: #eee;
5 $primary-foreground-opacity: 0.9;
6 $primary-foreground-opacity-hover: 1;
7 $primary-background-color: #000;
10 $control-bar-height: 34px;
12 $slider-bg-color: lighten($primary-background-color, 33%);
14 .video-js.vjs-peertube-skin {
15 font-size: $font-size;
22 .vjs-dock-description {
26 display: inline-block;
36 transform: scale(-1, 1);
40 .vjs-button > .vjs-icon-placeholder::before {
41 line-height: $control-bar-height;
44 .vjs-volume-level:before {
45 content: ''; /* Remove Circle From Progress Bar */
52 .vjs-big-play-button {
56 $big-play-width: 1.5em;
57 $big-play-height: 1em;
64 width: $big-play-width;
65 height: $big-play-height;
66 line-height: $big-play-height;
67 margin-left: -($big-play-width / 2);
68 margin-top: -($big-play-height / 2);
69 transition: opacity 0.5s;
76 .vjs-icon-placeholder::before {
77 transition: text-shadow 0.3s;
83 .vjs-icon-placeholder::before {
84 text-shadow: 0 0 1px rgba(255, 255, 255, 0.8);
89 &.vjs-has-started .vjs-big-play-button {
93 transition: visibility 0.3s, opacity 0.3s;
98 .vjs-menu-button .vjs-menu-content {
99 background-color: rgba($primary-background-color, 0.5);
103 background-color: rgba(255, 255, 255, .3);
108 background: $primary-foreground-color;
123 background: rgba($slider-bg-color, 0.5);
126 background: rgba($slider-bg-color, 0.75);
131 outline: none; /* Remove Blue Outline on Click*/
136 height: $control-bar-height;
138 .vjs-progress-control,
143 .vjs-resolution-control,
144 .vjs-fullscreen-control
146 opacity: $primary-foreground-opacity;
147 transition: opacity .1s;
150 opacity: $primary-foreground-opacity-hover;
157 color: $primary-foreground-color;
160 .vjs-progress-control {
166 .vjs-progress-holder {
173 @include disable-outline;
175 font-size: $font-size;
182 font-size: $font-size;
183 display: inline-block;
186 .vjs-current-time-display {
187 line-height: calc(#{$control-bar-height} + 1px);
197 font-size: $font-size;
198 display: inline-block;
200 .vjs-duration-display {
201 line-height: calc(#{$control-bar-height} + 1px);
205 &.vjs-remaining-time {
212 line-height: $control-bar-height;
215 .vjs-peertube-displayed {
219 .vjs-peertube-hidden {
223 .download-speed-number, .upload-speed-number, .peers-number {
224 font-weight: $font-semibold;
227 .download-speed-text, .upload-speed-text, .peers-text {
232 display: inline-block;
235 background-size: contain;
236 vertical-align: middle;
237 background-repeat: no-repeat;
243 background-image: url('../assets/player/images/arrow-down.svg');
247 background-image: url('../assets/player/images/arrow-up.svg');
254 width: 37px !important;
256 .vjs-playback-rate-value {
258 line-height: $control-bar-height;
261 .vjs-menu .vjs-menu-content {
262 width: 37px !important;
267 @include disable-outline;
269 line-height: $control-bar-height;
273 .vjs-icon-placeholder {
274 display: inline-block;
277 vertical-align: middle;
278 background: url('../assets/player/images/volume.svg') no-repeat;
279 background-size: contain;
286 &.vjs-vol-0 .vjs-icon-placeholder {
287 background: url('../assets/player/images/volume-mute.svg') no-repeat;
288 background-size: contain;
292 .vjs-volume-control {
298 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
299 background-size: 22px 14px;
309 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
310 background-size: 22px 14px;
317 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
318 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
319 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
320 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
322 transition-property: none;
325 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
330 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
331 transition-property: none;
341 .vjs-volume-control {
342 display: inline-block;
351 .vjs-fullscreen-control {
352 @include disable-outline;
356 .vjs-icon-placeholder {
357 display: inline-block;
360 vertical-align: middle;
361 background: url('../assets/player/images/fullscreen.svg') no-repeat;
362 background-size: contain;
370 .vjs-menu-button-popup {
371 font-weight: $font-semibold;
374 // Thanks: https://github.com/kmoskwiak/videojs-resolution-switcher/pull/92/files
375 .vjs-resolution-button-label {
376 line-height: $control-bar-height;
387 .vjs-resolution-button {
388 @include disable-outline;
401 text-transform: none;
408 @media screen and (max-width: 570px) {
413 .vjs-dock-description {
417 .vjs-big-play-button {
426 padding: 0 !important;
428 .vjs-peertube-displayed {
429 display: none !important;
434 @media screen and (max-width: 300px) {
439 .vjs-big-play-button {
443 .vjs-volume-control {
444 display: none !important;
448 width: 26px !important;
449 margin-right: 83px !important;
454 // Thanks: https://projects.lukehaas.me/css-loaders/
455 .vjs-loading-spinner {
458 text-indent: -9999em;
459 border: 0.7em solid rgba(255, 255, 255, 0.2);
460 border-left-color: #ffffff;
461 transform: translateZ(0);
462 animation: 0.3s ease-out 1.1s forwards vjs-spinner-show, spinner 1.4s infinite linear !important;
467 animation: none !important;
474 animation: none !important;
479 transform: rotate(0deg);
482 transform: rotate(360deg);
486 @keyframes vjs-spinner-show {
506 // Error display disabled
507 .vjs-error:not(.vjs-error-display-enabled) {
512 .vjs-loading-spinner {
517 // Error display enabled
518 .vjs-error.vjs-error-display-enabled {