ezy 0.2.9 → 0.3.0.beta

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 (43) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/ezy.gemspec +2 -2
  4. data/sass/ezy/grid/_layout.scss +30 -4
  5. data/templates/project/assets/config.rb +45 -0
  6. data/templates/project/assets/css/screen.css +657 -0
  7. data/templates/project/assets/img/test-sprite/alien.png +0 -0
  8. data/templates/project/assets/img/test-sprite/classic.png +0 -0
  9. data/templates/project/assets/img/test-sprite/indy.png +0 -0
  10. data/templates/project/assets/img/test-sprite.png +0 -0
  11. data/templates/project/assets/img/test-sprite@2x/classic.png +0 -0
  12. data/templates/project/assets/img/test-sprite@2x/indy.png +0 -0
  13. data/templates/project/assets/img/test-sprite@2x.png +0 -0
  14. data/templates/project/assets/js/html5shiv-3.6.2.js +8 -0
  15. data/templates/project/assets/sass/core/_base.scss +2 -0
  16. data/templates/project/assets/sass/core/_layouts.scss +88 -0
  17. data/templates/project/assets/sass/core/_settings.scss +2 -0
  18. data/templates/project/assets/sass/lib/_normalize.scss +396 -0
  19. data/templates/project/assets/sass/partials/_sprite-examples.scss +43 -0
  20. data/templates/project/assets/sass/screen.scss +17 -0
  21. data/templates/project/index.html +83 -23
  22. data/templates/project/manifest.rb +39 -8
  23. data/test/css/grid/elastic.css +5 -5
  24. data/test/css/grid/fluid.css +17 -17
  25. data/test/css/grid/gutter.css +18 -18
  26. data/test/css/grid/layout/fluid.css +12 -12
  27. data/test/css/grid/layout/grid-settings.css +149 -0
  28. data/test/css/grid/layout/responsive.css +41 -35
  29. data/test/css/grid/layout.css +20 -20
  30. data/test/css/grid/responsive.css +20 -20
  31. data/test/css/sprites/layout.css +2 -2
  32. data/test/css/sprites/position.css +4 -4
  33. data/test/css/sprites/repeat.css +2 -2
  34. data/test/css/sprites/resolution.css +2 -2
  35. data/test/css/sprites/responsive.css +7 -7
  36. data/test/css/sprites/retina.css +2 -2
  37. data/test/css/sprites/simple.css +1 -1
  38. data/test/css/sprites/spacing.css +2 -2
  39. data/test/html/grid/grid-settings.html +75 -0
  40. data/test/scss/grid/layout/grid-settings.scss +101 -0
  41. metadata +24 -7
  42. data/templates/project/_settings.scss +0 -32
  43. data/templates/project/screen.scss +0 -40
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc58234d018abfc8788b76eac2b990c4571e0a09
4
- data.tar.gz: 3b3aed70d23c741a9acb044f668de87184622fa7
3
+ metadata.gz: d371b28e2ea239618675b6f1f5e7cff15bdcb4f1
4
+ data.tar.gz: 11e1ac9f6b29ec978241fcbbac8658628636858d
5
5
  SHA512:
6
- metadata.gz: 50f7bef55b01ab13ae70bfb0021a81ed69bfaadd58445a5a30bbf80ae535ef377c0c9b50e5138270c82569f2766277743eb8d9b09c599d2b34377caf6139afce
7
- data.tar.gz: f39497f0ca6f898f267b42cdcf81a90135fc2bb3ba8facb3d0c958b930019af7626372358fdc92a718aab7b9d130b6ab9dd0abb8e60ff0210cfed05286ef96e8
6
+ metadata.gz: cd8f881598da3353b9e03c8ddffbfc20cc4ca0df67a4885ac3956253d9f9ddcd7bc9736b68e21ed86423e8d4cfb95238d0947abaa66193ab86c37a880fd4bfc2
7
+ data.tar.gz: d481fe9ba6d7bdf4f685037b174b183639955494b3cd69494250ce367d57c27bd47959d1a0652e44f02353d844a7fe5bb92f9d371b3d7ad91b949b809b3fef62
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.9
1
+ 0.3.0.beta
data/ezy.gemspec CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  # Release Specific Information
5
- s.version = "0.2.9"
6
- s.date = "2013-12-18"
5
+ s.version = "0.3.0.beta"
6
+ s.date = "2014-02-04"
7
7
 
8
8
  # Gem Details
9
9
  s.name = "ezy"
@@ -15,6 +15,8 @@ $layouts: ();
15
15
  $columns,
16
16
  $grid-padding : false,
