susy 2.2.5 → 2.2.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc14459d3f8e30bffdf267e2a64f5f9eb2885ead
4
- data.tar.gz: 984d1a8e29226a15571fdea3d7c7c03a41c1ab42
3
+ metadata.gz: 0ec94e166f503a29e85c720693fe2d02eab5b403
4
+ data.tar.gz: 538bace5cd040f0650cb26a8c0a1d3bfaca68a8a
5
5
  SHA512:
6
- metadata.gz: c950cfa592fb081c255ddc119d5bd4d88c766f1db5afff7e14a669867a02afec554723f6dba26b579d802ca61e954ac4eaa71012f247a90d2b3af8ba5f628cb3
7
- data.tar.gz: 933d1c4a62cb3a67765dd2dff5e4962d111bc24242128852ab298313cc865b1d34f035f0dab5d963f693bc67220fcba484273efd5450081740060bb4e1d1376a
6
+ metadata.gz: 8e92698ee16b42e2450535a55cd9890014bbf5b250377355215e20630a8c45bf17bd4527a1439ebe1c695a9c2f480dbda8fddf34ccf08fe7b21050d557bfae6c
7
+ data.tar.gz: 7e582b7df5fe578f92525d65338a0083724764b4610cb646811e4b8a305053c1dee00d6ea73d254ae7bd8aaa2cd8e48d03e847159508866b55f5eb972648ff3d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.2.4
1
+ 2.2.5
@@ -1,6 +1,14 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 2.2.6 - Sep 1 2015
5
+ ------------------
6
+
7
+ - Fix a bug with overlay grids.
8
+ - Fix a bug with 0-width split gutters.
9
+ - Other small bug fixes.
10
+
11
+
4
12
  2.2.5 - May 14 2015
5
13
  -------------------
6
14
 
@@ -15,7 +15,7 @@ $susy-overlay-grid-head-exists: false;
15
15
  $_output: debug-get(output, $grid);
16
16
 
17
17
  @include susy-inspect(show-grid, $inspect);
18
- @if $_output == overlay {
18
+ @if $_output == overlay and susy-get(debug image, $grid) != hide {
19
19
  @include overlay-grid($grid);
20
20
  } @else {
21
21
  @include background-grid($grid);
@@ -329,39 +329,38 @@ $susy-overlay-grid-head-exists: false;
329
329
  $_show : susy-get(debug image, $grid);
330
330
  $_return : ();
331
331
 
332
- @if $_show and $_show != hide {
333
- $_line-height: variable-exists(base-line-height);
334
- $_line-height: if($_line-height, $base-line-height, false);
332
+ @if $_show and $_show != 'hide' {
335
333
  $_columns: susy-get(columns, $grid);
336
334
 
337
- @if $_show != show-baseline {
335
+ @if $_show != 'show-baseline' {
338
336
  $_sym: is-symmetrical($_columns);
339
337
  $_return: if($_sym, get-background-sym($grid), get-background-asym($grid));
340
338
  $_return: map-merge($_return, (clip: content-box));
341
- } @else if not($_line-height) {
342
- @warn 'Please provide $base-line-height in order to see baseline grids.';
343
339
  }
344
340
 
345
- @if $_line-height {
346
- @if $_show != show-columns {
347
- $_color: variable-exists(grid-background-baseline-color);
348
- $_color: if($_color, $grid-background-baseline-color, #000);
341
+ @if $_show != 'show-columns'
342
+ and global-variable-exists(base-line-height)
343
+ and type-of($base-line-height) == 'number'
344
+ and not unitless($base-line-height) {
345
+ $_color: variable-exists('grid-background-baseline-color');
346
+ $_color: if($_color, $grid-background-baseline-color, #000);
349
347
 
350
- $_image: map-get($_return, image);
351
- $_size: map-get($_return, size);
352
- $_baseline: (baseline: ($_color 1px, transparent 1px));
353
- $_baseline-size: 100% $_line-height;
348
+ $_image: map-get($_return, image);
349
+ $_size: map-get($_return, size);
350
+ $_baseline: (baseline: ($_color 1px, transparent 1px));
351
+ $_baseline-size: 100% $base-line-height;
354
352
 
355
- $_return: map-merge($_return, (
356
- image: if($_image, map-merge($_image, $_baseline), $_baseline),
357
- size: if($_size, ($_size, $_baseline-size), $_baseline-size),
358
- ));
359
- }
353
+ $_return: map-merge($_return, (
354
+ image: if($_image, map-merge($_image, $_baseline), $_baseline),
355
+ size: if($_size, ($_size, $_baseline-size), $_baseline-size),
356
+ ));
360
357
 
361
- @if $_show == show {
358
+ @if $_show == 'show' {
362
359
  $_clip: map-get($_return, clip);
363
360
  $_return: map-merge($_return, (clip: join($_clip, border-box, comma)));
364
361
  }
362
+ } @else if $_show == 'show-baseline' {
363
+ @warn 'Please provide a $base-line-height with the desired height and units';
365
364
  }
366
365
  }
367
366
 
@@ -122,8 +122,12 @@ $_susy-media-context: ();
122
122
  $name
123
123
  ) {
124
124
  @if map-has-key($susy-media, $name) {
125
- $name: map-get($susy-media, $name);
126
- $name: susy-get-media($name);
125
+ $map-value: map-get($susy-media, $name);
126
+ @if ($name == $map-value) {
127
+ $name: $map-value;
128
+ } @else {
129
+ $name: susy-get-media($map-value);
130
+ }
127
131
  }
128
132
 
129
133
  @return $name;
@@ -68,7 +68,8 @@
68
68
  }
69
69
  }
70
70
 
71
- @if susy-get(gutter-position, $input) == split {
71
+ @if susy-get(gutter-position, $input) == split
72
+ and susy-get(gutters, $input) > 0 {
72
73
  $width: if($width == null, gutters($input), $width + gutters($input));
73
74
  }
74
75
 
@@ -12,7 +12,9 @@
12
12
  $span : map-merge((spread: wide), parse-span($span));
13
13
  $flow : susy-get(flow, $span);
14
14
  $split : if(susy-get(gutter-position, $span) == split, true, false);
15
- $width : if($split, span($span) + gutter($span), span($span));
15
+ $gutter : gutter($span);
16
+ $span : span($span);
17
+ $width : if($split and $gutter, $span + $gutter, $span);
16
18
 
17
19
  @include susy-inspect(pre, $inspect);
18
20
  @include margin-output($width, null, $flow);
@@ -98,8 +98,8 @@
98
98
  }
99
99
 
100
100
  } @else {
101
- @warn "You need to provide either a valid layout (number of columns)
102
- or a valid media-query min-width breakpoint (length).";
101
+ @warn "You need to provide either a valid layout (number of columns)"
102
+ + "or a valid media-query min-width breakpoint (length).";
103
103
  }
104
104
 
105
105
  }
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.2.5
4
+ version: 2.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Suzanne