Luke Page
d3c6f2208f
Move toCSS out to a new class (still need to remove creation of that class from parser)
2014-09-04 17:42:38 +01:00
Luke Page
8fc964dc34
Merge remote-tracking branch 'origin/master' into 2_0_0
...
Conflicts:
lib/less/index.js
lib/less/parser/parser.js
lib/less/tree/rule.js
test/less/property-name-interp.less
2014-09-03 07:36:20 +01:00
seven-phases-max
36383dc89b
Fix property interpolation for @* values
2014-09-02 00:02:49 +04:00
Luke Page
ca72b4d92f
Clean up dependency injection so environment is injected at the top level
2014-08-26 22:26:27 +01:00
Luke Page
41732cc60b
pull out the input processing out of the parser class and a few small improvements - the no js option now applies to all js, including that within quotes. The Javascript node now also returns the right index.
2014-08-25 12:19:04 +01:00
Luke Page
95dedcc576
rename env to contexts
2014-08-24 18:03:33 +01:00
Luke Page
c41df95d23
move tree index underneath tree
2014-08-24 18:01:34 +01:00
Luke Page
16746e9b1e
untangle the mess of dependencies and remove all circular dependencies. Remove un-necessary dependency injection.
2014-08-24 17:55:46 +01:00
Luke Page
cde9b79b6c
much improved comment parsing
2014-08-17 11:30:18 +01:00
Luke Page
d7e7ddba44
move functions into its own folder and give it a set interface
2014-08-16 13:17:35 +01:00
Luke Page
ddba055461
Fix merge errors and node tests
2014-08-14 18:03:59 +01:00
Luke Page
f85f253586
merge from master
2014-08-14 17:27:16 +01:00
Luke Page
169bbada40
Merge pull request #2135 from SomMeri/charset-2126
...
Charsets should float on top #2126
2014-08-14 17:12:12 +01:00
Luke Page
3735d8118c
Merge pull request #2128 from SomMeri/issue-2127
...
Mixin wrongly called
2014-08-14 17:11:22 +01:00
Luke Page
74766691cc
Support for /deep/ selector. Fixes #2023
2014-08-14 16:35:13 +01:00
jurcovicovam
e7c81125b7
Charsets should float on top #2126
2014-08-03 10:37:10 +02:00
jurcovicovam
62eb799b40
Issue #2127 , selectors matching function ignored * selector.
2014-07-29 15:36:24 +02:00
jurcovicovam
f4d0442dbc
Removing useless comments.
2014-07-24 14:13:43 +02:00
jurcovicovam
864c63d27b
Fix ordering of @import and @charset rules #1954 #2013
...
The genCss method of ruleset.js splits child nodes into two groups:
* rules,
* rulesets.
Rules are always printed first and have special handling for last rule.
Rulesets are always printed second. Wrong ordering was caused by the
condition that determined what is rule and what is ruleset.
Issue #2013 : The condition made no difference between @charset and @page,
because both are compiled into tree.Directive nodes. I added isRulesetLike
method to the tree.Directive to differentiate between them.
Issue #1954 : The condition treated all tree.Anonymous types as rules and
caused them to float up. That is incorrect, because `@import (inline)` is
compiled into tree.Anonymous too, but should be treated as ruleset and
stay where it is.
2014-07-22 14:46:58 +02:00
Luke Page
fdd01f6b00
merge in latest 1.7.1 release
2014-06-10 19:30:21 +01:00
seven-phases-max
7a1c534e1b
Fixes e("").
2014-05-17 21:29:10 +04:00
seven-phases-max
563c47b7d7
Fixes a regression when a mixin guard can't see the mixin parameter variables in certain cases.
2014-05-10 07:43:03 +04:00
Luke Page
5647d4d276
Ignore quote type when comparing values. Fixes #1992
2014-05-06 06:20:07 +01:00
seven-phases-max
8afeae92d3
Fixed recursive mixin regression, updated tests to detect such regression in future.
2014-03-19 05:55:11 +04:00
Luke Page
aa3abeb716
fix trailing whitespace
2014-03-02 17:51:31 +00:00
Luke Page
7dfc0cf9b0
Merge branch 'whitespace' of github.com:XhmikosR/less.js into 2_0_0
...
Conflicts:
lib/less/functions.js
lib/less/index.js
lib/less/tree/anonymous.js
lib/less/tree/media.js
lib/less/tree/mixin.js
2014-03-02 12:36:49 +00:00
XhmikosR
7efbcd31cf
Trim trailing whitespace.
2014-03-02 14:06:26 +02:00
Luke Page
e5b0fb6967
move the visitors to return themselves instead of assuming where they live
2014-03-02 10:19:05 +00:00
Luke Page
ee64392362
Merge branch 'master' into 2_0_0
...
Conflicts:
lib/less/import-visitor.js
lib/less/index.js
2014-02-27 21:12:49 +00:00
Luke Page
17a92e3f9b
Merge pull request #1890 from roelvanduijnhoven/feature/luma-definition
...
Let `luma` follow spec
2014-02-27 19:53:41 +00:00
Luke Page
ccd8ebbfdf
always execute import-once in the same way. Fixes #1898
2014-02-27 06:12:31 +00:00
Luke Page
08bd23dc2a
add browserify (not yet working) and refactor tree nodes to not be dependent on their parent (currently breaks browser build)
2014-02-24 21:22:52 +00:00
Luke Page
e8c78d9d40
Merge branch 'master' into 2_0_0
...
Conflicts:
lib/less/browser.js
lib/less/parser.js
2014-02-23 17:38:39 +00:00
Luke Page
beb52739c0
allow % to be passed to the unit function. Fixes #1550 and fixes #1571
2014-02-23 17:09:33 +00:00
Luke Page
f0d0ac965d
Merge branch 'master' into 2_0_0
...
Conflicts:
package.json
2014-02-22 15:31:32 +00:00
Luke Page
5ab0e08665
Do not evaluate css with guards if the guards fail. Fixes #1873
2014-02-21 12:37:40 +00:00
Luke Page
7c90acaae6
Fix a small scope issue with mixins when using parent selectors, introduced in 1.6.2. Fixes #1877
2014-02-21 11:22:42 +00:00
Luke Page
bf9c59025b
Fixed that in some situations a mixin call into a referenced file wouldn't import media queries. Fixes #1469
2014-02-21 11:03:38 +00:00
Roel van Duijnhoven
ea1822385a
Let luma follow spec
...
The `luma` function found in LESS is not implemented as defined in the specification (http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef ).
2014-02-20 16:19:19 +01:00
Luke Page
88b44dfc43
make mixin definitions have similar coding style to detached rulesets for grabbing frames
2014-02-17 19:50:43 +00:00
Luke Page
baba33ea6a
Fix some bugs with detached rulesets and media queries
2014-02-17 19:15:47 +00:00
Luke Page
c730829d1d
Fix one issue with media queries and detached rulesets, one to go
2014-02-16 17:50:51 +00:00
Luke Page
8ddcf66a67
Merge branch 'color-string-variable' of https://github.com/seven-phases-max/less.js into 2_0_0
2014-02-13 22:43:53 +00:00
Luke Page
b46ca11286
error tests and test detached rulesets without a mixin call
2014-02-13 21:42:32 +00:00
Luke Page
c301ea6e42
Merge remote-tracking branch 'origin/master' into detached-rulesets
2014-02-12 23:42:15 +00:00
Luke Page
9749d20c3d
Fix tests, fix a bug in comparing values
2014-02-11 21:09:06 +00:00
Luke Page
dff83f8d97
Merge branch 'master' of https://github.com/deviprsd21/less.js
2014-02-11 20:38:12 +00:00
seven-phases-max
68f97faf5d
Fixed empty args matching for named variadics (e.g. .mixin(@var...)).
2014-02-11 19:25:20 +04:00
Luke Page
2be0b8c922
Merge remote-tracking branch 'origin/master' into detached-rulesets
2014-02-11 13:53:16 +00:00
Luke Page
f7414a1072
detached rulesets
2014-02-09 22:20:08 +00:00