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