gridle 1.3.22 → 1.3.23

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: f7df15d59048e3bc099b94a7cc6c11242c134602
4
- data.tar.gz: c0af9436f7b1e6e190420ed6bb1317d15bc3b07f
3
+ metadata.gz: 502e876a9bb32e62ab88e94a549fd5d57df92f89
4
+ data.tar.gz: 76b1f63c0af2e294d6df74cea34bf8badb3de02c
5
5
  SHA512:
6
- metadata.gz: 10b00d0ce1acbf6784a104a300036240ce7f4f34dab7102158e1a7613cc0dfb8bc03a36926ea9c25b436ce155c82c718549d87c3e4ce27c38a8140f7ad67befe
7
- data.tar.gz: 924eb2ef52d0df3d45a9e96f1d9f4d7ec8e8ef5960e1aed2a5d3ca001452ff5b39d32ec50e45e22dc2780e7d16f170ef0b0aac318394e74b9a58efe37fa45214
6
+ metadata.gz: 5202959a259041ddb9a81442d088acd33fc27b5495283f19410ff3eef579bb178555370e054df52b279c0bb6537bf4c743d0eadcea0a83184e08748171a633ec
7
+ data.tar.gz: 34324f0a7aa730e713a92f6bd837eeb80363387450241e62190c32b3b8fc8981474c51aac3bf62657ecca7b384df43bb97c7978c06f2b1e75b7c7e57e6eea4d0
data/lib/gridle.rb CHANGED
@@ -16,8 +16,8 @@
16
16
  # a prerelease version
17
17
  # Date is in the form of YYYY-MM-DD
18
18
  module Extension
19
- VERSION = "1.3.22"
20
- DATE = "2014-06-02"
19
+ VERSION = "1.3.23"
20
+ DATE = "2014-06-11"
21
21
  end
22
22
 
23
23
  # This is where any custom SassScript should be placed. The functions will be
@@ -197,7 +197,7 @@
197
197
 
198
198
  // debug colors :
199
199
  $debug : _gridle_get_var_value(debug, $state);
200
- @if $debug {
200
+ @if $debug and ( $what == null or index($what, debug_colors) or index($what, helpers) ) {
201
201
  // debug color classes :
202
202
  #{_gridle_classname($gridle-debug-color-name-pattern, $state, 1)} {
203
203
  #{$gridle-debug-selector} {
@@ -310,15 +310,37 @@
310
310
  $what : null,
311
311
  $scope : null
312
312
  ) {
313
- // check if a scope exist :
314
- @if $scope {
315
- // wrapp grid into scope :
316
- .#{$scope} {
317
- @include _gridle_generate_classes($stateName, $what, true);
313
+ // if the what parameter is not null, mean that we need to generate only certain classes in a certain order :
314
+ @if $what
315
+ {
316
+ // loop on each what item to generate the corresponding classes :
317
+ @each $w in $what
318
+ {
319
+ // check if a scope exist :
320
+ @if $scope {
321
+ // wrapp grid into scope :
322
+ .#{$scope} {
323
+ @include _gridle_generate_classes($stateName, ( $w ), true);
324
+ }
325
+ } @else {
326
+ // generate classes :
327
+ @include _gridle_generate_classes($stateName, ( $w ), false);
328
+ }
329
+ }
330
+ }
331
+ @else
332
+ {
333
+ // don't have any "what" parameter so generate all the classes
334
+ // check if a scope exist :
335
+ @if $scope {
336
+ // wrapp grid into scope :
337
+ .#{$scope} {
338
+ @include _gridle_generate_classes($stateName, null, true);
339
+ }
340
+ } @else {
341
+ // generate classes :
342
+ @include _gridle_generate_classes($stateName, null, false);
318
343
  }
319
- } @else {
320
- // generate classes :
321
- @include _gridle_generate_classes($stateName, $what, false);
322
344
  }
323
345
  }
324
346
  $_gridle_generateOnlyOnce : true; // keep track of generate once classes
@@ -29,13 +29,13 @@
29
29
  // |------------------------------------------------------
30
30
  // |------------------------------------------------------
31
31
  // @created 25.03.13
32
- // @updated 02.06.14
32
+ // @updated 11.06.14
33
33
  // @author Olivier Bossel <olivier.bossel@gmail.com>
34
- // @version 1.3.22
34
+ // @version 1.3.23
35
35
  // |------------------------------------------------------
36
36
  // |------------------------------------------------------
37
37
 
38
- $_gridle-version : "1.3.22";
38
+ $_gridle-version : "1.3.23";
39
39
 
40
40
 
41
41
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gridle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.22
4
+ version: 1.3.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olivier Bossel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-02 00:00:00.000000000 Z
11
+ date: 2014-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass