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