Commit | Line | Data |
---|---|---|
dae45075 RK |
1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
2 | * License, v. 2.0. If a copy of the MPL was not distributed with this | |
3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
4 | ||
29465e59 | 5 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
1e29db46 | 6 | @namespace html url("http://www.w3.org/1999/xhtml"); |
29465e59 | 7 | |
6f25e2c5 | 8 | .controlBar { |
b310ca09 | 9 | height: 28px; |
6f25e2c5 | 10 | background-color: rgba(102,102,153,0.75); |
29465e59 RK |
11 | } |
12 | ||
a6c8d0f5 RK |
13 | .playButton, |
14 | .muteButton, | |
dae45075 | 15 | .closedCaptionButton, |
a6c8d0f5 RK |
16 | .fullscreenButton { |
17 | background-color: transparent; | |
18 | background-repeat: no-repeat; | |
19 | background-position: center; | |
dae45075 RK |
20 | margin: 0; |
21 | padding: 0; | |
b310ca09 | 22 | min-height: 28px; |
b310ca09 | 23 | min-width: 28px; |
dae45075 | 24 | border: none; |
29465e59 RK |
25 | } |
26 | ||
6f25e2c5 | 27 | .playButton { |
b310ca09 | 28 | background-image: url("chrome://global/skin/media/pauseButton.png"); |
a6c8d0f5 RK |
29 | margin-right: -22px; /* 1/2 of scrubber thumb width, for overhang. */ |
30 | position: relative; /* Trick to work around negative margin interfering with clicking on the button. */ | |
29465e59 | 31 | } |
a6c8d0f5 | 32 | |
f128e38f | 33 | .playButton[paused] { |
b310ca09 | 34 | background-image: url("chrome://global/skin/media/playButton.png"); |
29465e59 RK |
35 | } |
36 | ||
6f25e2c5 | 37 | .muteButton { |
b310ca09 | 38 | background-image: url("chrome://global/skin/media/muteButton.png"); |
a6c8d0f5 | 39 | min-width: 33px; |
6f25e2c5 | 40 | } |
a6c8d0f5 | 41 | |
f128e38f | 42 | .muteButton[muted] { |
b310ca09 RK |
43 | background-image: url("chrome://global/skin/media/unmuteButton.png"); |
44 | } | |
45 | ||
46dc2718 RK |
46 | .muteButton[noAudio] { |
47 | background-image: url("chrome://global/skin/media/noAudio.png"); | |
48 | } | |
49 | ||
e6488357 RK |
50 | .muteButton[noAudio] + .volumeStack { |
51 | display: none; | |
52 | } | |
53 | ||
dae45075 RK |
54 | .closedCaptionButton { |
55 | background-image: url("chrome://global/skin/media/closeCaptionButton.png"); | |
56 | background-position: 4px; | |
57 | } | |
58 | ||
59 | .closedCaptionButton[enabled] { | |
60 | opacity: 1; | |
61 | } | |
62 | ||
63 | .closedCaptionButton[hidden] { | |
64 | display: none; | |
65 | } | |
66 | ||
f128e38f | 67 | .fullscreenButton { |
a6c8d0f5 | 68 | background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton.png"), 0, 16, 16, 0); |
f128e38f RK |
69 | } |
70 | ||
71 | .fullscreenButton[fullscreened] { | |
f777a4f1 | 72 | background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton.png"), 0, 32, 16, 16); |
f128e38f RK |
73 | } |
74 | ||
e6488357 RK |
75 | .volumeControl { |
76 | width: 32px; | |
77 | opacity: 0; | |
ca710c53 RK |
78 | } |
79 | ||
e6488357 RK |
80 | .volumeBackground, |
81 | .volumeForeground { | |
82 | background-repeat: no-repeat; | |
83 | background-position: center; | |
84 | width: 32px; | |
ca710c53 RK |
85 | } |
86 | ||
e6488357 RK |
87 | .volumeBackground { |
88 | background-image: url("chrome://global/skin/media/volume-empty.png"); | |
ca710c53 RK |
89 | } |
90 | ||
e6488357 RK |
91 | .volumeForeground { |
92 | background-image: url("chrome://global/skin/media/volume-full.png"); | |
93 | background-clip: content-box; | |
ca710c53 RK |
94 | } |
95 | ||
dae45075 RK |
96 | .textTrackList { |
97 | display: -moz-box; | |
98 | -moz-appearance: none; | |
99 | -moz-box-pack: end; | |
100 | -moz-box-align: end; | |
101 | padding: 0; | |
102 | } | |
103 | ||
104 | .textTrackList[hidden] { | |
105 | display: none; | |
106 | } | |
107 | ||
108 | .textTrackList > html|*.textTrackItem { | |
109 | -moz-appearance: none; | |
110 | -moz-box-align: start; | |
111 | text-align: start; | |
112 | overflow: hidden; | |
113 | margin: 0; | |
114 | padding: 2px 10px; | |
115 | -moz-margin-end: 10px; | |
116 | border: none; | |
117 | color: rgba(255,255,255,.5); | |
118 | background-color: rgba(35,31,32,.74); | |
119 | white-space: nowrap; | |
120 | } | |
121 | ||
122 | .textTrackList > html|*.textTrackItem[on] { | |
123 | color: white; | |
124 | background-color: black; | |
125 | } | |
126 | ||
127 | .textTrackList > html|*.textTrackItem:hover { | |
128 | background-color: rgba(0,0,0,.55); | |
129 | } | |
130 | ||
131 | .controlBar[fullscreen-unavailable] { | |
441d0294 | 132 | /* This value is duplicated in the videocontrols.xml adjustControlSize function. */ |
dae45075 | 133 | padding-inline-end: 8px; |
441d0294 RK |
134 | } |
135 | ||
136 | .volumeControl .scale-thumb { | |
137 | min-width: 0; | |
138 | opacity: 0; | |
139 | } | |
140 | ||
ca710c53 RK |
141 | .durationBox { |
142 | -moz-box-pack: center; | |
143 | } | |
144 | ||
145 | .durationLabel { | |
146 | margin-left: -22px; /* 1/2 of scrubber thumb width, for overhang. */ | |
147 | padding-left: 8px; /* don't bump into the scrubber bar */ | |
148 | padding-top: 0px; /* center vertically with scrubber bar */ | |
149 | color: rgba(204,208,221,0.75); | |
3327253e | 150 | font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif; |
dae45075 | 151 | font-size: 11px; |
ca710c53 RK |
152 | } |
153 | ||
9162a092 RK |
154 | .positionLabel { |
155 | display: none; | |
156 | } | |
157 | ||
b310ca09 | 158 | .backgroundBar { |
ca710c53 RK |
159 | /* margin top/bottom: make bar 8px tall (control height = 28, minus 2 * 10 margin) */ |
160 | /* margin left/right: 1/2 of scrubber thumb width, for overhang. */ | |
161 | margin: 10px 22px; | |
b310ca09 RK |
162 | background-color: rgba(0,0,0,0.75); |
163 | } | |
164 | ||
dae45075 RK |
165 | .bufferBar, |
166 | .progressBar { | |
ca710c53 RK |
167 | /* margin top/bottom: make bar 8px tall (control height = 28, minus 2 * 10 margin) */ |
168 | /* margin left/right: 1/2 of scrubber thumb width, for overhang. */ | |
169 | margin: 10px 22px; | |
b310ca09 RK |
170 | border: none; |
171 | background-color: transparent; | |
dae45075 RK |
172 | min-width: 0; |
173 | min-height: 0; | |
b310ca09 RK |
174 | } |
175 | ||
176 | /* .progress-bar is an element inside the <progressmeter> implementation. */ | |
177 | .bufferBar .progress-bar { | |
178 | /* | |
179 | * Note that this is drawn on top of the .backgroundBar. So although this | |
180 | * has the same background-color specified, the semitransparent | |
181 | * compositing gives it a different visual appearance. | |
182 | */ | |
183 | background-color: rgba(204,208,221,0.75); | |
184 | -moz-appearance: none; | |
185 | } | |
186 | ||
187 | .progressBar .progress-bar { | |
188 | background-color: #336699; | |
189 | -moz-appearance: none; | |
190 | } | |
191 | ||
192 | /* .scale-slider is an element inside the <scale> implementation. */ | |
dae45075 RK |
193 | .scrubber .scale-slider, |
194 | .volumeControl .scale-slider { | |
b310ca09 RK |
195 | /* Hide the default horizontal bar. */ |
196 | background: none; | |
ca710c53 RK |
197 | margin: 0; |
198 | } | |
199 | ||
200 | .scrubber .scale-slider { | |
3327253e RK |
201 | /* abs(margin-top) + margin-bottom + bar height == timeThumb height */ |
202 | margin-top: -10px; | |
203 | margin-bottom: 10px; | |
b310ca09 RK |
204 | } |
205 | ||
206 | /* .scale-thumb is an element inside the <scale> implementation. */ | |
e6488357 RK |
207 | .scrubber .scale-thumb, |
208 | .volumeControl .scale-thumb { | |
b310ca09 | 209 | /* Override the default thumb appearance with a custom image. */ |
ca710c53 | 210 | background: transparent; |
b310ca09 | 211 | border: none !important; |
ca710c53 RK |
212 | } |
213 | ||
214 | .timeThumb { | |
3327253e RK |
215 | background: url("chrome://global/skin/media/scrubberThumb.png") no-repeat center; |
216 | min-width: 45px; | |
217 | min-height: 28px; | |
218 | -moz-box-pack: center; | |
ca710c53 RK |
219 | } |
220 | ||
221 | .timeThumb[showhours="true"] { | |
a6c8d0f5 | 222 | background-image: url("chrome://global/skin/media/scrubberThumbWide.png"); |
ca710c53 RK |
223 | } |
224 | ||
225 | /* | |
226 | .timeThumb:hover, .timeThumb:active { | |
227 | background-image: url("chrome://global/skin/media/scrubberThumb-hover.png"); | |
228 | } | |
229 | */ | |
230 | ||
231 | .timeLabel { | |
3327253e RK |
232 | color: rgba(0,0,0,0.75); |
233 | font-size: 10px; | |
234 | font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif; | |
235 | text-shadow: rgba(102,102,153, 0.3) 0 1px; | |
f777a4f1 | 236 | padding-top: 5px; |
ca710c53 RK |
237 | } |
238 | ||
ca710c53 | 239 | .statusOverlay { |
3327253e RK |
240 | -moz-box-align: center; |
241 | -moz-box-pack: center; | |
242 | background-color: rgba(0,0,0,0.55); | |
ca710c53 RK |
243 | } |
244 | ||
245 | .statusIcon { | |
3327253e RK |
246 | margin-bottom: 28px; /* same height as .controlBar, to keep icon centered above it */ |
247 | width: 32px; | |
248 | height: 32px; | |
ca710c53 RK |
249 | } |
250 | ||
251 | .statusIcon[type="throbber"] { | |
3327253e | 252 | background: url("chrome://communicator/skin/brand/throbber-anim.gif") no-repeat center; |
ca710c53 | 253 | } |
154ee8b3 RK |
254 | /* |
255 | .statusIcon[type="throbber"][stalled] { | |
256 | background: url("chrome://global/skin/media/stalled.png") no-repeat center; | |
257 | } | |
258 | */ | |
ca710c53 | 259 | .statusIcon[type="error"] { |
3327253e | 260 | background: url("chrome://global/skin/icons/alert-error.gif") no-repeat center; |
6f25e2c5 | 261 | } |
4b1ccdb4 | 262 | |
044b5d49 RK |
263 | /* Overlay Play button */ |
264 | .clickToPlay { | |
265 | width: 64px; | |
266 | height: 64px; | |
267 | -moz-box-pack: center; | |
268 | -moz-box-align: center; | |
269 | opacity: 0.7; | |
dae45075 RK |
270 | background-image: url("chrome://global/skin/media/videoClickToPlayButton.svg"); |
271 | background-repeat: no-repeat; | |
272 | background-position: center; | |
273 | background-size: 64px 64px; | |
044b5d49 RK |
274 | background-color: hsla(0,0%,10%,.5); |
275 | } | |
276 | .clickToPlay:hover { | |
277 | opacity: 1; | |
278 | } | |
279 | ||
1e29db46 RK |
280 | /* Statistics formatting */ |
281 | html|*.statsDiv { | |
282 | position: relative; | |
283 | } | |
284 | html|td { | |
285 | height: 1em; | |
286 | max-height: 1em; | |
287 | padding: 0 2px; | |
288 | } | |
289 | html|table { | |
290 | font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif; | |
291 | font-size: 11px; | |
292 | color: white; | |
293 | text-shadow: | |
294 | -1px -1px 0 #000, | |
295 | 1px -1px 0 #000, | |
296 | -1px 1px 0 #000, | |
297 | 1px 1px 0 #000; | |
298 | min-width: 100%; | |
299 | background: rgba(68,68,68,.7); | |
300 | table-layout: fixed; | |
301 | border-collapse: collapse; | |
302 | position: absolute; | |
303 | } | |
304 | ||
4b1ccdb4 | 305 | /* CSS Transitions */ |
044b5d49 | 306 | .clickToPlay { |
71a617ff RK |
307 | transition-property: opacity, background-size; |
308 | transition-duration: 400ms, 400ms; | |
044b5d49 RK |
309 | } |
310 | .clickToPlay[fadeout] { | |
311 | background-size: auto, 192px 192px; | |
312 | opacity: 0; | |
313 | } | |
314 | .clickToPlay[fadeout][immediate] { | |
71a617ff RK |
315 | transition-property: opacity, background-size; |
316 | transition-duration: 0s, 0s; | |
044b5d49 | 317 | } |
4b1ccdb4 | 318 | .controlBar:not([immediate]) { |
71a617ff RK |
319 | transition-property: opacity; |
320 | transition-duration: 200ms; | |
4b1ccdb4 RK |
321 | } |
322 | .controlBar[fadeout] { | |
323 | opacity: 0; | |
324 | } | |
325 | .volumeStack:not([immediate]) { | |
71a617ff RK |
326 | transition-property: opacity, margin-top; |
327 | transition-duration: 200ms, 200ms; | |
4b1ccdb4 RK |
328 | } |
329 | .volumeStack[fadeout] { | |
330 | opacity: 0; | |
331 | margin-top: 0; | |
332 | } | |
333 | .statusOverlay:not([immediate]) { | |
71a617ff RK |
334 | transition-property: opacity; |
335 | transition-duration: 300ms; | |
336 | transition-delay: 750ms; | |
4b1ccdb4 RK |
337 | } |
338 | .statusOverlay[fadeout] { | |
339 | opacity: 0; | |
340 | } | |
f128e38f RK |
341 | |
342 | /* Error description formatting */ | |
343 | .errorLabel { | |
344 | font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif; | |
345 | font-size: 11px; | |
346 | color: #CCD0DD; | |
347 | text-shadow: | |
348 | -1px -1px 0 #000, | |
349 | 1px -1px 0 #000, | |
350 | -1px 1px 0 #000, | |
351 | 1px 1px 0 #000; | |
352 | padding: 0 10px; | |
353 | text-align: center; | |
354 | } | |
dae45075 RK |
355 | |
356 | @media (min-resolution: 2dppx) { | |
dae45075 RK |
357 | .playButton { |
358 | background-image: url(chrome://global/skin/media/pauseButton@2x.png); | |
359 | background-size: 28px 28px; | |
360 | } | |
361 | .playButton[paused] { | |
362 | background-image: url(chrome://global/skin/media/playButton@2x.png); | |
363 | background-size: 28px 28px; | |
364 | } | |
365 | .volumeBackground { | |
366 | background-image: url(chrome://global/skin/media/volume-empty@2x.png); | |
367 | background-size: 32px 16px; | |
368 | } | |
369 | .volumeForeground { | |
370 | background-image: url(chrome://global/skin/media/volume-full@2x.png); | |
371 | background-size: 32px 16px; | |
372 | } | |
373 | .muteButton { | |
374 | background-image: url(chrome://global/skin/media/muteButton@2x.png); | |
375 | background-size: 33px 28px; | |
376 | } | |
377 | .muteButton[muted] { | |
378 | background-image: url(chrome://global/skin/media/unmuteButton@2x.png); | |
379 | background-size: 33px 28px; | |
380 | } | |
381 | .muteButton[noAudio] { | |
382 | background-image: url(chrome://global/skin/media/noAudio@2x.png); | |
383 | background-size: 33px 28px; | |
384 | } | |
dae45075 RK |
385 | .closedCaptionButton { |
386 | background-image: url(chrome://global/skin/media/closeCaptionButton@2x.png); | |
387 | background-position: 4px; | |
388 | background-size: 28px 28px; | |
389 | } | |
dae45075 RK |
390 | .fullscreenButton { |
391 | background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton@2x.png"), 0, 32, 32, 0); | |
392 | background-size: 16px 16px; | |
393 | } | |
394 | .fullscreenButton[fullscreened] { | |
395 | background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton@2x.png"), 0, 64, 32, 32); | |
396 | background-size: 16px 16px; | |
397 | } | |
398 | .timeThumb { | |
399 | background-image: url(chrome://global/skin/media/scrubberThumb@2x.png); | |
400 | background-size: 33px 28px; | |
401 | } | |
402 | .timeThumb[showhours="true"] { | |
403 | background-image: url(chrome://global/skin/media/scrubberThumbWide@2x.png); | |
404 | background-size: 45px 28px; | |
405 | } | |
dae45075 | 406 | } |