]>
Commit | Line | Data |
---|---|---|
3ec8dc09 C |
1 | @import '_variables'; |
2 | @import '_mixins'; | |
2a19a1e4 | 3 | @import './_player-variables'; |
3ec8dc09 | 4 | |
122dbb57 C |
5 | body { |
6 | --embedForegroundColor: #{$primary-foreground-color}; | |
7 | ||
8 | --embedBigPlayBackgroundColor: #{$primary-background-color}; | |
9 | } | |
10 | ||
864e782b C |
11 | @mixin big-play-button-triangle-size($triangle-size) { |
12 | width: $triangle-size; | |
13 | height: $triangle-size; | |
14 | top: calc(50% - #{$triangle-size / 2}); | |
15 | left: calc(53% - #{($triangle-size / 2)}); | |
16 | } | |
17 | ||
be6a4802 C |
18 | .video-js.vjs-peertube-skin { |
19 | font-size: $font-size; | |
e66883b3 | 20 | color: pvar(--embedForegroundColor); |
aa8b6df4 | 21 | |
22b59e80 | 22 | .vjs-dock-text { |
a75292db | 23 | padding: $dock-padding; |
abb3097e C |
24 | background: linear-gradient(to bottom, rgba(0, 0, 0, .6) 0, rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0) 100%); |
25 | } | |
26 | ||
27 | .vjs-dock-title, | |
28 | .vjs-dock-description { | |
29 | text-shadow: 0 0 2px rgba(0, 0, 0, .5); | |
22b59e80 C |
30 | } |
31 | ||
32 | .vjs-dock-description { | |
33 | font-size: 11px; | |
34 | ||
31b6ddf8 | 35 | .text::before { |
22b59e80 C |
36 | margin-right: 4px; |
37 | } | |
38 | ||
31b6ddf8 | 39 | .text::after { |
22b59e80 C |
40 | margin-left: 4px; |
41 | transform: scale(-1, 1); | |
42 | } | |
43 | } | |
44 | ||
be6a4802 C |
45 | .vjs-button > .vjs-icon-placeholder::before { |
46 | line-height: $control-bar-height; | |
aa8b6df4 | 47 | } |
e14852b4 | 48 | |
c6352f2c | 49 | .vjs-volume-level::before { |
be6a4802 C |
50 | content: ''; /* Remove Circle From Progress Bar */ |
51 | } | |
e14852b4 | 52 | |
be6a4802 C |
53 | .vjs-audio-button { |
54 | display: none; | |
55 | } | |
e14852b4 | 56 | |
be6a4802 | 57 | .vjs-big-play-button { |
9e6b41cc | 58 | outline: 0; |
07fa4c97 | 59 | font-size: 6em; |
e14852b4 | 60 | |
33d78552 C |
61 | $big-play-width: 1.2em; |
62 | $big-play-height: 1.2em; | |
e14852b4 | 63 | |
abb3097e | 64 | border: 2px solid #fff; |
33d78552 | 65 | border-radius: 100%; |
e14852b4 | 66 | |
e14852b4 C |
67 | left: 50%; |
68 | top: 50%; | |
8cac1b64 C |
69 | width: $big-play-width; |
70 | height: $big-play-height; | |
71 | line-height: $big-play-height; | |
e14852b4 C |
72 | margin-left: -($big-play-width / 2); |
73 | margin-top: -($big-play-height / 2); | |
864e782b | 74 | transition: 0.4s opacity; |
adcaf1a8 C |
75 | |
76 | &::-moz-focus-inner { | |
77 | border: 0; | |
78 | padding: 0 | |
79 | } | |
80d1057b C |
80 | |
81 | .vjs-icon-placeholder::before { | |
864e782b C |
82 | @include big-play-button-triangle-size(45px); |
83 | ||
84 | content: ''; | |
2a19a1e4 | 85 | background-image: url('#{$assets-path}/player/images/big-play-button.svg'); |
80d1057b C |
86 | } |
87 | ||
d8d8de7f | 88 | &.focus-visible, &:hover { |
1ebddadd | 89 | background-color: var(--mainColor, dimgray); |
80d1057b | 90 | } |
d8d8de7f | 91 | |
be6a4802 | 92 | } |
e14852b4 | 93 | |
864e782b C |
94 | // Small effect when we click on the play button |
95 | &.vjs-has-big-play-button-clicked { | |
33d78552 | 96 | |
864e782b C |
97 | .vjs-big-play-button, .vjs-poster { |
98 | display: block; | |
99 | visibility: hidden; | |
33d78552 | 100 | |
864e782b | 101 | &.vjs-big-play-button, &.vjs-big-play-button::before { |
33d78552 | 102 | opacity: 0; |
864e782b | 103 | transition: visibility 0.2s, opacity 0.2s; |
33d78552 | 104 | } |
864e782b C |
105 | |
106 | &.vjs-poster, &.vjs-poster::before { | |
107 | opacity: 0; | |
108 | transition: visibility 0.3s, opacity 0.3s; | |
109 | transition-delay: 0.05s; | |
33d78552 C |
110 | } |
111 | } | |
8fa5653a C |
112 | } |
113 | ||
597ca6de | 114 | // Show poster and controls when playing audio-only content |
115 | &.vjs-playing-audio-only-content { | |
116 | .vjs-poster { | |
117 | display: block; | |
118 | visibility: visible; | |
119 | } | |
120 | ||
121 | .vjs-control-bar { | |
122 | opacity: $primary-foreground-opacity-hover; | |
123 | } | |
124 | } | |
125 | ||
e6f62797 C |
126 | // Hide the big play button on autoplay |
127 | &.vjs-has-autoplay { | |
128 | .vjs-big-play-button { | |
129 | display: none !important; | |
130 | } | |
131 | } | |
132 | ||
be6a4802 C |
133 | .vjs-control-bar, |
134 | .vjs-big-play-button, | |
c6352f2c | 135 | .vjs-settings-dialog { |
e66883b3 | 136 | background-color: pvar(--embedBigPlayBackgroundColor); |
be6a4802 | 137 | } |
e14852b4 | 138 | |
be6a4802 C |
139 | .vjs-poster { |
140 | outline: none; /* Remove Blue Outline on Click*/ | |
141 | outline: 0; | |
142 | } | |
e14852b4 | 143 | |
be6a4802 C |
144 | .vjs-control-bar { |
145 | height: $control-bar-height; | |
fc16f981 C |
146 | background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6)); |
147 | box-shadow: 0 -15px 40px 10px rgba(0, 0, 0, 0.2); | |
0aabe3f6 | 148 | text-shadow: 0 0 2px rgba(0, 0, 0, 0.5); |
e14852b4 | 149 | |
a950e4c8 C |
150 | > button:first-child { |
151 | margin-left: 1em; | |
152 | } | |
153 | ||
6b9af129 C |
154 | .vjs-progress-control, |
155 | .vjs-play-control, | |
156 | .vjs-playback-rate, | |
157 | .vjs-mute-control, | |
158 | .vjs-volume-control, | |
159 | .vjs-resolution-control, | |
c6352f2c C |
160 | .vjs-fullscreen-control, |
161 | .vjs-peertube-link, | |
054a103b | 162 | .vjs-theater-control, |
c6352f2c | 163 | .vjs-settings |
6b9af129 | 164 | { |
e66883b3 | 165 | color: pvar(--embedForegroundColor) !important; |
5efab546 | 166 | |
6b9af129 C |
167 | opacity: $primary-foreground-opacity; |
168 | transition: opacity .1s; | |
169 | ||
170 | &:hover { | |
171 | opacity: $primary-foreground-opacity-hover; | |
172 | } | |
173 | } | |
174 | ||
175 | .vjs-current-time, | |
176 | .vjs-duration, | |
177 | .vjs-peertube { | |
e66883b3 | 178 | color: pvar(--embedForegroundColor); |
c6352f2c | 179 | opacity: $primary-foreground-opacity; |
6b9af129 C |
180 | } |
181 | ||
2ce2fd7f C |
182 | .vjs-progress-control { |
183 | position: absolute; | |
184 | z-index: 100; // On top of the progress bar | |
185 | bottom: 29px; | |
186 | width: calc(100% - (2 * #{$progress-margin})); | |
187 | margin-left: $progress-margin; | |
188 | height: 14px; | |
77728efa | 189 | |
2ce2fd7f C |
190 | .vjs-slider { |
191 | margin: 0; | |
192 | border-radius: 0; | |
193 | background-color: rgba(255, 255, 255, .2); | |
194 | height: 3px; | |
195 | transition: none; | |
77728efa | 196 | |
2ce2fd7f | 197 | .vjs-play-progress { |
e66883b3 | 198 | background: pvar(--embedForegroundColor); |
77728efa | 199 | |
2ce2fd7f C |
200 | // Not display the circle if the progress is not hovered |
201 | &::before { | |
202 | opacity: 0; | |
203 | transition: opacity 0.1s ease; | |
204 | font-size: 14px; | |
77728efa | 205 | |
2ce2fd7f C |
206 | top: -0.3em; |
207 | } | |
77728efa | 208 | |
2ce2fd7f C |
209 | .vjs-time-tooltip { |
210 | display: none; | |
211 | } | |
212 | } | |
77728efa | 213 | |
2ce2fd7f C |
214 | .vjs-load-progress { |
215 | &, & div { | |
216 | background: rgba(255, 255, 255, .2); | |
217 | } | |
218 | } | |
77728efa C |
219 | } |
220 | } | |
221 | ||
2ce2fd7f | 222 | .vjs-progress-control:hover .vjs-slider, |
3d5de919 | 223 | .vjs-progress-control .vjs-slider.vjs-sliding { |
be6a4802 | 224 | height: 5px; |
e14852b4 | 225 | |
2ce2fd7f C |
226 | .vjs-play-progress::before { |
227 | opacity: 1; | |
be6a4802 C |
228 | } |
229 | } | |
e14852b4 | 230 | |
2ce2fd7f | 231 | |
be6a4802 | 232 | .vjs-play-control { |
3ec8dc09 C |
233 | @include disable-outline; |
234 | ||
c6352f2c | 235 | cursor: pointer; |
be6a4802 | 236 | font-size: $font-size; |
1dc240a9 | 237 | width: 3em; |
be6a4802 | 238 | } |
e14852b4 | 239 | |
be6a4802 | 240 | .vjs-time-control { |
8e53163f C |
241 | line-height: inherit; |
242 | ||
be6a4802 C |
243 | &.vjs-current-time { |
244 | font-size: $font-size; | |
245 | display: inline-block; | |
246 | padding: 0; | |
1dc240a9 | 247 | margin-left: .5em; |
be6a4802 C |
248 | |
249 | .vjs-current-time-display { | |
86f278cb | 250 | line-height: calc(#{$control-bar-height} + 1px); |
be6a4802 C |
251 | |
252 | &::after { | |
253 | content: "/"; | |
254 | margin: 0 1px 0 2px; | |
255 | } | |
256 | } | |
257 | } | |
258 | ||
259 | &.vjs-duration { | |
260 | font-size: $font-size; | |
261 | display: inline-block; | |
262 | padding: 0; | |
be6a4802 | 263 | .vjs-duration-display { |
86f278cb | 264 | line-height: calc(#{$control-bar-height} + 1px); |
be6a4802 C |
265 | } |
266 | } | |
267 | ||
268 | &.vjs-remaining-time { | |
269 | display: none; | |
270 | } | |
271 | } | |
e14852b4 | 272 | |
bf5685f0 | 273 | .vjs-peertube { |
be6a4802 C |
274 | width: 100%; |
275 | line-height: $control-bar-height; | |
276 | text-align: right; | |
1dc240a9 | 277 | margin-right: 6px; |
de64dfbb | 278 | overflow: hidden; |
be6a4802 | 279 | |
bf5685f0 | 280 | .vjs-peertube-displayed { |
a86309b4 C |
281 | display: block; |
282 | } | |
283 | ||
bf5685f0 | 284 | .vjs-peertube-hidden { |
a86309b4 C |
285 | display: none; |
286 | } | |
287 | ||
1ee156b2 | 288 | .download-speed-number, .upload-speed-number, .peers-number, .http-fallback { |
be6a4802 C |
289 | font-weight: $font-semibold; |
290 | } | |
291 | ||
1ee156b2 | 292 | .download-speed-text, .upload-speed-text, .peers-text, .http-fallback { |
be6a4802 C |
293 | margin-right: 15px; |
294 | } | |
295 | ||
1dc240a9 RK |
296 | .icon { |
297 | &.icon-download { | |
298 | background-image: url('#{$assets-path}/player/images/arrow-down.svg'); | |
299 | } | |
300 | ||
301 | &.icon-upload { | |
302 | background-image: url('#{$assets-path}/player/images/arrow-up.svg'); | |
303 | } | |
304 | } | |
305 | } | |
306 | ||
a950e4c8 C |
307 | .vjs-next-video, |
308 | .vjs-previous-video { | |
1dc240a9 RK |
309 | line-height: $control-bar-height; |
310 | text-align: right; | |
311 | ||
312 | .icon { | |
a950e4c8 C |
313 | &.icon-next, |
314 | &.icon-previous { | |
1dc240a9 | 315 | mask-image: url('#{$assets-path}/player/images/next.svg'); |
5abc96fc | 316 | -webkit-mask-image: url('#{$assets-path}/player/images/next.svg'); |
1dc240a9 RK |
317 | background-color: white; |
318 | mask-size: cover; | |
5abc96fc | 319 | -webkit-mask-size: cover; |
a950e4c8 C |
320 | width: 11px; |
321 | height: 11px; | |
322 | margin-top: -2px; | |
323 | display: inline-block; | |
324 | } | |
325 | ||
326 | &.icon-previous { | |
327 | transform: rotate(180deg); | |
1dc240a9 RK |
328 | } |
329 | } | |
330 | } | |
331 | ||
a950e4c8 | 332 | .vjs-peertube { |
be6a4802 C |
333 | .icon { |
334 | display: inline-block; | |
335 | width: 15px; | |
336 | height: 15px; | |
337 | background-size: contain; | |
338 | vertical-align: middle; | |
339 | background-repeat: no-repeat; | |
be6a4802 C |
340 | position: relative; |
341 | top: -1px; | |
be6a4802 C |
342 | } |
343 | } | |
e14852b4 | 344 | |
57886d66 | 345 | .vjs-playback-rate { |
346 | font-size: 10px; | |
3ec8dc09 | 347 | width: 37px !important; |
a73c582e C |
348 | |
349 | .vjs-playback-rate-value { | |
350 | font-size: 13px; | |
351 | line-height: $control-bar-height; | |
352 | } | |
3ec8dc09 C |
353 | |
354 | .vjs-menu .vjs-menu-content { | |
355 | width: 37px !important; | |
356 | } | |
57886d66 | 357 | } |
358 | ||
be6a4802 | 359 | .vjs-mute-control { |
3ec8dc09 C |
360 | @include disable-outline; |
361 | ||
362 | line-height: $control-bar-height; | |
363 | padding: 0; | |
364 | width: 30px; | |
d7701449 | 365 | |
be6a4802 C |
366 | .vjs-icon-placeholder { |
367 | display: inline-block; | |
368 | width: 22px; | |
369 | height: 22px; | |
370 | vertical-align: middle; | |
2a19a1e4 | 371 | background: url('#{$assets-path}/player/images/volume.svg') no-repeat; |
be6a4802 C |
372 | background-size: contain; |
373 | ||
374 | &::before { | |
375 | content: ''; | |
376 | } | |
377 | } | |
378 | ||
379 | &.vjs-vol-0 .vjs-icon-placeholder { | |
2a19a1e4 | 380 | background: url('#{$assets-path}/player/images/volume-mute.svg') no-repeat; |
be6a4802 C |
381 | background-size: contain; |
382 | } | |
383 | } | |
e14852b4 | 384 | |
3ec8dc09 C |
385 | .vjs-volume-control { |
386 | width: 30px; | |
c6352f2c | 387 | margin: 0 5px 0 0; |
be6a4802 | 388 | } |
e14852b4 | 389 | |
be6a4802 C |
390 | .vjs-volume-bar { |
391 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat; | |
392 | background-size: 22px 14px; | |
393 | height: 100%; | |
394 | width: 100%; | |
395 | max-width: 22px; | |
396 | max-height: 14px; | |
397 | margin: 7px 4px; | |
398 | border-radius: 0; | |
399 | top: 3px; | |
400 | ||
401 | .vjs-volume-level { | |
402 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat; | |
403 | background-size: 22px 14px; | |
404 | max-width: 22px; | |
405 | max-height: 14px; | |
406 | height: 100%; | |
407 | } | |
3d5de919 C |
408 | |
409 | &:focus { | |
410 | text-shadow: none; | |
411 | box-shadow: none; | |
412 | } | |
be6a4802 | 413 | } |
e14852b4 | 414 | |
be6a4802 C |
415 | .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active, |
416 | .vjs-volume-panel.vjs-volume-panel-horizontal:active, | |
417 | .vjs-volume-panel.vjs-volume-panel-horizontal:focus, | |
418 | .vjs-volume-panel.vjs-volume-panel-horizontal:hover { | |
419 | width: 6em; | |
420 | transition-property: none; | |
421 | } | |
e14852b4 | 422 | |
be6a4802 C |
423 | .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal { |
424 | width: 3em; | |
425 | height: auto; | |
426 | } | |
e14852b4 | 427 | |
be6a4802 C |
428 | .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control { |
429 | transition-property: none; | |
430 | } | |
e14852b4 | 431 | |
be6a4802 C |
432 | .vjs-volume-panel { |
433 | .vjs-mute-control { | |
434 | width: 2em; | |
435 | z-index: 1; | |
436 | padding: 0; | |
437 | } | |
438 | ||
439 | .vjs-volume-control { | |
440 | display: inline-block; | |
441 | position: relative; | |
442 | left: 5px; | |
443 | opacity: 1; | |
444 | width: 3em; | |
445 | height: auto; | |
446 | } | |
447 | } | |
e14852b4 | 448 | |
c6352f2c C |
449 | .vjs-peertube-link { |
450 | @include disable-outline; | |
451 | @include disable-default-a-behaviour; | |
452 | ||
453 | text-decoration: none; | |
454 | line-height: $control-bar-height; | |
455 | font-weight: $font-semibold; | |
456 | padding: 0 5px; | |
457 | } | |
458 | ||
054a103b C |
459 | .vjs-theater-control { |
460 | @include disable-outline; | |
461 | ||
462 | width: 37px; | |
463 | margin-right: 1px; | |
b335ccec | 464 | cursor: pointer; |
054a103b C |
465 | |
466 | .vjs-icon-placeholder { | |
4555697f | 467 | transition: transform 0.2s ease; |
054a103b C |
468 | display: inline-block; |
469 | width: 22px; | |
470 | height: 22px; | |
471 | vertical-align: middle; | |
472 | background: url('#{$assets-path}/player/images/theater.svg') no-repeat; | |
473 | background-size: contain; | |
474 | ||
475 | &::before { | |
476 | content: ''; | |
477 | } | |
478 | } | |
479 | } | |
480 | ||
be6a4802 | 481 | .vjs-fullscreen-control { |
3ec8dc09 C |
482 | @include disable-outline; |
483 | ||
be6a4802 | 484 | width: 37px; |
2ce2fd7f | 485 | margin-right: 11px; |
be6a4802 C |
486 | |
487 | .vjs-icon-placeholder { | |
488 | display: inline-block; | |
489 | width: 22px; | |
490 | height: 22px; | |
491 | vertical-align: middle; | |
2a19a1e4 | 492 | background: url('#{$assets-path}/player/images/fullscreen.svg') no-repeat; |
be6a4802 C |
493 | background-size: contain; |
494 | ||
495 | &::before { | |
496 | content: ''; | |
497 | } | |
498 | } | |
499 | } | |
e14852b4 | 500 | |
be6a4802 | 501 | .vjs-menu-button-popup { |
be6a4802 | 502 | font-weight: $font-semibold; |
86f278cb | 503 | width: 50px; |
be6a4802 | 504 | |
be6a4802 | 505 | .vjs-resolution-button { |
3ec8dc09 | 506 | @include disable-outline; |
be6a4802 C |
507 | } |
508 | ||
509 | .vjs-menu { | |
510 | top: 20px; | |
3ec8dc09 | 511 | left: 0; |
be6a4802 C |
512 | |
513 | .vjs-menu-content { | |
86f278cb | 514 | width: 50px; |
3ec8dc09 | 515 | bottom: 20px; |
be6a4802 C |
516 | } |
517 | ||
518 | li { | |
519 | text-transform: none; | |
520 | font-size: 13px; | |
521 | } | |
522 | } | |
523 | } | |
524 | } | |
a86309b4 | 525 | |
6cf57b44 | 526 | @media screen and (max-width: 750px) { |
054a103b C |
527 | .vjs-theater-control { |
528 | display: none; | |
529 | } | |
530 | ||
6cf57b44 C |
531 | .vjs-dock-text { |
532 | font-size: 16px; | |
533 | } | |
534 | ||
535 | .vjs-dock-description { | |
3c40590d | 536 | font-size: 9px; |
6cf57b44 C |
537 | } |
538 | ||
539 | .vjs-big-play-button { | |
540 | font-size: 5em; | |
e0812403 | 541 | border-width: 3px; |
6cf57b44 C |
542 | |
543 | .vjs-icon-placeholder::before { | |
544 | @include big-play-button-triangle-size(32px); | |
545 | } | |
546 | } | |
547 | } | |
548 | ||
e700d33b | 549 | @media screen and (max-width: 570px) { |
869968d7 C |
550 | .vjs-dock-text { |
551 | font-size: 14px; | |
552 | } | |
553 | ||
8fa5653a | 554 | .vjs-big-play-button { |
869968d7 | 555 | font-size: 4.5em; |
e0812403 | 556 | border-width: 2.5px; |
864e782b C |
557 | |
558 | .vjs-icon-placeholder::before { | |
559 | @include big-play-button-triangle-size(27px); | |
560 | } | |
8fa5653a C |
561 | } |
562 | ||
7ccfb37f | 563 | .vjs-peertube { |
86f278cb C |
564 | padding: 0 !important; |
565 | ||
7ccfb37f | 566 | .vjs-peertube-displayed { |
86f278cb C |
567 | display: none !important; |
568 | } | |
569 | } | |
570 | } | |
571 | ||
572 | @media screen and (max-width: 300px) { | |
8fa5653a | 573 | .vjs-dock-text { |
22b59e80 C |
574 | font-size: 13px; |
575 | } | |
576 | ||
8fa5653a | 577 | .vjs-big-play-button { |
586f7c1b | 578 | font-size: 3em; |
e0812403 | 579 | border-width: 2px; |
864e782b C |
580 | |
581 | .vjs-icon-placeholder::before { | |
582 | @include big-play-button-triangle-size(20px); | |
583 | } | |
8fa5653a C |
584 | } |
585 | ||
86f278cb | 586 | .vjs-volume-control { |
a86309b4 C |
587 | display: none !important; |
588 | } | |
86f278cb | 589 | |
ea20306f C |
590 | .vjs-peertube-link { |
591 | padding: 0 !important; | |
592 | } | |
593 | ||
594 | .vjs-settings { | |
595 | width: 33px; | |
86f278cb | 596 | } |
a86309b4 | 597 | } |
4555697f C |
598 | |
599 | // Theater mode is enabled | |
600 | &.vjs-theater-enabled { | |
601 | .vjs-theater-control { | |
602 | width: 30px; | |
603 | ||
604 | .vjs-icon-placeholder { | |
605 | transform: scale(0.8); | |
606 | } | |
607 | } | |
608 | } | |
609 | ||
610 | // On fullscreen, hide theater control | |
611 | &.vjs-fullscreen { | |
612 | .vjs-theater-control { | |
613 | display: none; | |
614 | } | |
615 | } | |
e14852b4 | 616 | } |
b7a48512 | 617 | |
c6352f2c C |
618 | // Play/pause animations |
619 | .vjs-has-started .vjs-play-control { | |
620 | &.vjs-playing { | |
621 | animation: remove-pause-button 0.25s ease; | |
622 | } | |
623 | ||
624 | &.vjs-paused { | |
625 | animation: add-play-button 0.25s ease; | |
626 | } | |
627 | ||
628 | @keyframes remove-pause-button { | |
629 | 0% { | |
630 | transform: rotate(90deg); | |
631 | } | |
632 | 100% { | |
633 | transform: rotate(0deg); | |
634 | } | |
635 | } | |
636 | ||
637 | @keyframes add-play-button { | |
638 | 0% { | |
639 | transform: rotate(-90deg); | |
640 | } | |
641 | 100% { | |
642 | transform: rotate(0deg); | |
643 | } | |
644 | } | |
645 | } | |
646 | ||
bf5685f0 C |
647 | // Error display disabled |
648 | .vjs-error:not(.vjs-error-display-enabled) { | |
649 | .vjs-error-display { | |
650 | display: none; | |
651 | } | |
652 | ||
653 | .vjs-loading-spinner { | |
654 | display: block; | |
655 | } | |
656 | } | |
657 | ||
658 | // Error display enabled | |
659 | .vjs-error.vjs-error-display-enabled { | |
660 | .vjs-error-display { | |
661 | display: block; | |
662 | } | |
e0812403 | 663 | } |
a950e4c8 C |
664 | |
665 | .vjs-no-next-in-playlist { | |
666 | .vjs-next-video { | |
667 | cursor: default; | |
668 | ||
669 | .icon { | |
670 | background-color: rgba(255, 255, 255, 0.5); | |
671 | } | |
672 | } | |
673 | } |