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