ezy 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/ezy.gemspec +2 -2
  4. data/sass/_ezy.scss +5 -4
  5. data/sass/ezy/_grid.scss +6 -0
  6. data/sass/ezy/_sprites.scss +289 -0
  7. data/test/config.rb +30 -0
  8. data/test/css/media.css +0 -5
  9. data/test/css/sprites/layout.css +23 -0
  10. data/test/css/sprites/position.css +24 -0
  11. data/test/css/sprites/repeat.css +51 -0
  12. data/test/css/sprites/retina.css +43 -0
  13. data/test/css/sprites/simple.css +17 -0
  14. data/test/css/sprites/size.css +65 -0
  15. data/test/css/sprites/spacing.css +23 -0
  16. data/test/html/sprites/repeat.html +19 -0
  17. data/test/html/sprites/retina.html +19 -0
  18. data/test/html/sprites/simple.html +18 -0
  19. data/test/img/test-layout.png +0 -0
  20. data/test/img/test-layout/alien.png +0 -0
  21. data/test/img/test-layout/goat.png +0 -0
  22. data/test/img/test-layout/indy.png +0 -0
  23. data/test/img/test-layout@2x.png +0 -0
  24. data/test/img/test-layout@2x/alien.png +0 -0
  25. data/test/img/test-layout@2x/goat.png +0 -0
  26. data/test/img/test-layout@2x/indy.png +0 -0
  27. data/test/img/test-position.png +0 -0
  28. data/test/img/test-position/goat.png +0 -0
  29. data/test/img/test-position/icon-1.png +0 -0
  30. data/test/img/test-position/icon-coffee.png +0 -0
  31. data/test/img/test-position@2x.png +0 -0
  32. data/test/img/test-position@2x/goat.png +0 -0
  33. data/test/img/test-position@2x/icon-1.png +0 -0
  34. data/test/img/test-position@2x/icon-coffee.png +0 -0
  35. data/test/img/test-repeat.png +0 -0
  36. data/test/img/test-repeat/meassure-1.png +0 -0
  37. data/test/img/test-repeat/meassure-2.png +0 -0
  38. data/test/img/test-repeat/meassure-3.png +0 -0
  39. data/test/img/test-repeat@2x.png +0 -0
  40. data/test/img/test-repeat@2x/meassure-1.png +0 -0
  41. data/test/img/test-repeat@2x/meassure-2.png +0 -0
  42. data/test/img/test-repeat@2x/meassure-3.png +0 -0
  43. data/test/img/test-retina.png +0 -0
  44. data/test/img/test-retina/alien.png +0 -0
  45. data/test/img/test-retina/classic.png +0 -0
  46. data/test/img/test-retina/indy.png +0 -0
  47. data/test/img/test-retina@2x.png +0 -0
  48. data/test/img/test-retina@2x/classic.png +0 -0
  49. data/test/img/test-retina@2x/indy.png +0 -0
  50. data/test/img/test-simple.png +0 -0
  51. data/test/img/test-simple/alien.png +0 -0
  52. data/test/img/test-simple/classic.png +0 -0
  53. data/test/img/test-simple/indy.png +0 -0
  54. data/test/img/test-spacing.png +0 -0
  55. data/test/img/test-spacing/alien.png +0 -0
  56. data/test/img/test-spacing/classic.png +0 -0
  57. data/test/img/test-spacing/indy.png +0 -0
  58. data/test/img/test-spacing@2x.png +0 -0
  59. data/test/img/test-spacing@2x/alien.png +0 -0
  60. data/test/img/test-spacing@2x/classic.png +0 -0
  61. data/test/img/test-spacing@2x/indy.png +0 -0
  62. data/test/scss/grid/elastic.scss +2 -1
  63. data/test/scss/grid/fluid.scss +1 -1
  64. data/test/scss/grid/gutter.scss +1 -1
  65. data/test/scss/grid/responsive.scss +2 -1
  66. data/test/scss/grid/static.scss +1 -1
  67. data/test/scss/media.scss +1 -1
  68. data/test/scss/sprites/layout.scss +23 -0
  69. data/test/scss/sprites/position.scss +23 -0
  70. data/test/scss/sprites/repeat.scss +34 -0
  71. data/test/scss/sprites/retina.scss +44 -0
  72. data/test/scss/sprites/simple.scss +30 -0
  73. data/test/scss/sprites/size.scss +85 -0
  74. data/test/scss/sprites/spacing.scss +22 -0
  75. 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">&nbsp;</div>
16
+ <div class="meassure-2">&nbsp;</div>
17
+ <div class="meassure-3">&nbsp;</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">&nbsp;</div>
16
+ <div class="indy">&nbsp;</div>
17
+ <div class="alien">&nbsp;</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">&nbsp;</div>
16
+ <div class="indy">&nbsp;</div>
17
+ </body>
18
+ </html>
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,7 +1,8 @@
1
1
  // ---------------------------------------------------------------------------
2
2
  // Imports
3
3
 
4
- @import "../../../sass/ezy";
4
+ @import "../../../sass/ezy/grid";
5
+ @import "../../../sass/ezy/media";
5
6
 
6
7
  $column-width: 4em;
7
8
  $gutter-width: 2em;
@@ -1,7 +1,7 @@
1
1
  // ---------------------------------------------------------------------------
2
2
  // Imports
3
3
 
4
- @import "../../../sass/ezy";
4
+ @import "../../../sass/ezy/grid";
5
5
 
6
6
  $column-width: 60px;
7
7
  $gutter-width: 30px;
@@ -1,7 +1,7 @@
1
1
  // ---------------------------------------------------------------------------
2
2
  // Imports
3
3
 
4
- @import "../../../sass/ezy";
4
+ @import "../../../sass/ezy/grid";
5
5
 
6
6
  /* -------------------------------------------------------------------- *
7
7
  * Static grid
@@ -1,7 +1,8 @@
1
1
  // ---------------------------------------------------------------------------
2
2
  // Imports
3
3
 
4
- @import "../../../sass/ezy";
4
+ @import "../../../sass/ezy/grid";
5
+ @import "../../../sass/ezy/media";
5
6
 
6
7
  $column-width: 60px;
7
8
  $gutter-width: 30px;
@@ -1,7 +1,7 @@
1
1
  // ---------------------------------------------------------------------------
2
2
  // Imports
3
3
 
4
- @import "../../../sass/ezy";
4
+ @import "../../../sass/ezy/grid";
5
5
 
6
6
  $column-width: 60px;
7
7
  $gutter-width: 30px;
@@ -1,7 +1,7 @@
1
1
  // ---------------------------------------------------------------------------
2
2
  // Imports
3
3
 
4
- @import "../../sass/ezy";
4
+ @import "../../sass/ezy/media";
5
5
 
6
6
  // ---------------------------------------------------------------------------
7
7
  // Media
@@ -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
+ }