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