17
17
  $at-breakpoint : false,
18
+ $column-width : false,
19
+ $gutter-width : false,
18
20
  $legacy-support : false
19
21
  ) {
20
22
 
@@ -27,7 +29,7 @@ $layouts: ();
27
29
  }
28
30
  }
29
31
 
30
- $layout: ( $columns ($grid-padding) ($at-breakpoint) $legacy-support );
32
+ $layout: ( $columns ($grid-padding) ($at-breakpoint) $column-width $gutter-width $legacy-support );
31
33
 
32
34
  // Storing layout
33
35
  $layouts: append( $layouts, $layout, comma );
@@ -39,17 +41,40 @@ $layouts: ();
39
41
  // ---------------------------------------------------------------------------
40
42
  // @mixin at-layout
41
43
 
42
- @mixin at-layout( $layout ) {
44
+ @mixin at-layout(
45
+ $layout,
46
+ $legacy-support : false
47
+ ) {
43
48
 
44
49
  // Storing reference to global variables
45
50
  $at-breakpoint-ref : $at-breakpoint;
46
51
  $total-columns-ref : $total-columns;
47
52
  $grid-padding-ref : $grid-padding;
53
+ $column-width-ref : $column-width;
54
+ $gutter-width-ref : $gutter-width;
48
55
 
56
+ // Using settings from layout
49
57
  $total-columns : nth( $layout, 1 );
50
58
  $grid-padding : nth( $layout, 2 );
51
59
  $at-breakpoint : nth( $layout, 3 );
52
- $legacy-support : nth( $layout, 4 );
60
+ $column-width : nth( $layout, 4 );
61
+ $gutter-width : nth( $layout, 5 );
62
+
63
+ // Use general settings if false
64
+ @if not $grid-padding {
65
+ $grid-padding : $grid-padding-ref;
66
+ }
67
+ @if not $column-width {
68
+ $column-width : $column-width-ref;
69
+ }
70
+ @if not $gutter-width {
71
+ $gutter-width : $gutter-width-ref;
72
+ }
73
+
74
+ // Get legacy support setting from layout if not forced
75
+ @if not $legacy-support {
76
+ $legacy-support : nth( $layout, 6 );
77
+ }
53
78
 
54
79
  @if $at-breakpoint {
55
80
  @include at-breakpoint( $at-breakpoint $legacy-support ) {
@@ -63,7 +88,8 @@ $layouts: ();
63
88
  $at-breakpoint : $at-breakpoint-ref;
64
89
  $total-columns : $total-columns-ref;
65
90
  $grid-padding : $grid-padding-ref;
66
-
91
+ $column-width : $column-width-ref;
92
+ $gutter-width : $gutter-width-ref;
67
93
  }
68
94
 
69
95
  // ---------------------------------------------------------------------------
@@ -0,0 +1,45 @@
1
+ # Require any additional compass plugins here.
2
+ require "ezy"
3
+
4
+ # Set this to the root of your project when deployed:
5
+ http_path = ".."
6
+ css_dir = "css"
7
+ sass_dir = "sass"
8
+ images_dir = "img"
9
+
10
+ # You can select your preferred output style here (can be overridden via the command line):
11
+ environment = :development # :development
12
+ output_style = (environment == :production) ? :compressed : :expanded
13
+
14
+ # To enable relative paths to assets via compass helper functions. Uncomment:
15
+ relative_assets = false
16
+
17
+ # To disable debugging comments that display the original location of your selectors. Uncomment:
18
+ # line_comments = false
19
+
20
+
21
+ # ----------------------------------------------------- #
22
+ # Nice sprite names
23
+ #
24
+ nice_sprite_names = true
25
+
26
+ if nice_sprite_names
27
+ # Rename sprites to remove the Compass-generated hash and move it up 1 directory
28
+ on_sprite_saved do |filename|
29
+ if File.exists?(filename)
30
+ FileUtils.cp filename, filename.gsub(%r{-s[a-z0-9]{10}\.png$}, '.png').gsub('images/../images/', '')
31
+ end
32
+ end
33
+
34
+ # Replace in stylesheets generated references to sprites
35
+ # by their counterparts without the hash uniqueness.
36
+ # Adding timestamp as cache buster.
37
+ on_stylesheet_saved do |filename|
38
+ if File.exists?(filename)
39
+ css = File.read filename
40
+ File.open(filename, 'w+') do |f|
41
+ f << css.gsub(%r{-s[a-z0-9]{10}\.png}, '.png?' + Time.now.strftime("%H%M%s"))
42
+ end
43
+ end
44
+ end
45
+ end