susy 2.1.2 → 2.1.3

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: 6564f6c6ebae00408fb763ffdb3bda6ef669b9d6
4
- data.tar.gz: 50860d92812e7883ebde50f1fd8ddb0a0634ce2c
3
+ metadata.gz: 41a4f138eb6b42677e40c4c2a17e172bc3ea92b4
4
+ data.tar.gz: 0e5483a91ece1fd3140eac196f4a1ca6201bdfb0
5
5
  SHA512:
6
- metadata.gz: ca85a0d51eff08a9b02d7453cd916933eae56b5b6e98d160b5556765aae972be68e5c615dcee7497407c0e4f421eabbe3f0f95ab92d4103e90f96cfa5e1afec5
7
- data.tar.gz: 8995cf7863a664cdf6f54a3fa14db746993d51b0ff83a61915d7870e95163eb9a1e86eca0136705fe74d4eb49143f3ffe4f886ce7e0983740375d765ddd9a2ce
6
+ metadata.gz: d9484ab363b6bf01f9f2e0b33fb380c22124e3df42dfdda246dab9e5c74783a100bac37b2c9e4a34bc872c501c7454b578b2b0c85066bb37ec5a2a4b2de8b0d5
7
+ data.tar.gz: 129fdfddc59f4ee90a61f6b4d04e16e9767eb2e4b4530dd24dd340eca40ee3dd6e3add08c0c2f91142b33daf9bcca9aaa13b44458304a224c54a37aed1b10862
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.1
1
+ 2.1.2
@@ -1,6 +1,13 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 2.1.3 - Jul 16 2014
5
+ -------------------
6
+
7
+ - Baseline grid image uses `px` instead of `%`.
8
+ - Updated Sass dependency to work with 3.4.
9
+
10
+
4
11
  2.1.2 - Apr 28 2014
5
12
  -------------------
6
13
 
@@ -12,6 +19,8 @@ Changelog
12
19
  [`Adrien Antoine <https://github.com/Alshten>`_]
13
20
  - Compass 1.0 config no longer needs to ``require 'susy'``.
14
21
  Susy is registered with Compass automatically.
22
+ - Add ``$clean`` argument to ``layout`` and ``with-layout`` mixins,
23
+ for creating new layout contexts from a clean slate.
15
24
 
16
25
 
17
26
  2.1.1 - Mar 13 2014
@@ -1,7 +1,7 @@
1
1
  // Susy Next Syntax
2
2
  // ================
3
3
 
4
- $susy-version: 2.0;
4
+ $susy-version: 2.1;
5
5
 
6
6
  @import "../math";
7
7
  @import "../output/float";
