1 @charset "utf-8";// Thanks: https://github.com/zanechua/videojs-sublime-inspired-skin
2 $primary-foreground-color: #fff;
3 $primary-background-color: #000;
5 $control-bar-height: 34px;
7 .video-js.vjs-peertube-skin {
9 color: $primary-foreground-color;
15 .vjs-dock-description {
19 display: inline-block;
29 transform: scale(-1, 1);
33 .vjs-button > .vjs-icon-placeholder::before {
34 line-height: $control-bar-height;
37 .vjs-mouse-display:before,
38 .vjs-play-progress:before,
39 .vjs-volume-level:before {
40 content: ''; /* Remove Circle From Progress Bar */
47 .vjs-big-play-button {
51 $big-play-width: 1.5em;
52 $big-play-height: 1em;
59 width: $big-play-width;
60 height: $big-play-height;
61 line-height: $big-play-height;
62 margin-left: -($big-play-width / 2);
63 margin-top: -($big-play-height / 2);
64 transition: opacity 0.5s;
71 .vjs-icon-placeholder::before {
72 transition: text-shadow 0.3s;
78 .vjs-icon-placeholder::before {
79 text-shadow: 0 0 1px rgba(255, 255, 255, 0.8);
84 &.vjs-has-started .vjs-big-play-button {
88 transition: visibility 0.3s, opacity 0.3s;
93 .vjs-menu-button .vjs-menu-content {
94 background-color: rgba($primary-background-color, 0.5);
97 $slider-bg-color: lighten($primary-background-color, 33%);
100 background-color: rgba(255, 255, 255, .3);
105 /* The slider bar color is used for the progress bar and the volume bar
106 (the first two can be removed after a fix that's coming) */
110 background: $primary-foreground-color;
114 background: rgba($slider-bg-color, 0.5);
117 .vjs-load-progress div {
118 background: rgba($slider-bg-color, 0.75);
122 outline: none; /* Remove Blue Outline on Click*/
127 height: $control-bar-height;
129 .vjs-progress-control {
135 .vjs-progress-holder {
143 font-size: $font-size;
150 font-size: $font-size;
151 display: inline-block;
154 .vjs-current-time-display {
155 line-height: calc(#{$control-bar-height} + 1px);
165 font-size: $font-size;
166 display: inline-block;
169 .vjs-duration-display {
170 line-height: calc(#{$control-bar-height} + 1px);
174 &.vjs-remaining-time {
181 line-height: $control-bar-height;
184 .vjs-peertube-displayed {
188 .vjs-peertube-hidden {
192 .download-speed-number, .upload-speed-number, .peers-number {
193 font-weight: $font-semibold;
196 .download-speed-text, .upload-speed-text, .peers-text {
201 display: inline-block;
204 background-size: contain;
205 vertical-align: middle;
206 background-repeat: no-repeat;
212 background-image: url('../assets/player/images/arrow-down.svg');
216 background-image: url('../assets/player/images/arrow-up.svg');
230 .vjs-icon-placeholder {
231 display: inline-block;
234 vertical-align: middle;
235 background: url('../assets/player/images/volume.svg') no-repeat;
236 background-size: contain;
243 &.vjs-vol-0 .vjs-icon-placeholder {
244 background: url('../assets/player/images/volume-mute.svg') no-repeat;
245 background-size: contain;
249 .vjs-volume-menu-button,
258 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
259 background-size: 22px 14px;
269 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
270 background-size: 22px 14px;
277 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
278 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
279 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
280 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
282 transition-property: none;
285 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
290 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
291 transition-property: none;
301 .vjs-volume-control {
302 display: inline-block;
311 .vjs-fullscreen-control {
315 .vjs-icon-placeholder {
316 display: inline-block;
319 vertical-align: middle;
320 background: url('../assets/player/images/fullscreen.svg') no-repeat;
321 background-size: contain;
329 .vjs-menu-button-popup {
330 font-weight: $font-semibold;
333 // Thanks: https://github.com/kmoskwiak/videojs-resolution-switcher/pull/92/files
334 .vjs-resolution-button-label {
335 line-height: $control-bar-height;
346 .vjs-resolution-button {
347 outline: 0 !important;
355 left: 50%; /* Center the menu, in it's parent */
360 text-transform: none;
367 @media screen and (max-width: 550px) {
368 .vjs-big-play-button {
373 padding: 0 !important;
375 .vjs-peertube-displayed {
376 display: none !important;
381 @media screen and (max-width: 300px) {
386 .vjs-dock-description {
390 .vjs-big-play-button {
394 .vjs-volume-control {
395 display: none !important;
399 width: 26px !important;
400 margin-right: 83px !important;
405 // Thanks: https://projects.lukehaas.me/css-loaders/
406 .vjs-loading-spinner {
409 text-indent: -9999em;
410 border: 0.7em solid rgba(255, 255, 255, 0.2);
411 border-left-color: #ffffff;
412 transform: translateZ(0);
413 animation: 0.3s ease-out 1.1s forwards vjs-spinner-show, spinner 1.4s infinite linear !important;
418 animation: none !important;
425 animation: none !important;
430 transform: rotate(0deg);
433 transform: rotate(360deg);
437 @keyframes vjs-spinner-show {
457 // Error display disabled
458 .vjs-error:not(.vjs-error-display-enabled) {
463 .vjs-loading-spinner {
468 // Error display enabled
469 .vjs-error.vjs-error-display-enabled {