start 2.9 cycle with most of the toolkit winstripe changes for both themes
[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/* 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
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}
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}