Commit Graph

518 Commits

Author SHA1 Message Date
Luke Page
8a135bd89b Merge pull request #2643 from SomMeri/shorthand-color-interpolated-into-selector-1481
Keep shorthand color form the same way as named colors are kept.
2015-09-09 13:03:03 +01:00
Jacques Favreau
74ef1ebacd Reference inline comments.
As described in https://github.com/less/less.js/issues/2675 in-value comments are not preserved in referenced rules.

This patch adds reference marking to nodes below rules and expressions if markReferenced is available.
2015-08-31 11:42:40 -07:00
jurcovicovam
30fe1cb9e2 Keep shorthand color form the same way as named colors are kept. #2481 2015-07-19 14:54:41 +02:00
seven-phases-max
3178103b7f merge updated expand-operator with master
plus reworked tests
2015-06-25 23:53:32 +04:00
Luke Page
7ed9574d8a Merge pull request #2530 from seven-phases-max/proper-non-primitive-value-replacement-for-format-and-replace
Proper non-primitive value replacement for `%` and `replace`
2015-04-03 08:04:03 +01:00
Bass Jobsen
ea43e7d6d0 Merge remote-tracking branch 'upstream/master' into image-size 2015-04-01 23:45:14 +02:00
Luke Page
86fa4f6f9d Merge pull request #2522 from rjgotten/fix-plugin-scoping
Fix `@plugin` scoping rules
2015-04-01 06:46:40 +01:00
seven-phases-max
13ef5b7422 proper non-primitive value replacement for % and replace functions 2015-03-31 19:35:22 +04:00
Bass Jobsen
f0f271919b fixes for issue #2482 2015-03-29 18:16:01 +02:00
Luke Page
e411f548c1 Merge pull request #2520 from less/bugfix/2440
Fix 2440
2015-03-26 16:25:56 +00:00
rjgotten
0a6e2f814d merge changes from upstream 2015-03-23 10:40:01 +01:00
Luke Page
17aafae556 Add test for #2440 2015-03-21 22:08:50 +00:00
Luke Page
e0dff5308c Bubble import only above other non comment, non charset rules. Fixes #2440 2015-03-21 22:06:01 +00:00
seven-phases-max
414d21c7af Fix naked url import 2015-03-21 15:19:14 +04:00
rjgotten
4d17c8b35d Fix plugin scope for mixins, directives and detached rulesets
Fixed scope for plugins to apply correctly for mixins, directives and
detached rulesets.
Updated plugin unit tests to be more comprehensive
2015-03-20 16:41:05 +01:00
Luke Page
a6dca8872a Merge pull request #2504 from bassjobsen/relative
optional relative amounts for color functions, see#975
2015-03-20 08:22:44 +00:00
Luke Page
b10928720f Merge branch 'tests' of https://github.com/bassjobsen/less.js
Conflicts:
	test/index.js
