compass-fancybox-plugin 1.3.1.pre.1 → 1.3.1.pre.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/stylesheets/_fancybox.scss +20 -10
  2. metadata +11 -4
@@ -13,6 +13,7 @@
13
13
  // http://www.opensource.org/licenses/mit-license.php
14
14
  // http://www.gnu.org/licenses/gpl.html
15
15
 
16
+ $fancy-box-preload: true !default;
16
17
 
17
18
  #fancybox-loading {
18
19
  position: fixed;
@@ -33,13 +34,22 @@
33
34
  margin-top: 0;
34
35
  }
35
36
 
37
+ .fancybox-sprite {
38
+ @if $fancy-box-preload {
39
+ background-image: inline-image('fancybox/fancybox.png');
40
+ }
41
+ @else {
42
+ background-image: image-url('fancybox/fancybox.png');
43
+ }
44
+ }
45
+
36
46
  #fancybox-loading div {
47
+ @extend .fancybox-sprite;
37
48
  position: absolute;
38
49
  top: 0;
39
50
  left: 0;
40
51
  width: 40px;
41
52
  height: 480px;
42
- background-image: image-url('fancybox/fancybox.png');
43
53
  }
44
54
 
45
55
  #fancybox-overlay {
@@ -110,7 +120,7 @@
110
120
  right: -15px;
111
121
  width: 30px;
112
122
  height: 30px;
113
- background-image: image-url('fancybox/fancybox.png');
123
+ @extend .fancybox-sprite;
114
124
  background-position: -40px 0px;
115
125
  cursor: pointer;
116
126
  z-index: 1103;
@@ -195,7 +205,7 @@
195
205
 
196
206
  #fancybox-title-left {
197
207
  padding-left: 15px;
198
- background-image: image-url('fancybox/fancybox.png');
208
+ @extend .fancybox-sprite;
199
209
  background-position: -40px -90px;
200
210
  background-repeat: no-repeat;
201
211
  }
@@ -210,7 +220,7 @@
210
220
 
211
221
  #fancybox-title-right {
212
222
  padding-left: 15px;
213
- background-image: image-url('fancybox/fancybox.png');
223
+ @extend .fancybox-sprite;
214
224
  background-position: -55px -90px;
215
225
  background-repeat: no-repeat;
216
226
  }
@@ -248,12 +258,12 @@
248
258
  }
249
259
 
250
260
  #fancybox-left-ico {
251
- background-image: image-url('fancybox/fancybox.png');
261
+ @extend .fancybox-sprite;
252
262
  background-position: -40px -30px;
253
263
  }
254
264
 
255
265
  #fancybox-right-ico {
256
- background-image: image-url('fancybox/fancybox.png');
266
+ @extend .fancybox-sprite;
257
267
  background-position: -40px -60px;
258
268
  }
259
269
 
@@ -290,7 +300,7 @@
290
300
  #fancy-bg-ne {
291
301
  top: -20px;
292
302
  right: -20px;
293
- background-image: image-url('fancybox/fancybox.png');
303
+ @extend .fancybox-sprite;
294
304
  background-position: -40px -162px;
295
305
  }
296
306
 
@@ -305,7 +315,7 @@
305
315
  #fancy-bg-se {
306
316
  bottom: -20px;
307
317
  right: -20px;
308
- background-image: image-url('fancybox/fancybox.png');
318
+ @extend .fancybox-sprite;
309
319
  background-position: -40px -182px;
310
320
  }
311
321
 
@@ -320,7 +330,7 @@
320
330
  #fancy-bg-sw {
321
331
  bottom: -20px;
322
332
  left: -20px;
323
- background-image: image-url('fancybox/fancybox.png');
333
+ @extend .fancybox-sprite;
324
334
  background-position: -40px -142px;
325
335
  }
326
336
 
@@ -334,7 +344,7 @@
334
344
  #fancy-bg-nw {
335
345
  top: -20px;
336
346
  left: -20px;
337
- background-image: image-url('fancybox/fancybox.png');
347
+ @extend .fancybox-sprite;
338
348
  background-position: -40px -122px;
339
349
  }
340
350
 
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compass-fancybox-plugin
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 1923831989
4
5
  prerelease: true
5
6
  segments:
6
7
  - 1
7
8
  - 3
8
9
  - 1
9
10
  - pre
10
- - 1
11
- version: 1.3.1.pre.1
11
+ - 2
12
+ version: 1.3.1.pre.2
12
13
  platform: ruby
13
14
  authors:
14
15
  - Janis Skarnelis
@@ -24,9 +25,11 @@ dependencies:
24
25
  name: compass
25
26
  prerelease: false
26
27
  requirement: &id001 !ruby/object:Gem::Requirement
28
+ none: false
27
29
  requirements:
28
30
  - - ">="
29
31
  - !ruby/object:Gem::Version
32
+ hash: 1923831851
30
33
  segments:
31
34
  - 0
32
35
  - 10
@@ -75,7 +78,7 @@ files:
75
78
  - templates/project/jquery.mousewheel-3.0.2.pack.js
76
79
  - templates/project/manifest.rb
77
80
  has_rdoc: false
78
- homepage: http://github.com/chriseppstein/fancybox
81
+ homepage: http://github.com/chriseppstein/fancy-box
79
82
  licenses: []
80
83
 
81
84
  post_install_message:
@@ -84,16 +87,20 @@ rdoc_options: []
84
87
  require_paths:
85
88
  - lib
86
89
  required_ruby_version: !ruby/object:Gem::Requirement
90
+ none: false
87
91
  requirements:
88
92
  - - ">="
89
93
  - !ruby/object:Gem::Version
94
+ hash: 3
90
95
  segments:
91
96
  - 0
92
97
  version: "0"
93
98
  required_rubygems_version: !ruby/object:Gem::Requirement
99
+ none: false
94
100
  requirements:
95
101
  - - ">"
96
102
  - !ruby/object:Gem::Version
103
+ hash: 25
97
104
  segments:
98
105
  - 1
99
106
  - 3
@@ -102,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
109
  requirements: []
103
110
 
104
111
  rubyforge_project:
105
- rubygems_version: 1.3.6
112
+ rubygems_version: 1.3.7
106
113
  signing_key:
107
114
  specification_version: 3
108
115
  summary: Simplified installation of Fancybox for Compass users