jeet 6.0.0 → 6.1.2

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: a5ad94b945af80f365d59181dff62ec59a0afc53
4
- data.tar.gz: 54880370b2b82cc835f4dfcd1b521f6719b5b0bf
3
+ metadata.gz: 601f1bbda3877ad68e50cef49f75ecf0347bbbf8
4
+ data.tar.gz: 7ee2b2b95556ba7a853478915e767ce58fb9c7e3
5
5
  SHA512:
6
- metadata.gz: 376f0cb907abbd41f622e90476ee0e8a8b510ca08e49e15a1914269bd08e4ed1f72dca93a12b08071f37e00f4367e0f2cdd299e306dd74cf3594219c84303610
7
- data.tar.gz: 8b006fb6a444707436315b7cd06ec06aacdbbf84e9e2621eb523e675c7fae161eae6022564757ac7bb738157a3cad4c75fd0640cc2800407e8ae9363a94b35d0
6
+ metadata.gz: 78975f986c1a6b72c46a7d73ea0c6963739ce4edf69aa55f668e3357dd62c277425f74fc8ed1abe92a9f20f6d6ff7d433ce7bf037e283db63d84d6fcbb3c4f29
7
+ data.tar.gz: c2dadfe097371aa910ea42641437c736d486c2def0384552bf5ab31538edd78901c0a3f68286251ea0dd55f8dcd52d4bf46a62a7109ac2395fbe120796b730b3
@@ -1,3 +1,6 @@
1
+ ## 6.1.2
2
+ Upgrade to Jeet v6.1.2
3
+
1
4
  ## 6.0.0
2
5
  Upgrade to Jeet v6
3
6
 
@@ -1,3 +1,3 @@
1
1
  module Jeet
2
- VERSION = '6.0.0'
2
+ VERSION = '6.1.2'
3
3
  end
@@ -12,6 +12,6 @@
12
12
  cf()
13
13
  */
14
14
 
15
- @import 'jeet/_settings';
16
- @import 'jeet/_functions';
17
- @import 'jeet/_grid';
15
+ @import '_settings';
16
+ @import '_functions';
17
+ @import '_grid';
@@ -78,15 +78,24 @@
78
78
  $result: ();
79
79
 
80
80
  @for $i from length($list) * -1 through -1 {
81
- $result: append($result, nth($list, abs($i)));
81
+ $item: nth($list, abs($i));
82
+
83
+ @if length($item) > 1 and $recursive {
84
+ $result: append($result, jeet-reverse($item, $recursive));
85
+ }
86
+ @else {
87
+ $result: append($result, $item);
88
+ }
82
89
  }
83
90
 
84
91
  @return $result;
85
92
  }
86
93
 
87
- // Sass 3.3
88
- @for $i from 1 through floor(length($list) / 2) + 1 {
94
+ // Sass 3.3+
95
+ @for $i from 1 through ceil(length($list)/2) {
89
96
  $tmp: nth($list, $i);
97
+ $tmp: if(length($tmp) > 1 and $recursive, reverse($tmp, $recursive), $tmp);
98
+
90
99
  $list: set-nth($list, $i, nth($list, -$i));
91
100
  $list: set-nth($list, -$i, $tmp);
92
101
  }
@@ -72,39 +72,19 @@
72
72
  /**
73
73
  * Get the width of a column and nothing else.
74
74
  * @param {number} [$ratios=1] - A width relative to its container as a fraction.
75
- * @param {number} [$g=$jeet-gutter] - Specify the gutter width as a percentage of the containers width.
75
+ * @param {number} [$gutter=$jeet-gutter] - Specify the gutter width as a percentage of the containers width.
76
76
  */
77
- @function column-width($ratios: 1, $g: $jeet-gutter) {
78
- @if ($jeet-parent-first != 'true') {
79
- $ratios: jeet-reverse($ratios);
80
- }
81
-
82
- $w: 100;
83
-
84
- @each $ratio in $ratios {
85
- $w: 100 * $ratio - $g + $ratio * $g;
86
- }
87
-
88
- @return unquote($w + '%');
77
+ @function column-width($ratios: 1, $gutter: $jeet-gutter) {
78
+ @return unquote(nth(jeet-get-column($ratios, $gutter), 1) + '%');
89
79
  }
90
80
 
91
81
  /**
92
82
  * Get the gutter size of a column and nothing else.
93
83
  * @param {number} [ratios=1] - A width relative to its container as a fraction.
94
- * @param {number} [g=jeet.gutter] - Specify the gutter width as a percentage of the containers width.
84
+ * @param {number} [gutter=jeet.gutter] - Specify the gutter width as a percentage of the containers width.
95
85
  */
96
- @function column-gutter($ratios: 1, $g: $jeet-gutter) {
97
- @if ($jeet-parent-first != 'true') {
98
- $ratios: jeet-reverse($ratios);
99
- }
100
-
101
- $w: 100;
102
-
103
- @each $ratio in $ratios {
104
- $g: $g / $w * 100;
105
- }
106
-
107
- @return unquote($g + '%');
86
+ @function column-gutter($ratios: 1, $gutter: $jeet-gutter) {
87
+ @return unquote(nth(jeet-get-column($ratios, $gutter), 2) + '%');
108
88
  }
109
89
 
110
90
  /**
@@ -127,8 +107,10 @@
127
107
  * Style an element as a column without any gutters for a seamless row.
128
108
  * @param {number} [$ratios=1] - A width relative to its container as a fraction.
129
109
  * @param {number} [$offset=0] - A offset specified as a fraction (see $ratios).
110
+ * @param {number} [cycle=0] - Easily create an nth column grid where cycle equals the number of columns.
111
+ * @param {number} [uncycle=0] - Undo a previous cycle value to allow for a new one.
130
112
  */
131
- @mixin span($ratio: 1, $offset: 0) {
113
+ @mixin span($ratio: 1, $offset: 0, $cycle: 0, $uncycle: 0) {
132
114
  $side: jeet-get-layout-direction();
133
115
  $opposite-side: jeet-opposite-direction($side);
134
116
  $span-width: jeet-get-span($ratio);
@@ -152,6 +134,25 @@
152
134
  #{$side}: $margin-l * 1%;
153
135
  #{$opposite-side}: $margin-r * 1%;
154
136
  };
137
+
138
+ @if $cycle != 0 {
139
+ &:nth-child(#{$cycle}n) {
140
+ float: $opposite-side;
141
+ }
142
+ &:nth-child(#{$cycle}n + 1) {
143
+ clear: both;
144
+ }
145
+ }
146
+
147
+ @if $uncycle != 0 {
148
+ &:nth-child(#{$uncycle}n) {
149
+ float: $side;
150
+ }
151
+ &:nth-child(#{$uncycle}n + 1) {
152
+ clear: none;
153
+ }
154
+ }
155
+
155
156
  }
156
157
 
157
158
  /**
@@ -190,10 +191,17 @@
190
191
  /**
191
192
  * View the grid and its layers for easy debugging.
192
193
  * @param {string} [$color=black] - The background tint applied.
194
+ * @param {boolean} [$important=false] - Whether to apply the style as !important.
193
195
  */
194
- @mixin edit($color: black) {
195
- * {
196
- background: rgba($color, .05);
196
+ @mixin edit($color: black, $important: false) {
197
+ @if $important {
198
+ * {
199
+ background: rgba($color, .05) !important;
200
+ }
201
+ } @else {
202
+ * {
203
+ background: rgba($color, .05);
204
+ }
197
205
  }
198
206
  }
199
207
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jeet
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 6.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cory Simmons
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-09-12 00:00:00.000000000 Z
12
+ date: 2014-09-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass