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;
36 margin-left: -($big-play-width / 2);
37 margin-top: -($big-play-height / 2);
38 background-color: transparent !important;
43 .vjs-menu-button .vjs-menu-content {
44 background-color: rgba($primary-background-color, 0.5);
47 $slider-bg-color: lighten($primary-background-color, 33%);
50 background-color: rgba(255, 255, 255, .3);
55 /* The slider bar color is used for the progress bar and the volume bar
56 (the first two can be removed after a fix that's coming) */
60 background: $primary-foreground-color;
64 background: rgba($slider-bg-color, 0.5);
67 .vjs-load-progress div {
68 background: rgba($slider-bg-color, 0.75);
72 outline: none; /* Remove Blue Outline on Click*/
77 height: $control-bar-height;
79 .vjs-progress-control {
85 .vjs-progress-holder {
92 font-size: $font-size;
99 font-size: $font-size;
100 display: inline-block;
103 .vjs-current-time-display {
104 line-height: $control-bar-height;
114 font-size: $font-size;
115 display: inline-block;
118 .vjs-duration-display {
119 line-height: $control-bar-height;
123 &.vjs-remaining-time {
130 line-height: $control-bar-height;
134 .vjs-webtorrent-displayed {
138 .vjs-webtorrent-hidden {
142 .download-speed-number, .upload-speed-number, .peers-number {
143 font-weight: $font-semibold;
146 .download-speed-text, .upload-speed-text, .peers-text {
151 display: inline-block;
154 background-size: contain;
155 vertical-align: middle;
156 background-repeat: no-repeat;
162 background-image: url('../assets/player/images/arrow-down.svg');
166 background-image: url('../assets/player/images/arrow-up.svg');
172 .vjs-icon-placeholder {
173 display: inline-block;
176 vertical-align: middle;
177 background: url('../assets/player/images/volume.svg') no-repeat;
178 background-size: contain;
185 &.vjs-vol-0 .vjs-icon-placeholder {
186 background: url('../assets/player/images/volume-mute.svg') no-repeat;
187 background-size: contain;
191 .vjs-volume-menu-button,
200 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
201 background-size: 22px 14px;
211 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
212 background-size: 22px 14px;
219 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
220 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
221 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
222 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
224 transition-property: none;
227 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
232 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
233 transition-property: none;
243 .vjs-volume-control {
244 display: inline-block;
253 .vjs-fullscreen-control {
256 .vjs-icon-placeholder {
257 display: inline-block;
260 vertical-align: middle;
261 background: url('../assets/player/images/fullscreen.svg') no-repeat;
262 background-size: contain;
270 .vjs-menu-button-popup {
272 font-weight: $font-semibold;
275 // Thanks: https://github.com/kmoskwiak/videojs-resolution-switcher/pull/92/files
276 .vjs-resolution-button-label {
277 line-height: $control-bar-height;
287 .vjs-resolution-button {
288 outline: 0 !important;
296 left: 50%; /* Center the menu, in it's parent */
297 margin-left: -2em; /* half of width, to center */
301 text-transform: none;
308 @media screen and (max-width: 450px) {
309 .vjs-webtorrent-displayed {
310 display: none !important;
315 // Thanks: https://projects.lukehaas.me/css-loaders/
316 .vjs-loading-spinner {
319 text-indent: -9999em;
320 border: 0.7em solid rgba(255, 255, 255, 0.2);
321 border-left-color: #ffffff;
322 transform: translateZ(0);
323 animation: spinner 1.4s infinite linear;
326 animation: none !important;
333 animation: none !important;
338 transform: rotate(0deg);
341 transform: rotate(360deg);