first (largest) part of sync for both themes with toolkit windows theme changes in...
[themes.git] / EarlyBlue / global / media / videocontrols.css
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
5 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
6 @namespace html url("http://www.w3.org/1999/xhtml");
7
8 .controlBar {
9   height: 28px;
10   background-color: rgba(102,102,153,0.75);
11 }
12
13 .playButton,
14 .muteButton,
15 .closedCaptionButton,
16 .fullscreenButton {
17   background-color: transparent;
18   background-repeat: no-repeat;
19   background-position: center;
20   margin: 0;
21   padding: 0;
22   min-height: 28px;
23   min-width: 28px;
24   border: none;
25 }
26
27 .playButton {
28   background-image: url("chrome://global/skin/media/pauseButton.png");
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. */
31 }
32
33 .playButton[paused] {
34   background-image: url("chrome://global/skin/media/playButton.png");
35 }
36
37 .muteButton {
38   background-image: url("chrome://global/skin/media/muteButton.png");
39   min-width: 33px;
40 }
41
42 .muteButton[muted] {
43   background-image: url("chrome://global/skin/media/unmuteButton.png");
44 }
45
46 .muteButton[noAudio] {
47   background-image: url("chrome://global/skin/media/noAudio.png");
48 }
49
50 .muteButton[noAudio] + .volumeStack {
51   display: none;
52 }
53
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
67 .fullscreenButton {
68   background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton.png"), 0, 16, 16, 0);
69 }
70
71 .fullscreenButton[fullscreened] {
72   background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton.png"), 0, 32, 16, 16);
73 }
74
75 .volumeControl {
76   width: 32px;
77   opacity: 0;
78 }
79
80 .volumeBackground,
81 .volumeForeground {
82   background-repeat: no-repeat;
83   background-position: center;
84   width: 32px;
85 }
86
87 .volumeBackground {
88   background-image: url("chrome://global/skin/media/volume-empty.png");
89 }
90
91 .volumeForeground {
92   background-image: url("chrome://global/skin/media/volume-full.png");
93   background-clip: content-box;
94 }
95
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] {
132   /* This value is duplicated in the videocontrols.xml adjustControlSize function. */
133   padding-inline-end: 8px;
134 }
135
136 .volumeControl .scale-thumb {
137   min-width: 0;
138   opacity: 0;
139 }
140
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);
150   font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
151   font-size: 11px;
152 }
153
154 .positionLabel {
155   display: none;
156 }
157
158 .backgroundBar {
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;
162   background-color: rgba(0,0,0,0.75);
163 }
164
165 .bufferBar,
166 .progressBar {
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;
170   border: none;
171   background-color: transparent;
172   min-width: 0;
173   min-height: 0;
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. */
193 .scrubber .scale-slider,
194 .volumeControl .scale-slider {
195   /* Hide the default horizontal bar. */
196   background: none;
197   margin: 0;
198 }
199
200 .scrubber .scale-slider {
201   /* abs(margin-top) + margin-bottom + bar height == timeThumb height */
202   margin-top: -10px;
203   margin-bottom: 10px;
204 }
205
206 /* .scale-thumb is an element inside the <scale> implementation. */
207 .scrubber .scale-thumb,
208 .volumeControl .scale-thumb {
209   /* Override the default thumb appearance with a custom image. */
210   background: transparent;
211   border: none !important;
212 }
213
214 .timeThumb {
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;
219 }
220
221 .timeThumb[showhours="true"] {
222   background-image: url("chrome://global/skin/media/scrubberThumbWide.png");
223 }
224
225 /*
226 .timeThumb:hover, .timeThumb:active {
227   background-image: url("chrome://global/skin/media/scrubberThumb-hover.png");
228 }
229 */
230
231 .timeLabel {
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;
236   padding-top: 5px;
237 }
238
239 .statusOverlay {
240   -moz-box-align: center;
241   -moz-box-pack: center;
242   background-color: rgba(0,0,0,0.55);
243 }
244
245 .statusIcon {
246   margin-bottom: 28px; /* same height as .controlBar, to keep icon centered above it */
247   width: 32px;
248   height: 32px;
249 }
250
251 .statusIcon[type="throbber"] {
252   background: url("chrome://communicator/skin/brand/throbber-anim.gif") no-repeat center;
253 }
254 /*
255 .statusIcon[type="throbber"][stalled] {
256   background: url("chrome://global/skin/media/stalled.png") no-repeat center;
257 }
258 */
259 .statusIcon[type="error"] {
260   background: url("chrome://global/skin/icons/alert-error.gif") no-repeat center;
261 }
262
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;
270   background-image: url("chrome://global/skin/media/videoClickToPlayButton.svg");
271   background-repeat: no-repeat;
272   background-position: center;
273   background-size: 64px 64px;
274   background-color: hsla(0,0%,10%,.5);
275 }
276 .clickToPlay:hover {
277   opacity: 1;
278 }
279
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
305 /* CSS Transitions */
306 .clickToPlay {
307   transition-property: opacity, background-size;
308   transition-duration: 400ms, 400ms;
309 }
310 .clickToPlay[fadeout] {
311   background-size: auto, 192px 192px;
312   opacity: 0;
313 }
314 .clickToPlay[fadeout][immediate] {
315   transition-property: opacity, background-size;
316   transition-duration: 0s, 0s;
317 }
318 .controlBar:not([immediate]) {
319   transition-property: opacity;
320   transition-duration: 200ms;
321 }
322 .controlBar[fadeout] {
323   opacity: 0;
324 }
325 .volumeStack:not([immediate]) {
326   transition-property: opacity, margin-top;
327   transition-duration: 200ms, 200ms;
328 }
329 .volumeStack[fadeout] {
330   opacity: 0;
331   margin-top: 0;
332 }
333 .statusOverlay:not([immediate]) {
334   transition-property: opacity;
335   transition-duration: 300ms;
336   transition-delay: 750ms;
337 }
338 .statusOverlay[fadeout] {
339   opacity: 0;
340 }
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 }
355
356 @media (min-resolution: 2dppx) {
357 /*
358   .playButton {
359     background-image: url(chrome://global/skin/media/pauseButton@2x.png);
360     background-size: 28px 28px;
361   }
362   .playButton[paused] {
363     background-image: url(chrome://global/skin/media/playButton@2x.png);
364     background-size: 28px 28px;
365   }
366   .volumeBackground {
367     background-image: url(chrome://global/skin/media/volume-empty@2x.png);
368     background-size: 32px 16px;
369   }
370   .volumeForeground {
371     background-image: url(chrome://global/skin/media/volume-full@2x.png);
372     background-size: 32px 16px;
373   }
374   .muteButton {
375     background-image: url(chrome://global/skin/media/muteButton@2x.png);
376     background-size: 33px 28px;
377   }
378   .muteButton[muted] {
379     background-image: url(chrome://global/skin/media/unmuteButton@2x.png);
380     background-size: 33px 28px;
381   }
382   .muteButton[noAudio] {
383     background-image: url(chrome://global/skin/media/noAudio@2x.png);
384     background-size: 33px 28px;
385   }
386 */
387   .closedCaptionButton {
388     background-image: url(chrome://global/skin/media/closeCaptionButton@2x.png);
389     background-position: 4px;
390     background-size: 28px 28px;
391   }
392 /*
393   .fullscreenButton {
394     background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton@2x.png"), 0, 32, 32, 0);
395     background-size: 16px 16px;
396   }
397   .fullscreenButton[fullscreened] {
398     background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton@2x.png"), 0, 64, 32, 32);
399     background-size: 16px 16px;
400   }
401   .timeThumb {
402     background-image: url(chrome://global/skin/media/scrubberThumb@2x.png);
403     background-size: 33px 28px;
404   }
405   .timeThumb[showhours="true"] {
406     background-image: url(chrome://global/skin/media/scrubberThumbWide@2x.png);
407     background-size: 45px 28px;
408   }
409 */
410 }