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 {
53 transition-delay: 0.5s;
54 transition: visibility 0.5s, opacity 0.5s;
57 &.vjs-waiting .vjs-loading-spinner {
65 .vjs-menu-button .vjs-menu-content {
66 background-color: rgba($primary-background-color, 0.5);
69 $slider-bg-color: lighten($primary-background-color, 33%);
72 background-color: rgba(255, 255, 255, .3);
77 /* The slider bar color is used for the progress bar and the volume bar
78 (the first two can be removed after a fix that's coming) */
82 background: $primary-foreground-color;
86 background: rgba($slider-bg-color, 0.5);
89 .vjs-load-progress div {
90 background: rgba($slider-bg-color, 0.75);
94 outline: none; /* Remove Blue Outline on Click*/
99 height: $control-bar-height;
101 .vjs-progress-control {
107 .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');
194 .vjs-icon-placeholder {
195 display: inline-block;
198 vertical-align: middle;
199 background: url('../assets/player/images/volume.svg') no-repeat;
200 background-size: contain;
207 &.vjs-vol-0 .vjs-icon-placeholder {
208 background: url('../assets/player/images/volume-mute.svg') no-repeat;
209 background-size: contain;
213 .vjs-volume-menu-button,
222 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
223 background-size: 22px 14px;
233 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
234 background-size: 22px 14px;
241 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
242 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
243 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
244 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
246 transition-property: none;
249 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
254 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
255 transition-property: none;
265 .vjs-volume-control {
266 display: inline-block;
275 .vjs-fullscreen-control {
278 .vjs-icon-placeholder {
279 display: inline-block;
282 vertical-align: middle;
283 background: url('../assets/player/images/fullscreen.svg') no-repeat;
284 background-size: contain;
292 .vjs-menu-button-popup {
294 font-weight: $font-semibold;
297 // Thanks: https://github.com/kmoskwiak/videojs-resolution-switcher/pull/92/files
298 .vjs-resolution-button-label {
299 line-height: $control-bar-height;
310 .vjs-resolution-button {
311 outline: 0 !important;
319 left: 50%; /* Center the menu, in it's parent */
324 text-transform: none;
331 @media screen and (max-width: 550px) {
332 .vjs-big-play-button {
337 padding: 0 !important;
339 .vjs-webtorrent-displayed {
340 display: none !important;
345 @media screen and (max-width: 300px) {
350 .vjs-big-play-button {
354 .vjs-volume-control {
355 display: none !important;
359 width: 26px !important;
360 margin-right: 83px !important;
365 // Thanks: https://projects.lukehaas.me/css-loaders/
366 .vjs-loading-spinner {
369 text-indent: -9999em;
370 border: 0.7em solid rgba(255, 255, 255, 0.2);
371 border-left-color: #ffffff;
372 transform: translateZ(0);
373 animation: spinner 1.4s infinite linear;
377 animation: none !important;
384 animation: none !important;
389 transform: rotate(0deg);
392 transform: rotate(360deg);