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