aboutsummaryrefslogtreecommitdiff
path: root/assets/css/_mejs_hacks.less
blob: b89ee96b6f2d3ea2d8c07c23614272773e250017 (plain)
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
.mejs-container {
	&.mejs-video .mejs-controls {
		@factor: 1.5;

		.mejs-subs-button > span {
			cursor: pointer;
			color: #e3e3e3;
			font-size: 28px;
			padding-top: 5px;
			padding-left: 5px;
		}

		height: 12px + 18px * @factor;
		div {
			width: 26px * @factor;
			height: 26px * @factor;
		}
		.mejs-button button {
			background-size: 144px * @factor 32px * @factor !important;
			width: 16px * @factor;
			height: 16px * @factor;
		}
		.mejs-playpause-button {
			&.mejs-play button {
				background-position: 0 0;
			}
			&.mejs-pause button {
				background-position: 0 -16px * @factor;
			}
		}
		.mejs-volume-button {
			&.mejs-mute button {
				background-position: -16px * @factor -16px * @factor;
			}
			&.mejs-unmute button {
				background-position: -16px * @factor 0;
			}
			.mejs-volume-slider {
				left: 4px * @factor;
			}
		}
		.mejs-fullscreen-button button {
			background-position: -32px * @factor 0;
		}

		@top: @factor * 12px - 12px;
		.mejs-time {
			padding-top: @top + 8px;
		}
		.mejs-horizontal-volume-slider {
			width: 110px;
			top: @top;
			.mejs-horizontal-volume-total {
				width: 100px;
			}
		}
	}

	&.mejs-audio {
		margin: 0 auto;
		.me-cannotplay span {
			padding-top: 5px;
			text-align: center;
		}
	}
	.mejs-overlay-loading {
		background: none !important;
	}
}