less 1.7.4 → 1.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/.idea/jsLibraryMappings.xml +0 -1
  2. package/.idea/workspace.xml +160 -202
  3. package/CHANGELOG.md +13 -0
  4. package/Gruntfile.js +0 -12
  5. package/README.md +53 -53
  6. package/bin/lessc +4 -1
  7. package/bower.json +2 -2
  8. package/dist/less-1.7.4.js +59 -59
  9. package/dist/less-1.7.4.min.js +12 -12
  10. package/dist/less-1.7.5.js +8008 -0
  11. package/dist/less-1.7.5.min.js +16 -0
  12. package/dist/less-rhino-1.7.4.js +48 -48
  13. package/dist/less-rhino-1.7.5.js +9383 -0
  14. package/dist/lessc-rhino-1.7.4.js +2 -2
  15. package/dist/lessc-rhino-1.7.5.js +449 -0
  16. package/lib/less/functions.js +8 -1
  17. package/lib/less/import-visitor.js +2 -2
  18. package/lib/less/index.js +3 -3
  19. package/lib/less/parser/parser.js.orig +1747 -0
  20. package/lib/less/parser.js +27 -1
  21. package/lib/less/tree/directive.js +4 -1
  22. package/lib/less/tree/element.js +6 -22
  23. package/lib/less/tree/rule.js +7 -4
  24. package/lib/less/tree/rule.js.orig +164 -0
  25. package/lib/less/tree/ruleset.js +8 -1
  26. package/lib/less/tree/selector.js +1 -1
  27. package/package.json +6 -6
  28. package/test/browser/less.js +7275 -6947
  29. package/test/css/comments.css +8 -0
  30. package/test/css/css-3.css +6 -0
  31. package/test/css/import.css +5 -0
  32. package/test/css/mixins.css +3 -0
  33. package/test/css/property-name-interp.css +1 -0
  34. package/test/css/urls.css +1 -0
  35. package/test/less/comments.less +14 -1
  36. package/test/less/css-3.less +7 -0
  37. package/test/less/errors/import-malformed.less +1 -1
  38. package/test/less/errors/import-malformed.txt +3 -3
  39. package/test/less/import.less +8 -2
  40. package/test/less/mixins.less +1 -0
  41. package/test/less/property-name-interp.less +4 -1
  42. package/test/less/property-name-interp.less.orig +59 -0
  43. package/test/less/urls.less +2 -1
  44. package/test/modify-vars.js +17 -0
  45. package/tmp/browser/test-runner-main.html +4 -0
  46. package/tmp/less.js +8295 -0
  47. package/build/README.md +0 -53
@@ -1,5 +1,5 @@
1
- /* Less.js v1.7.4 RHINO | Copyright (c) 2009-2014, Alexis Sellier <self@cloudhead.net> */
2
-
1
+ /* Less.js v1.7.4 RHINO | Copyright (c) 2009-2014, Alexis Sellier <self@cloudhead.net> */
2
+
3
3
  //
4
4
  // Stub out `require` in rhino
5
5
  //
@@ -12,12 +12,12 @@ function require(arg) {
12
12
  return resultModule;
13
13
  }
14
14
 
15
-
15
+
16
16
  if (typeof(window) === 'undefined') { less = {} }
17
17
  else { less = window.less = {} }
18
18
  tree = less.tree = {};
19
19
  less.mode = 'rhino';
20
-
20
+
21
21
  (function() {
22
22
 
23
23
  console = function() {
@@ -149,7 +149,7 @@ less.mode = 'rhino';
149
149
  }
150
150
 
151
151
  })();
152
-
152
+
153
153
  var less, tree;
154
154
 
155
155
  // Node.js does not have a header file added which defines less
@@ -2233,7 +2233,7 @@ less.Parser.serializeVars = function(vars) {
2233
2233
 
2234
2234
  return s;
2235
2235
  };
