Merge branch 'master' of linz:/srv/git/themes
[themes.git] / LCARStrek / global / media / videocontrols.css
1 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
2 @namespace html url("http://www.w3.org/1999/xhtml");
3
4 .controlBar {
5   height: 28px;
6   background-color: rgba(156,156,255,0.75);
7 }
8
9 .playButton, .muteButton {
10   /* Remove the usual button appearance and styling */
11   margin: 0px;
12   padding: 0px;
13   border: none;
14   min-height: 28px;
15   background-color: transparent;
16   background-repeat: no-repeat;
17   background-position: center center;
18 }
19 .playButton {
20   min-width: 28px;
21   margin-right: -22px; /* 1/2 of scrubber thumb width, for overhang. */
22   position: relative; /* Trick to work around negative margin interfering with clicking on the button. */
23 }
24 .muteButton {
25   min-width: 33px;
26 }
27 .playButton:hover, .muteButton:hover {
28   background-color: rgba(255,207,0,0.75);
29 }
30 .playButton:-moz-focusring > .button-box,
31 .muteButton:-moz-focusring > .button-box {
32   border: 1px dotted rgba(0,0,0,0.75);
33 }
34
35 .playButton {
36   background-image: url("chrome://global/skin/media/pauseButton.png");
37 }
38 .playButton:hover {
39   background-image: url("chrome://global/skin/media/pauseButton-hover.png");
40 }
41 .playButton[paused] {
42   background-image: url("chrome://global/skin/media/playButton.png");
43 }
44 .playButton[paused]:hover {
45   background-image: url("chrome://global/skin/media/playButton-hover.png");
46 }
47
48 .muteButton {
49   background-image: url("chrome://global/skin/media/muteButton.png");
50 }
51 .muteButton:hover {
52   background-image: url("chrome://global/skin/media/muteButton-hover.png");
53 }
54 .muteButton[muted] {
55   background-image: url("chrome://global/skin/media/unmuteButton.png");
56 }
57 .muteButton[muted]:hover {
58   background-image: url("chrome://global/skin/media/unmuteButton-hover.png");
59 }
60
61 .fullscreenButton {
62   background: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton.png"), 0, 16, 16, 0) no-repeat center;
63   margin: 0;
64   padding: 0;
65   min-height: 28px;
66   min-width: 28px;
67   border: none;
68 }
69
70 .fullscreenButton:hover {
71   background-color: rgba(255,207,0,0.75);
72   background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton.png"), 16, 16, 32, 0);
73 }
74
75 .fullscreenButton[fullscreened] {
76   background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton.png"), 0, 32, 16, 16);
77 }
78
79 .fullscreenButton[fullscreened]:hover {
80   background-color: rgba(255,207,0,0.75);
81   background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton.png"), 16, 32, 32, 16);
82 }
83
84 .volumeStack {
85   width: 28px;
86   height: 70px;
87   background-color: rgba(156,156,255,0.74);
88   /* use negative margin to place stack over the mute button to its left. */
89   margin: -70px 3px 28px -31px;
90   overflow: hidden; /* crop it when sliding down, don't grow the control bar */
91   position: relative; /* Trick to work around negative margin interfering with dragging the thumb. */
92   padding-top: 6px;
93   border-radius: 3px 3px 0 0;
94 }
95
96 .volumeControl {
97   min-height: 64px;
98 }
99
100 /* .scale-thumb is an element inside the <scale> implementation. */
101 .volumeControl .scale-thumb {
102   /* Override the default thumb appearance with a custom image. */
103   -moz-appearance: none;
104   background: url("chrome://global/skin/media/volumeThumb.png") no-repeat center;
105   border: none !important;
106   min-width: 16px;
107   min-height: 11px;
108 }
109 .volumeControl .scale-thumb:hover, .volumeControl .scale-thumb:active {
110   background-image: url("chrome://global/skin/media/volumeThumb-hover.png");
111 }
112
113 .volumeBackgroundBar {
114   /* margin left/right: make bar 8px wide (control width = 28, minus 2 * 10 margin) */
115   margin: 0px 10px;
116   background-color: rgba(0,0,0,0.5);
117   border-radius: 4px 4px;
118 }
119
120 .durationBox {
121   -moz-box-pack: center;
122 }
123
124 .durationLabel {
125   margin-left: -22px; /* 1/2 of scrubber thumb width, for overhang. */
126   padding-left: 8px; /* don't bump into the scrubber bar */
127   padding-top: 0px; /* center vertically with scrubber bar */
128   color: rgba(0,0,0,0.75);
129   font-size: 11px;
130   font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
131 }
132
133 .positionLabel {
134   display: none;
135 }
136
137 .backgroundBar {
138   /* margin top/bottom: make bar 8px tall (control height = 28, minus 2 * 10 margin) */
139   /* margin left/right: 1/2 of scrubber thumb width, for overhang. */
140   margin: 10px 22px;
141   background-color: rgba(0,0,0,0.75);
142   border-radius: 4px 4px;
143 }
144
145 .bufferBar, .progressBar {
146   /* margin top/bottom: make bar 8px tall (control height = 28, minus 2 * 10 margin) */
147   /* margin left/right: 1/2 of scrubber thumb width, for overhang. */
148   margin: 10px 22px;
149   border: none;
150   background-color: transparent;
151   min-width: 0px;
152   min-height: 0px;
153 }
154
155 /* .progress-bar is an element inside the <progressmeter> implementation. */
156 .bufferBar .progress-bar {
157   /*
158    * Note that this is drawn on top of the .backgroundBar. So although this
159    * has the same background-color specified, the semitransparent
160    * compositing gives it a different visual appearance.
161    */
162   background-color: rgba(255,159,0,0.75);
163   border-radius: 4px 4px;
164   -moz-appearance: none;
165 }
166
167 .progressBar .progress-bar {
168   background-color: #008484;
169   border-radius: 4px 0px 0px 4px;
170   -moz-appearance: none;
171 }
172
173 /* .scale-slider is an element inside the <scale> implementation. */
174 .scrubber .scale-slider, .volumeControl .scale-slider {
175   /* Hide the default horizontal bar. */
176   background: none;
177   margin: 0;
178 }
179
180 .scrubber .scale-slider {
181   /* abs(margin-top) + margin-bottom + bar height == timeThumb height */
182   margin-top: -10px;
183   margin-bottom: 10px;
184 }
185
186 /* .scale-thumb is an element inside the <scale> implementation. */
187 .scrubber .scale-thumb {
188   /* Override the default thumb appearance with a custom image. */
189   background: transparent;
190   border: none !important;
191 }
192
193 .timeThumb {
194   background: url("chrome://global/skin/media/scrubberThumb.png") no-repeat center;
195   min-width: 45px;
196   min-height: 28px;
197   -moz-box-pack: center;
198 }
199
200 .timeThumb[showhours="true"] {
201   background: url("chrome://global/skin/media/scrubberThumbWide.png") no-repeat center;
202 }
203
204 /*
205 .timeThumb:hover, .timeThumb:active {
206   background-image: url("chrome://global/skin/media/scrubberThumb-hover.png");
207 }
208 */
209
210 .timeLabel {
211   color: rgba(0,0,0,0.75);
212   font-size: 10px;
213   font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
214   text-shadow: rgba(255,259,0, 0.3) 0 1px;
215   padding-top: 5px;
216 }
217
218 .statusOverlay {
219   -moz-box-align: center;
220   -moz-box-pack: center;
221   background-color: rgba(0,0,0,0.55);
222 }
223
224 .statusIcon {
225   margin-bottom: 28px; /* same height as .controlBar, to keep icon centered above it */
226   width: 36px;
227   height: 36px;
228 }
229
230 .statusIcon[type="throbber"] {
231   background: url("chrome://communicator/skin/brand/throbber-anim.gif") no-repeat center;
232 }
233 /*
234 .statusIcon[type="throbber"][stalled] {
235   background: url("chrome://global/skin/media/stalled.png") no-repeat center;
236 }
237 */
238 .statusIcon[type="error"] {
239   background: url("chrome://global/skin/icons/alert-error.gif") no-repeat center;
240 }
241
242 /* Overlay Play button */
243 .clickToPlay {
244   width: 64px;
245   height: 64px;
246   -moz-box-pack: center;
247   -moz-box-align: center;
248   opacity: 0.7;
249   background-image: url("chrome://global/skin/media/clicktoplay-bgtexture.png"),
250                     url("chrome://global/skin/media/videoClickToPlayButton.svg");
251   background-repeat: repeat, no-repeat;
252   background-position: center, center;
253   background-size: auto, 64px 64px;
254   background-color: hsla(0,0%,10%,.5);
255 }
256 .clickToPlay:hover {
257   opacity: 1;
258 }
259
260 /* Statistics formatting */
261 html|*.statsDiv {
262   position: relative;
263 }
264 html|td {
265   height: 1em;
266   max-height: 1em;
267   padding: 0 2px;
268 }
269 html|table {
270   font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
271   font-size: 11px;
272   color: white;
273   text-shadow:
274     -1px -1px 0 #000,
275     1px -1px 0 #000,
276     -1px 1px 0 #000,
277     1px 1px 0 #000;
278   min-width: 100%;
279   background: rgba(68,68,111,.7);
280   table-layout: fixed;
281   border-collapse: collapse;
282   position: absolute;
283 }
284
285 /* CSS Transitions */
286 .clickToPlay {
287   -moz-transition-property: opacity, background-size;
288   -moz-transition-duration: 400ms, 400ms;
289 }
290 .clickToPlay[fadeout] {
291   background-size: auto, 192px 192px;
292   opacity: 0;
293 }
294 .clickToPlay[fadeout][immediate] {
295   -moz-transition-property: opacity, background-size;
296   -moz-transition-duration: 0s, 0s;
297 }
298 .controlBar:not([immediate]) {
299   -moz-transition-property: opacity;
300   -moz-transition-duration: 200ms;
301 }
302 .controlBar[fadeout] {
303   opacity: 0;
304 }
305 .volumeStack:not([immediate]) {
306   -moz-transition-property: opacity, margin-top;
307   -moz-transition-duration: 200ms, 200ms;
308 }
309 .volumeStack[fadeout] {
310   opacity: 0;
311   margin-top: 0;
312 }
313 .statusOverlay:not([immediate]) {
314   -moz-transition-property: opacity;
315   -moz-transition-duration: 300ms;
316   -moz-transition-delay: 750ms;
317 }
318 .statusOverlay[fadeout] {
319   opacity: 0;
320 }
321
322 /* Error description formatting */
323 .errorLabel {
324   font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
325   font-size: 11px;
326   color: #E7ADE7;
327   text-shadow:
328     -1px -1px 0 #000,
329     1px -1px 0 #000,
330     -1px 1px 0 #000,
331     1px 1px 0 #000;
332   padding: 0 10px;
333   text-align: center;
334 }