susy 2.2.9 → 2.2.10

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: 00d555df0332ce66928397a333627a5a5214a2ba
4
- data.tar.gz: a7cb0cff880ffa0d9f3d5fdd69b56154c397891b
3
+ metadata.gz: 0c948faa92935c579c4a03c343cbc112a9f81917
4
+ data.tar.gz: e34a987745b9ba0adc02d78b178f4579b647278f
5
5
  SHA512:
6
- metadata.gz: e6f8eec9205fb636c7ae575d0b89694f567d972657728be180a77bbe0b5176452552cf4f05536bd042dbe8676f6f3f1102d7d6957a48775eada2ef7c46675b33
7
- data.tar.gz: 52d2d804464638a7cf110e54e472cefab5289140493625d12a1aead46e646660802f2e9cf2e568cfbd5185c06f4bf9084822c391d8d2d916a1c3a5b5ee4f2b80
6
+ metadata.gz: 06dcf36ba8048bed991f9f01a9904e77e930831c813cac4a139a44b002e836b342ca557a094e07c66c3dbe86ca25f4107d0c518c0d2fe94d3ec84ff0c87f1cdb
7
+ data.tar.gz: 80a2e09e2ddc01895aa97667d887e81a1f42a4f9a80831c45b7f4884caba6aaa174b3471408a65fde049945128d96ad6462733bbb9f5ac0d3673cc0b4e375edf
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.2.8
1
+ 2.2.9
@@ -1,6 +1,13 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 2.2.10 - Jan 7 2016
5
+ -------------------
6
+
7
+ - Add `$pixel-values-only` setting to SusyOne,
8
+ for turning off Compass `rem` support.
9
+
10
+
4
11
  2.2.6 - Sep 1 2015
5
12
  ------------------
6
13
 
@@ -22,17 +22,33 @@
22
22
  // $columns : The number of columns in the Grid Layout.
23
23
  @mixin set-container-width(
24
24
  $columns : $total-columns,
25
- $style : $container-style
25
+ $style : $container-style,
26
+ $px-vals : $pixel-values-only
26
27
  ){
27
28
  $width: container-outer-width($columns);
28
29
 
29
30
  @if $style == 'static' {
30
- @include rem(width, $width);
31
+ @if $px-vals == true {
32
+ width: round(convert-length($width, px));
33
+ } @else {
34
+ @include rem(width, $width);
35
+ }
31
36
  } @else {
32
37
  @if $style == 'fluid' {
33
- @if unit($width) == '%' { @include rem(width, $width); }
38
+ @if unit($width) == '%' {
39
+ @if $px-vals == true {
40
+ width: round(convert-length($width, px));
41
+ } @else {
42
+ @include rem(width, $width);
43
+ }
44
+ }
34
45
  } @else {
35
- @include rem(max-width, $width);
46
+ @if $px-vals == true {
47
+ max-width: round(convert-length($width, px));
48
+ } @else {
49
+ @include rem(max-width, $width);
50
+ }
51
+
36
52
  @include for-legacy-browser(ie,"6") {
37
53
  @if unit($width) == 'rem' {
38
54
  _width: round(convert-length($width, px));
@@ -48,12 +64,18 @@
48
64
  //
49
65
  // $columns : The number of columns in the container.
50
66
  @mixin apply-container(
51
- $columns : $total-columns
67
+ $columns : $total-columns,
68
+ $px-vals : $pixel-values-only
52
69
  ){
53
70
  @include pie-clearfix;
54
71
  @include set-container-width($columns);
55
- @include rem(padding-left, $grid-padding);
56
- @include rem(padding-right, $grid-padding);
72
+ @if $px-vals == true {
73
+ padding-left: round(convert-length($grid-padding, px));
74
+ padding-right: round(convert-length($grid-padding, px));
75
+ } @else {
76
+ @include rem(padding-left, $grid-padding);
77
+ @include rem(padding-right, $grid-padding);
78
+ }
57
79
  margin: { left: auto; right: auto; }
58
80
  }
59
81
 
@@ -42,6 +42,10 @@ $container-style : magic !default;
42
42
  // and simply apply the border-box-sizing mixin.
43
43
  $border-box-sizing : false !default;
44
44
 
45
+ // Pixel Values only:
46
+ // Make sure only pixel values are set for the container width.
47
+ $pixel-values-only : false !default;
48
+
45
49
  // ---------------------------------------------------------------------------
46
50
  // IE Settings
47
51
 
@@ -67,7 +67,7 @@
67
67
 
68
68
  @each $_type, $_req in $requirements {
69
69
  @each $_i in $_req {
70
- $_pass: call(#{$_type}-exists, $_i);
70
+ $_pass: call(unquote("#{$_type}-exists"), $_i);
71
71
 
72
72
  @if not($_pass) {
73
73
  $_fail: true;
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.9
4
+ version: 2.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miriam Eric Suzanne