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
seven-phases-max
8204eca8a0
Merge branch 'philschatz_patch-1' into expand-operator
2015-06-25 17:53:55 +04:00
seven-phases-max
28006cf721
fix Ruleset.prototype.find failing in certain (programmatic usage) cases
2015-04-26 19:50:47 +04:00
seven-phases-max
7203286706
fix #2558
2015-04-19 19:49:27 +04:00
seven-phases-max
1950248a87
fix formatting to meet jscs settings
2015-04-01 21:26:14 +04: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
Luke Page
e411f548c1
Merge pull request #2520 from less/bugfix/2440
...
Fix 2440
2015-03-26 16:25:56 +00:00
rjgotten
56687b9d02
Make functionRegistry in mxin definition inherit from mixinEnv
...
functionRegistry was mistakingly inheriting from the top frame of the
caller context, which was incorrect. It should inherit from definition
scope.
2015-03-23 11:01:51 +01:00
rjgotten
0a6e2f814d
merge changes from upstream
2015-03-23 10:40:01 +01: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
56f5db8362
Mend failing unit tests
2015-03-20 17:15:31 +01: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
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
d7846e2ae5
Merge pull request #2479 from rjgotten/import-plugin
...
Import plugin
2015-03-15 17:44:47 +00:00
rjgotten
a9e0848b6e
Cleaning up some left-overs
...
There were still some changes around that were based on an older
implementation of `@import (plugin)`. This removes them and tidies up
the files.
2015-03-06 10:24:58 +01: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
6c66aeb71c
change use case and add test
2015-02-28 22:32:40 +01:00
Bass Jobsen
57def23b52
Merge branch 'patch-12' of https://github.com/bassjobsen/less.js into patch-12
2015-02-28 15:48:12 +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
rjgotten
83db6e8d90
Allow adding plugins via @import (plugin)
2015-02-25 17:36:00 +01:00
jurcovicovam
028f3c79be
Bubbling of directives.
2015-02-24 17:27:27 +01:00
jurcovicovam
eff8230c3c
directive.rules now holds array instead of single selector.
...
It is because:
1.) Consistency: media.js is done the same way.
2.) Ruleset may or may not change to array in to-css-visitor. All
following code had to hande two cases afterwards.
2015-02-24 14:08:11 +01:00
Bass Jobsen
5bc1208987
do not output when referencing
...
should fix https://github.com/less/less.js/issues/2464
2015-02-23 18:39:39 +01:00
jurcovicovam
2e579cf42a
cleaning up forgotten debug help
2015-02-01 15:39:33 +01: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
Luke Page
4972d476a4
Merge pull request #2423 from SomMeri/extend-on-parent-selector-v1-2206
...
Bug: extend doesn't work when appended on nested selector with &
2015-01-31 08:50:33 +01:00
Luke Page
604c911441
style cop 2 - indentation
2015-01-30 20:41:25 +00:00
Luke Page
1494e25ef0
More style cop..
2015-01-30 18:28:02 +00:00
Luke Page
cf4f8e5a71
if strict units are off also use the denominator, if there is no numerator. Fixes #2418
2015-01-30 17:41:24 +00: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
d206167c84
enforce spaces between operators for consistency
2015-01-27 22:24:12 +00:00
Luke Page
dc703deaf0
laxbreak
2015-01-27 22:02:05 +00:00
Luke Page
28de1cf788
Require parenthesis
2015-01-27 21:57:07 +00:00
Luke Page
08a7f9ebeb
more whitespace rules
2015-01-27 21:38:13 +00:00
Luke Page
7eb3d63632
Prevent double protocol in debug info. Fixes #2383
2015-01-27 17:35:33 +00:00
Luke Page
31c3d04980
jscs style checking. Fixed whitespace issues.
2015-01-26 23:34:35 +00: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
10586f0a92
make node available in tree
2015-01-26 21:53:02 +00: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
20e555bf47
Cleaned up parent selector replacement inside nested selectors :not() and
...
added unit test.
2015-01-20 13:40:56 +01:00