susy 2.1.0 → 2.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d596116854611c65dd0359ef05187bb0828a1e97
4
- data.tar.gz: 87578160029e758da8e07c52e23903e889e1e3fb
3
+ metadata.gz: cb5b89b744ac20007a3a1d91a36a970bbffe1e99
4
+ data.tar.gz: 9a46e0d21945bf5a645f2b7b7c8e1c127d198d2b
5
5
  SHA512:
6
- metadata.gz: a675b09d9def187b2ba942bdb31035323a9dd97f846f77b0e2f340372cd0d73a800ef0fd836ec4da786d1c55c7b4c52f57205b573c4fa3884edbd70f1bc1055b
7
- data.tar.gz: 659275cd3214d5b7430bebe88393ff713230d255e9fe44d72f8dfda65784d350e84b6f84ef3940e5a6c682052b7b513e9a73fff7719ccfad31c439c853bb65bd
6
+ metadata.gz: db91d54a75ed724235d0e8938add1e32abfb9fe5b603806584fbe4b5998d209f1065af0ab2e3b05494b48e5efa31177429ed8c106e38c2647f9f32e96d525b5d
7
+ data.tar.gz: 304373902790d7558f5105948646e6cf0b14ec9ff652948ea4f56741235ad72f2b422d444fcf9518519c6e22b8acf26cb4444a12927a70ba4dab088b34f6a5c9
@@ -186,7 +186,7 @@ $susy-overlay-grid-head-exists: false;
186
186
  $_light : lighten($_color, 15%);
187
187
  $_stops : ();
188
188
 
189
- @for $location from 1 through column-count($_columns) {
189
+ @for $location from 1 through susy-count($_columns) {
190
190
  $this-stop: ();
191
191
 
192
192
  @if $location == 1 {
@@ -197,7 +197,7 @@ $susy-overlay-grid-head-exists: false;
197
197
  $this-stop: append($this-stop, $_color $start, comma);
198
198
  }
199
199
 
200
- @if $location == column-count($_columns) {
200
+ @if $location == susy-count($_columns) {
201
201
  $this-stop: append($this-stop, $_light, comma);
202
202
  } @else {
203
203
  $_end: parse-span(1 at ($location + 1) $grid);
@@ -225,7 +225,7 @@ $susy-overlay-grid-head-exists: false;
225
225
  $_light : lighten($_color, 15%);
226
226
  $_stops : ();
227
227
 
228
- @for $location from 1 through column-count($_columns) {
228
+ @for $location from 1 through susy-count($_columns) {
229
229
  $this-stop: ();
230
230
 
231
231
  $start: parse-span(1 at $location $grid);
@@ -258,7 +258,7 @@ $susy-overlay-grid-head-exists: false;
258
258
  $_trans : transparent;
259
259
  $_stops : ();
260
260
 
261
- @for $location from 1 through column-count($_columns) {
261
+ @for $location from 1 through susy-count($_columns) {
262
262
  $this-stop: ();
263
263
 
264
264
  @if $location == 1 {
@@ -269,7 +269,7 @@ $susy-overlay-grid-head-exists: false;
269
269
  $this-stop: append($this-stop, $_color $start, comma);
270
270
  }
271
271
 
272
- @if $location == column-count($_columns) {
272
+ @if $location == susy-count($_columns) {
273
273
  $this-stop: append($this-stop, $_light, comma);
274
274
  } @else {
275
275
  $gutter: get-span-width(first $location $grid);
@@ -51,7 +51,7 @@
51
51
  $_columns : susy-get(columns, $layout);
52
52
  $_gutters : susy-get(gutters, $layout);
53
53
  $_spread : if(is-split($layout), wide, narrow);
54
- $_width : column-sum($_columns, $_gutters, $_spread) * $_column-width;
54
+ $_width : susy-sum($_columns, $_gutters, $_spread) * $_column-width;
55
55
  } @else {
56
56
  // if we have nothing, default to 100%
57
57
  $_width: 100%;
@@ -13,7 +13,7 @@
13
13
  $location : get-location($context);
14
14
  $columns : susy-get(columns, $context);
15
15
 
16
- @return column-span($span, $location, $columns);
16
+ @return susy-slice($span, $location, $columns);
17
17
  }
18
18
 
19
19
  // Nested [mixin]
@@ -15,7 +15,7 @@
15
15
 
16
16
  $n : susy-get(span, $span);
17
17
  $columns : susy-get(columns, $span);
18
- $context : column-count($columns);
18
+ $context : susy-count($columns);
19
19
  $flow : susy-get(flow, $span);
20
20
 
21
21
  $inside : is-inside($span);
@@ -73,7 +73,7 @@
73
73
  } @else {
74
74
  $_columns : susy-get(columns, $context);
75
75
  $_spread : if(is-split($context), wide, susy-get(spread, $context));
76
- $_gutter : percentage($_gutters / column-sum($_columns, $_gutters, $_spread));
76
+ $_gutter : percentage($_gutters / susy-sum($_columns, $_gutters, $_spread));
77
77
  }
78
78
  }
79
79
 
@@ -81,7 +81,7 @@
81
81
  $edge : susy-get(edge, $span);
82
82
 
83
83
  @if not $edge {
84
- $count: column-count(susy-get(columns, $span));
84
+ $count: susy-count(susy-get(columns, $span));
85
85
  $location: susy-get(location, $span);
86
86
  $n: susy-get(span, $span);
87
87
 
@@ -122,7 +122,7 @@
122
122
  @if $edge == first {
123
123
  $location: 1;
124
124
  } @else if $edge == last {
125
- $location: column-count(susy-get(columns, $span)) - $n + 1;
125
+ $location: susy-count(susy-get(columns, $span)) - $n + 1;
126
126
  }
127
127
  }
128
128
 
@@ -129,15 +129,15 @@
129
129
  @if $n == 'full' {
130
130
  $pos: susy-get(gutter-position, $span);
131
131
  $role: susy-get(role, $span);
132
- $n: if($pos == split and $role != nest, column-count($columns), 100%);
132
+ $n: if($pos == split and $role != nest, susy-count($columns), 100%);
133
133
  }
134
134
 
135
135
  @if type-of($n) != number {
136
136
  @warn "(#{type-of($n)}) #{$n} is not a valid span.";
137
137
  } @else if unitless($n) {
138
- $context: column-sum($columns, $gutters, if(is-split($span), wide, narrow));
138
+ $context: susy-sum($columns, $gutters, if(is-split($span), wide, narrow));
139
139
  $spread: if(is-inside($span), $spread or wide, $spread);
140
- $span-sum: column-span-sum($n, $location, $columns, $gutters, $spread);
140
+ $span-sum: susy($n, $location, $columns, $gutters, $spread);
141
141
 
142
142
  @if susy-get(math, $span) == static {
143
143
  $width: $span-sum * susy-get(column-width, $span);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: susy
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Suzanne