Commit Graph

1136 Commits

Author SHA1 Message Date
Luke Page
bc6abb8e8b Change version to 1.4.0-b1 and regenerate beta files v1.4.0-b1 2013-03-08 08:22:58 +00:00
Luke Page
ac3a92dd30 add clamping to hsl and hsla functions 2013-03-08 08:22:57 +00:00
Luke Page
b200459986 Update CHANGELOG.md
added 1.4.0 beta details
2013-03-07 16:11:59 +00:00
Luke Page
9fd802f2c3 update package.json 2013-03-07 15:41:06 +00:00
agatronic
2589d5ed94 Make alpha release a beta release 2013-03-07 15:05:18 +00:00
agatronic
3a0bd6f152 Alpha update 2013-03-07 15:04:03 +00:00
Luke Page
096a69796f support media queries in extend chaining. Also tidied up. Fixes #1213 2013-03-07 15:02:39 +00:00
Luke Page
2ff9ae521e Allow circular references and ignore them when they become circular 2013-03-07 14:17:20 +00:00
Luke Page
7170aaf06e First part of extend chaining 2013-03-07 12:17:24 +00:00
Luke Page
99aa363b70 fix, less with compression (-x) was unable to parse auto\9 2013-03-06 16:06:16 +00:00
Luke Page
900daaca59 Alpha release 2013-03-06 15:10:19 +00:00
Luke Page
c17d939ea7 Allow multiple extends for more declarative multiple inheritance 2013-03-06 15:09:43 +00:00
Luke Page
45ea535a90 Add implementation of dependency tree 2013-03-06 10:43:45 +00:00
Stefan Wallin
afbe22d215 * "Added a -depends switch which outputs a dependency line suitable for a makefile" (10696d9c11)
* Added a synonym flag "-M" to "-depends" to match syntax of other compilers.
* Added support for recursive dependencies.
* Fixed some issues with path calculation when dependencies and recursive dependencies.

lukeapage - removed the actual writing of dependency lines ready for re-implementation
2013-03-06 10:40:49 +00:00
Luke Page
dca16509c2 fix regression: mixin guards compare units correctly 2013-03-06 10:07:43 +00:00
Luke Page
c583acede0 Fix default variables containing comma when semi-colon seperated mixin definition. Fixes #1211 2013-03-06 09:55:14 +00:00
Luke Page
10caaac723 correct bad test txt 2013-03-06 09:53:57 +00:00
Luke Page
d302fe86b1 refactor mixin call arguments into a seperate function 2013-03-06 09:05:28 +00:00
Luke Page
7217cb5e6a refactor extend visitor to be more readable and maintainable 2013-03-06 08:38:01 +00:00
Luke Page
cf9496ec32 remove shallow/deep options & tidy up part 1 2013-03-06 08:03:50 +00:00
Luke Page
c139c6e4df error when property is used in root. Fixes #442 2013-03-05 13:28:49 +00:00
Luke Page
7778da94b5 don't remove duplicate comments, fixes #1067 2013-03-05 11:58:59 +00:00
Luke Page
8437d0766d remove short lived @import-once in favour of @import (default is once) and @import (multiple) for multiple 2013-03-05 11:39:05 +00: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
05fc86f719 Alpha update 2013-03-05 10:22:05 +00:00
Luke Page
7cebd9ca25 support for deep but exact extend 2013-03-05 10:20:41 +00:00
Luke Page
62cc6cfc0b Add exact syntax for extend 2013-03-05 09:51:20 +00:00
Luke Page
3164d57f9e extend - replace elements multiple times in a path 2013-03-05 08:58:20 +00:00
Luke Page
c90558b928 Support matching across nested variables 2013-03-04 16:20:06 +00:00
Luke Page
59fb6cd1f7 change extends to work after selector joining. refactor findMatch ready for change to support properties across nesting 2013-03-04 15:47:12 +00:00
Luke Page
bf74d88302 remove commented out code 2013-03-04 13:15:37 +00:00
Luke Page
2805827d61 match multiple classes as the extend target 2013-03-04 13:13:08 +00:00
agatronic
1970be737b slight restructure and tests to show we allow multiple extends 2013-03-04 11:54:11 +00:00
Luke Page
464e777db5 Fix unit tests for debug 2013-03-04 11:02:22 +00:00
Ethan Lai
f9b68f8f74 Update tree.js
in windows system,path sep is '\',the old regexp is not match it. I whrite a
new regexp and fix it;
2013-03-04 10:51:02 +00:00
Luke Page
da7de8f518 move extend fully into visitor, bringing back functionality and fixes #1165 2013-03-04 10:43:32 +00:00
Luke Page
aac8e973fe Add an extend finder visitor and extend processor visitor (breaks extend for now) 2013-03-04 10:03:16 +00:00
Luke Page
b48c0f929a make visitor replacing optional 2013-03-04 08:14:13 +00:00
Luke Page
ed78502b1e cleanup join selectors from toCSS 2013-03-01 17:39:36 +00:00
Luke Page
4101ae9bdc move selector joining into visitor 2013-03-01 17:34:11 +00:00
Luke Page
054beb2ad2 join selector visitor creation 2013-03-01 16:38:09 +00:00
Luke Page
59a443556a move action out of constructor 2013-03-01 14:50:38 +00:00
Luke Page
c1095a7218 alpha build 2013-03-01 13:40:55 +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
14cee5d04f first test and fixes for simple implementation 2013-03-01 13:40:53 +00:00
Luke Page
9280b53291 make import visitor stack up frame scopes 2013-03-01 13:40:51 +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