1 | /* |
---|
2 | * FancyBox - jQuery Plugin |
---|
3 | * Simple and fancy lightbox alternative |
---|
4 | * |
---|
5 | * Examples and documentation at: http://fancybox.net |
---|
6 | * |
---|
7 | * Copyright (c) 2008 - 2010 Janis Skarnelis |
---|
8 | * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated. |
---|
9 | * |
---|
10 | * Version: 1.3.4 (11/11/2010) |
---|
11 | * Requires: jQuery v1.3+ |
---|
12 | * |
---|
13 | * Dual licensed under the MIT and GPL licenses: |
---|
14 | * http://www.opensource.org/licenses/mit-license.php |
---|
15 | * http://www.gnu.org/licenses/gpl.html |
---|
16 | */ |
---|
17 | |
---|
18 | #fancybox-loading { |
---|
19 | position: fixed; |
---|
20 | top: 50%; |
---|
21 | left: 50%; |
---|
22 | width: 40px; |
---|
23 | height: 40px; |
---|
24 | margin-top: -20px; |
---|
25 | margin-left: -20px; |
---|
26 | cursor: pointer; |
---|
27 | overflow: hidden; |
---|
28 | z-index: 1104; |
---|
29 | display: none; |
---|
30 | } |
---|
31 | |
---|
32 | #fancybox-loading div { |
---|
33 | position: absolute; |
---|
34 | top: 0; |
---|
35 | left: 0; |
---|
36 | width: 40px; |
---|
37 | height: 480px; |
---|
38 | background-image: url('fancybox.png'); |
---|
39 | } |
---|
40 | |
---|
41 | #fancybox-overlay { |
---|
42 | position: absolute; |
---|
43 | top: 0; |
---|
44 | left: 0; |
---|
45 | width: 100%; |
---|
46 | z-index: 1100; |
---|
47 | display: none; |
---|
48 | } |
---|
49 | |
---|
50 | #fancybox-tmp { |
---|
51 | padding: 0; |
---|
52 | margin: 0; |
---|
53 | border: 0; |
---|
54 | overflow: auto; |
---|
55 | display: none; |
---|
56 | } |
---|
57 | |
---|
58 | #fancybox-wrap { |
---|
59 | position: absolute; |
---|
60 | top: 0; |
---|
61 | left: 0; |
---|
62 | padding: 20px; |
---|
63 | z-index: 1101; |
---|
64 | outline: none; |
---|
65 | display: none; |
---|
66 | } |
---|
67 | |
---|
68 | #fancybox-outer { |
---|
69 | position: relative; |
---|
70 | width: 100%; |
---|
71 | height: 100%; |
---|
72 | background: #fff; |
---|
73 | } |
---|
74 | |
---|
75 | #fancybox-content { |
---|
76 | width: 0; |
---|
77 | height: 0; |
---|
78 | padding: 0; |
---|
79 | outline: none; |
---|
80 | position: relative; |
---|
81 | overflow: hidden; |
---|
82 | z-index: 1102; |
---|
83 | border: 0px solid #fff; |
---|
84 | } |
---|
85 | |
---|
86 | #fancybox-hide-sel-frame { |
---|
87 | position: absolute; |
---|
88 | top: 0; |
---|
89 | left: 0; |
---|
90 | width: 100%; |
---|
91 | height: 100%; |
---|
92 | background: transparent; |
---|
93 | z-index: 1101; |
---|
94 | } |
---|
95 | |
---|
96 | #fancybox-close { |
---|
97 | position: absolute; |
---|
98 | top: -19px; |
---|
99 | right: -19px; |
---|
100 | width: 30px; |
---|
101 | height: 30px; |
---|
102 | /*background: transparent url('fancybox.png') -40px 0px;*/ |
---|
103 | background: transparent url('close_button.gif') no-repeat left bottom; |
---|
104 | cursor: pointer; |
---|
105 | z-index: 1103; |
---|
106 | display: none; |
---|
107 | } |
---|
108 | |
---|
109 | #fancybox-error { |
---|
110 | color: #444; |
---|
111 | font: normal 12px/20px Arial; |
---|
112 | padding: 14px; |
---|
113 | margin: 0; |
---|
114 | } |
---|
115 | |
---|
116 | #fancybox-img { |
---|
117 | width: 100%; |
---|
118 | height: 100%; |
---|
119 | padding: 0; |
---|
120 | margin: 0; |
---|
121 | border: none; |
---|
122 | outline: none; |
---|
123 | line-height: 0; |
---|
124 | vertical-align: top; |
---|
125 | } |
---|
126 | |
---|
127 | #fancybox-frame { |
---|
128 | width: 100%; |
---|
129 | height: 100%; |
---|
130 | border: none; |
---|
131 | display: block; |
---|
132 | } |
---|
133 | |
---|
134 | #fancybox-left, #fancybox-right { |
---|
135 | position: absolute; |
---|
136 | bottom: 0px; |
---|
137 | height: 100%; |
---|
138 | width: 35%; |
---|
139 | cursor: pointer; |
---|
140 | outline: none; |
---|
141 | background: transparent url('blank.gif'); |
---|
142 | z-index: 1102; |
---|
143 | display: none; |
---|
144 | } |
---|
145 | |
---|
146 | #fancybox-left { |
---|
147 | left: 0px; |
---|
148 | } |
---|
149 | |
---|
150 | #fancybox-right { |
---|
151 | right: 0px; |
---|
152 | } |
---|
153 | |
---|
154 | #fancybox-left-ico, #fancybox-right-ico { |
---|
155 | position: absolute; |
---|
156 | top: 50%; |
---|
157 | left: -9999px; |
---|
158 | width: 30px; |
---|
159 | height: 30px; |
---|
160 | margin-top: -15px; |
---|
161 | cursor: pointer; |
---|
162 | z-index: 1102; |
---|
163 | display: block; |
---|
164 | } |
---|
165 | |
---|
166 | #fancybox-left-ico { |
---|
167 | background-image: url('fancybox.png'); |
---|
168 | background-position: -40px -30px; |
---|
169 | } |
---|
170 | |
---|
171 | #fancybox-right-ico { |
---|
172 | background-image: url('fancybox.png'); |
---|
173 | background-position: -40px -60px; |
---|
174 | } |
---|
175 | |
---|
176 | #fancybox-left:hover, #fancybox-right:hover { |
---|
177 | visibility: visible; /* IE6 */ |
---|
178 | } |
---|
179 | |
---|
180 | #fancybox-left:hover span { |
---|
181 | left: 20px; |
---|
182 | } |
---|
183 | |
---|
184 | #fancybox-right:hover span { |
---|
185 | left: auto; |
---|
186 | right: 20px; |
---|
187 | } |
---|
188 | |
---|
189 | .fancybox-bg { |
---|
190 | position: absolute; |
---|
191 | padding: 0; |
---|
192 | margin: 0; |
---|
193 | border: 0; |
---|
194 | width: 20px; |
---|
195 | height: 20px; |
---|
196 | z-index: 1001; |
---|
197 | } |
---|
198 | |
---|
199 | #fancybox-bg-n { |
---|
200 | top: -20px; |
---|
201 | left: 0; |
---|
202 | width: 100%; |
---|
203 | background-image: url('fancybox-x.png'); |
---|
204 | } |
---|
205 | |
---|
206 | #fancybox-bg-ne { |
---|
207 | top: -20px; |
---|
208 | right: -20px; |
---|
209 | background-image: url('fancybox.png'); |
---|
210 | background-position: -40px -162px; |
---|
211 | } |
---|
212 | |
---|
213 | #fancybox-bg-e { |
---|
214 | top: 0; |
---|
215 | right: -20px; |
---|
216 | height: 100%; |
---|
217 | background-image: url('fancybox-y.png'); |
---|
218 | background-position: -20px 0px; |
---|
219 | } |
---|
220 | |
---|
221 | #fancybox-bg-se { |
---|
222 | bottom: -20px; |
---|
223 | right: -20px; |
---|
224 | background-image: url('fancybox.png'); |
---|
225 | background-position: -40px -182px; |
---|
226 | } |
---|
227 | |
---|
228 | #fancybox-bg-s { |
---|
229 | bottom: -20px; |
---|
230 | left: 0; |
---|
231 | width: 100%; |
---|
232 | background-image: url('fancybox-x.png'); |
---|
233 | background-position: 0px -20px; |
---|
234 | } |
---|
235 | |
---|
236 | #fancybox-bg-sw { |
---|
237 | bottom: -20px; |
---|
238 | left: -20px; |
---|
239 | background-image: url('fancybox.png'); |
---|
240 | background-position: -40px -142px; |
---|
241 | } |
---|
242 | |
---|
243 | #fancybox-bg-w { |
---|
244 | top: 0; |
---|
245 | left: -20px; |
---|
246 | height: 100%; |
---|
247 | background-image: url('fancybox-y.png'); |
---|
248 | } |
---|
249 | |
---|
250 | #fancybox-bg-nw { |
---|
251 | top: -20px; |
---|
252 | left: -20px; |
---|
253 | background-image: url('fancybox.png'); |
---|
254 | background-position: -40px -122px; |
---|
255 | } |
---|
256 | |
---|
257 | #fancybox-title { |
---|
258 | font-family: Helvetica; |
---|
259 | font-size: 12px; |
---|
260 | z-index: 1102; |
---|
261 | } |
---|
262 | |
---|
263 | .fancybox-title-inside { |
---|
264 | padding-bottom: 10px; |
---|
265 | text-align: center; |
---|
266 | color: #333; |
---|
267 | background: #fff; |
---|
268 | position: relative; |
---|
269 | } |
---|
270 | |
---|
271 | .fancybox-title-outside { |
---|
272 | padding-top: 10px; |
---|
273 | color: #fff; |
---|
274 | } |
---|
275 | |
---|
276 | .fancybox-title-over { |
---|
277 | position: absolute; |
---|
278 | bottom: 0; |
---|
279 | left: 0; |
---|
280 | color: #FFF; |
---|
281 | text-align: left; |
---|
282 | } |
---|
283 | |
---|
284 | #fancybox-title-over { |
---|
285 | padding: 10px; |
---|
286 | background-image: url('fancy_title_over.png'); |
---|
287 | display: block; |
---|
288 | } |
---|
289 | |
---|
290 | .fancybox-title-float { |
---|
291 | position: absolute; |
---|
292 | left: 0; |
---|
293 | bottom: -20px; |
---|
294 | height: 32px; |
---|
295 | } |
---|
296 | |
---|
297 | #fancybox-title-float-wrap { |
---|
298 | border: none; |
---|
299 | border-collapse: collapse; |
---|
300 | width: auto; |
---|
301 | } |
---|
302 | |
---|
303 | #fancybox-title-float-wrap td { |
---|
304 | border: none; |
---|
305 | white-space: nowrap; |
---|
306 | } |
---|
307 | |
---|
308 | #fancybox-title-float-left { |
---|
309 | padding: 0 0 0 15px; |
---|
310 | background: url('fancybox.png') -40px -90px no-repeat; |
---|
311 | } |
---|
312 | |
---|
313 | #fancybox-title-float-main { |
---|
314 | color: #FFF; |
---|
315 | line-height: 29px; |
---|
316 | font-weight: bold; |
---|
317 | padding: 0 0 3px 0; |
---|
318 | background: url('fancybox-x.png') 0px -40px; |
---|
319 | } |
---|
320 | |
---|
321 | #fancybox-title-float-right { |
---|
322 | padding: 0 0 0 15px; |
---|
323 | background: url('fancybox.png') -55px -90px no-repeat; |
---|
324 | } |
---|
325 | |
---|
326 | /* IE6 */ |
---|
327 | |
---|
328 | /*.fancybox-ie6 #fancybox-close { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_close.png', sizingMethod='scale'); }*/ |
---|
329 | .fancybox-ie6 #fancybox-close { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/close_button.gif', sizingMethod='scale'); } |
---|
330 | |
---|
331 | .fancybox-ie6 #fancybox-left-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_left.png', sizingMethod='scale'); } |
---|
332 | .fancybox-ie6 #fancybox-right-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_right.png', sizingMethod='scale'); } |
---|
333 | |
---|
334 | .fancybox-ie6 #fancybox-title-over { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_over.png', sizingMethod='scale'); zoom: 1; } |
---|
335 | .fancybox-ie6 #fancybox-title-float-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_left.png', sizingMethod='scale'); } |
---|
336 | .fancybox-ie6 #fancybox-title-float-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_main.png', sizingMethod='scale'); } |
---|
337 | .fancybox-ie6 #fancybox-title-float-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_right.png', sizingMethod='scale'); } |
---|
338 | |
---|
339 | .fancybox-ie6 #fancybox-bg-w, .fancybox-ie6 #fancybox-bg-e, .fancybox-ie6 #fancybox-left, .fancybox-ie6 #fancybox-right, #fancybox-hide-sel-frame { |
---|
340 | height: expression(this.parentNode.clientHeight + "px"); |
---|
341 | } |
---|
342 | |
---|
343 | #fancybox-loading.fancybox-ie6 { |
---|
344 | position: absolute; margin-top: 0; |
---|
345 | top: expression( (-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop )) + 'px'); |
---|
346 | } |
---|
347 | |
---|
348 | #fancybox-loading.fancybox-ie6 div { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_loading.png', sizingMethod='scale'); } |
---|
349 | |
---|
350 | /* IE6, IE7, IE8 */ |
---|
351 | |
---|
352 | .fancybox-ie .fancybox-bg { background: transparent !important; } |
---|
353 | |
---|
354 | .fancybox-ie #fancybox-bg-n { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_n.png', sizingMethod='scale'); } |
---|
355 | .fancybox-ie #fancybox-bg-ne { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_ne.png', sizingMethod='scale'); } |
---|
356 | .fancybox-ie #fancybox-bg-e { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_e.png', sizingMethod='scale'); } |
---|
357 | .fancybox-ie #fancybox-bg-se { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_se.png', sizingMethod='scale'); } |
---|
358 | .fancybox-ie #fancybox-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_s.png', sizingMethod='scale'); } |
---|
359 | .fancybox-ie #fancybox-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_sw.png', sizingMethod='scale'); } |
---|
360 | .fancybox-ie #fancybox-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_w.png', sizingMethod='scale'); } |
---|
361 | .fancybox-ie #fancybox-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_nw.png', sizingMethod='scale'); } |
---|