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