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