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;
42 &.vjs-has-started .vjs-big-play-button {
46 transition: visibility 0.5s, opacity 0.5s;
49 .vjs-loading-spinner {
55 &.vjs-waiting .vjs-loading-spinner {
58 transition: visibility 0.5s, opacity 0.5s;
63 .vjs-menu-button .vjs-menu-content {
64 background-color: rgba($primary-background-color, 0.5);
67 $slider-bg-color: lighten($primary-background-color, 33%);
70 background-color: rgba(255, 255, 255, .3);
75 /* The slider bar color is used for the progress bar and the volume bar
76 (the first two can be removed after a fix that's coming) */
80 background: $primary-foreground-color;
84 background: rgba($slider-bg-color, 0.5);
87 .vjs-load-progress div {
88 background: rgba($slider-bg-color, 0.75);
92 outline: none; /* Remove Blue Outline on Click*/
97 height: $control-bar-height;
99 .vjs-progress-control {
105 .vjs-progress-holder {
112 font-size: $font-size;
119 font-size: $font-size;
120 display: inline-block;
123 .vjs-current-time-display {
124 line-height: calc(#{$control-bar-height} + 1px);
134 font-size: $font-size;
135 display: inline-block;
138 .vjs-duration-display {
139 line-height: calc(#{$control-bar-height} + 1px);
143 &.vjs-remaining-time {
150 line-height: $control-bar-height;
154 .vjs-webtorrent-displayed {
158 .vjs-webtorrent-hidden {
162 .download-speed-number, .upload-speed-number, .peers-number {
163 font-weight: $font-semibold;
166 .download-speed-text, .upload-speed-text, .peers-text {
171 display: inline-block;
174 background-size: contain;
175 vertical-align: middle;
176 background-repeat: no-repeat;
182 background-image: url('../assets/player/images/arrow-down.svg');
186 background-image: url('../assets/player/images/arrow-up.svg');
192 .vjs-icon-placeholder {
193 display: inline-block;
196 vertical-align: middle;
197 background: url('../assets/player/images/volume.svg') no-repeat;
198 background-size: contain;
205 &.vjs-vol-0 .vjs-icon-placeholder {
206 background: url('../assets/player/images/volume-mute.svg') no-repeat;
207 background-size: contain;
211 .vjs-volume-menu-button,
220 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
221 background-size: 22px 14px;
231 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
232 background-size: 22px 14px;
239 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
240 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
241 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
242 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
244 transition-property: none;
247 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
252 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
253 transition-property: none;
263 .vjs-volume-control {
264 display: inline-block;
273 .vjs-fullscreen-control {
276 .vjs-icon-placeholder {
277 display: inline-block;
280 vertical-align: middle;
281 background: url('../assets/player/images/fullscreen.svg') no-repeat;
282 background-size: contain;
290 .vjs-menu-button-popup {
292 font-weight: $font-semibold;
295 // Thanks: https://github.com/kmoskwiak/videojs-resolution-switcher/pull/92/files
296 .vjs-resolution-button-label {
297 line-height: $control-bar-height;
308 .vjs-resolution-button {
309 outline: 0 !important;
317 left: 50%; /* Center the menu, in it's parent */
322 text-transform: none;
329 @media screen and (max-width: 550px) {
330 .vjs-big-play-button {
335 padding: 0 !important;
337 .vjs-webtorrent-displayed {
338 display: none !important;
343 @media screen and (max-width: 300px) {
348 .vjs-big-play-button {
352 .vjs-volume-control {
353 display: none !important;
357 width: 26px !important;
358 margin-right: 83px !important;
363 // Thanks: https://projects.lukehaas.me/css-loaders/
364 .vjs-loading-spinner {
367 text-indent: -9999em;
368 border: 0.7em solid rgba(255, 255, 255, 0.2);
369 border-left-color: #ffffff;
370 transform: translateZ(0);
371 animation: spinner 1.4s infinite linear;
375 animation: none !important;
382 animation: none !important;
387 transform: rotate(0deg);
390 transform: rotate(360deg);