-
Notifications
You must be signed in to change notification settings - Fork 54
/
mep-overrides.less
84 lines (70 loc) · 2.22 KB
/
mep-overrides.less
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
// Overrides for mep.less
// --------------------------------------------------
.mejs-container {
// The width set by mejs is always 100% of container, set in pixels.
// Having a fixed pixel size prevents iOS from changing orientation without scaling.
width: 100% !important;
background-color: transparent;
}
.mejs-container .mejs-controls .mejs-time {
padding-right: 0;
padding-left: 0;
}
.mejs-overlay:hover .mejs-overlay-button {
// Bug Fix for touch devices to override standard hover event in mep.less L119
background-position: 0 0;
}
.no-touch & .mejs-overlay:hover .mejs-overlay-button {
background-position: 0 -100px;
}
.mejs-overlay-button {
background-image: url(assets/bigplay.svg);
}
.no-svg .mejs-overlay-button {
background-image: url(assets/bigplay.png);
}
.mejs-overlay-loading,
.mejs-container .mejs-controls,
.mejs-controls .mejs-volume-button .mejs-volume-slider,
.mejs-controls .mejs-captions-button .mejs-captions-selector,
.mejs-captions-text,
.mejs-controls .mejs-sourcechooser-button .mejs-sourcechooser-selector,
.mejs-postroll-layer,
.mejs-postroll-close,
.mejs-controls .mejs-speed-button .mejs-speed-selector {
background-image: url(assets/background.png);
}
.mejs-overlay-loading span {
background-image: url(assets/loading.gif);
}
.mejs-controls .mejs-button {
&.mejs-jump-forward-button {
background-image: url(assets/jumpforward.png);
}
&.mejs-skip-back-button {
background-image: url(assets/skipback.png);
}
button {
background-image: url(assets/controls.svg);
}
}
.no-svg .mejs-controls .mejs-button button {
background-image: url(assets/controls.png);
}
.mejs-container-fullscreen .mejs-mediaelement,
.mejs-container-fullscreen video {
width: 100% !important;
height: 100% !important;
background-color: black;
}
// Bug fix to contain video when in portrait mode
// --------------------------------------------------
.orientation-portrait .mejs-container-fullscreen video {
object-fit: contain;
}
// Bug fix for missing control icons on iOS touch devices
// required for Safari/Chrome iOS 11. Ref: https://caniuse.com/#feat=css-clip-path
// --------------------------------------------------
.mejs-offscreen {
-webkit-clip-path: polygon(0 0, 0 0,0 0, 0 0);
}