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