]>
Commit | Line | Data |
---|---|---|
22b59e80 | 1 | @charset "utf-8";// Thanks: https://github.com/zanechua/videojs-sublime-inspired-skin |
be6a4802 C |
2 | $primary-foreground-color: #fff; |
3 | $primary-background-color: #000; | |
4 | $font-size: 13px; | |
5 | $control-bar-height: 34px; | |
aa8b6df4 | 6 | |
be6a4802 C |
7 | .video-js.vjs-peertube-skin { |
8 | font-size: $font-size; | |
9 | color: $primary-foreground-color; | |
aa8b6df4 | 10 | |
22b59e80 C |
11 | .vjs-dock-text { |
12 | padding-right: 10px; | |
13 | } | |
14 | ||
15 | .vjs-dock-description { | |
16 | font-size: 11px; | |
17 | ||
18 | &:before, &:after { | |
19 | display: inline-block; | |
20 | content: '\1F308'; | |
21 | } | |
22 | ||
23 | &:before { | |
24 | margin-right: 4px; | |
25 | } | |
26 | ||
27 | &:after { | |
28 | margin-left: 4px; | |
29 | transform: scale(-1, 1); | |
30 | } | |
31 | } | |
32 | ||
be6a4802 C |
33 | .vjs-button > .vjs-icon-placeholder::before { |
34 | line-height: $control-bar-height; | |
aa8b6df4 | 35 | } |
e14852b4 | 36 | |
be6a4802 C |
37 | .vjs-mouse-display:before, |
38 | .vjs-play-progress:before, | |
39 | .vjs-volume-level:before { | |
40 | content: ''; /* Remove Circle From Progress Bar */ | |
41 | } | |
e14852b4 | 42 | |
be6a4802 C |
43 | .vjs-audio-button { |
44 | display: none; | |
45 | } | |
e14852b4 | 46 | |
be6a4802 | 47 | .vjs-big-play-button { |
9e6b41cc | 48 | outline: 0; |
07fa4c97 | 49 | font-size: 6em; |
e14852b4 | 50 | |
8cac1b64 C |
51 | $big-play-width: 1.5em; |
52 | $big-play-height: 1em; | |
e14852b4 | 53 | |
be6a4802 C |
54 | border: 0; |
55 | border-radius: 0.3em; | |
e14852b4 | 56 | |
e14852b4 C |
57 | left: 50%; |
58 | top: 50%; | |
8cac1b64 C |
59 | width: $big-play-width; |
60 | height: $big-play-height; | |
61 | line-height: $big-play-height; | |
e14852b4 C |
62 | margin-left: -($big-play-width / 2); |
63 | margin-top: -($big-play-height / 2); | |
8cac1b64 | 64 | transition: opacity 0.5s; |
adcaf1a8 C |
65 | |
66 | &::-moz-focus-inner { | |
67 | border: 0; | |
68 | padding: 0 | |
69 | } | |
80d1057b C |
70 | |
71 | .vjs-icon-placeholder::before { | |
72 | transition: text-shadow 0.3s; | |
73 | } | |
74 | ||
8cac1b64 C |
75 | &:hover { |
76 | opacity: 0.9; | |
77 | ||
78 | .vjs-icon-placeholder::before { | |
79 | text-shadow: 0 0 1px rgba(255, 255, 255, 0.8); | |
80 | } | |
80d1057b | 81 | } |
be6a4802 | 82 | } |
e14852b4 | 83 | |
8fa5653a C |
84 | &.vjs-has-started .vjs-big-play-button { |
85 | display: block; | |
86 | visibility: hidden; | |
87 | opacity: 0; | |
9581cabc | 88 | transition: visibility 0.3s, opacity 0.3s; |
8fa5653a C |
89 | } |
90 | ||
be6a4802 C |
91 | .vjs-control-bar, |
92 | .vjs-big-play-button, | |
93 | .vjs-menu-button .vjs-menu-content { | |
94 | background-color: rgba($primary-background-color, 0.5); | |
95 | } | |
e14852b4 | 96 | |
be6a4802 | 97 | $slider-bg-color: lighten($primary-background-color, 33%); |
e14852b4 | 98 | |
be6a4802 C |
99 | .vjs-slider { |
100 | background-color: rgba(255, 255, 255, .3); | |
e14852b4 | 101 | border-radius: 2px; |
be6a4802 C |
102 | height: 5px; |
103 | } | |
e14852b4 | 104 | |
be6a4802 C |
105 | /* The slider bar color is used for the progress bar and the volume bar |
106 | (the first two can be removed after a fix that's coming) */ | |
107 | .vjs-volume-level, | |
108 | .vjs-play-progress, | |
109 | .vjs-slider-bar { | |
110 | background: $primary-foreground-color; | |
111 | } | |
e14852b4 | 112 | |
be6a4802 C |
113 | .vjs-load-progress { |
114 | background: rgba($slider-bg-color, 0.5); | |
115 | } | |
e14852b4 | 116 | |
be6a4802 C |
117 | .vjs-load-progress div { |
118 | background: rgba($slider-bg-color, 0.75); | |
119 | } | |
e14852b4 | 120 | |
be6a4802 C |
121 | .vjs-poster { |
122 | outline: none; /* Remove Blue Outline on Click*/ | |
123 | outline: 0; | |
124 | } | |
e14852b4 | 125 | |
be6a4802 C |
126 | .vjs-control-bar { |
127 | height: $control-bar-height; | |
e14852b4 | 128 | |
be6a4802 C |
129 | .vjs-progress-control { |
130 | bottom: 34px; | |
131 | width: 100%; | |
132 | position: absolute; | |
133 | height: 5px; | |
e14852b4 | 134 | |
be6a4802 C |
135 | .vjs-progress-holder { |
136 | margin: 0; | |
137 | border-radius: 0; | |
138 | } | |
139 | } | |
e14852b4 | 140 | |
be6a4802 | 141 | .vjs-play-control { |
d7701449 | 142 | outline: 0; |
be6a4802 C |
143 | font-size: $font-size; |
144 | padding: 0 17px; | |
145 | margin-right: 5px; | |
146 | } | |
e14852b4 | 147 | |
be6a4802 C |
148 | .vjs-time-control { |
149 | &.vjs-current-time { | |
150 | font-size: $font-size; | |
151 | display: inline-block; | |
152 | padding: 0; | |
153 | ||
154 | .vjs-current-time-display { | |
86f278cb | 155 | line-height: calc(#{$control-bar-height} + 1px); |
be6a4802 C |
156 | |
157 | &::after { | |
158 | content: "/"; | |
159 | margin: 0 1px 0 2px; | |
160 | } | |
161 | } | |
162 | } | |
163 | ||
164 | &.vjs-duration { | |
165 | font-size: $font-size; | |
166 | display: inline-block; | |
167 | padding: 0; | |
168 | ||
169 | .vjs-duration-display { | |
86f278cb | 170 | line-height: calc(#{$control-bar-height} + 1px); |
be6a4802 C |
171 | } |
172 | } | |
173 | ||
174 | &.vjs-remaining-time { | |
175 | display: none; | |
176 | } | |
177 | } | |
e14852b4 | 178 | |
bf5685f0 | 179 | .vjs-peertube { |
be6a4802 C |
180 | width: 100%; |
181 | line-height: $control-bar-height; | |
182 | text-align: right; | |
be6a4802 | 183 | |
bf5685f0 | 184 | .vjs-peertube-displayed { |
a86309b4 C |
185 | display: block; |
186 | } | |
187 | ||
bf5685f0 | 188 | .vjs-peertube-hidden { |
a86309b4 C |
189 | display: none; |
190 | } | |
191 | ||
be6a4802 C |
192 | .download-speed-number, .upload-speed-number, .peers-number { |
193 | font-weight: $font-semibold; | |
194 | } | |
195 | ||
196 | .download-speed-text, .upload-speed-text, .peers-text { | |
197 | margin-right: 15px; | |
198 | } | |
199 | ||
200 | .icon { | |
201 | display: inline-block; | |
202 | width: 15px; | |
203 | height: 15px; | |
204 | background-size: contain; | |
205 | vertical-align: middle; | |
206 | background-repeat: no-repeat; | |
207 | margin-right: 6px; | |
208 | position: relative; | |
209 | top: -1px; | |
210 | ||
211 | &.icon-download { | |
212 | background-image: url('../assets/player/images/arrow-down.svg'); | |
213 | } | |
214 | ||
215 | &.icon-upload { | |
216 | background-image: url('../assets/player/images/arrow-up.svg'); | |
217 | } | |
218 | } | |
219 | } | |
e14852b4 | 220 | |
57886d66 | 221 | .vjs-playback-rate { |
222 | font-size: 10px; | |
a73c582e C |
223 | margin-right: 48px; |
224 | ||
225 | .vjs-playback-rate-value { | |
226 | font-size: 13px; | |
227 | line-height: $control-bar-height; | |
228 | } | |
57886d66 | 229 | } |
230 | ||
be6a4802 | 231 | .vjs-mute-control { |
d7701449 C |
232 | outline: 0; |
233 | ||
be6a4802 C |
234 | .vjs-icon-placeholder { |
235 | display: inline-block; | |
236 | width: 22px; | |
237 | height: 22px; | |
238 | vertical-align: middle; | |
239 | background: url('../assets/player/images/volume.svg') no-repeat; | |
240 | background-size: contain; | |
241 | ||
242 | &::before { | |
243 | content: ''; | |
244 | } | |
245 | } | |
246 | ||
247 | &.vjs-vol-0 .vjs-icon-placeholder { | |
248 | background: url('../assets/player/images/volume-mute.svg') no-repeat; | |
249 | background-size: contain; | |
250 | } | |
251 | } | |
e14852b4 | 252 | |
be6a4802 C |
253 | .vjs-volume-menu-button, |
254 | .vjs-volume-panel { | |
255 | width: 6em; | |
256 | position: absolute; | |
257 | right: 0; | |
258 | margin-right: 65px; | |
259 | } | |
e14852b4 | 260 | |
be6a4802 C |
261 | .vjs-volume-bar { |
262 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat; | |
263 | background-size: 22px 14px; | |
264 | height: 100%; | |
265 | width: 100%; | |
266 | max-width: 22px; | |
267 | max-height: 14px; | |
268 | margin: 7px 4px; | |
269 | border-radius: 0; | |
270 | top: 3px; | |
271 | ||
272 | .vjs-volume-level { | |
273 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat; | |
274 | background-size: 22px 14px; | |
275 | max-width: 22px; | |
276 | max-height: 14px; | |
277 | height: 100%; | |
278 | } | |
279 | } | |
e14852b4 | 280 | |
be6a4802 C |
281 | .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active, |
282 | .vjs-volume-panel.vjs-volume-panel-horizontal:active, | |
283 | .vjs-volume-panel.vjs-volume-panel-horizontal:focus, | |
284 | .vjs-volume-panel.vjs-volume-panel-horizontal:hover { | |
285 | width: 6em; | |
286 | transition-property: none; | |
287 | } | |
e14852b4 | 288 | |
be6a4802 C |
289 | .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal { |
290 | width: 3em; | |
291 | height: auto; | |
292 | } | |
e14852b4 | 293 | |
be6a4802 C |
294 | .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control { |
295 | transition-property: none; | |
296 | } | |
e14852b4 | 297 | |
be6a4802 C |
298 | .vjs-volume-panel { |
299 | .vjs-mute-control { | |
300 | width: 2em; | |
301 | z-index: 1; | |
302 | padding: 0; | |
303 | } | |
304 | ||
305 | .vjs-volume-control { | |
306 | display: inline-block; | |
307 | position: relative; | |
308 | left: 5px; | |
309 | opacity: 1; | |
310 | width: 3em; | |
311 | height: auto; | |
312 | } | |
313 | } | |
e14852b4 | 314 | |
be6a4802 C |
315 | .vjs-fullscreen-control { |
316 | width: 37px; | |
d7701449 | 317 | outline: 0; |
be6a4802 C |
318 | |
319 | .vjs-icon-placeholder { | |
320 | display: inline-block; | |
321 | width: 22px; | |
322 | height: 22px; | |
323 | vertical-align: middle; | |
324 | background: url('../assets/player/images/fullscreen.svg') no-repeat; | |
325 | background-size: contain; | |
326 | ||
327 | &::before { | |
328 | content: ''; | |
329 | } | |
330 | } | |
331 | } | |
e14852b4 | 332 | |
be6a4802 | 333 | .vjs-menu-button-popup { |
be6a4802 | 334 | font-weight: $font-semibold; |
86f278cb | 335 | width: 50px; |
be6a4802 C |
336 | |
337 | // Thanks: https://github.com/kmoskwiak/videojs-resolution-switcher/pull/92/files | |
338 | .vjs-resolution-button-label { | |
339 | line-height: $control-bar-height; | |
340 | position: absolute; | |
341 | top: 0; | |
86f278cb | 342 | left: 4px; |
be6a4802 C |
343 | width: 100%; |
344 | height: 100%; | |
345 | text-align: center; | |
346 | box-sizing: inherit; | |
86f278cb | 347 | text-align: center; |
be6a4802 C |
348 | } |
349 | ||
350 | .vjs-resolution-button { | |
351 | outline: 0 !important; | |
352 | } | |
353 | ||
354 | .vjs-menu { | |
355 | top: 20px; | |
356 | ||
357 | .vjs-menu-content { | |
86f278cb | 358 | width: 50px; |
be6a4802 | 359 | left: 50%; /* Center the menu, in it's parent */ |
86f278cb | 360 | margin-left: -21px; |
be6a4802 C |
361 | } |
362 | ||
363 | li { | |
364 | text-transform: none; | |
365 | font-size: 13px; | |
366 | } | |
367 | } | |
368 | } | |
369 | } | |
a86309b4 | 370 | |
86f278cb | 371 | @media screen and (max-width: 550px) { |
8fa5653a | 372 | .vjs-big-play-button { |
07fa4c97 | 373 | font-size: 5em; |
8fa5653a C |
374 | } |
375 | ||
a73c582e C |
376 | .vjs-playback-rate { |
377 | display: none; | |
378 | } | |
379 | ||
7ccfb37f | 380 | .vjs-peertube { |
86f278cb C |
381 | padding: 0 !important; |
382 | ||
7ccfb37f | 383 | .vjs-peertube-displayed { |
86f278cb C |
384 | display: none !important; |
385 | } | |
386 | } | |
387 | } | |
388 | ||
389 | @media screen and (max-width: 300px) { | |
8fa5653a | 390 | .vjs-dock-text { |
22b59e80 C |
391 | font-size: 13px; |
392 | } | |
393 | ||
394 | .vjs-dock-description { | |
395 | font-size: 9px; | |
8fa5653a C |
396 | } |
397 | ||
398 | .vjs-big-play-button { | |
07fa4c97 | 399 | font-size: 4em; |
8fa5653a C |
400 | } |
401 | ||
86f278cb | 402 | .vjs-volume-control { |
a86309b4 C |
403 | display: none !important; |
404 | } | |
86f278cb C |
405 | |
406 | .vjs-volume-panel { | |
407 | width: 26px !important; | |
408 | margin-right: 83px !important; | |
409 | } | |
a86309b4 | 410 | } |
e14852b4 | 411 | } |
b7a48512 C |
412 | |
413 | // Thanks: https://projects.lukehaas.me/css-loaders/ | |
414 | .vjs-loading-spinner { | |
fd45e8f4 | 415 | left: 50%; |
b7a48512 | 416 | font-size: 10px; |
fd45e8f4 C |
417 | text-indent: -9999em; |
418 | border: 0.7em solid rgba(255, 255, 255, 0.2); | |
419 | border-left-color: #ffffff; | |
b7a48512 | 420 | transform: translateZ(0); |
9581cabc | 421 | animation: 0.3s ease-out 1.1s forwards vjs-spinner-show, spinner 1.4s infinite linear !important; |
b2731bff | 422 | overflow: hidden; |
dfbd250d | 423 | visibility: hidden; |
b7a48512 C |
424 | |
425 | &:before { | |
b7a48512 | 426 | animation: none !important; |
b7a48512 C |
427 | } |
428 | ||
429 | &:after { | |
b7a48512 | 430 | border-radius: 50%; |
fd45e8f4 C |
431 | width: 6em; |
432 | height: 6em; | |
b7a48512 C |
433 | animation: none !important; |
434 | } | |
435 | ||
fd45e8f4 | 436 | @keyframes spinner { |
b7a48512 | 437 | 0% { |
b7a48512 C |
438 | transform: rotate(0deg); |
439 | } | |
440 | 100% { | |
b7a48512 C |
441 | transform: rotate(360deg); |
442 | } | |
443 | } | |
dfbd250d C |
444 | |
445 | @keyframes vjs-spinner-show { | |
446 | 0% { | |
447 | display: none; | |
448 | opacity: 0; | |
449 | } | |
450 | ||
451 | 1% { | |
452 | display: block; | |
453 | visibility: visible; | |
454 | opacity: 0; | |
455 | } | |
456 | ||
457 | 100% { | |
458 | display: block; | |
459 | visibility: visible; | |
460 | opacity: 1; | |
461 | } | |
462 | } | |
b7a48512 | 463 | } |
a86309b4 | 464 | |
bf5685f0 C |
465 | // Error display disabled |
466 | .vjs-error:not(.vjs-error-display-enabled) { | |
467 | .vjs-error-display { | |
468 | display: none; | |
469 | } | |
470 | ||
471 | .vjs-loading-spinner { | |
472 | display: block; | |
473 | } | |
474 | } | |
475 | ||
476 | // Error display enabled | |
477 | .vjs-error.vjs-error-display-enabled { | |
478 | .vjs-error-display { | |
479 | display: block; | |
480 | } | |
481 | } |