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