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