4 $primary-foreground-color: #fff;
5 $primary-background-color: #000;
7 $control-bar-height: 34px;
9 .video-js.vjs-peertube-skin {
10 font-size: $font-size;
11 color: $primary-foreground-color;
17 .vjs-dock-description {
21 display: inline-block;
31 transform: scale(-1, 1);
35 .vjs-button > .vjs-icon-placeholder::before {
36 line-height: $control-bar-height;
39 .vjs-mouse-display:before,
40 .vjs-play-progress:before,
41 .vjs-volume-level:before {
42 content: ''; /* Remove Circle From Progress Bar */
49 .vjs-big-play-button {
53 $big-play-width: 1.5em;
54 $big-play-height: 1em;
61 width: $big-play-width;
62 height: $big-play-height;
63 line-height: $big-play-height;
64 margin-left: -($big-play-width / 2);
65 margin-top: -($big-play-height / 2);
66 transition: opacity 0.5s;
73 .vjs-icon-placeholder::before {
74 transition: text-shadow 0.3s;
80 .vjs-icon-placeholder::before {
81 text-shadow: 0 0 1px rgba(255, 255, 255, 0.8);
86 &.vjs-has-started .vjs-big-play-button {
90 transition: visibility 0.3s, opacity 0.3s;
95 .vjs-menu-button .vjs-menu-content {
96 background-color: rgba($primary-background-color, 0.5);
99 $slider-bg-color: lighten($primary-background-color, 33%);
102 background-color: rgba(255, 255, 255, .3);
107 /* The slider bar color is used for the progress bar and the volume bar
108 (the first two can be removed after a fix that's coming) */
112 background: $primary-foreground-color;
116 background: rgba($slider-bg-color, 0.5);
119 .vjs-load-progress div {
120 background: rgba($slider-bg-color, 0.75);
124 outline: none; /* Remove Blue Outline on Click*/
129 height: $control-bar-height;
131 .vjs-progress-control {
137 .vjs-progress-holder {
144 @include disable-outline;
146 font-size: $font-size;
153 font-size: $font-size;
154 display: inline-block;
157 .vjs-current-time-display {
158 line-height: calc(#{$control-bar-height} + 1px);
168 font-size: $font-size;
169 display: inline-block;
172 .vjs-duration-display {
173 line-height: calc(#{$control-bar-height} + 1px);
177 &.vjs-remaining-time {
184 line-height: $control-bar-height;
187 .vjs-peertube-displayed {
191 .vjs-peertube-hidden {
195 .download-speed-number, .upload-speed-number, .peers-number {
196 font-weight: $font-semibold;
199 .download-speed-text, .upload-speed-text, .peers-text {
204 display: inline-block;
207 background-size: contain;
208 vertical-align: middle;
209 background-repeat: no-repeat;
215 background-image: url('../assets/player/images/arrow-down.svg');
219 background-image: url('../assets/player/images/arrow-up.svg');
226 width: 37px !important;
228 .vjs-playback-rate-value {
230 line-height: $control-bar-height;
233 .vjs-menu .vjs-menu-content {
234 width: 37px !important;
239 @include disable-outline;
241 line-height: $control-bar-height;
245 .vjs-icon-placeholder {
246 display: inline-block;
249 vertical-align: middle;
250 background: url('../assets/player/images/volume.svg') no-repeat;
251 background-size: contain;
258 &.vjs-vol-0 .vjs-icon-placeholder {
259 background: url('../assets/player/images/volume-mute.svg') no-repeat;
260 background-size: contain;
264 .vjs-volume-control {
270 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
271 background-size: 22px 14px;
281 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
282 background-size: 22px 14px;
289 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
290 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
291 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
292 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
294 transition-property: none;
297 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
302 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
303 transition-property: none;
313 .vjs-volume-control {
314 display: inline-block;
323 .vjs-fullscreen-control {
324 @include disable-outline;
328 .vjs-icon-placeholder {
329 display: inline-block;
332 vertical-align: middle;
333 background: url('../assets/player/images/fullscreen.svg') no-repeat;
334 background-size: contain;
342 .vjs-menu-button-popup {
343 font-weight: $font-semibold;
346 // Thanks: https://github.com/kmoskwiak/videojs-resolution-switcher/pull/92/files
347 .vjs-resolution-button-label {
348 line-height: $control-bar-height;
359 .vjs-resolution-button {
360 @include disable-outline;
373 text-transform: none;
380 @media screen and (max-width: 550px) {
381 .vjs-big-play-button {
390 padding: 0 !important;
392 .vjs-peertube-displayed {
393 display: none !important;
398 @media screen and (max-width: 300px) {
403 .vjs-dock-description {
407 .vjs-big-play-button {
411 .vjs-volume-control {
412 display: none !important;
416 width: 26px !important;
417 margin-right: 83px !important;
422 // Thanks: https://projects.lukehaas.me/css-loaders/
423 .vjs-loading-spinner {
426 text-indent: -9999em;
427 border: 0.7em solid rgba(255, 255, 255, 0.2);
428 border-left-color: #ffffff;
429 transform: translateZ(0);
430 animation: 0.3s ease-out 1.1s forwards vjs-spinner-show, spinner 1.4s infinite linear !important;
435 animation: none !important;
442 animation: none !important;
447 transform: rotate(0deg);
450 transform: rotate(360deg);
454 @keyframes vjs-spinner-show {
474 // Error display disabled
475 .vjs-error:not(.vjs-error-display-enabled) {
480 .vjs-loading-spinner {
485 // Error display enabled
486 .vjs-error.vjs-error-display-enabled {