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 +4 -4
- data/VERSION +1 -1
- data/docs/changelog.rst +8 -0
- data/sass/susy/language/susy/_background.scss +20 -21
- data/sass/susy/language/susy/_breakpoint-plugin.scss +6 -2
- data/sass/susy/language/susy/_isolate.scss +2 -1
- data/sass/susy/language/susy/_margins.scss +3 -1
- data/sass/susy/language/susyone/_media.scss +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ec94e166f503a29e85c720693fe2d02eab5b403
|
4
|
+
data.tar.gz: 538bace5cd040f0650cb26a8c0a1d3bfaca68a8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e92698ee16b42e2450535a55cd9890014bbf5b250377355215e20630a8c45bf17bd4527a1439ebe1c695a9c2f480dbda8fddf34ccf08fe7b21050d557bfae6c
|
7
|
+
data.tar.gz: 7e582b7df5fe578f92525d65338a0083724764b4610cb646811e4b8a305053c1dee00d6ea73d254ae7bd8aaa2cd8e48d03e847159508866b55f5eb972648ff3d
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.2.
|
1
|
+
2.2.5
|
data/docs/changelog.rst
CHANGED
@@ -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 $
|
346
|
-
|
347
|
-
|
348
|
-
|
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
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
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
|
-
|
356
|
-
|
357
|
-
|
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
|
-
$
|
126
|
-
$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;
|
@@ -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
|
-
$
|
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
|
-
|
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
|
}
|