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;
185 .vjs-peertube-displayed {
189 .vjs-peertube-hidden {
193 .download-speed-number, .upload-speed-number, .peers-number {
194 font-weight: $font-semibold;
197 .download-speed-text, .upload-speed-text, .peers-text {
202 display: inline-block;
205 background-size: contain;
206 vertical-align: middle;
207 background-repeat: no-repeat;
213 background-image: url('../assets/player/images/arrow-down.svg');
217 background-image: url('../assets/player/images/arrow-up.svg');
225 .vjs-icon-placeholder {
226 display: inline-block;
229 vertical-align: middle;
230 background: url('../assets/player/images/volume.svg') no-repeat;
231 background-size: contain;
238 &.vjs-vol-0 .vjs-icon-placeholder {
239 background: url('../assets/player/images/volume-mute.svg') no-repeat;
240 background-size: contain;
244 .vjs-volume-menu-button,
253 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
254 background-size: 22px 14px;
264 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
265 background-size: 22px 14px;
272 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
273 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
274 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
275 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
277 transition-property: none;
280 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
285 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
286 transition-property: none;
296 .vjs-volume-control {
297 display: inline-block;
306 .vjs-fullscreen-control {
310 .vjs-icon-placeholder {
311 display: inline-block;
314 vertical-align: middle;
315 background: url('../assets/player/images/fullscreen.svg') no-repeat;
316 background-size: contain;
324 .vjs-menu-button-popup {
326 font-weight: $font-semibold;
329 // Thanks: https://github.com/kmoskwiak/videojs-resolution-switcher/pull/92/files
330 .vjs-resolution-button-label {
331 line-height: $control-bar-height;
342 .vjs-resolution-button {
343 outline: 0 !important;
351 left: 50%; /* Center the menu, in it's parent */
356 text-transform: none;
363 @media screen and (max-width: 550px) {
364 .vjs-big-play-button {
369 padding: 0 !important;
371 .vjs-peertube-displayed {
372 display: none !important;
377 @media screen and (max-width: 300px) {
382 .vjs-dock-description {
386 .vjs-big-play-button {
390 .vjs-volume-control {
391 display: none !important;
395 width: 26px !important;
396 margin-right: 83px !important;
401 // Thanks: https://projects.lukehaas.me/css-loaders/
402 .vjs-loading-spinner {
405 text-indent: -9999em;
406 border: 0.7em solid rgba(255, 255, 255, 0.2);
407 border-left-color: #ffffff;
408 transform: translateZ(0);
409 animation: 0.3s ease-out 1.1s forwards vjs-spinner-show, spinner 1.4s infinite linear !important;
414 animation: none !important;
421 animation: none !important;
426 transform: rotate(0deg);
429 transform: rotate(360deg);
433 @keyframes vjs-spinner-show {
453 // Error display disabled
454 .vjs-error:not(.vjs-error-display-enabled) {
459 .vjs-loading-spinner {
464 // Error display enabled
465 .vjs-error.vjs-error-display-enabled {