meri
ead3e29f7b
Fixing import by reference
...
- refactored how import reference works
- refactored to-css-visitor (this is side product, it was getting
complicated)
- fixes issues #1851 , #1896 , #1878 , #2716 , #1968 , #2162 (same as #1896 )
2015-11-20 15:10:53 +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
Luke Page
604c911441
style cop 2 - indentation
2015-01-30 20:41:25 +00:00
Luke Page
dc703deaf0
laxbreak
2015-01-27 22:02:05 +00:00
Luke Page
27dea8ed2b
Fix variables with important to be consistent - Fixes #2286
2014-11-15 11:07:10 +00:00
Luke Page
9d535c0470
Whitespace - undo unusual new() syntax
2014-10-19 16:57:22 +01:00
Luke Page
dedf0eee38
rename env to context to avoid confusion with environment
2014-10-05 18:50:34 +01:00
Luke Page
1a78cd5901
Remove unnecessary text from require statements
2014-09-08 00:57:50 +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
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
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
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
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
b46ca11286
error tests and test detached rulesets without a mixin call
2014-02-13 21:42:32 +00:00
seven-phases-max
bca1f996a6
Fixed incorrect property interpolation for certain variable types, updated tests.
2014-01-07 19:51:41 +04:00
seven-phases-max
ebdadaedac
Experimental support for "property name interpolation", part-2.
2013-12-18 07:10:00 +04:00
seven-phases-max
ba5c8189cd
Fixed line/column numbers in math expr/ops error messages. Updated tests.
2013-12-05 10:56:20 +04:00
Luke Page
0c41e06ff8
Merge branch '1.5.0-wip' into sourcemaps-wip
2013-07-20 22:18:54 +01:00
Luke Page
4c51ff1914
Merge branch 'lessmaster' into 1.5.0-wip
2013-07-20 22:17:39 +01:00
Luke Page
bc33e6bfbe
fix regression in support for font property. fixes #1429
2013-07-20 14:56:26 +01:00
Luke Page
f14f86136c
add tests for sourcemaps and get prototype working
2013-07-18 22:21:59 +01:00
Luke Page
1cc63d11b4
convert the rest of the nodes to use genCSS
2013-07-18 12:47:11 +01:00
Luke Page
190bcca19f
Move more toCSS logic into the toCSS visitor
2013-07-16 21:41:38 +01:00
Luke Page
8529f93b48
start moving the tab indent so that css is not modified once output
2013-07-13 15:43:09 +01:00
Luke Page
4db7c883cf
start refactoring toCSS so we will be able to collect sourcemap information at the same time
2013-07-11 22:08:38 +01:00
Kim Joar Bekkelund
5444e9482b
Simplify ifs
2013-07-05 06:51:43 +01:00
Luke Page
5cb5f561c8
Convert property merging to the new agreed syntax of +:
2013-07-05 06:51:41 +01:00
Daniel Katz
5dde7b3381
Added support and tests for !merge() syntax #700
2013-07-05 06:51:39 +01:00
Luke Page
65602099cc
rename strictMaths to strictMath, set default to false, update strict options to take = on | off
2013-05-02 18:18:51 +01:00
Luke Page
2392e4133e
Fix index on mixed units error. Fixes #1228
2013-03-18 10:54:01 +00:00
Luke Page
c139c6e4df
error when property is used in root. Fixes #442
2013-03-05 13:28:49 +00:00
Luke Page
c56db94b7d
Add modified (self altering) visitor pattern and class
2013-03-01 13:40:00 +00:00
Luke Page
e21bf1d7a1
Legacy maths mode supports old special cases for font property and media queries
2013-02-02 15:49:43 +00:00
Luke Page
d395adc55b
remove shorthand
2013-02-02 15:39:59 +00:00
Luke Page
1175ddc01c
Fixi important on mixin calls when mixin has rulesets or comments
2012-10-25 11:52:07 +01:00
Alexis Sellier
ff3d7c61ff
properly support @media and @import features
2011-12-17 17:41:54 +01:00
Alexis Sellier
c290c48b3f
node 0.5.x compatibility
2011-11-12 13:13:36 +01:00
cloudhead
f817dcd2fe
fix '!important' in certain scenarios
2010-06-27 16:40:12 -04:00
cloudhead
a72966fa6a
removed constructor names
2010-06-19 01:51:26 -04:00
cloudhead
691dab11af
put Value in value.js
2010-06-15 18:46:09 -04:00
cloudhead
7768d41050
better cross-environment handling. stub out require() in browser.
2010-06-15 18:44:59 -04:00
cloudhead
123440864f
(new) css compression support
2010-06-11 21:45:51 -04:00
cloudhead
25e3205eb3
Better error messages, wrap browser.js.
2010-06-07 15:47:41 -04:00
cloudhead
f5f0919349
Refactored some of the evaluation mechanisms
...
- Don't call `eval` from `toCSS`
- Every node responds to `eval`
2010-05-07 23:21:16 -04:00
cloudhead
50e76c3912
evaluate Values of length > 1 properly
2010-05-06 09:46:36 -07:00
cloudhead
d56feee6f0
Support for pattern-matching on mixin calls.
2010-04-25 00:09:40 -04:00
cloudhead
25dbfb177a
Fix dynamic mixins with nested rules
...
Dynamic mixins with more than one level of nesting wouldn't work.
This is now fixed. Also refactored mixin.definition.eval a little.
2010-04-22 13:07:41 -04:00