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