367 Commits

Author SHA1 Message Date
ForbesLindesay
22c5bd77c4 Fix global variable leaks 2013-07-05 06:10:16 +01:00
Adam McCormick
c6d02c7a6f Follow standard for inheriting from Error 2013-04-26 13:55:25 +01:00
agatronic
5bc4059c6b Make non strict units less strict and change the default to not be strict units. Fixes #1254 2013-04-26 09:35:56 +01:00
Luke Page
3fc8944ce8 Tidy up options 2013-03-20 08:42:01 +00:00
leeight
fc56975b3a ENABLE max-line-len options support 2013-03-20 08:26:03 +00:00
Luke Page
b2d75e82b4 Allow variable interpolation in attributes everywhere that is sensible 2013-03-18 12:19:02 +00:00
Luke Page
e58662fbd3 better support for attributes. Allow interpolation inside attributes. Fixes #1229 2013-03-18 12:13:01 +00:00
Luke Page
dca9643a1a If the callback throws an error and imports are syncronous, let the error fall through to the calling scope. 2013-03-18 10:12:57 +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
c17d939ea7 Allow multiple extends for more declarative multiple inheritance 2013-03-06 15:09: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
d302fe86b1 refactor mixin call arguments into a seperate function 2013-03-06 09:05:28 +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
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
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
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
2805827d61 match multiple classes as the extend target 2013-03-04 13:13:08 +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
ed78502b1e cleanup join selectors from toCSS 2013-03-01 17:39:36 +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
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
e63c8c5868 Move importing into visitor 2013-03-01 13:40:03 +00:00
Luke Page
39f669e83c Add import visitor 2013-03-01 13:40:01 +00:00
Luke Page
9b256f2340 whitespace 2013-02-28 20:17:52 +00:00
Luke Page
494c5f2681 extend options, algin with decided syntax 2013-02-28 17:07:45 +00:00
Luke Page
e7cbc4c190 Fix data-uri relative url to be relative in the same way as normal url's 2013-02-17 12:44:31 +00:00
Luke Page
f68337e450 change data-uri to look at the file relative to the root or current less file. Fixes #1186 2013-02-16 22:11:01 +00:00
Luke Page
d70769bfb7 variables in media queries in import statements 2013-02-16 14:44:58 +00:00
Luke Page
0396a59eb6 Fix small mistake - allow null options 2013-02-15 21:49:19 +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
88f3f02213 Correct some error inconsistancies. Add browser testing of errors - import missing error fails because of #1117 2013-02-05 22:38:43 +00:00
Luke Page
6cd6fb2585 Do not allow space seperated values inside parens. Fixes #952 2013-02-02 23:53:38 +00:00
Luke Page
a490bc12bf Fix comments test 2013-02-02 16:53:03 +00:00
Luke Page
2ffdefa248 Preserve whitespace in operations 2013-02-02 15:30:19 +00:00
Luke Page
3ef22f16f9 Add strictUnits option, add tests for legacy behaviour 2013-01-30 20:31:26 +00:00
Luke Page
988d378922 add evalEnv class and strictMaths option 2013-01-25 20:05:37 +00:00
Luke Page
531195c92d take maths further 2013-01-24 22:27:17 +00:00
Luke Page
3b5ecf5421 Fix merge issues and a code review comment. revert unit change that outputs px*px as it is not valid css 2013-01-23 21:43:39 +00:00
Dustin Cass
e6ea7b42ab Fix CSS output for compression 2013-01-23 20:41:12 +00:00
Dustin Cass
abaf4c6b68 Arithmetic within mixin calls must be in nested parentheses; Added tests for mixins 2013-01-23 20:41:11 +00:00
Dustin Cass
241b9d23a4 Remove spaces around slashes in final CSS output and update tests to reflect that; Added a couple shorthand tests 2013-01-23 20:37:49 +00:00
Dustin Cass
bf1823f109 Removed Shorthand and Ratio parsers; Fixed some issues with paren depth state; Adjusted tests to pass on new output 2013-01-23 20:37:48 +00:00
Dustin Cass
4545b01939 Division only when inside parentheses 2013-01-23 20:32:17 +00:00
Luke Page
e45ec8a31e refactoring - add a env type to better organise its properties 2013-01-23 19:07:29 +00:00