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