Luke Page
c757befb4f
flatten import visitor so that variable imports can be processed at the end of a global queue
2014-10-23 21:33:28 +01:00
Luke Page
148a0f5908
put the appendage of the .less extension through the file manager so that behaviour can be over-ridden. Fixes #2235
2014-10-21 13:16:40 +01: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
7a6b1e278b
Pull out the file manager aspect of the environment so new file managers can be added dynamically
2014-10-04 17:46:30 +01:00
Luke Page
1a78cd5901
Remove unnecessary text from require statements
2014-09-08 00:57:50 +01:00
Luke Page
50e299b8bc
Fix url import. Fixes #2089 .
2014-09-07 14:40:28 +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
f85f253586
merge from master
2014-08-14 17:27:16 +01: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
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
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
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
meri
85197ee577
Merge branch 'master' of https://github.com/less/less.js into rhino
...
Conflicts:
.gitattributes
README.md
test/index.js
2014-01-14 22:48:46 +01:00
meri
cba972d0db
Fixing url slash problem that caused failures.
2013-12-18 16:17:00 +01:00
fredburger
1a33bc69f8
Misc. perf optimizations. #1615
2013-10-30 08:09:17 +01:00
Luke Page
62751c917c
support inline css files in the sourcemaps
2013-09-17 19:37:00 +01:00
Luke Page
c1928b49d4
Merge branch 'normalized-urls' of https://github.com/rjgotten/less.js into 1.5.0-wip
...
Conflicts:
test/css/static-urls/urls.css
test/css/urls.css
2013-09-01 18:17:32 +01:00
rjgotten
e0561e3d95
Normalize URLs in generated CSS
...
Adds a normalizePath method to tree.evalEnv.prototype with which to normalize paths, i.e. , remove /../ or /./ segments stuck in the middle.
Unit tests have been updated to reflect these changes.
2013-08-07 10:44:12 +02:00
Luke Page
969e70a573
sourcemaps: Fix some issues with output, add an inline flag, add a test harness
2013-07-31 22:11:53 +01:00
Luke Page
b2a445c46c
pass more lines and columns to the sourcemap generator. start passing the filenames to the sourcemap generator.
2013-07-20 23:02:28 +01:00
Luke Page
fc35190d38
unused variable cleanup
2013-07-20 22:44:13 +01:00
Luke Page
fb75c42e4b
move more files over to use genCSS
2013-07-18 06:48:32 +01:00
Luke Page
037cdb5916
fix tests
2013-07-15 22:03:52 +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
Luke Page
6fc6dc2301
Add import inline option. Fixes #1209
2013-07-05 06:48:47 +01:00
Luke Page
3ac8371aea
Change import options to require '('
2013-03-05 11:35:41 +00:00
C. Scott Ananian
72c469d86e
Implement syntax in gh #1185 for @import options. Implement multiple & less.
...
First step in implementing syntax for @import options, proposed in
https://github.com/cloudhead/less.js/issues/1185#issuecomment-13710620
(steps (1) and (2)).
I've implemented the 'multiple' and 'less' options. One could trivially
add 'once' and 'css' options as well, if there was need. Proposed
"silent" and "inline" options are deferred for future work.
I left the existing "@import-multiple" and "@import-once" syntax in place,
although the proposal is for this to be deprecated once the new option
syntax is in place.
2013-03-05 11:23:47 +00:00
Luke Page
5d54af2039
import interpolation finished. refactored the import phase to occur only within the import visitor - so that the import eval env can be passed between imports.
2013-03-01 13:40:54 +00:00
Luke Page
57b41f0ea0
make import use shared relative path function
2013-03-01 13:40:50 +00:00
Luke Page
290d7a055c
organise the import node a bit better. eval the node before fetching
2013-03-01 13:40:49 +00:00
Luke Page
e63c8c5868
Move importing into visitor
2013-03-01 13:40:03 +00:00
Luke Page
c56db94b7d
Add modified (self altering) visitor pattern and class
2013-03-01 13:40:00 +00:00
Luke Page
9b256f2340
whitespace
2013-02-28 20:17:52 +00:00
Luke Page
d70769bfb7
variables in media queries in import statements
2013-02-16 14:44:58 +00:00
Luke Page
914eb404d7
Fix import errors in browser mode. Fixes #1117 and fixes #1118
2013-02-10 12:47:25 +00:00
Luke Page
8069e707db
fix typo on import
2012-12-28 22:30:09 +00:00
Luke Page
3dc7ce3f92
Do not add .less if the file has an extension already or has url parameters. Also support ';' instead of '?'. Fixes #784 and fixes #204
2012-12-28 21:29:08 +00:00
Luke Page
59258f5549
Fix server tests and an import bug when a media import is followed by further imports
2012-12-28 11:08:49 +00:00
Salim Bensiali
e59a93b5fd
Relative URLs in LESS files should be relative to the file that defines them.
...
It is up to the parser and compiler to rewrite them when those files are
imported by another LESS file.
- Modified and added test cases for import and import-once rules
- Fixed difference between client side and server side handling of relative urls
- Added a -rootpath option to lessc to specify another base path for the url
rewriting. By default, rootpath=''
2012-12-27 20:40:16 +00:00
cloudhead
8891564917
import-once functionality
2012-03-21 18:03:04 +01:00
Marcel Jackwerth
80e8b42e9a
remove @media code from tree.Directive
2012-02-17 01:19:46 +01:00
Alexis Sellier
2cc1b018fe
fix 'File not found' import error
2012-01-10 23:52:45 +01:00
Alexis Sellier
6d4516e6fc
improve errors from imported files
2012-01-09 20:39:24 +01:00
Alexis Sellier
7dd31ff654
improve import support with media features
2012-01-05 21:31:39 +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
revolunet
f1695f6a9a
support imports with querystrings (google fonts) fix #265
2011-07-08 01:29:39 +02:00