blob: d72dc41df319adf217fb017d55d8fbc30b1e3b57 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
@use 'sass:math';
@use '_variables' as *;
@use '_mixins' as *;
@use './_player-variables' as *;
/* Special mobile style */
.video-js.vjs-peertube-skin.vjs-is-mobile {
.vjs-control-bar {
.vjs-progress-control .vjs-slider .vjs-play-progress {
// Always display the circle on mobile
&::before {
margin-top: -1px;
opacity: 1;
}
}
}
}
.vjs-mobile-buttons-overlay {
display: none;
position: absolute;
background-color: rgba(0, 0, 0, 0.4);
width: 100%;
height: 100%;
top: 0;
.vjs-user-active,
.vjs-paused {
display: block;
}
.main-button {
font-family: VideoJS;
font-weight: normal;
font-style: normal;
font-size: 5em;
width: fit-content;
margin: auto;
position: relative;
top: calc(50% - 10px);
transform: translateY(-50%);
}
}
.vjs-paused {
.main-button {
&:before {
content: '\f101';
}
}
}
.vjs-playing {
.main-button {
&:before {
content: '\f103';
}
}
}
.vjs-ended {
.main-button {
&:before {
content: '\f116';
}
}
}
.vjs-has-started {
&.vjs-user-active,
&.vjs-paused {
.vjs-mobile-buttons-overlay {
display: block;
}
}
&.vjs-seeking,
&.vjs-scrubbing,
&.vjs-waiting {
.vjs-mobile-buttons-overlay {
display: none;
}
}
}
|