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