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