2236
-
2236
+
2237
2237
  (function (tree) {
2238
2238
 
2239
2239
  tree.functions = {
@@ -2998,7 +2998,7 @@ tree.functionCall = function(env, currentFileInfo) {
2998
2998
  tree.functionCall.prototype = tree.functions;
2999
2999
 
3000
3000
  })(require('./tree'));
3001
-
3001
+
3002
3002
  (function (tree) {
3003
3003
  tree.colors = {
3004
3004
  'aliceblue':'#f0f8ff',
@@ -3150,7 +3150,7 @@ tree.functionCall.prototype = tree.functions;
3150
3150
  'yellowgreen':'#9acd32'
3151
3151
  };
3152
3152
  })(require('./tree'));
3153
-
3153
+
3154
3154
  (function (tree) {
3155
3155
 
3156
3156
  tree.debugInfo = function(env, ctx, lineSeperator) {
@@ -3248,7 +3248,7 @@ tree.outputRuleset = function (env, output, rules) {
3248
3248
  };
3249
3249
 
3250
3250
  })(require('./tree'));
3251
-
3251
+
3252
3252
  (function (tree) {
3253
3253
 
3254
3254
  tree.Alpha = function (val) {
@@ -3278,7 +3278,7 @@ tree.Alpha.prototype = {
3278
3278
  };
3279
3279
 
3280
3280
  })(require('../tree'));
3281
-
3281
+
3282
3282
  (function (tree) {
3283
3283
 
3284
3284
  tree.Anonymous = function (value, index, currentFileInfo, mapLines, rulesetLike) {
@@ -3317,7 +3317,7 @@ tree.Anonymous.prototype = {
3317
3317
  };
3318
3318
 
3319
3319
  })(require('../tree'));
3320
-
3320
+
3321
3321
  (function (tree) {
3322
3322
 
3323
3323
  tree.Assignment = function (key, val) {
@@ -3347,7 +3347,7 @@ tree.Assignment.prototype = {
3347
3347
  };
3348
3348
 
3349
3349
  })(require('../tree'));
3350
-
3350
+
3351
3351
  (function (tree) {
3352
3352
 
3353
3353
  //
@@ -3419,7 +3419,7 @@ tree.Call.prototype = {
3419
3419
  };
3420
3420
 
3421
3421
  })(require('../tree'));
3422
-
3422
+
3423
3423
  (function (tree) {
3424
3424
  //
3425
3425
  // RGB Colors - #ff0014, #eee
@@ -3609,7 +3609,7 @@ function clamp(v, max) {
3609
3609
  }
3610
3610
 
3611
3611
  })(require('../tree'));
3612
-
3612
+
3613
3613
  (function (tree) {
3614
3614
 
3615
3615
  tree.Comment = function (value, silent, index, currentFileInfo) {
@@ -3638,7 +3638,7 @@ tree.Comment.prototype = {
3638
3638
  };
3639
3639
 
3640
3640
  })(require('../tree'));
3641
-
3641
+
3642
3642
  (function (tree) {
3643
3643
 
3644
3644
  tree.Condition = function (op, l, r, i, negate) {
@@ -3688,7 +3688,7 @@ tree.Condition.prototype = {
3688
3688
  };
3689
3689
 
3690
3690
  })(require('../tree'));
3691
-
3691
+
3692
3692
  (function (tree) {
3693
3693
 
3694
3694
  tree.DetachedRuleset = function (ruleset, frames) {
@@ -3709,7 +3709,7 @@ tree.DetachedRuleset.prototype = {
3709
3709
  }
3710
3710
  };
3711
3711
  })(require('../tree'));
3712
-
3712
+
3713
3713
  (function (tree) {
3714
3714
 
3715
3715
  //
@@ -4034,7 +4034,7 @@ tree.Unit.prototype = {
4034
4034
  };
4035
4035
 
4036
4036
  })(require('../tree'));
4037
-
4037
+
4038
4038
  (function (tree) {
4039
4039
 
4040
4040
  tree.Directive = function (name, value, rules, index, currentFileInfo, debugInfo) {
@@ -4107,7 +4107,7 @@ tree.Directive.prototype = {
4107
4107
  };
4108
4108
 
4109
4109
  })(require('../tree'));
4110
-
4110
+
4111
4111
  (function (tree) {
4112
4112
 
4113
4113
  tree.Element = function (combinator, value, index, currentFileInfo) {
@@ -4216,7 +4216,7 @@ tree.Combinator.prototype = {
4216
4216
  };
4217
4217
 
4218
4218
  })(require('../tree'));
4219
-
4219
+
4220
4220
  (function (tree) {
4221
4221
 
4222
4222
  tree.Expression = function (value) { this.value = value; };
@@ -4271,7 +4271,7 @@ tree.Expression.prototype = {
4271
4271
  };
4272
4272
 
4273
4273
  })(require('../tree'));
4274
-
4274
+
4275
4275
  (function (tree) {
4276
4276
 
4277
4277
  tree.Extend = function Extend(selector, option, index) {
@@ -4325,7 +4325,7 @@ tree.Extend.prototype = {
4325
4325
  };
4326
4326
 
4327
4327
  })(require('../tree'));
4328
-
4328
+
4329
4329
  (function (tree) {
4330
4330
  //
4331
4331
  // CSS @import node
@@ -4450,7 +4450,7 @@ tree.Import.prototype = {
4450
4450
  };
4451
4451
 
4452
4452
  })(require('../tree'));
4453
-
4453
+
4454
4454
  (function (tree) {
4455
4455
 
4456
4456
  tree.JavaScript = function (string, index, escaped) {
@@ -4509,7 +4509,7 @@ tree.JavaScript.prototype = {
4509
4509
 
4510
4510
  })(require('../tree'));
4511
4511
 
4512
-
4512
+
4513
4513
  (function (tree) {
4514
4514
 
4515
4515
  tree.Keyword = function (value) { this.value = value; };
@@ -4534,7 +4534,7 @@ tree.True = new(tree.Keyword)('true');
4534
4534
  tree.False = new(tree.Keyword)('false');
4535
4535
 
4536
4536
  })(require('../tree'));
4537
-
4537
+
4538
4538
  (function (tree) {
4539
4539
 
4540
4540
  tree.Media = function (value, features, index, currentFileInfo) {
@@ -4692,7 +4692,7 @@ tree.Media.prototype = {
4692
4692
  };
4693
4693
 
4694
4694
  })(require('../tree'));
4695
-
4695
+
4696
4696
  (function (tree) {
4697
4697
 
4698
4698
  tree.mixin = {};
@@ -5009,7 +5009,7 @@ tree.mixin.Definition.prototype = {
5009
5009
  };
5010
5010
 
5011
5011
  })(require('../tree'));
5012
-
5012
+
5013
5013
  (function (tree) {
5014
5014
 
5015
5015
  tree.Negative = function (node) {
@@ -5034,7 +5034,7 @@ tree.Negative.prototype = {
5034
5034
  };
5035
5035
 
5036
5036
  })(require('../tree'));
5037
-
5037
+
5038
5038
  (function (tree) {
5039
5039
 
5040
5040
  tree.Operation = function (op, operands, isSpaced) {
@@ -5092,7 +5092,7 @@ tree.operate = function (env, op, a, b) {
5092
5092
  };
5093
5093
 
5094
5094
  })(require('../tree'));
5095
-
5095
+
5096
5096
 
5097
5097
  (function (tree) {
5098
5098
 
@@ -5116,7 +5116,7 @@ tree.Paren.prototype = {
5116
5116
  };
5117
5117
 
5118
5118
  })(require('../tree'));
5119
-
5119
+
5120
5120
  (function (tree) {
5121
5121
 
5122
5122
  tree.Quoted = function (str, content, escaped, index, currentFileInfo) {
@@ -5173,7 +5173,7 @@ tree.Quoted.prototype = {
5173
5173
  };
5174
5174
 
5175
5175
  })(require('../tree'));
5176
-
5176
+
5177
5177
  (function (tree) {
5178
5178
 
5179
5179
  tree.Rule = function (name, value, important, merge, index, currentFileInfo, inline) {
@@ -5264,7 +5264,7 @@ function evalName(env, name) {
5264
5264
  }
5265
5265
 
5266
5266
  })(require('../tree'));
5267
-
5267
+
5268
5268
  (function (tree) {
5269
5269
 
5270
5270
  tree.RulesetCall = function (variable) {
@@ -5281,7 +5281,7 @@ tree.RulesetCall.prototype = {
5281
5281
  };
5282
5282
 
5283
5283
  })(require('../tree'));
5284
-
5284
+
5285
5285
  (function (tree) {
5286
5286
 
5287
5287
  tree.Ruleset = function (selectors, rules, strictImports) {
@@ -5854,7 +5854,7 @@ tree.Ruleset.prototype = {
5854
5854
  }
5855
5855
  };
5856
5856
  })(require('../tree'));
5857
-
5857
+
5858
5858
  (function (tree) {
5859
5859
 
5860
5860
  tree.Selector = function (elements, extendList, condition, index, currentFileInfo, isReferenced) {
@@ -5984,7 +5984,7 @@ tree.Selector.prototype = {
5984
5984
  };
5985
5985
 
5986
5986
  })(require('../tree'));
5987
-
5987
+
5988
5988
  (function (tree) {
5989
5989
 
5990
5990
  tree.UnicodeDescriptor = function (value) {
@@ -6000,7 +6000,7 @@ tree.UnicodeDescriptor.prototype = {
6000
6000
  };
6001
6001
 
6002
6002
  })(require('../tree'));
6003
-
6003
+
6004
6004
  (function (tree) {
6005
6005
 
6006
6006
  tree.URL = function (val, currentFileInfo, isEvald) {
@@ -6054,7 +6054,7 @@ tree.URL.prototype = {
6054
6054
  };
6055
6055
 
6056
6056
  })(require('../tree'));
6057
-
6057
+
6058
6058
  (function (tree) {
6059
6059
 
6060
6060
  tree.Value = function (value) {
@@ -6089,7 +6089,7 @@ tree.Value.prototype = {
6089
6089
  };
6090
6090
 
6091
6091
  })(require('../tree'));
6092
-
6092
+
6093
6093
  (function (tree) {
6094
6094
 
6095
6095
  tree.Variable = function (name, index, currentFileInfo) {
@@ -6134,7 +6134,7 @@ tree.Variable.prototype = {
6134
6134
  };
6135
6135
 
6136
6136
  })(require('../tree'));
6137
-
6137
+
6138
6138
  (function (tree) {
6139
6139
 
6140
6140
  var parseCopyProperties = [
@@ -6273,7 +6273,7 @@ tree.Variable.prototype = {
6273
6273
  };
6274
6274
 
6275
6275
  })(require('./tree'));
6276
-
6276
+
6277
6277
  (function (tree) {
6278
6278
 
6279
6279
  var _visitArgs = { visitDeeper: true },
@@ -6419,7 +6419,7 @@ tree.Variable.prototype = {
6419
6419
  }
6420
6420
  };
6421
6421
 
6422
- })(require('./tree'));
6422
+ })(require('./tree'));
6423
6423
  (function (tree) {
6424
6424
  tree.importVisitor = function(importer, finish, evalEnv, onceFileDetectionMap, recursionDetector) {
6425
6425
  this._visitor = new tree.visitor(this);
@@ -6564,7 +6564,7 @@ tree.Variable.prototype = {
6564
6564
  };
6565
6565
 
6566
6566
  })(require('./tree'));
6567
-
6567
+
6568
6568
  (function (tree) {
6569
6569
  tree.joinSelectorVisitor = function() {
6570
6570
  this.contexts = [[]];
@@ -6608,7 +6608,7 @@ tree.Variable.prototype = {
6608
6608
  }
6609
6609
  };
6610
6610
 
6611
- })(require('./tree'));
6611
+ })(require('./tree'));
6612
6612
  (function (tree) {
6613
6613
  tree.toCSSVisitor = function(env) {
6614
6614
  this._visitor = new tree.visitor(this);
@@ -6851,7 +6851,7 @@ tree.Variable.prototype = {
6851
6851
  }
6852
6852
  };
6853
6853
 
6854
- })(require('./tree'));
6854
+ })(require('./tree'));
6855
6855
  (function (tree) {
6856
6856
  /*jshint loopfunc:true */
6857
6857
 
@@ -7268,7 +7268,7 @@ tree.Variable.prototype = {
7268
7268
  };
7269
7269
 
7270
7270
  })(require('./tree'));
7271
-
7271
+
7272
7272
  (function (tree) {
7273
7273
 
7274
7274
  tree.sourceMapOutput = function (options) {
@@ -7410,11 +7410,11 @@ tree.Variable.prototype = {
7410
7410
  };
7411
7411
 
7412
7412
  })(require('./tree'));
7413
-
7413
+
7414
7414
  // wraps the source-map code in a less module
7415
7415
  (function() {
7416
7416
  less.modules["source-map"] = function() {
7417
-
7417
+
7418
7418
  /*
7419
7419
  * Copyright 2011 Mozilla Foundation and contributors
7420
7420
  * Licensed under the New BSD license. See LICENSE or:
@@ -9347,7 +9347,7 @@ this.sourceMap = {
9347
9347
  SourceMapGenerator: require('source-map/source-map-generator').SourceMapGenerator,
9348
9348
  SourceNode: require('source-map/source-node').SourceNode
9349
9349
  };
9350
-
9350
+
9351
9351
  // footer to wrap "source-map" module
9352
9352
  return this.sourceMap;
9353
9353
  }();