grid-coordinates 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.mdown CHANGED
@@ -30,8 +30,8 @@ Take a peek at [grid-coordinates.com/.../demo.sass](https://github.com/adamstac/
30
30
  $grid-columns: 24
31
31
  $grid-width: 60px
32
32
  $grid-gutter-width: 10px
33
- // Set to true by default
34
- $overflow-allowed: false
33
+ // Set to true by default. Can be set to false to clip content that overflows a grid block.
34
+ // $overflow: false
35
35
 
36
36
  @import grid-coordinates
37
37
 
@@ -40,7 +40,7 @@ Take a peek at [grid-coordinates.com/.../demo.sass](https://github.com/adamstac/
40
40
 
41
41
  ...
42
42
 
43
- The `$overflow-allowed` setting controls which of Compass' two clearfix mixins to be used, `+clearfix` or `+pie-clearfix`. The default setting is set to `true` and will not clip any content that overflows a grid block. If for some reason you need to clip overflowing content update this setting to `false`.
43
+ The `$overflow` setting controls which of Compass' two clearfix mixins to be used, `+clearfix` or `+pie-clearfix`. The default setting is set to `true` and will not clip any content that overflows a grid block. If for some reason you need to clip overflowing content update this setting to `false`.
44
44
 
45
45
  ### Using classes and `@extend`
46
46
 
@@ -5,6 +5,6 @@ Compass::Frameworks.register("grid-coordinates", :path => "#{File.dirname(__FILE
5
5
 
6
6
  module GridCoordinates
7
7
 
8
- VERSION = "1.1.2".freeze
8
+ VERSION = "1.1.3".freeze
9
9
 
10
10
  end
@@ -106,28 +106,28 @@ $overflow: true !default
106
106
  @if $grid-columns == 1
107
107
  width: $grid-width
108
108
  @else
109
- width: $grid-columns * $grid-width + $grid-columns * $grid-gutter-width - $grid-gutter-width
109
+ width: (($grid-columns * $grid-width) + ($grid-columns * $grid-gutter-width)) - $grid-gutter-width
110
110
 
111
111
  =grid-prefix($grid-columns)
112
112
  @if $grid-columns == 1
113
113
  padding-left: $grid-width + $grid-gutter-width
114
114
  @else
115
- padding-left: $grid-columns * $grid-width + $grid-columns * $grid-gutter-width
115
+ padding-left: ($grid-columns * $grid-width) + ($grid-columns * $grid-gutter-width)
116
116
 
117
117
  =grid-suffix($grid-columns)
118
118
  @if $grid-columns == 1
119
119
  padding-right: $grid-width + $grid-gutter-width
120
120
  @else
121
- padding-right: $grid-columns * $grid-width + $grid-columns * $grid-gutter-width
121
+ padding-right: ($grid-columns * $grid-width) + ($grid-columns * $grid-gutter-width)
122
122
 
123
123
  =grid-push($grid-columns)
124
124
  @if $grid-columns == 1
125
125
  left: $grid-width + $grid-gutter-width
126
126
  @else
127
- left: $grid-columns * $grid-width + $grid-columns * $grid-gutter-width
127
+ left: ($grid-columns * $grid-width) + ($grid-columns * $grid-gutter-width)
128
128
 
129
129
  =grid-pull($grid-columns)
130
130
  @if $grid-columns == 1
131
- left: -$grid-width + $grid-gutter-width
131
+ left: -(($grid-width + $grid-gutter-width))
132
132
  @else
133
- left: -$grid-columns * $grid-width + $grid-columns * $grid-gutter-width
133
+ left: -(($grid-columns * $grid-width) + ($grid-columns * $grid-gutter-width))
@@ -127,6 +127,6 @@ $overflow: true !default;
127
127
 
128
128
  @mixin grid-pull($grid-columns) {
129
129
  @if $grid-columns == 1 {
130
- left: -$grid-width + $grid-gutter-width; }
130
+ left: -($grid-width + $grid-gutter-width); }
131
131
  @else {
132
- left: -$grid-columns * $grid-width + $grid-columns * $grid-gutter-width; } }
132
+ left: -($grid-columns * $grid-width + $grid-columns * $grid-gutter-width); } }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grid-coordinates
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 2
10
- version: 1.1.2
9
+ - 3
10
+ version: 1.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Adam Stacoviak