ezy 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -2
- data/VERSION +1 -1
- data/ezy.gemspec +6 -2
- data/sass/ezy/_sprites.scss +13 -7
- data/test/css/sprites/layout.css +3 -4
- data/test/css/sprites/position.css +47 -10
- data/test/css/sprites/repeat.css +6 -8
- data/test/css/sprites/retina.css +7 -8
- data/test/css/sprites/simple.css +3 -4
- data/test/css/sprites/spacing.css +4 -5
- data/test/img/test-position-alt/goat.png +0 -0
- data/test/img/test-position-alt/icon-1.png +0 -0
- data/test/img/test-position-alt/icon-coffee.png +0 -0
- data/test/img/test-position-alt@2x/goat.png +0 -0
- data/test/img/test-position-alt@2x/icon-1.png +0 -0
- data/test/img/test-position-alt@2x/icon-coffee.png +0 -0
- data/test/scss/sprites/position.scss +45 -9
- metadata +20 -25
- data/test/img/test-layout.png +0 -0
- data/test/img/test-layout@2x.png +0 -0
- data/test/img/test-position.png +0 -0
- data/test/img/test-position@2x.png +0 -0
- data/test/img/test-repeat.png +0 -0
- data/test/img/test-repeat@2x.png +0 -0
- data/test/img/test-retina.png +0 -0
- data/test/img/test-retina@2x.png +0 -0
- data/test/img/test-simple.png +0 -0
- data/test/img/test-spacing.png +0 -0
- data/test/img/test-spacing@2x.png +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2db028b1b54ee4478a578c73861f6a2774c0c7e7
|
4
|
+
data.tar.gz: 8bdc70fb9e4bb8e24e8899c58cd79937d60887aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b893755fa359ce97acde2510107a7bc8251b96d946e0ec4cb1823a2d681deecbc83906420f7e6a2614342add619cb467e7c24d045cf6bdeb89aef7bf05a96086
|
7
|
+
data.tar.gz: 7edaf0a3bdd6578ae0886bc148ce1324168ecee35f0b688d08dfba33f7eed87fcfd69c3b992057cb5a759fbdbfcbd44f9654fdbb89f648c611134163a178d52f
|
data/README.md
CHANGED
@@ -24,6 +24,10 @@ Import grid only:
|
|
24
24
|
|
25
25
|
`@import "ezy/grid";`
|
26
26
|
|
27
|
+
Import media queries only:
|
28
|
+
|
29
|
+
`@import "ezy/media";`
|
30
|
+
|
27
31
|
Import sprites only:
|
28
32
|
|
29
33
|
`@import "ezy/sprites";`
|
@@ -82,9 +86,9 @@ Advanced use:
|
|
82
86
|
@include background-sprite(
|
83
87
|
$name: "icons", // (required) sprite name
|
84
88
|
$image: "git-fork", // (required) image to use
|
85
|
-
$use-retina: true, // (optional) wether to use retina on hi-res screens
|
86
89
|
$offset-x: 10px, // (optional) background offset x
|
87
|
-
$offset-y: 20px
|
90
|
+
$offset-y: 20px, // (optional) background offset y
|
91
|
+
$use-retina: true // (optional) wether to use retina on hi-res screens
|
88
92
|
);
|
89
93
|
}
|
90
94
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.6
|
data/ezy.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
# Release Specific Information
|
5
|
-
s.version = "0.0.
|
5
|
+
s.version = "0.0.7"
|
6
6
|
s.date = "2013-11-12"
|
7
7
|
|
8
8
|
# Gem Details
|
@@ -21,7 +21,11 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.files += Dir.glob("lib/**/*.*")
|
22
22
|
s.files += Dir.glob("sass/**/*.*")
|
23
23
|
s.files += Dir.glob("templates/**/*.*")
|
24
|
-
s.files += Dir.glob("test
|
24
|
+
s.files += Dir.glob("test/config.rb")
|
25
|
+
s.files += Dir.glob("test/css/**/*.*")
|
26
|
+
s.files += Dir.glob("test/scss/**/*.*")
|
27
|
+
s.files += Dir.glob("test/html/**/*.*")
|
28
|
+
s.files += Dir.glob("test/img/test-*/*.*")
|
25
29
|
|
26
30
|
# Gem Bookkeeping
|
27
31
|
s.rubygems_version = %q{1.3.6}
|
data/sass/ezy/_sprites.scss
CHANGED
@@ -222,7 +222,7 @@ $sprite-maps: ();
|
|
222
222
|
%sprite-placeholder-#{ $name } {
|
223
223
|
background-image: sprite-url( $sprite );
|
224
224
|
background-repeat: $repeat;
|
225
|
-
background-position-x: $position;
|
225
|
+
// background-position-x: $position;
|
226
226
|
}
|
227
227
|
%sprite-placeholder-#{ $name }-retina {
|
228
228
|
@if $sprite-retina {
|
@@ -233,9 +233,9 @@ $sprite-maps: ();
|
|
233
233
|
@if $repeat-retina != $repeat {
|
234
234
|
background-repeat: $repeat-retina;
|
235
235
|
}
|
236
|
-
@if $position-retina != $position {
|
237
|
-
|
238
|
-
}
|
236
|
+
// @if $position-retina != $position {
|
237
|
+
// background-position-x: $position-retina;
|
238
|
+
// }
|
239
239
|
}
|
240
240
|
}
|
241
241
|
}
|
@@ -252,8 +252,14 @@ $sprite-maps: ();
|
|
252
252
|
$image, // image to use
|
253
253
|
$offset-x: 0, // background offset x (optional)
|
254
254
|
$offset-y: 0, // background offset y (optional)
|
255
|
-
$use-retina: true
|
255
|
+
$use-retina: true, // wether to use retina on hi-res screens (optional)
|
256
|
+
$offset-x-retina: null, // background offset x on retina (optional)
|
257
|
+
$offset-y-retina: null // background offset y on retina (optional)
|
256
258
|
) {
|
259
|
+
|
260
|
+
@if $offset-x-retina == null { $offset-x-retina: $offset-x; }
|
261
|
+
@if $offset-y-retina == null { $offset-y-retina: $offset-y; }
|
262
|
+
|
257
263
|
$map: return-sprite-map( $name );
|
258
264
|
$retina-map: $use-retina;
|
259
265
|
@if $use-retina {
|
@@ -269,8 +275,8 @@ $sprite-maps: ();
|
|
269
275
|
@include at-retina {
|
270
276
|
/* Retina sprite */
|
271
277
|
$pos: sprite-position($retina-map, $image);
|
272
|
-
$pos-x: return-offset( nth( $pos, 1 )/2, $offset-x, "$offset-x must be a number, a pixel value or a percentage!" );
|
273
|
-
$pos-y: return-offset( nth( $pos, 2 )/2, $offset-y, "$offset-y must be a number, a pixel value or a percentage!" );
|
278
|
+
$pos-x: return-offset( nth( $pos, 1 )/2, $offset-x-retina, "$offset-x-retina must be a number, a pixel value or a percentage!" );
|
279
|
+
$pos-y: return-offset( nth( $pos, 2 )/2, $offset-y-retina, "$offset-y-retina must be a number, a pixel value or a percentage!" );
|
274
280
|
background-position: $pos-x $pos-y;
|
275
281
|
}
|
276
282
|
}
|
data/test/css/sprites/layout.css
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
.classic {
|
2
|
-
background-image: url('../../img/test-layout.png?
|
2
|
+
background-image: url('../../img/test-layout.png?19081384279708');
|
3
3
|
background-repeat: no-repeat;
|
4
|
-
background-position-x: 0%;
|
5
4
|
}
|
6
5
|
|
7
6
|
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
|
8
7
|
.classic {
|
9
8
|
/* Retina sprite */
|
10
|
-
background-image: url('../../img/test-layout@2x.png?
|
9
|
+
background-image: url('../../img/test-layout@2x.png?19081384279708');
|
11
10
|
background-size: 718px auto;
|
12
11
|
}
|
13
12
|
}
|
@@ -18,6 +17,6 @@
|
|
18
17
|
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
|
19
18
|
.classic {
|
20
19
|
/* Retina sprite */
|
21
|
-
background-position: -209px
|
20
|
+
background-position: -209px 0;
|
22
21
|
}
|
23
22
|
}
|
@@ -1,24 +1,61 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
/* -------------------------------------------------------------------- *
|
2
|
+
* Compiled 1x sprite has all images horizontally centered
|
3
|
+
* Compiled 2x sprite has all images aligned to the right
|
4
|
+
*/
|
5
|
+
.vertical {
|
6
|
+
background-image: url('../../img/test-position.png?19151384280136');
|
3
7
|
background-repeat: no-repeat;
|
4
|
-
background-position-x: 50%;
|
5
8
|
}
|
6
9
|
|
7
10
|
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
|
8
|
-
.
|
11
|
+
.vertical {
|
9
12
|
/* Retina sprite */
|
10
|
-
background-image: url('../../img/test-position@2x.png?
|
13
|
+
background-image: url('../../img/test-position@2x.png?19151384280136');
|
11
14
|
background-size: 281px auto;
|
12
|
-
background-position-x: 100%;
|
13
15
|
}
|
14
16
|
}
|
15
17
|
|
16
|
-
|
17
|
-
|
18
|
+
/* -------------------------------------------------------------------- *
|
19
|
+
* Compiled 1x sprite has all images vertically centered
|
20
|
+
* Compiled 2x sprite has all images aligned to the bottom
|
21
|
+
*/
|
22
|
+
.horizontal {
|
23
|
+
background-image: url('../../img/test-position-alt.png?19151384280136');
|
24
|
+
background-repeat: no-repeat;
|
25
|
+
}
|
26
|
+
|
27
|
+
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
|
28
|
+
.horizontal {
|
29
|
+
/* Retina sprite */
|
30
|
+
background-image: url('../../img/test-position-alt@2x.png?19151384280136');
|
31
|
+
background-size: 421px auto;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
/* -------------------------------------------------------------------- *
|
36
|
+
* Regular image has background centered
|
37
|
+
* Retina image has background aligned to the right
|
38
|
+
*/
|
39
|
+
.vertical {
|
40
|
+
background-position: 50% -200px;
|
41
|
+
}
|
42
|
+
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
|
43
|
+
.vertical {
|
44
|
+
/* Retina sprite */
|
45
|
+
background-position: 100% -200px;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
/* -------------------------------------------------------------------- *
|
50
|
+
* Regular image has background centered
|
51
|
+
* Retina image has background aligned to the right
|
52
|
+
*/
|
53
|
+
.horizontal {
|
54
|
+
background-position: -281px 50%;
|
18
55
|
}
|
19
56
|
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
|
20
|
-
.
|
57
|
+
.horizontal {
|
21
58
|
/* Retina sprite */
|
22
|
-
background-position: -
|
59
|
+
background-position: -281px 100%;
|
23
60
|
}
|
24
61
|
}
|
data/test/css/sprites/repeat.css
CHANGED
@@ -1,21 +1,19 @@
|
|
1
1
|
.meassure-1, .meassure-2, .meassure-3 {
|
2
|
-
background-image: url('../../img/test-repeat.png?
|
2
|
+
background-image: url('../../img/test-repeat.png?19081384279708');
|
3
3
|
background-repeat: repeat-x;
|
4
|
-
background-position-x: 0%;
|
5
4
|
}
|
6
5
|
|
7
6
|
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
|
8
7
|
.meassure-1, .meassure-2, .meassure-3 {
|
9
8
|
/* Retina sprite */
|
10
|
-
background-image: url('../../img/test-repeat@2x.png?
|
9
|
+
background-image: url('../../img/test-repeat@2x.png?19081384279708');
|
11
10
|
background-size: 378px auto;
|
12
11
|
background-repeat: no-repeat;
|
13
|
-
background-position-x: 100%;
|
14
12
|
}
|
15
13
|
}
|
16
14
|
|
17
15
|
.meassure-1 {
|
18
|
-
background-position:
|
16
|
+
background-position: 0 -100px;
|
19
17
|
width: 378px;
|
20
18
|
height: 50px;
|
21
19
|
}
|
@@ -27,7 +25,7 @@
|
|
27
25
|
}
|
28
26
|
|
29
27
|
.meassure-2 {
|
30
|
-
background-position:
|
28
|
+
background-position: 0 -50px;
|
31
29
|
width: 378px;
|
32
30
|
height: 50px;
|
33
31
|
}
|
@@ -39,13 +37,13 @@
|
|
39
37
|
}
|
40
38
|
|
41
39
|
.meassure-3 {
|
42
|
-
background-position:
|
40
|
+
background-position: 0 0;
|
43
41
|
width: 378px;
|
44
42
|
height: 50px;
|
45
43
|
}
|
46
44
|
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
|
47
45
|
.meassure-3 {
|
48
46
|
/* Retina sprite */
|
49
|
-
background-position:
|
47
|
+
background-position: 0 0;
|
50
48
|
}
|
51
49
|
}
|
data/test/css/sprites/retina.css
CHANGED
@@ -1,43 +1,42 @@
|
|
1
1
|
.classic, .indy, .alien {
|
2
|
-
background-image: url('../../img/test-retina.png?
|
2
|
+
background-image: url('../../img/test-retina.png?19081384279708');
|
3
3
|
background-repeat: no-repeat;
|
4
|
-
background-position-x: 0%;
|
5
4
|
}
|
6
5
|
|
7
6
|
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
|
8
7
|
.classic, .indy {
|
9
8
|
/* Retina sprite */
|
10
|
-
background-image: url('../../img/test-retina@2x.png?
|
9
|
+
background-image: url('../../img/test-retina@2x.png?19081384279708');
|
11
10
|
background-size: 152px auto;
|
12
11
|
}
|
13
12
|
}
|
14
13
|
|
15
14
|
.classic {
|
16
|
-
background-position:
|
15
|
+
background-position: 0 -281px;
|
17
16
|
width: 152px;
|
18
17
|
height: 135px;
|
19
18
|
}
|
20
19
|
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
|
21
20
|
.classic {
|
22
21
|
/* Retina sprite */
|
23
|
-
background-position:
|
22
|
+
background-position: 0 -140px;
|
24
23
|
}
|
25
24
|
}
|
26
25
|
|
27
26
|
.indy {
|
28
|
-
background-position:
|
27
|
+
background-position: 0 -141px;
|
29
28
|
width: 128px;
|
30
29
|
height: 140px;
|
31
30
|
}
|
32
31
|
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
|
33
32
|
.indy {
|
34
33
|
/* Retina sprite */
|
35
|
-
background-position:
|
34
|
+
background-position: 0 0;
|
36
35
|
}
|
37
36
|
}
|
38
37
|
|
39
38
|
.alien {
|
40
|
-
background-position:
|
39
|
+
background-position: 0 0;
|
41
40
|
width: 159px;
|
42
41
|
height: 141px;
|
43
42
|
}
|
data/test/css/sprites/simple.css
CHANGED
@@ -1,17 +1,16 @@
|
|
1
1
|
.classic, .indy {
|
2
|
-
background-image: url('../../img/test-simple.png?
|
2
|
+
background-image: url('../../img/test-simple.png?19081384279708');
|
3
3
|
background-repeat: no-repeat;
|
4
|
-
background-position-x: 0%;
|
5
4
|
}
|
6
5
|
|
7
6
|
.classic {
|
8
|
-
background-position:
|
7
|
+
background-position: 0 -281px;
|
9
8
|
width: 152px;
|
10
9
|
height: 135px;
|
11
10
|
}
|
12
11
|
|
13
12
|
.indy {
|
14
|
-
background-position:
|
13
|
+
background-position: 0 -141px;
|
15
14
|
width: 128px;
|
16
15
|
height: 140px;
|
17
16
|
}
|
@@ -1,23 +1,22 @@
|
|
1
1
|
.classic {
|
2
|
-
background-image: url('../../img/test-spacing.png?
|
2
|
+
background-image: url('../../img/test-spacing.png?19081384279708');
|
3
3
|
background-repeat: no-repeat;
|
4
|
-
background-position-x: 0%;
|
5
4
|
}
|
6
5
|
|
7
6
|
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
|
8
7
|
.classic {
|
9
8
|
/* Retina sprite */
|
10
|
-
background-image: url('../../img/test-spacing@2x.png?
|
9
|
+
background-image: url('../../img/test-spacing@2x.png?19081384279708');
|
11
10
|
background-size: 159px auto;
|
12
11
|
}
|
13
12
|
}
|
14
13
|
|
15
14
|
.classic {
|
16
|
-
background-position:
|
15
|
+
background-position: 0 -381px;
|
17
16
|
}
|
18
17
|
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
|
19
18
|
.classic {
|
20
19
|
/* Retina sprite */
|
21
|
-
background-position:
|
20
|
+
background-position: 0 -481px;
|
22
21
|
}
|
23
22
|
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -3,21 +3,57 @@
|
|
3
3
|
|
4
4
|
@import "../../../sass/ezy/sprites";
|
5
5
|
|
6
|
-
|
7
|
-
|
6
|
+
/* -------------------------------------------------------------------- *
|
7
|
+
* Compiled 1x sprite has all images horizontally centered
|
8
|
+
* Compiled 2x sprite has all images aligned to the right
|
9
|
+
*/
|
8
10
|
|
9
11
|
@include make-sprite(
|
10
|
-
$name: "
|
12
|
+
$name: "vertical",
|
11
13
|
$folder: "test-position",
|
12
14
|
$folder-retina: "test-position@2x",
|
13
15
|
$position: 50%,
|
14
|
-
$position-retina: 100
|
15
|
-
$clean-up: false
|
16
|
+
$position-retina: 100%
|
16
17
|
);
|
17
18
|
|
18
|
-
|
19
|
-
|
19
|
+
/* -------------------------------------------------------------------- *
|
20
|
+
* Compiled 1x sprite has all images vertically centered
|
21
|
+
* Compiled 2x sprite has all images aligned to the bottom
|
22
|
+
*/
|
23
|
+
|
24
|
+
@include make-sprite(
|
25
|
+
$name: "horizontal",
|
26
|
+
$folder: "test-position-alt",
|
27
|
+
$folder-retina: "test-position-alt@2x",
|
28
|
+
$layout: horizontal,
|
29
|
+
$position: 50%,
|
30
|
+
$position-retina: 100%
|
31
|
+
);
|
32
|
+
|
33
|
+
/* -------------------------------------------------------------------- *
|
34
|
+
* Regular image has background centered
|
35
|
+
* Retina image has background aligned to the right
|
36
|
+
*/
|
37
|
+
|
38
|
+
.vertical {
|
39
|
+
@include background-sprite(
|
40
|
+
$name: "vertical",
|
41
|
+
$image: "icon-coffee",
|
42
|
+
$offset-x: 50%,
|
43
|
+
$offset-x-retina: 100%
|
44
|
+
);
|
45
|
+
}
|
46
|
+
|
47
|
+
/* -------------------------------------------------------------------- *
|
48
|
+
* Regular image has background centered
|
49
|
+
* Retina image has background aligned to the right
|
50
|
+
*/
|
20
51
|
|
21
|
-
.
|
22
|
-
@include background-sprite(
|
52
|
+
.horizontal {
|
53
|
+
@include background-sprite(
|
54
|
+
$name: "horizontal",
|
55
|
+
$image: "icon-1",
|
56
|
+
$offset-y: 50%,
|
57
|
+
$offset-y-retina: 100%
|
58
|
+
);
|
23
59
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ezy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frej Raahede Nielsen
|
@@ -73,65 +73,60 @@ files:
|
|
73
73
|
- test/css/sprites/simple.css
|
74
74
|
- test/css/sprites/size.css
|
75
75
|
- test/css/sprites/spacing.css
|
76
|
+
- test/scss/grid/elastic.scss
|
77
|
+
- test/scss/grid/fluid.scss
|
78
|
+
- test/scss/grid/gutter.scss
|
79
|
+
- test/scss/grid/responsive.scss
|
80
|
+
- test/scss/grid/static.scss
|
81
|
+
- test/scss/media.scss
|
82
|
+
- test/scss/sprites/layout.scss
|
83
|
+
- test/scss/sprites/position.scss
|
84
|
+
- test/scss/sprites/repeat.scss
|
85
|
+
- test/scss/sprites/retina.scss
|
86
|
+
- test/scss/sprites/simple.scss
|
87
|
+
- test/scss/sprites/size.scss
|
88
|
+
- test/scss/sprites/spacing.scss
|
76
89
|
- test/html/sprites/repeat.html
|
77
90
|
- test/html/sprites/retina.html
|
78
91
|
- test/html/sprites/simple.html
|
79
92
|
- test/img/test-layout/alien.png
|
80
93
|
- test/img/test-layout/goat.png
|
81
94
|
- test/img/test-layout/indy.png
|
82
|
-
- test/img/test-layout.png
|
83
95
|
- test/img/test-layout@2x/alien.png
|
84
96
|
- test/img/test-layout@2x/goat.png
|
85
97
|
- test/img/test-layout@2x/indy.png
|
86
|
-
- test/img/test-layout@2x.png
|
87
98
|
- test/img/test-position/goat.png
|
88
99
|
- test/img/test-position/icon-1.png
|
89
100
|
- test/img/test-position/icon-coffee.png
|
90
|
-
- test/img/test-position.png
|
101
|
+
- test/img/test-position-alt/goat.png
|
102
|
+
- test/img/test-position-alt/icon-1.png
|
103
|
+
- test/img/test-position-alt/icon-coffee.png
|
104
|
+
- test/img/test-position-alt@2x/goat.png
|
105
|
+
- test/img/test-position-alt@2x/icon-1.png
|
106
|
+
- test/img/test-position-alt@2x/icon-coffee.png
|
91
107
|
- test/img/test-position@2x/goat.png
|
92
108
|
- test/img/test-position@2x/icon-1.png
|
93
109
|
- test/img/test-position@2x/icon-coffee.png
|
94
|
-
- test/img/test-position@2x.png
|
95
110
|
- test/img/test-repeat/meassure-1.png
|
96
111
|
- test/img/test-repeat/meassure-2.png
|
97
112
|
- test/img/test-repeat/meassure-3.png
|
98
|
-
- test/img/test-repeat.png
|
99
113
|
- test/img/test-repeat@2x/meassure-1.png
|
100
114
|
- test/img/test-repeat@2x/meassure-2.png
|
101
115
|
- test/img/test-repeat@2x/meassure-3.png
|
102
|
-
- test/img/test-repeat@2x.png
|
103
116
|
- test/img/test-retina/alien.png
|
104
117
|
- test/img/test-retina/classic.png
|
105
118
|
- test/img/test-retina/indy.png
|
106
|
-
- test/img/test-retina.png
|
107
119
|
- test/img/test-retina@2x/classic.png
|
108
120
|
- test/img/test-retina@2x/indy.png
|
109
|
-
- test/img/test-retina@2x.png
|
110
121
|
- test/img/test-simple/alien.png
|
111
122
|
- test/img/test-simple/classic.png
|
112
123
|
- test/img/test-simple/indy.png
|
113
|
-
- test/img/test-simple.png
|
114
124
|
- test/img/test-spacing/alien.png
|
115
125
|
- test/img/test-spacing/classic.png
|
116
126
|
- test/img/test-spacing/indy.png
|
117
|
-
- test/img/test-spacing.png
|
118
127
|
- test/img/test-spacing@2x/alien.png
|
119
128
|
- test/img/test-spacing@2x/classic.png
|
120
129
|
- test/img/test-spacing@2x/indy.png
|
121
|
-
- test/img/test-spacing@2x.png
|
122
|
-
- test/scss/grid/elastic.scss
|
123
|
-
- test/scss/grid/fluid.scss
|
124
|
-
- test/scss/grid/gutter.scss
|
125
|
-
- test/scss/grid/responsive.scss
|
126
|
-
- test/scss/grid/static.scss
|
127
|
-
- test/scss/media.scss
|
128
|
-
- test/scss/sprites/layout.scss
|
129
|
-
- test/scss/sprites/position.scss
|
130
|
-
- test/scss/sprites/repeat.scss
|
131
|
-
- test/scss/sprites/retina.scss
|
132
|
-
- test/scss/sprites/simple.scss
|
133
|
-
- test/scss/sprites/size.scss
|
134
|
-
- test/scss/sprites/spacing.scss
|
135
130
|
homepage: http://github.com/raahede/
|
136
131
|
licenses:
|
137
132
|
- MIT
|
data/test/img/test-layout.png
DELETED
Binary file
|
data/test/img/test-layout@2x.png
DELETED
Binary file
|
data/test/img/test-position.png
DELETED
Binary file
|
Binary file
|
data/test/img/test-repeat.png
DELETED
Binary file
|
data/test/img/test-repeat@2x.png
DELETED
Binary file
|
data/test/img/test-retina.png
DELETED
Binary file
|
data/test/img/test-retina@2x.png
DELETED
Binary file
|
data/test/img/test-simple.png
DELETED
Binary file
|
data/test/img/test-spacing.png
DELETED
Binary file
|
Binary file
|