@@ -11,8 +11,10 @@ $susy-overlay-grid-head-exists: false;
11
11
  @mixin show-grid(
12
12
  $grid: $susy
13
13
  ) {
14
+ $inspect: $grid;
14
15
  $_output: debug-get(output, $grid);
15
16
 
17
+ @include susy-inspect(show-grid, $inspect);
16
18
  @if $_output == overlay {
17
19
  @include overlay-grid($grid);
18
20
  } @else {
@@ -33,7 +35,8 @@ $susy-overlay-grid-head-exists: false;
33
35
  @mixin background-grid(
34
36
  $grid: $susy
35
37
  ) {
36
- $_output: get-background($grid);
38
+ $inspect : $grid;
39
+ $_output : get-background($grid);
37
40
 
38
41
  @if length($_output) > 0 {
39
42
  $_flow: susy-get(flow, $grid);
@@ -46,6 +49,7 @@ $susy-overlay-grid-head-exists: false;
46
49
  $_output: map-merge($_output, (image: $_image));
47
50
 
48
51
  @include background-grid-output($_output...);
52
+ @include susy-inspect(background-grid, $inspect);
49
53
  }
50
54
  }
51
55
 
@@ -343,7 +347,7 @@ $susy-overlay-grid-head-exists: false;
343
347
 
344
348
  $_image: map-get($_return, image);
345
349
  $_size: map-get($_return, size);
346
- $_baseline: (baseline: ($_color 5%, rgba($_color, 0) 5%));
350
+ $_baseline: (baseline: ($_color 1px, rgba($_color, 0) 1px));
347
351
  $_baseline-size: 100% $_line-height;
348
352
 
349
353
  $_return: map-merge($_return, (
@@ -8,12 +8,14 @@
8
8
  @mixin bleed(
9
9
  $bleed: 0 gutter()
10
10
  ) {
11
- $output: get-bleed($bleed);
11
+ $inspect : $bleed;
12
+ $output : get-bleed($bleed);
12
13
 
13
14
  @if susy-get(global-box-sizing) != content-box {
14
15
  $output: map-merge((box-sizing: content-box), $output);
15
16
  }
16
-
17
+
18
+ @include susy-inspect(bleed, $inspect);
17
19
  @include output($output);
18
20
  }
19
21
 
@@ -1,4 +1,4 @@
1
- // Global Box Sizing
1
+ // Susy Box Sizing
2
2
  // =================
3
3
 
4
4
  // Global Box Sizing
@@ -8,6 +8,9 @@
8
8
  @mixin global-box-sizing(
9
9
  $box: susy-get(global-box-sizing)
10
10
  ) {
11
+ $inspect: $box;
12
+
13
+ @include susy-inspect(global-box-sizing, $inspect);
11
14
  *, *:before, *:after { @include output((box-sizing: $box)); }
12
15
  @include update-box-model($box);
13
16
  }
@@ -26,6 +29,6 @@
26
29
  $box
27
30
  ) {
28
31
  @if $box != susy-get(global-box-sizing) {
29
- @include susy-set(global-box-sizing, $box);
32
+ @include susy-set(global-box-sizing, $box);
30
33
  }
31
34
  }
@@ -8,6 +8,7 @@
8
8
  @mixin container(
9
9
  $layout: $susy
10
10
  ) {
11
+ $inspect : $layout;
11
12
  $layout : parse-grid($layout);
12
13
 
13
14
  $_width : get-container-width($layout);
@@ -20,6 +21,7 @@
20
21
  @include output((box-sizing: $_box));
21
22
  }
22
23
 
24
+ @include susy-inspect(container, $inspect);
23
25
  @include float-container($_width, $_justify, $_property);
24
26
  @include show-grid($layout);
25
27
  }
@@ -24,10 +24,12 @@
24
24
  @mixin nested(
25
25
  $context
26
26
  ) {
27
+ $inspect : $context;
27
28
  $context : parse-span($context);
28
29
  $old : susy-get(columns);
29
30
  $susy : map-merge($susy, (columns: nested($context))) !global;
30
31
 
32
+ @include susy-inspect(nested, $inspect);
31
33
  @content;
32
34
 
33
35
  $susy : map-merge($susy, (columns: $old)) !global;
@@ -10,6 +10,7 @@
10
10
  $span,
11
11
  $selector: child
12
12
  ) {
13
+ $inspect : $span;
13
14
  $span : parse-span($span);
14
15
  $span : map-merge($span, (location: 1));
15
16
 
@@ -48,6 +49,8 @@
48
49
  $box : susy-get(box-sizing, $span);
49
50
  $global-box : if(susy-get(global-box-sizing) == 'border-box', true, false);
50
51
 
52
+ @include susy-inspect(gallery, $inspect);
53
+
51
54
  // Collective Output
52
55
  @if $box == border-box or ($inside and not $box and not $global-box) {
53
56
  @include output((box-sizing: border-box));
@@ -11,7 +11,10 @@
11
11
  $layout,
12
12
  $clean: false
13
13
  ) {
14
+ $inspect: $layout;
14
15
  $susy: _get-layout($layout, $clean) !global;
16
+
17
+ @include susy-inspect(layout, $inspect);
15
18
  }
16
19
 
17
20
 
@@ -24,9 +27,12 @@
24
27
  $layout,
25
28
  $clean: false
26
29
  ) {
30
+ $inspect: $layout;
27
31
  $old: $susy;
28
32
  $susy: _get-layout($layout, $clean) !global;
29
33
 
34
+ @include susy-inspect(with-layout, $inspect);
35
+
30
36
  @content;
31
37
 
32
38
  $susy: $old !global;
@@ -9,8 +9,9 @@
9
9
  @mixin gutters(
10
10
  $span: $susy
11
11
  ) {
12
- $span: parse-gutters($span);
13
- $_gutters: get-gutters($span);
12
+ $inspect : $span;
13
+ $span : parse-gutters($span);
14
+ $_gutters : get-gutters($span);
14
15
 
15
16
  $_output: (
16
17
  before: map-get($_gutters, before),
@@ -18,6 +19,8 @@
18
19
  flow: susy-get(flow, $span),
19
20
  );
20
21
 
22
+ @include susy-inspect(gutters, $inspect);
23
+
21
24
  @if is-inside($span) {
22
25
  @include padding-output($_output...);
23
26
  } @else {
@@ -9,12 +9,14 @@
9
9
  @mixin isolate(
10
10
  $isolate: 1
11
11
  ) {
12
+ $inspect: $isolate;
12
13
  $output: (
13
14
  push: isolate($isolate),
14
15
  flow: susy-get(flow, $isolate),
15
16
  );
16
17
 
17
18
  @include isolate-output($output...);
19
+ @include susy-inspect(isolate, $inspect);
18
20
  }
19
21
 
20
22
 
@@ -8,11 +8,13 @@
8
8
  @mixin pre(
9
9
  $span
10
10
  ) {
11
+ $inspect: $span;
11
12
  $span : map-merge((spread: wide), parse-span($span));
12
13
  $flow : susy-get(flow, $span);
13
14
  $split : if(susy-get(gutter-position, $span) == split, true, false);
14
15
  $width : if($split, span($span) + gutter($span), span($span));
15
16
 
17
+ @include susy-inspect(pre, $inspect);
16
18
  @include margin-output($width, null, $flow);
17
19
  }
18
20
 
@@ -23,11 +25,13 @@
23
25
  @mixin post(
24
26
  $span
25
27
  ) {
26
- $span : map-merge((spread: wide), parse-span($span));
27
- $flow : susy-get(flow, $span);
28
- $split : if(susy-get(gutter-position, $span) == split, true, false);
29
- $width : if($split, span($span) + gutter($span), span($span));
28
+ $inspect : $span;
29
+ $span : map-merge((spread: wide), parse-span($span));
30
+ $flow : susy-get(flow, $span);
31
+ $split : if(susy-get(gutter-position, $span) == split, true, false);
32
+ $width : if($split, span($span) + gutter($span), span($span));
30
33
 
34
+ @include susy-inspect(post, $inspect);
31
35
  @include margin-output(null, $width, $flow);
32
36
  }
33
37
 
@@ -48,11 +52,13 @@
48
52
  @mixin pull(
49
53
  $span
50
54
  ) {
51
- $span : map-merge((spread: wide), parse-span($span));
52
- $flow : susy-get(flow, $span);
53
- $split : if(susy-get(gutter-position, $span) == split, true, false);
54
- $width : if($split, 0 - span($span) + gutter($span), 0 - span($span));
55
+ $inspect : $span;
56
+ $span : map-merge((spread: wide), parse-span($span));
57
+ $flow : susy-get(flow, $span);
58
+ $split : if(susy-get(gutter-position, $span) == split, true, false);
59
+ $width : if($split, 0 - span($span) + gutter($span), 0 - span($span));
55
60
 
61
+ @include susy-inspect(pull, $inspect);
56
62
  @include margin-output($width, null, $flow);
57
63
  }
58
64
 
@@ -65,7 +71,8 @@
65
71
  $pre,
66
72
  $post: false
67
73
  ) {
68
- $pre: map-merge((spread: wide), parse-span($pre));
74
+ $inspect : $pre, $post;
75
+ $pre : map-merge((spread: wide), parse-span($pre));
69
76
 
70
77
  @if $post {
71
78
  $post: map-merge((spread: wide), parse-span($post));
@@ -79,6 +86,7 @@
79
86
  }
80
87
  }
81
88
 
89
+ @include susy-inspect(squish, $inspect...);
82
90
  @include pre($pre);
83
91
  @include post($post);
84
92
  }
@@ -8,15 +8,17 @@
8
8
  @mixin prefix(
9
9
  $span
10
10
  ) {
11
- $span : map-merge((spread: wide), parse-span($span));
12
- $flow : susy-get(flow, $span);
13
- $width : span($span);
11
+ $inspect : $span;
12
+ $span : map-merge((spread: wide), parse-span($span));
13
+ $flow : susy-get(flow, $span);
14
+ $width : span($span);
14
15
 
15
16
  @if is-inside($span) {
16
17
  $gutter: gutter($span);
17
18
  $width: if($gutter and comparable($width, $gutter), $width + $gutter, $width);
18
19
  }
19
20
 
21
+ @include susy-inspect(prefix, $inspect);
20
22
  @include padding-output($width, null, $flow);
21
23
  }
22
24
 
@@ -27,15 +29,17 @@
27
29
  @mixin suffix(
28
30
  $span
29
31
  ) {
30
- $span : map-merge((spread: wide), parse-span($span));
31
- $flow : susy-get(flow, $span);
32
- $width : span($span);
32
+ $inspect : $span;
33
+ $span : map-merge((spread: wide), parse-span($span));
34
+ $flow : susy-get(flow, $span);
35
+ $width : span($span);
33
36
 
34
37
  @if is-inside($span) {
35
38
  $gutter: gutter($span);
36
39
  $width: if($gutter and comparable($width, $gutter), $width + $gutter, $width);
37
40
  }
38
41
 
42
+ @include susy-inspect(suffix, $inspect);
39
43
  @include padding-output(null, $width, $flow);
40
44
  }
41
45
 
@@ -48,7 +52,8 @@
48
52
  $pre,
49
53
  $post: false
50
54
  ) {
51
- $pre: map-merge((spread: wide), parse-span($pre));
55
+ $inspect : $pre, $post;
56
+ $pre : map-merge((spread: wide), parse-span($pre));
52
57
 
53
58
  @if $post {
54
59
  $post: map-merge((spread: wide), parse-span($post));
@@ -62,6 +67,8 @@
62
67
  }
63
68
  }
64
69
 
70
+ @include susy-inspect(pad, $inspect...);
65
71
  @include prefix($pre);
66
72
  @include suffix($post);
73
+
67
74
  }
@@ -1,7 +1,6 @@
1
1
  // Row Start & End
2
2
  // ===============
3
3
 
4
-
5
4
  // Break
6
5
  // -----
7
6
  // Apply to any element that should force a line break.
@@ -24,6 +23,8 @@
24
23
  @mixin full(
25
24
  $context: $susy
26
25
  ) {
26
+ $inspect : $context;
27
+ @include susy-inspect(full, $inspect);
27
28
  @include span(full of parse-grid($context) break);
28
29
  }
29
30
 
@@ -34,9 +35,11 @@
34
35
  @mixin first(
35
36
  $context: $susy
36
37
  ) {
37
- $context: parse-grid($context);
38
- $flow: susy-get(flow, $context);
38
+ $inspect : $context;
39
+ $context : parse-grid($context);
40
+ $flow : susy-get(flow, $context);
39
41
 
42
+ @include susy-inspect(first, $inspect);
40
43
  @if not is-split($context) {
41
44
  @include float-first($flow);
42
45
  }
@@ -55,7 +58,11 @@
55
58
  @mixin last(
56
59
  $context: $susy
57
60
  ) {
58
- $context: parse-grid($context);
61
+ $inspect : $context;
62
+ $context : parse-grid($context);
63
+
64
+ @include susy-inspect(last, $inspect);
65
+
59
66
  $output: (
60
67
  flow: susy-get(flow, $context),
61
68
  margin: if(is-split($context), null, 0),
@@ -1,4 +1,4 @@
1
- // Susy Next Settings
1
+ // Susy Settings
2
2
  // ==================
3
3
 
4
4
  // Susy Language Defaults
@@ -16,6 +16,7 @@
16
16
  color: rgba(#66f, .25),
17
17
  output: background,
18
18
  toggle: top right,
19
+ inspect: false,
19
20
  ),
20
21
  ));
21
22
 
@@ -39,6 +40,7 @@ $susy-keywords: (
39
40
  clear: break nobreak,
40
41
  debug image: show hide show-columns show-baseline,
41
42
  debug output: background overlay,
43
+ debug inspect: inspect,
42
44
  );
43
45
 
44
46
 
@@ -8,6 +8,7 @@
8
8
  @mixin span(
9
9
  $span
10
10
  ) {
11
+ $inspect: $span;
11
12
  $span: parse-span($span);
12
13
  $output: span-math($span);
13
14
  $nesting: susy-get(span, $span);
@@ -23,6 +24,7 @@
23
24
  @include nobreak;
24
25
  }
25
26
 
27
+ @include susy-inspect(span, $inspect);
26
28
  @include output((box-sizing: $box));
27
29
  @include float-span-output($output...);
28
30
 
@@ -246,9 +246,9 @@ $rem-with-px-fallback : true !default;
246
246
 
247
247
  // This name will be deprecated...
248
248
  @function absolute-ems(
249
- $ems,
249
+ $ems,
250
250
  $font-size: $base-font-size
251
- ){
251
+ ){
252
252
  @return base-ems( $ems, $font-size);
253
253
  }
254
254
 
@@ -340,7 +340,7 @@ $rem-with-px-fallback : true !default;
340
340
  // Return the nearest layout (column-count) above a given breakpoint.
341
341
  //
342
342
  // $min : The min-width media-query breakpoint above which to establish a new layout.
343
- @function get-layout(
343
+ @function get-layout(
344
344
  $min
345
345
  ) {
346
346
  $min : fix-ems($min);
@@ -3,9 +3,13 @@
3
3
 
4
4
  @import "support";
5
5
 
6
+ @import "shared/inspect";
6
7
  @import "shared/output";
7
8
  @import "shared/direction";
8
9
  @import "shared/background";
9
10
  @import "shared/container";
10
11
  @import "shared/margins";
11
12
  @import "shared/padding";
13
+
14
+
15
+
@@ -0,0 +1,19 @@
1
+ // Susy Debug
2
+ // ----------------
3
+ // Output arguments passed to a inspect.
4
+ // - $mixin : <susy mixin>
5
+ // - $inspec : <mixin arguments>
6
+
7
+ @mixin susy-inspect($mixin, $inspect...) {
8
+ $show: false;
9
+
10
+ @each $item in $inspect {
11
+ @if index($item, inspect) {
12
+ $show: true;
13
+ }
14
+ }
15
+
16
+ @if $show or susy-get(debug inspect) {
17
+ -susy-#{$mixin}: inspect($inspect);
18
+ }
19
+ };
@@ -13,7 +13,6 @@
13
13
  ),
14
14
  ));
15
15
 
16
-
17
16
  // Susy Support [mixin]
18
17
  // --------------------
19
18
  // Send property-value pairs to the proper support modules.
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.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Suzanne
@@ -19,16 +19,22 @@ dependencies:
19
19
  name: sass
20
20
  requirement: !ruby/object:Gem::Requirement
21
21
  requirements:
22
- - - ~>
22
+ - - '>='
23
23
  - !ruby/object:Gem::Version
24
24
  version: 3.3.0
25
+ - - <
26
+ - !ruby/object:Gem::Version
27
+ version: '3.5'
25
28
  type: :runtime
26
29
  prerelease: false
27
30
  version_requirements: !ruby/object:Gem::Requirement
28
31
  requirements:
29
- - - ~>
32
+ - - '>='
30
33
  - !ruby/object:Gem::Version
31
34
  version: 3.3.0
35
+ - - <
36
+ - !ruby/object:Gem::Version
37
+ version: '3.5'
32
38
  description: Susy is a toolkit for building layouts of all types with a simple, natural
33
39
  syntax.
34
40
  email:
@@ -92,6 +98,7 @@ files:
92
98
  - sass/susy/output/shared/_background.scss
93
99
  - sass/susy/output/shared/_container.scss
94
100
  - sass/susy/output/shared/_direction.scss
101
+ - sass/susy/output/shared/_inspect.scss
95
102
  - sass/susy/output/shared/_margins.scss
96
103
  - sass/susy/output/shared/_output.scss
97
104
  - sass/susy/output/shared/_padding.scss