Commit Graph

46 Commits

Author SHA1 Message Date
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
Max Mikhailov
1ecce8b3ca tree/directive.js: fix incorrect accept() code
Fixes #2191.
2014-09-17 11:45:57 +04:00
Luke Page
1a78cd5901 Remove unnecessary text from require statements 2014-09-08 00:57:50 +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
e7c81125b7 Charsets should float on top #2126 2014-08-03 10:37:10 +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
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
seven-phases-max
09c4311594 Added support for variables in certain at-rules (keyframes, namespace, charset). 2014-02-09 13:42:01 +04:00
Mark Brennan
261d4e0f9c fixed using starting index for parser nodes, which enables the creation of accurate source maps 2014-01-05 21:10:55 -08:00
Luke Page
3818727bf7 jshint: boss 2013-12-16 23:23:34 +00:00
fredburger
1a33bc69f8 Misc. perf optimizations. #1615 2013-10-30 08:09:17 +01:00
Luke Page
e68f47fec5 Merge branch 'sourcemaps-wip' into 1.5.0-wip
Conflicts:
	bin/lessc
	lib/less/env.js
	lib/less/tree/color.js
	package.json
2013-07-31 22:21:44 +01: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
4bedef4fd3 Fix issue with css guards not hiding inner classes 2013-07-30 12:14:20 +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
fb75c42e4b move more files over to use genCSS 2013-07-18 06:48:32 +01:00
Luke Page
a554b8e088 get closer moving tab control away replacing text after converting to css 2013-07-14 23:04:09 +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
Luke Page
800b4218d5 Start abstracting re-organising logic into a visitor before css output. Will allow nodes to just be 'read' and debugInfo written into a sourcemap. part 1. 2013-07-05 06:52:31 +01:00
agatronic
446e164444 rename mute to reference 2013-07-05 06:51:04 +01:00
Luke Page
f4902f809c rename import silent to import mute. Fixes #1210 2013-07-05 06:51:02 +01:00
Luke Page
dce452421f Fix the rest of import silent 2013-07-05 06:51:01 +01:00
Luke Page
aa802bd84c import silent to work with media queries and directives 2013-07-05 06:50:56 +01:00
Luke Page
ed78502b1e cleanup join selectors from toCSS 2013-03-01 17:39:36 +00:00
Luke Page
c56db94b7d Add modified (self altering) visitor pattern and class 2013-03-01 13:40:00 +00:00
Luke Page
836e805245 eval directives. Fixes #699 2012-08-12 18:03:41 +01:00
Marcel Jackwerth
80e8b42e9a remove @media code from tree.Directive 2012-02-17 01:19:46 +01:00
Marcel Jackwerth
378ddef61f fixed double-space 2012-02-15 17:17:48 +01:00
Marcel Jackwerth
288248dc5a added @media bubbling (similar to SASS) 2012-02-14 20:10:25 +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
cloudhead
9bc9d11518 cleanup ruleset evaluation
- remove eval() from ruleset.toCSS
- fix multiple mixin calls with different arguments yeilding the same
  output.
2010-07-23 19:46:48 -04:00
cloudhead
22f25e19f2 remove evalRules, use eval 2010-07-07 12:19:15 +02:00
cloudhead
a72966fa6a removed constructor names 2010-06-19 01:51:26 -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
335d153d04 treat Directive like a Ruleset 2010-05-23 12:50:20 -04:00
cloudhead
f35d035e51 support CSS3 @media more fully 2010-05-22 18:24:37 -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
fe732e843c refactor of module system. Things work properly now, and it's all much cleaner. 2010-03-13 03:34:48 -05:00
cloudhead
d08c1fe559 basic directive css output 2010-03-05 19:23:39 -05:00
cloudhead
f0f425de33 move node/ -> tree/ 2010-03-05 19:19:14 -05:00