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