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