fix checkboxes and expander in clear recernt history window
[themes.git] / EarlyBlue / global / media / videocontrols.css
... / ...
CommitLineData
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] {
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] {
39 background-image: url("chrome://global/skin/media/unmuteButton.png");
40}
41
42.fullscreenButton {
43 background: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton.png"), 0, 16, 16, 0) no-repeat center;
44 margin: 0;
45 padding: 0;
46 min-height: 28px;
47 min-width: 28px;
48 border: none;
49}
50
51.fullscreenButton[fullscreened] {
52 background-image: -moz-image-rect(url("chrome://global/skin/media/fullscreenButton.png"), 0, 32, 16, 16);
53}
54
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
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);
95 font-size: 11px;
96 font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
97}
98
99.positionLabel {
100 display: none;
101}
102
103.backgroundBar {
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;
107 background-color: rgba(0,0,0,0.75);
108}
109
110.bufferBar, .progressBar {
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;
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. */
137.scrubber .scale-slider, .volumeControl .scale-slider {
138 /* Hide the default horizontal bar. */
139 background: none;
140 margin: 0;
141}
142
143.scrubber .scale-slider {
144 /* abs(margin-top) + margin-bottom + bar height == timeThumb height */
145 margin-top: -10px;
146 margin-bottom: 10px;
147}
148
149/* .scale-thumb is an element inside the <scale> implementation. */
150.scrubber .scale-thumb {
151 /* Override the default thumb appearance with a custom image. */
152 background: transparent;
153 border: none !important;
154}
155
156.timeThumb {
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;
161}
162
163.timeThumb[showhours="true"] {
164 background: url("chrome://global/skin/media/scrubberThumbWide.png") no-repeat center;
165}
166
167/*
168.timeThumb:hover, .timeThumb:active {
169 background-image: url("chrome://global/skin/media/scrubberThumb-hover.png");
170}
171*/
172
173.timeLabel {
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;
178 padding-top: 5px;
179}
180
181.statusOverlay {
182 -moz-box-align: center;
183 -moz-box-pack: center;
184 background-color: rgba(0,0,0,0.55);
185}
186
187.statusIcon {
188 margin-bottom: 28px; /* same height as .controlBar, to keep icon centered above it */
189 width: 32px;
190 height: 32px;
191}
192
193.statusIcon[type="throbber"] {
194 background: url("chrome://communicator/skin/brand/throbber-anim.gif") no-repeat center;
195}
196/*
197.statusIcon[type="throbber"][stalled] {
198 background: url("chrome://global/skin/media/stalled.png") no-repeat center;
199}
200*/
201.statusIcon[type="error"] {
202 background: url("chrome://global/skin/icons/alert-error.gif") no-repeat center;
203}
204
205/* Overlay Play button */
206.clickToPlay {
207 width: 64px;
208 height: 64px;
209 -moz-box-pack: center;
210 -moz-box-align: center;
211 opacity: 0.7;
212 background-image: url("chrome://global/skin/media/clicktoplay-bgtexture.png"),
213 url("chrome://global/skin/media/videoClickToPlayButton.svg");
214 background-repeat: repeat, no-repeat;
215 background-position: center, center;
216 background-size: auto, 64px 64px;
217 background-color: hsla(0,0%,10%,.5);
218}
219.clickToPlay:hover {
220 opacity: 1;
221}
222
223/* Statistics formatting */
224html|*.statsDiv {
225 position: relative;
226}
227html|td {
228 height: 1em;
229 max-height: 1em;
230 padding: 0 2px;
231}
232html|table {
233 font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
234 font-size: 11px;
235 color: white;
236 text-shadow:
237 -1px -1px 0 #000,
238 1px -1px 0 #000,
239 -1px 1px 0 #000,
240 1px 1px 0 #000;
241 min-width: 100%;
242 background: rgba(68,68,68,.7);
243 table-layout: fixed;
244 border-collapse: collapse;
245 position: absolute;
246}
247
248/* CSS Transitions */
249.clickToPlay {
250 -moz-transition-property: opacity, background-size;
251 -moz-transition-duration: 400ms, 400ms;
252}
253.clickToPlay[fadeout] {
254 background-size: auto, 192px 192px;
255 opacity: 0;
256}
257.clickToPlay[fadeout][immediate] {
258 -moz-transition-property: opacity, background-size;
259 -moz-transition-duration: 0s, 0s;
260}
261.controlBar:not([immediate]) {
262 -moz-transition-property: opacity;
263 -moz-transition-duration: 200ms;
264}
265.controlBar[fadeout] {
266 opacity: 0;
267}
268.volumeStack:not([immediate]) {
269 -moz-transition-property: opacity, margin-top;
270 -moz-transition-duration: 200ms, 200ms;
271}
272.volumeStack[fadeout] {
273 opacity: 0;
274 margin-top: 0;
275}
276.statusOverlay:not([immediate]) {
277 -moz-transition-property: opacity;
278 -moz-transition-duration: 300ms;
279 -moz-transition-delay: 750ms;
280}
281.statusOverlay[fadeout] {
282 opacity: 0;
283}
284
285/* Error description formatting */
286.errorLabel {
287 font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
288 font-size: 11px;
289 color: #CCD0DD;
290 text-shadow:
291 -1px -1px 0 #000,
292 1px -1px 0 #000,
293 -1px 1px 0 #000,
294 1px 1px 0 #000;
295 padding: 0 10px;
296 text-align: center;
297}