1 // 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;
11 .vjs-button > .vjs-icon-placeholder::before {
12 line-height: $control-bar-height;
15 .vjs-mouse-display:before,
16 .vjs-play-progress:before,
17 .vjs-volume-level:before {
18 content: ''; /* Remove Circle From Progress Bar */
25 .vjs-big-play-button {
30 $big-play-height: 1.5em;
37 margin-left: -($big-play-width / 2);
38 margin-top: -($big-play-height / 2);
39 background-color: transparent !important;
46 .vjs-icon-placeholder::before {
47 transition: text-shadow 0.3s;
50 &:hover .vjs-icon-placeholder::before {
51 text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
55 &.vjs-has-started .vjs-big-play-button {
59 transition: visibility 0.3s, opacity 0.3s;
64 .vjs-menu-button .vjs-menu-content {
65 background-color: rgba($primary-background-color, 0.5);
68 $slider-bg-color: lighten($primary-background-color, 33%);
71 background-color: rgba(255, 255, 255, .3);
76 /* The slider bar color is used for the progress bar and the volume bar
77 (the first two can be removed after a fix that's coming) */
81 background: $primary-foreground-color;
85 background: rgba($slider-bg-color, 0.5);
88 .vjs-load-progress div {
89 background: rgba($slider-bg-color, 0.75);
93 outline: none; /* Remove Blue Outline on Click*/
98 height: $control-bar-height;
100 .vjs-progress-control {
106 .vjs-progress-holder {
114 font-size: $font-size;
121 font-size: $font-size;
122 display: inline-block;
125 .vjs-current-time-display {
126 line-height: calc(#{$control-bar-height} + 1px);
136 font-size: $font-size;
137 display: inline-block;
140 .vjs-duration-display {
141 line-height: calc(#{$control-bar-height} + 1px);
145 &.vjs-remaining-time {
152 line-height: $control-bar-height;
156 .vjs-webtorrent-displayed {
160 .vjs-webtorrent-hidden {
164 .download-speed-number, .upload-speed-number, .peers-number {
165 font-weight: $font-semibold;
168 .download-speed-text, .upload-speed-text, .peers-text {
173 display: inline-block;
176 background-size: contain;
177 vertical-align: middle;
178 background-repeat: no-repeat;
184 background-image: url('../assets/player/images/arrow-down.svg');
188 background-image: url('../assets/player/images/arrow-up.svg');
196 .vjs-icon-placeholder {
197 display: inline-block;
200 vertical-align: middle;
201 background: url('../assets/player/images/volume.svg') no-repeat;
202 background-size: contain;
209 &.vjs-vol-0 .vjs-icon-placeholder {
210 background: url('../assets/player/images/volume-mute.svg') no-repeat;
211 background-size: contain;
215 .vjs-volume-menu-button,
224 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
225 background-size: 22px 14px;
235 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
236 background-size: 22px 14px;
243 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
244 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
245 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
246 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
248 transition-property: none;
251 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
256 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
257 transition-property: none;
267 .vjs-volume-control {
268 display: inline-block;
277 .vjs-fullscreen-control {
281 .vjs-icon-placeholder {
282 display: inline-block;
285 vertical-align: middle;
286 background: url('../assets/player/images/fullscreen.svg') no-repeat;
287 background-size: contain;
295 .vjs-menu-button-popup {
297 font-weight: $font-semibold;
300 // Thanks: https://github.com/kmoskwiak/videojs-resolution-switcher/pull/92/files
301 .vjs-resolution-button-label {
302 line-height: $control-bar-height;
313 .vjs-resolution-button {
314 outline: 0 !important;
322 left: 50%; /* Center the menu, in it's parent */
327 text-transform: none;
334 @media screen and (max-width: 550px) {
335 .vjs-big-play-button {
340 padding: 0 !important;
342 .vjs-webtorrent-displayed {
343 display: none !important;
348 @media screen and (max-width: 300px) {
353 .vjs-big-play-button {
357 .vjs-volume-control {
358 display: none !important;
362 width: 26px !important;
363 margin-right: 83px !important;
368 // Thanks: https://projects.lukehaas.me/css-loaders/
369 .vjs-loading-spinner {
372 text-indent: -9999em;
373 border: 0.7em solid rgba(255, 255, 255, 0.2);
374 border-left-color: #ffffff;
375 transform: translateZ(0);
376 animation: 0.3s ease-out 1.1s forwards vjs-spinner-show, spinner 1.4s infinite linear !important;
381 animation: none !important;
388 animation: none !important;
393 transform: rotate(0deg);
396 transform: rotate(360deg);
400 @keyframes vjs-spinner-show {