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-height: 1.5em;
31 line-height: $big-play-height;
32 height: $big-play-height;
33 width: $big-play-width;
40 margin-left: -($big-play-width / 2);
41 margin-top: -($big-play-height / 2);
44 &:hover .vjs-big-play-button {
45 background-color: transparent;
50 .vjs-menu-button .vjs-menu-content {
51 background-color: rgba($primary-background-color, 0.5);
54 $slider-bg-color: lighten($primary-background-color, 33%);
57 background-color: rgba(255, 255, 255, .3);
62 /* The slider bar color is used for the progress bar and the volume bar
63 (the first two can be removed after a fix that's coming) */
67 background: $primary-foreground-color;
71 background: rgba($slider-bg-color, 0.5);
74 .vjs-load-progress div {
75 background: rgba($slider-bg-color, 0.75);
79 outline: none; /* Remove Blue Outline on Click*/
84 height: $control-bar-height;
86 .vjs-progress-control {
92 .vjs-progress-holder {
99 font-size: $font-size;
106 font-size: $font-size;
107 display: inline-block;
110 .vjs-current-time-display {
111 line-height: $control-bar-height;
121 font-size: $font-size;
122 display: inline-block;
125 .vjs-duration-display {
126 line-height: $control-bar-height;
130 &.vjs-remaining-time {
137 line-height: $control-bar-height;
141 .download-speed-number, .upload-speed-number, .peers-number {
142 font-weight: $font-semibold;
145 .download-speed-text, .upload-speed-text, .peers-text {
150 display: inline-block;
153 background-size: contain;
154 vertical-align: middle;
155 background-repeat: no-repeat;
161 background-image: url('../assets/player/images/arrow-down.svg');
165 background-image: url('../assets/player/images/arrow-up.svg');
171 .vjs-icon-placeholder {
172 display: inline-block;
175 vertical-align: middle;
176 background: url('../assets/player/images/volume.svg') no-repeat;
177 background-size: contain;
184 &.vjs-vol-0 .vjs-icon-placeholder {
185 background: url('../assets/player/images/volume-mute.svg') no-repeat;
186 background-size: contain;
190 .vjs-volume-menu-button,
199 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
200 background-size: 22px 14px;
210 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
211 background-size: 22px 14px;
218 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
219 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
220 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
221 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
223 transition-property: none;
226 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
231 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
232 transition-property: none;
242 .vjs-volume-control {
243 display: inline-block;
252 .vjs-fullscreen-control {
255 .vjs-icon-placeholder {
256 display: inline-block;
259 vertical-align: middle;
260 background: url('../assets/player/images/fullscreen.svg') no-repeat;
261 background-size: contain;
269 .vjs-menu-button-popup {
271 font-weight: $font-semibold;
274 // Thanks: https://github.com/kmoskwiak/videojs-resolution-switcher/pull/92/files
275 .vjs-resolution-button-label {
276 line-height: $control-bar-height;
286 .vjs-resolution-button {
287 outline: 0 !important;
295 left: 50%; /* Center the menu, in it's parent */
296 margin-left: -2em; /* half of width, to center */
300 text-transform: none;
308 // Thanks: https://projects.lukehaas.me/css-loaders/
309 .vjs-loading-spinner {
310 margin: 0 !important;
311 //position: absolute;
312 // 15px is the nav bar height
313 top: calc(50% - 15px);
317 text-indent: -9999em;
318 border: 0.7em solid rgba(255, 255, 255, 0.2);
319 border-left-color: #ffffff;
320 transform: translateZ(0);
321 animation: spinner 1.4s infinite linear;
324 animation: none !important;
331 animation: none !important;
336 transform: rotate(0deg);
339 transform: rotate(360deg);