ezy 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/ezy.gemspec +2 -2
- data/sass/_ezy.scss +5 -4
- data/sass/ezy/_grid.scss +6 -0
- data/sass/ezy/_sprites.scss +289 -0
- data/test/config.rb +30 -0
- data/test/css/media.css +0 -5
- data/test/css/sprites/layout.css +23 -0
- data/test/css/sprites/position.css +24 -0
- data/test/css/sprites/repeat.css +51 -0
- data/test/css/sprites/retina.css +43 -0
- data/test/css/sprites/simple.css +17 -0
- data/test/css/sprites/size.css +65 -0
- data/test/css/sprites/spacing.css +23 -0
- data/test/html/sprites/repeat.html +19 -0
- data/test/html/sprites/retina.html +19 -0
- data/test/html/sprites/simple.html +18 -0
- data/test/img/test-layout.png +0 -0
- data/test/img/test-layout/alien.png +0 -0
- data/test/img/test-layout/goat.png +0 -0
- data/test/img/test-layout/indy.png +0 -0
- data/test/img/test-layout@2x.png +0 -0
- data/test/img/test-layout@2x/alien.png +0 -0
- data/test/img/test-layout@2x/goat.png +0 -0
- data/test/img/test-layout@2x/indy.png +0 -0
- data/test/img/test-position.png +0 -0
- data/test/img/test-position/goat.png +0 -0
- data/test/img/test-position/icon-1.png +0 -0
- data/test/img/test-position/icon-coffee.png +0 -0
- data/test/img/test-position@2x.png +0 -0
- data/test/img/test-position@2x/goat.png +0 -0
- data/test/img/test-position@2x/icon-1.png +0 -0
- data/test/img/test-position@2x/icon-coffee.png +0 -0
- data/test/img/test-repeat.png +0 -0
- data/test/img/test-repeat/meassure-1.png +0 -0
- data/test/img/test-repeat/meassure-2.png +0 -0
- data/test/img/test-repeat/meassure-3.png +0 -0
- data/test/img/test-repeat@2x.png +0 -0
- data/test/img/test-repeat@2x/meassure-1.png +0 -0
- data/test/img/test-repeat@2x/meassure-2.png +0 -0
- data/test/img/test-repeat@2x/meassure-3.png +0 -0
- data/test/img/test-retina.png +0 -0
- data/test/img/test-retina/alien.png +0 -0
- data/test/img/test-retina/classic.png +0 -0
- data/test/img/test-retina/indy.png +0 -0
- data/test/img/test-retina@2x.png +0 -0
- data/test/img/test-retina@2x/classic.png +0 -0
- data/test/img/test-retina@2x/indy.png +0 -0
- data/test/img/test-simple.png +0 -0
- data/test/img/test-simple/alien.png +0 -0
- data/test/img/test-simple/classic.png +0 -0
- data/test/img/test-simple/indy.png +0 -0
- data/test/img/test-spacing.png +0 -0
- data/test/img/test-spacing/alien.png +0 -0
- data/test/img/test-spacing/classic.png +0 -0
- data/test/img/test-spacing/indy.png +0 -0
- data/test/img/test-spacing@2x.png +0 -0
- data/test/img/test-spacing@2x/alien.png +0 -0
- data/test/img/test-spacing@2x/classic.png +0 -0
- data/test/img/test-spacing@2x/indy.png +0 -0
- data/test/scss/grid/elastic.scss +2 -1
- data/test/scss/grid/fluid.scss +1 -1
- data/test/scss/grid/gutter.scss +1 -1
- data/test/scss/grid/responsive.scss +2 -1
- data/test/scss/grid/static.scss +1 -1
- data/test/scss/media.scss +1 -1
- data/test/scss/sprites/layout.scss +23 -0
- data/test/scss/sprites/position.scss +23 -0
- data/test/scss/sprites/repeat.scss +34 -0
- data/test/scss/sprites/retina.scss +44 -0
- data/test/scss/sprites/simple.scss +30 -0
- data/test/scss/sprites/size.scss +85 -0
- data/test/scss/sprites/spacing.scss +22 -0
- metadata +63 -2
@@ -0,0 +1,43 @@
|
|
1
|
+
.classic, .indy, .alien {
|
2
|
+
background-image: url('../../img/test-retina.png?23071384207639');
|
3
|
+
background-repeat: no-repeat;
|
4
|
+
background-position-x: 0%;
|
5
|
+
}
|
6
|
+
|
7
|
+
@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
|
+
.classic, .indy {
|
9
|
+
/* Retina sprite */
|
10
|
+
background-image: url('../../img/test-retina@2x.png?23071384207639');
|
11
|
+
background-size: 152px auto;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
.classic {
|
16
|
+
background-position: 0px -281px;
|
17
|
+
width: 152px;
|
18
|
+
height: 135px;
|
19
|
+
}
|
20
|
+
@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
|
+
.classic {
|
22
|
+
/* Retina sprite */
|
23
|
+
background-position: 0px -140px;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
.indy {
|
28
|
+
background-position: 0px -141px;
|
29
|
+
width: 128px;
|
30
|
+
height: 140px;
|
31
|
+
}
|
32
|
+
@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
|
+
.indy {
|
34
|
+
/* Retina sprite */
|
35
|
+
background-position: 0px 0px;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
.alien {
|
40
|
+
background-position: 0px 0px;
|
41
|
+
width: 159px;
|
42
|
+
height: 141px;
|
43
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
.classic, .indy {
|
2
|
+
background-image: url('../../img/test-simple.png?23071384207639');
|
3
|
+
background-repeat: no-repeat;
|
4
|
+
background-position-x: 0%;
|
5
|
+
}
|
6
|
+
|
7
|
+
.classic {
|
8
|
+
background-position: 0px -281px;
|
9
|
+
width: 152px;
|
10
|
+
height: 135px;
|
11
|
+
}
|
12
|
+
|
13
|
+
.indy {
|
14
|
+
background-position: 0px -141px;
|
15
|
+
width: 128px;
|
16
|
+
height: 140px;
|
17
|
+
}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
/* -------------------------------------------------------------------- *
|
2
|
+
* Sprite image width and height
|
3
|
+
*/
|
4
|
+
.classic {
|
5
|
+
width: 152px;
|
6
|
+
height: 135px;
|
7
|
+
}
|
8
|
+
|
9
|
+
/* Getting dimensons from mixin */
|
10
|
+
.classic-2 {
|
11
|
+
width: 152px;
|
12
|
+
height: 135px;
|
13
|
+
}
|
14
|
+
|
15
|
+
.indy {
|
16
|
+
width: 128px;
|
17
|
+
height: 140px;
|
18
|
+
}
|
19
|
+
|
20
|
+
/* Getting dimensons from mixin */
|
21
|
+
.indy-2 {
|
22
|
+
width: 128px;
|
23
|
+
height: 140px;
|
24
|
+
}
|
25
|
+
|
26
|
+
/* -------------------------------------------------------------------- *
|
27
|
+
* Retina sprite image width and height
|
28
|
+
*/
|
29
|
+
.classic {
|
30
|
+
width: 304px;
|
31
|
+
height: 270px;
|
32
|
+
}
|
33
|
+
|
34
|
+
/* Getting dimensons from mixin */
|
35
|
+
.classic-2 {
|
36
|
+
width: 304px;
|
37
|
+
height: 270px;
|
38
|
+
}
|
39
|
+
|
40
|
+
.indy {
|
41
|
+
width: 256px;
|
42
|
+
height: 280px;
|
43
|
+
}
|
44
|
+
|
45
|
+
/* Getting dimensons from mixin */
|
46
|
+
.indy-2 {
|
47
|
+
width: 256px;
|
48
|
+
height: 280px;
|
49
|
+
}
|
50
|
+
|
51
|
+
/* -------------------------------------------------------------------- *
|
52
|
+
* Full sprite width / height
|
53
|
+
*/
|
54
|
+
.sprite {
|
55
|
+
width: 159px;
|
56
|
+
height: 416px;
|
57
|
+
}
|
58
|
+
|
59
|
+
/* -------------------------------------------------------------------- *
|
60
|
+
* Full retina sprite width / height
|
61
|
+
*/
|
62
|
+
.sprite-retina {
|
63
|
+
width: 304px;
|
64
|
+
height: 550px;
|
65
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
.classic {
|
2
|
+
background-image: url('../../img/test-spacing.png?23071384207640');
|
3
|
+
background-repeat: no-repeat;
|
4
|
+
background-position-x: 0%;
|
5
|
+
}
|
6
|
+
|
7
|
+
@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
|
+
.classic {
|
9
|
+
/* Retina sprite */
|
10
|
+
background-image: url('../../img/test-spacing@2x.png?23071384207640');
|
11
|
+
background-size: 159px auto;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
.classic {
|
16
|
+
background-position: 0px -381px;
|
17
|
+
}
|
18
|
+
@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
|
+
.classic {
|
20
|
+
/* Retina sprite */
|
21
|
+
background-position: 0px -481px;
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
|
6
|
+
<title>Sprite: repeat</title>
|
7
|
+
|
8
|
+
<meta name="description" content="Ezy Grid Demo">
|
9
|
+
<meta name="viewport" content="width=device-width">
|
10
|
+
|
11
|
+
<link href="../../css/sprites/repeat.css" rel="stylesheet">
|
12
|
+
|
13
|
+
</head>
|
14
|
+
<body>
|
15
|
+
<div class="meassure-1"> </div>
|
16
|
+
<div class="meassure-2"> </div>
|
17
|
+
<div class="meassure-3"> </div>
|
18
|
+
</body>
|
19
|
+
</html>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
|
6
|
+
<title>Sprite: retina</title>
|
7
|
+
|
8
|
+
<meta name="description" content="Ezy Grid Demo">
|
9
|
+
<meta name="viewport" content="width=device-width">
|
10
|
+
|
11
|
+
<link href="../../css/sprites/retina.css" rel="stylesheet">
|
12
|
+
|
13
|
+
</head>
|
14
|
+
<body>
|
15
|
+
<div class="classic"> </div>
|
16
|
+
<div class="indy"> </div>
|
17
|
+
<div class="alien"> </div>
|
18
|
+
</body>
|
19
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
|
6
|
+
<title>Sprite: simple</title>
|
7
|
+
|
8
|
+
<meta name="description" content="Ezy Grid Demo">
|
9
|
+
<meta name="viewport" content="width=device-width">
|
10
|
+
|
11
|
+
<link href="../../css/sprites/simple.css" rel="stylesheet">
|
12
|
+
|
13
|
+
</head>
|
14
|
+
<body>
|
15
|
+
<div class="classic"> </div>
|
16
|
+
<div class="indy"> </div>
|
17
|
+
</body>
|
18
|
+
</html>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/test/scss/grid/elastic.scss
CHANGED
data/test/scss/grid/fluid.scss
CHANGED
data/test/scss/grid/gutter.scss
CHANGED
data/test/scss/grid/static.scss
CHANGED
data/test/scss/media.scss
CHANGED
@@ -0,0 +1,23 @@
|
|
1
|
+
// ---------------------------------------------------------------------------
|
2
|
+
// Imports
|
3
|
+
|
4
|
+
@import "../../../sass/ezy/sprites";
|
5
|
+
|
6
|
+
// ---------------------------------------------------------------------------
|
7
|
+
// Create sprite
|
8
|
+
|
9
|
+
@include make-sprite(
|
10
|
+
$name: "base",
|
11
|
+
$folder: "test-layout",
|
12
|
+
$folder-retina: "test-layout@2x",
|
13
|
+
$spacing: 50px,
|
14
|
+
$layout: diagonal,
|
15
|
+
$layout-retina: horizontal
|
16
|
+
);
|
17
|
+
|
18
|
+
// ---------------------------------------------------------------------------
|
19
|
+
// Calling sprite so it will compile
|
20
|
+
|
21
|
+
.classic {
|
22
|
+
@include background-sprite( "base", "goat" );
|
23
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
// ---------------------------------------------------------------------------
|
2
|
+
// Imports
|
3
|
+
|
4
|
+
@import "../../../sass/ezy/sprites";
|
5
|
+
|
6
|
+
// ---------------------------------------------------------------------------
|
7
|
+
// Create sprite
|
8
|
+
|
9
|
+
@include make-sprite(
|
10
|
+
$name: "base",
|
11
|
+
$folder: "test-position",
|
12
|
+
$folder-retina: "test-position@2x",
|
13
|
+
$position: 50%,
|
14
|
+
$position-retina: 100%,
|
15
|
+
$clean-up: false
|
16
|
+
);
|
17
|
+
|
18
|
+
// ---------------------------------------------------------------------------
|
19
|
+
// Calling sprite so it will compile
|
20
|
+
|
21
|
+
.classic {
|
22
|
+
@include background-sprite( "base", "icon-coffee" );
|
23
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
// ---------------------------------------------------------------------------
|
2
|
+
// Imports
|
3
|
+
|
4
|
+
@import "../../../sass/ezy/sprites";
|
5
|
+
|
6
|
+
// ---------------------------------------------------------------------------
|
7
|
+
// Create sprite
|
8
|
+
|
9
|
+
@include make-sprite(
|
10
|
+
$name: "base",
|
11
|
+
$folder: "test-repeat",
|
12
|
+
$folder-retina: "test-repeat@2x",
|
13
|
+
$repeat: repeat-x,
|
14
|
+
$repeat-retina: no-repeat,
|
15
|
+
$position-retina: 100%
|
16
|
+
);
|
17
|
+
|
18
|
+
// ---------------------------------------------------------------------------
|
19
|
+
// Calling sprite so it will compile
|
20
|
+
|
21
|
+
.meassure-1 {
|
22
|
+
@include background-sprite( "base", "meassure-1" );
|
23
|
+
@include sprite-image-dimensions( "base", "meassure-3" );
|
24
|
+
}
|
25
|
+
|
26
|
+
.meassure-2 {
|
27
|
+
@include background-sprite( "base", "meassure-2" );
|
28
|
+
@include sprite-image-dimensions( "base", "meassure-3" );
|
29
|
+
}
|
30
|
+
|
31
|
+
.meassure-3 {
|
32
|
+
@include background-sprite( "base", "meassure-3" );
|
33
|
+
@include sprite-image-dimensions( "base", "meassure-3" );
|
34
|
+
}
|