2015-03-20 08:11:46 +00:00
rjgotten
b948dad7ab Fix selectors folding into directives
When directives bubble up to global scope, selectors are no longer
folded into directives that do not logically allow them.
Fixes #2511
2015-03-19 20:22:40 +01:00
Luke Page
8526dee6be Merge pull request #2505 from bassjobsen/paths
fix for issue #2500
2015-03-16 06:40:19 +00:00
Bass Jobsen
4bb098bfc9 fix for issue #2500 2015-03-15 23:09:50 +01:00
Luke Page
d7846e2ae5 Merge pull request #2479 from rjgotten/import-plugin
Import plugin
2015-03-15 17:44:47 +00:00
Bass Jobsen
622a521b11 optional relative amounts for color functions, see#975 2015-03-15 00:12:47 +01:00
Bass Jobsen
1376b77582 all tests run both in browser and CLI now 2015-03-11 10:24:37 +01:00
Calvin Juárez
fb81856a61 tests – update tests to reflect changes 2015-03-10 18:26:40 -06:00
rjgotten
94d3f469d4 merge from upstream 2015-03-05 16:12:56 +01:00
rjgotten
d119e01807 Scoped @import (plugin) functions loading
- Limited @import (plugin) support to add/addMultiple of functions
- Altered @import (plugin) loading to support browser
- Support proper closure scoping of @import (plugin) loaded functions
2015-03-05 15:55:37 +01:00
Bass Jobsen
410a86a594 run postprocess plugin test CLI too 2015-03-04 09:11:17 +01:00
Luke Page
a37a742b7d Fix #2472 - don't loose the unit when not in strictUnits mode 2015-02-26 18:41:26 +00:00
Luke Page
7d86a5e72d Temp. fix for comment nodes in functions. Fixes #2475 2015-02-26 18:22:39 +00:00
rjgotten
d96af08795 Fix lint errors and add tests for @import (plugin) 2015-02-26 14:40:36 +01:00
jurcovicovam
028f3c79be Bubbling of directives. 2015-02-24 17:27:27 +01:00
Luke Page
97d039f267 extract and length now skip over comment nodes. Fixes #2431 2015-02-04 17:28:48 +00:00
Luke Page
23a1159c44 Merge branch 'master' of https://github.com/less/less.js 2015-02-02 21:53:31 +00:00
Luke Page
2114a3fe7a fragment urls referencing just a fragment are assumed absolute - referencing the current page. Fixes #2320 2015-02-02 20:08:48 +00:00
jurcovicovam
996947d2f6 Fixing makeImportant on mixins and rulesets: #2421
1.) Rulesets `makeImportant` must create a new ruleset.
2.) Mixin-definition `makeImportant` must create a new mixin definition.
It must NOT convert mixin into ruleset.
2015-02-01 15:32:58 +01:00
jurcovicovam
b9a3d45dbb Selector composed from multiple joined selectors should keep original
extends. #2206
2015-01-30 13:54:21 +01:00
jurcovicovam
dc93dd54bf Merge https://github.com/less/less.js into nested-parent-selector-2026-v1
Conflicts:
	lib/less/parser/parser.js
	lib/less/tree/ruleset.js
2015-01-28 10:46:49 +01:00
jurcovicovam
964b991423 Reviews changes: spacing and commented code.
Bug fixed: fixed handling of multi level nesting.
2015-01-28 09:50:44 +01:00
Luke Page
69d4d60240 Merge pull request #2401 from SomMeri/interpolate-pseudo-selector-1294
Allow selector interpolation inside pseudoselectors. #1294
2015-01-26 23:14:47 +01:00
Luke Page
3571cadafb Merge pull request #2404 from SomMeri/important-with-nested-mixin-v2-2394
Important on parametrized mixin
2015-01-26 23:13:17 +01:00
Luke Page
ab96e71a34 Merge remote-tracking branch 'sommeri/import-refence-directives-2008'
Conflicts:
	test/css/import-reference.css
	test/less/import-reference.less
	test/less/import/import-reference.less
2015-01-26 22:08:35 +00:00
Luke Page
8ba6080171 also test for using string functions with data-uri as that used to fail 2015-01-26 20:20:13 +00:00
Luke Page
b09f30e079 support variables passed to data-uri 2015-01-26 20:17:27 +00:00
Luke Page
5e6e16ed8c pick up comments on the end of the file 2015-01-26 19:52:56 +00:00
jurcovicovam
dc2b685194 Added unit test for referenced parent selectors
Name: Parent selectors not working within mixins using (reference)
Number: #1979
2015-01-23 18:42:02 +01:00
jurcovicovam
8f1c35a814 Extend looses @supports imported by reference
New logic: directive with body that contains something referenced (for
example by extend) will be shown in output too. @Media works with the same
logic - it shows up in output if it contains something visible.

Related to: #2359
2015-01-23 17:48:26 +01:00
jurcovicovam
ed9b6efb13 Keyframes, supports and other directives should work with import
reference. #2008
2015-01-22 14:03:00 +01:00
jurcovicovam
d0e217e743 Important on parametrized mixin #2394
The !important flag on mixin call prevented proper evaluation of variables inside nested mixins. #2394
2015-01-21 14:54:48 +01:00
jurcovicovam
e064ac0ef2 Allow selector interpolation inside pseudoselectors. #1294 2015-01-20 16:08:02 +01:00
jurcovicovam
20e555bf47 Cleaned up parent selector replacement inside nested selectors :not() and
added unit test.
2015-01-20 13:40:56 +01:00