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 {
29 $big-play-width: 1.5em;
30 $big-play-height: 1em;
37 width: $big-play-width;
38 height: $big-play-height;
39 line-height: $big-play-height;
40 margin-left: -($big-play-width / 2);
41 margin-top: -($big-play-height / 2);
42 transition: opacity 0.5s;
49 .vjs-icon-placeholder::before {
50 transition: text-shadow 0.3s;
56 .vjs-icon-placeholder::before {
57 text-shadow: 0 0 1px rgba(255, 255, 255, 0.8);
62 &.vjs-has-started .vjs-big-play-button {
66 transition: visibility 0.3s, opacity 0.3s;
71 .vjs-menu-button .vjs-menu-content {
72 background-color: rgba($primary-background-color, 0.5);
75 $slider-bg-color: lighten($primary-background-color, 33%);
78 background-color: rgba(255, 255, 255, .3);
83 /* The slider bar color is used for the progress bar and the volume bar
84 (the first two can be removed after a fix that's coming) */
88 background: $primary-foreground-color;
92 background: rgba($slider-bg-color, 0.5);
95 .vjs-load-progress div {
96 background: rgba($slider-bg-color, 0.75);
100 outline: none; /* Remove Blue Outline on Click*/
105 height: $control-bar-height;
107 .vjs-progress-control {
113 .vjs-progress-holder {
121 font-size: $font-size;
128 font-size: $font-size;
129 display: inline-block;
132 .vjs-current-time-display {
133 line-height: calc(#{$control-bar-height} + 1px);
143 font-size: $font-size;
144 display: inline-block;
147 .vjs-duration-display {
148 line-height: calc(#{$control-bar-height} + 1px);
152 &.vjs-remaining-time {
159 line-height: $control-bar-height;
163 .vjs-webtorrent-displayed {
167 .vjs-webtorrent-hidden {
171 .download-speed-number, .upload-speed-number, .peers-number {
172 font-weight: $font-semibold;
175 .download-speed-text, .upload-speed-text, .peers-text {
180 display: inline-block;
183 background-size: contain;
184 vertical-align: middle;
185 background-repeat: no-repeat;
191 background-image: url('../assets/player/images/arrow-down.svg');
195 background-image: url('../assets/player/images/arrow-up.svg');
203 .vjs-icon-placeholder {
204 display: inline-block;
207 vertical-align: middle;
208 background: url('../assets/player/images/volume.svg') no-repeat;
209 background-size: contain;
216 &.vjs-vol-0 .vjs-icon-placeholder {
217 background: url('../assets/player/images/volume-mute.svg') no-repeat;
218 background-size: contain;
222 .vjs-volume-menu-button,
231 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
232 background-size: 22px 14px;
242 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
243 background-size: 22px 14px;
250 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
251 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
252 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
253 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
255 transition-property: none;
258 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
263 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
264 transition-property: none;
274 .vjs-volume-control {
275 display: inline-block;
284 .vjs-fullscreen-control {
288 .vjs-icon-placeholder {
289 display: inline-block;
292 vertical-align: middle;
293 background: url('../assets/player/images/fullscreen.svg') no-repeat;
294 background-size: contain;
302 .vjs-menu-button-popup {
304 font-weight: $font-semibold;
307 // Thanks: https://github.com/kmoskwiak/videojs-resolution-switcher/pull/92/files
308 .vjs-resolution-button-label {
309 line-height: $control-bar-height;
320 .vjs-resolution-button {
321 outline: 0 !important;
329 left: 50%; /* Center the menu, in it's parent */
334 text-transform: none;
341 @media screen and (max-width: 550px) {
342 .vjs-big-play-button {
347 padding: 0 !important;
349 .vjs-webtorrent-displayed {
350 display: none !important;
355 @media screen and (max-width: 300px) {
360 .vjs-big-play-button {
364 .vjs-volume-control {
365 display: none !important;
369 width: 26px !important;
370 margin-right: 83px !important;
375 // Thanks: https://projects.lukehaas.me/css-loaders/
376 .vjs-loading-spinner {
379 text-indent: -9999em;
380 border: 0.7em solid rgba(255, 255, 255, 0.2);
381 border-left-color: #ffffff;
382 transform: translateZ(0);
383 animation: 0.3s ease-out 1.1s forwards vjs-spinner-show, spinner 1.4s infinite linear !important;
388 animation: none !important;
395 animation: none !important;
400 transform: rotate(0deg);
403 transform: rotate(360deg);
407 @keyframes vjs-spinner-show {