-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmedia-player.css
181 lines (147 loc) · 4.44 KB
/
media-player.css
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
/***********************************/
/* V1 - Thin yellow bar with round */
/***********************************/
:root {
--mdl-slider-container-height: 1.25em;
--mdl-slider-background-flex-height: 0.3em;
--mdl-slider-background-flex-height-hover: 0.5em;
--slider-primary-color: #f7ca18;
}
/* Define a border radius for pre-existing slider tooltip on hover */
.sliderBubble {
border-radius: 10px;
}
/* Style the slider thumb (the grabable bullet) */
.mdl-slider::-webkit-slider-thumb,
.mdl-slider::-moz-range-thumb {
background-color: var(--slider-primary-color);
cursor: default;
height: 1em;
width: 1em;
}
/* Remove thumb scaling up when hovering */
.mdl-slider-hoverthumb:hover::-webkit-slider-thumb,
.mdl-slider-hoverthumb:hover::-moz-range-thumb {
transform: none;
}
/* Change cursor when hovering the slider but not hovering the thumb */
.mdl-slider:hover {
cursor: default;
}
/* Change cursor when hovering the thumb */
.mdl-slider:hover::-moz-range-thumb,
.mdl-slider:hover::-webkit-slider-thumb {
cursor: grab;
}
/* Change cursor when sliding the thumb */
.mdl-slider:active,
.mdl-slider:active::-moz-range-thumb,
.mdl-slider:active::-webkit-slider-thumb {
cursor: grabbing;
}
/* Already played part in slider */
.mdl-slider-background-lower {
background-color: var(--slider-primary-color);
border-radius: 50px;
}
/* Define height and radius for the slider */
.mdl-slider-background-flex {
height: var(--mdl-slider-background-flex-height);
border-radius: 50px;
margin-top: 0;
}
/* Increase height when slider is hovered */
.mdl-slider-container:hover .mdl-slider-background-flex {
height: var(--mdl-slider-background-flex-height-hover);
}
/* Position the slider container astride the bottom player hence half its height (1.25em) */
.mdl-slider-container.nowPlayingBarPositionContainer {
top: calc(var(--mdl-slider-container-height) / -2);
}
/* Position the slider correctly on the page according to its height */
.mdl-slider-background-flex-container {
top: calc(50% - var(--mdl-slider-background-flex-height) / 2);
}
/* Position the slider correctly on the page according to its increased height when hovering */
.mdl-slider-container:hover .mdl-slider-background-flex-container {
top: calc(50% - var(--mdl-slider-background-flex-height-hover) / 2);
}
/* Add some margin for the remote media control slider */
.nowPlayingInfoControls > .sliderContainer {
margin-bottom: 1em;
}
/* Override default margin for the remote media control slider to align it correctly */
.nowPlayingPositionSliderContainer.mdl-slider-container {
margin: 0em 1em;
}
/* Override default margin for the OSD media player slider to align it correctly */
.osdControls .sliderContainer {
margin: 0.25em 0 !important;
}
/**********************************/
/* V2 - Yellow large range slider */
/**********************************/
/* .sliderBubble {
border-radius: 10px;
}
.mdl-slider::-webkit-slider-thumb,
.mdl-slider::-moz-range-thumb {
background-color: #202020;
cursor: default;
height: 1.25em;
width: 1.25em;
border: 2px solid #f7ca18;
}
.mdl-slider-hoverthumb:hover::-webkit-slider-thumb,
.mdl-slider-hoverthumb:hover::-moz-range-thumb {
transform: none;
border: 2px solid #f7ca18;
}
.mdl-slider {
cursor: default;
} */
/* Already played part in slider */
/* .mdl-slider-background-lower {
background-color: #f7ca18;
padding-right: calc(1.25em + 4px);
margin-left: calc(-0.75em - 4px);
border-radius: 100px;
}
.mdl-slider-background-flex-inner {
margin: 0 0.75em;
}
.nowPlayingBarPositionContainer {
top: -1.284em !important;
}
.mdl-slider {
height: 100%;
}
.mdl-slider-background-flex-container {
top: 0;
padding: 0;
height: 100%;
}
.mdl-slider-background-flex {
margin-top: 0;
height: 100%;
border-radius: 100px;
}
div.nowPlayingInfoControls div.sliderContainer {
align-items: center;
.positionTime {
height: fit-content;
}
}
.nowPlayingPositionSliderContainer {
margin: 1em;
}
.nowPlayingVolumeSliderContainer {
margin-left: 0.3em;
}
.nowPlayingBarVolumeSliderContainer {
margin-left: 0.5em;
} */
/* Fix for slider in the "Subtitles" settings page */
/* .sliderContainer-settings .mdl-slider-container {
height: unset;
} */