Commit Graph

45 Commits

Author SHA1 Message Date
cloudhead
cb78933423 remove duplicate rules automatically 2012-03-27 16:59:49 +02:00
Alexis Sellier
236f16b124 Allow '@import' directives in any selector
Add --strict-imports option to disable for perf
reasons.
2012-02-28 17:20:11 +01:00
Marcel Jackwerth
53b67e79fe moved @media code to own file 2012-02-16 20:56:21 +01:00
Jacob Thornton
75419077d7 always newline selector lists 2012-01-20 19:56:18 -08:00
Alexis Sellier
7dd31ff654 improve import support with media features 2012-01-05 21:31:39 +01:00
Alexis Sellier
2844e03c5b (minor) tidying up 2012-01-03 18:46:28 +01:00
Alexis Sellier
db72c646bb dynamic selectors
Allows things like:

  a:nth-child(@var) {}
2011-12-15 22:24:52 +01:00
Alexis Sellier
e80847267b fix IE 6 support 2011-11-12 14:06:40 +01:00
Alexis Sellier
c290c48b3f node 0.5.x compatibility 2011-11-12 13:13:36 +01:00
cloudhead
3331637913 make mixins work better with complex selectors 2011-08-20 10:14:18 -04:00
cloudhead
04c2176bdb (minor) ws fixes 2011-07-03 00:19:06 -04:00
James Foster
afd599dcb5 Implement parent selector 2011-07-03 12:07:42 +08: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
e36080a3ff preliminary support for evaluating JavaScript code inside LESS 2010-07-08 19:04:36 +02:00
cloudhead
189b1bf089 big refactoring of ruleset.js, move eval code to eval() 2010-07-07 13:53:09 +02:00
cloudhead
9fa99efc55 don't re-eval ruleset 2010-07-07 12:20:59 +02:00
cloudhead
22f25e19f2 remove evalRules, use eval 2010-07-07 12:19:15 +02:00
cloudhead
944b6703ad (minor) refactoring 2010-07-07 11:59:09 +02:00
cloudhead
5fcad4d348 fix mixin definitions inside other mixin definitions 2010-07-07 11:58:55 +02:00
cloudhead
48690d0208 (doc) comments 2010-07-06 16:51:57 +02:00
cloudhead
04d2d3ab68 make mixins behave like closures 2010-07-06 16:48:05 +02:00
cloudhead
a72966fa6a removed constructor names 2010-06-19 01:51:26 -04:00
cloudhead
6e0a5ad435 don't break when a node doesn't have an eval() function 2010-06-16 18:58:32 -04:00
cloudhead
a1e1f01338 fix comments in mixins. 2010-06-16 02:13:59 -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
f01976bb03 removed unnecessary code in Ruleset#toCSS 2010-05-22 20:57:10 -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
f7a6046fc8 rename variables() to variable() 2010-05-07 00:40:21 -07:00
cloudhead
d56feee6f0 Support for pattern-matching on mixin calls. 2010-04-25 00:09:40 -04:00
cloudhead
3047f7603e use a hash to store variables, fixes variable redifinition bug 2010-04-23 17:52:36 -04:00
cloudhead
63923283fc refactored mixin.definition.eval 2010-04-22 13:47:01 -04:00
cloudhead
6f8fa2d858 Fixed mixin calls not working from dynamic mixins
Dynamic mixins aren't treated enough like Rulesets.
There is some code duplication which needs to be cleaned up,
ideally they should share a prototype.
2010-04-22 13:34:49 -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
cloudhead
4ad707ea8e asynchronous import functionality! All tests passing. 2010-03-21 19:18:47 -04:00
cloudhead
9a583ca6ca no need to pass starting values to toCSS() anymore 2010-03-19 20:14:35 -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
77b2a36059 Cache mixin lookups for a nice speed boost. 2010-03-09 23:56:49 -05:00
cloudhead
6228f4a6d2 cache ruleset lookup 2010-03-07 23:11:20 -05:00
cloudhead
a68a2fc6bf cache variable lookup for a 20% speedup 2010-03-07 23:02:16 -05:00
cloudhead
d8838a01d0 eval() for Ruleset 2010-03-07 18:50:58 -05:00
cloudhead
2b0853de81 comments, wooh! 2010-03-06 17:53:55 -05:00
cloudhead
808bd55a95 let us just assume that a rule which contains subrules is a ruleset 2010-03-06 17:34:08 -05:00
cloudhead
f0f425de33 move node/ -> tree/ 2010-03-05 19:19:14 -05:00