compass-lucid-grid 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,16 +6,20 @@
6
6
  //============================================================================//
7
7
 
8
8
  // Calculate the base grid "unit"
9
- $grid-inner-width: $grid-width - (2 * ($grid-outer-gutter - $grid-gutter));
9
+ $grid-outer-padding: $grid-outer-gutter - $grid-gutter;
10
+ $grid-inner-width: $grid-width - (2 * $grid-outer-padding);
10
11
  $gu: $grid-inner-width / $grid-columns;
11
12
 
12
13
  // Grid Container
13
14
  // Applies the grid width and centering
14
- @mixin _grid-container($width: $grid-width, $centered: $grid-centering) {
15
+ @mixin _grid-container($centered: $grid-centering, $width: $grid-inner-width) {
15
16
  @if $centered == true {
16
17
  margin-left: auto;
17
18
  margin-right: auto;
18
19
  }
20
+
21
+ padding-left: $grid-outer-padding;
22
+ padding-right: $grid-outer-padding;
19
23
 
20
24
  width: $width;
21
25
  }
@@ -44,9 +44,9 @@
44
44
  //
45
45
 
46
46
  @mixin grid-adjustment($columns) {
47
- $width: $columns * $gu;
47
+ $new-width: ($columns * $gu) - ($grid-outer-padding * 2);
48
48
 
49
- #{$grid-hook-container} { @include _grid-container($width, false); }
49
+ #{$grid-hook-container} { @include _grid-container(false, $new-width); }
50
50
  }
51
51
 
52
52
  //
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compass-lucid-grid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-05-21 00:00:00.000000000Z
12
+ date: 2011-05-23 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: compass
16
- requirement: &77048470 !ruby/object:Gem::Requirement
16
+ requirement: &79972540 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,8 +21,9 @@ dependencies:
21
21
  version: '0.11'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *77048470
25
- description: A Compass/SASS grid for developers who love semantics.
24
+ version_requirements: *79972540
25
+ description: A Compass/SASS grid that outputs lean, semantic stylesheets. Avoids CSS
26
+ repetition on SASS compilation and reduces the need for wrapper <div>s.
26
27
  email: yz@yifei.co
27
28
  executables: []
28
29
  extensions: []
@@ -36,7 +37,8 @@ files:
36
37
  - templates/project/manifest.rb
37
38
  - templates/project/_grid.scss
38
39
  homepage: https://github.com/ezYZ/lucid
39
- licenses: []
40
+ licenses:
41
+ - MIT
40
42
  post_install_message:
41
43
  rdoc_options: []
42
44
  require_paths:
@@ -53,7 +55,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
53
55
  - - ! '>='
54
56
  - !ruby/object:Gem::Version
55
57
  version: '0'
56
- requirements: []
58
+ requirements:
59
+ - SASS, Compass Framework
57
60
  rubyforge_project:
58
61
  rubygems_version: 1.8.3
59
62
  signing_key: