cloudhead
45475d58be
fix merge conflicts
2010-11-26 17:21:33 -05:00
cloudhead
138b2763a4
(new) mix function (StanAngeloff)
2010-11-26 17:19:30 -05:00
cloudhead
70ab408b97
Merge '::selector' fix from StanAngeloff
2010-11-26 17:18:01 -05:00
Daniel Bergey
c7d1b7c132
Fixed issue ( #134 ) where subfiles' @imports were regarding #, ? and url portions thereafter as part of the base url.
2010-11-27 06:09:10 +08:00
Ian Beck
f4437cb8f3
Modified selector regexen to support CSS character escapes, added test files to verify change
...
Closes #78 , closes #105
2010-11-27 06:07:14 +08:00
robmadole
d6ebe3ae9c
Fix for #149 Facebook login button fails to work with FF 3.6+
2010-11-27 06:04:29 +08:00
cloudhead
aba37e65dd
(dist) version bump
2010-11-20 02:18:37 -05:00
cloudhead
a985924d68
(new) support for unquoted data URIs in url()
2010-11-20 02:17:35 -05:00
cloudhead
8d089eebff
(dist) version bump
2010-11-19 15:19:11 -05:00
cloudhead
b019e954a9
add fadein & fadeout color functions
2010-11-19 15:18:56 -05:00
cloudhead
01549ab751
use 'type' attribute from link tag, when performing a request
2010-11-19 15:18:35 -05:00
cloudhead
f129522a92
(dist) version bump
2010-10-14 17:26:30 -04:00
cloudhead
9b808fd305
Merge branch 'master' of github.com:cloudhead/less.js
2010-10-14 17:05:54 -04:00
cloudhead
7497a1ce1a
pass url to errback()
2010-10-14 17:05:38 -04:00
neonstalwart
674053b97c
fixing logic to determine less.env in the browser
2010-10-13 14:22:47 +08:00
Felix Geisendörfer
ef71bb0db2
Fix @import file loading routine
...
Again, old fs.open syntax is deprecated, replaced with fs.readFile.
2010-10-13 14:09:00 +08:00
cloudhead
86a0a33de7
(dist) version bump
2010-08-22 14:47:45 -04:00
cloudhead
bbf419b2ff
improve error reporting
2010-08-22 14:45:22 -04:00
cloudhead
b57093fa9b
attempt to fix IE relative urls
2010-08-22 14:44:45 -04:00
cloudhead
cce5c17505
attempt at url() relative path fix
2010-08-20 00:02:47 -04:00
cloudhead
bbd10f6b77
(dist) version bump
2010-08-15 11:00:18 -04:00
cloudhead
ddbc8676b6
basic ability to overwrite some config options in browser
2010-08-15 10:58:52 -04:00
cloudhead
88b923914b
add 'rad' 'grad' 'turn' units
2010-07-26 00:00:24 -04:00
cloudhead
e9d4499789
stateless URL evaluation
2010-07-25 17:01:27 -04:00
cloudhead
059a3208b5
support uppercase characters in attribute
2010-07-25 16:51:19 -04:00
cloudhead
57778b31fe
squeeze extra slashes in url()
2010-07-25 16:44:27 -04:00
cloudhead
f946c2a87c
support relative url() paths in the browser
2010-07-25 16:42:19 -04:00
cloudhead
4d6335b4e2
make strings behave like other nodes.
...
- rename 'content' to 'value'
2010-07-25 16:41:05 -04:00
Fedor Indutny
29b797e8df
Fixed dot in css name error(when using style.1.css and style.2.css), also fixed 'url()' error
2010-07-26 03:56:14 +08:00
cloudhead
93f03ee1dd
(dist) version bump
2010-07-23 19:49:03 -04:00
cloudhead
ba2cfe9265
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
0c6a5ca789
IE fix
2010-07-12 08:06:38 -04:00
cloudhead
d764f2021c
refactor mixin definition parser
2010-07-12 08:06:28 -04:00
cloudhead
e72b3e79ee
Properly chunkify ``
2010-07-12 08:05:39 -04:00
cloudhead
b71942966d
explicit evaluation of variables within js
2010-07-09 21:31:26 +02:00
cloudhead
baafd5a389
fix error reporting with no stack
2010-07-09 21:29:59 +02:00
cloudhead
5c8d147c2c
modify javascript eval to be compatible with e()
2010-07-08 19:28:34 +02:00
cloudhead
bf6d68345d
preliminary support for evaluating JavaScript code inside LESS
2010-07-08 19:04:36 +02:00
cloudhead
3252d51bd6
small refactor in mixin.match
2010-07-08 12:45:43 +02:00
cloudhead
9d83cb865d
(dist) version bump and build 1.0.32
2010-07-08 00:40:18 +02:00
cloudhead
00bbf81471
support parametric mixins with #
2010-07-08 00:27:32 +02:00
cloudhead
b5d74f8e38
fix compound variable substitutions
2010-07-08 00:22:01 +02:00
cloudhead
f7be8f515d
fix font shorthand with %
2010-07-08 00:21:36 +02:00
cloudhead
45b97a6054
big refactoring of ruleset.js, move eval code to eval()
2010-07-07 13:53:09 +02:00
cloudhead
f30aa915c7
don't re-eval ruleset
2010-07-07 12:20:59 +02:00
cloudhead
bf0198a029
remove evalRules, use eval
2010-07-07 12:19:15 +02:00
cloudhead
e2b1a8af91
(minor) refactoring
2010-07-07 11:59:09 +02:00
cloudhead
752bf96e53
fix mixin definitions inside other mixin definitions
2010-07-07 11:58:55 +02:00
cloudhead
2afcdd7860
fix error messages with no index
2010-07-07 11:58:26 +02:00
cloudhead
c020db0240
(doc) comments
2010-07-06 16:51:57 +02:00
cloudhead
69b1c050e1
reload imports when parsing a stylesheet
2010-07-06 16:49:39 +02:00
cloudhead
4bb4c97357
make mixins behave like closures
2010-07-06 16:48:05 +02:00
cloudhead
00df4e97d0
(dist) update version number in index.js
2010-07-05 12:31:27 +02:00
cloudhead
3664f26c06
support functions in operations
2010-07-05 01:19:04 +02:00
cloudhead
789c829d26
remove domain name and root slash from extracted id
2010-07-04 21:20:29 +02:00
cloudhead
67dc0498d7
fix refresh()'s timer output
2010-07-04 21:19:56 +02:00
cloudhead
e85fb82754
more robust id extraction from href
2010-07-04 21:05:02 +02:00
cloudhead
b8e6455d55
(new) less.refreshStyles, and reload styles on refresh()
2010-07-04 19:21:43 +02:00
cloudhead
dd87c3bae9
Merge branch 'master' of github.com:cloudhead/less.js
2010-07-04 18:07:52 +02:00
cloudhead
8a4a9a471a
support variables in url()
2010-07-04 10:45:55 +02:00
Victor Berchet
209b349552
Fix for stylesheets having a '.' in their basename
2010-07-02 01:23:46 +08:00
cloudhead
21c35195d4
(dist) version bump
2010-07-01 11:14:57 +02:00
cloudhead
b34aa0d217
force refresh on page load in development mode
2010-07-01 11:09:24 +02:00
cloudhead
e659555279
(minor) style
2010-07-01 11:09:03 +02:00
cloudhead
518fe12d1a
(new) parse style tags with type=text/less
2010-07-01 11:08:52 +02:00
cloudhead
ce76fc7630
support type=text/less and text/x-less for specifying stylesheets
2010-07-01 11:08:27 +02:00
cloudhead
d1c16908b6
fix syntax error with semi-colons in strings
2010-07-01 10:46:31 +02:00
cloudhead
2477288bc0
(minor) style fixes
2010-07-01 02:35:28 +02:00
cloudhead
8bb17cc4b9
removed unused inputLength
2010-07-01 02:16:03 +02:00
cloudhead
3318f0a294
minor refactoring in chunkification
2010-07-01 02:05:55 +02:00
cloudhead
1a56c6d225
proper chunkification of comments.
...
comments are preserved even with chunkified input now.
2010-07-01 01:31:48 +02:00
cloudhead
ca561a7c2c
Merge branch 'master' of github.com:cloudhead/less.js
2010-06-30 20:00:16 +02:00
cloudhead
2e47c69a98
don't use __filename if no filename
2010-06-30 19:59:46 +02:00
cloudhead
f8e6b412bf
(minor) ws
2010-06-30 13:20:24 +02:00
cloudhead
4ce7a44bf2
ability to pass some variables to toCSS in the form of a hash
2010-06-30 13:20:11 +02:00
cloudhead
7565305c4d
default to __filename when no filename in env
2010-06-30 13:19:41 +02:00
James Foster
356ba4fd0d
Fixed inner quotes
2010-06-30 14:59:10 +08:00
Kristoffer Walker
f51c923a5d
bug: window.localStorage in Firefox
...
Firefox 3.6.4 throws an error when trying to access `window.localStorage`.
(at least from `chrome://` URLs in extensions if not more)
2010-06-29 19:18:24 +08:00
Kristoffer Walker
8c89feac3e
Support chrome: and resource: location protocols.
...
XMLHttpRequest tried to load `chrome:` and `resource:` protocols as if
they were not local. Change isFileProtocol flag to accurately represent
them.
2010-06-29 19:18:24 +08:00
Kristoffer Walker
7a5e10e996
Use .overrideMimeType() for Firefox XHR
...
By overriding the mime type of the default XML to 'text/css' we get rid
of the automatic XML parsing and DOM building that XMLHttpRequest tries
to do whenever it gets a response.
2010-06-29 19:18:23 +08:00
cloudhead
6d41281dbe
(dist) version bump
2010-06-27 16:47:59 -04:00
cloudhead
075523e96d
fix '!important' in certain scenarios
2010-06-27 16:40:12 -04:00
cloudhead
b1acb34260
fix media type not being preserved when generated css
2010-06-27 16:11:44 -04:00
cloudhead
30fa07f39d
fix runtime error
2010-06-25 19:59:28 -04:00
cloudhead
a2ea973746
cleanup, smaller chunks, speed improvements
2010-06-25 19:58:25 -04:00
cloudhead
272b035528
don't create nodes for whitespace
2010-06-25 12:52:38 -04:00
cloudhead
843aeffa41
slice parsing
2010-06-25 03:03:37 -04:00
cloudhead
89a5a03ca0
various improvements to the parser, resulting in a 20% speed bump
2010-06-24 17:50:51 -07:00
cloudhead
95a4595b18
(dist) version bump
2010-06-22 21:57:36 -07:00
cloudhead
3cf0239f0e
don't depend on document.querySelectorAll
2010-06-22 21:56:45 -07:00
cloudhead
3327734881
better chunkification algorithm
2010-06-21 17:32:31 -07:00
cloudhead
b6bd8566d5
fix alpha() with numbers
2010-06-20 22:18:04 -04:00
cloudhead
770c3ca914
fix error reporting
2010-06-20 14:47:41 -04:00
cloudhead
27926b4da5
(dist doc) version bump and README update
2010-06-20 12:53:11 -04:00
cloudhead
87b428bf2f
strip querystring when importing, and caching. Allow relative @import urls
2010-06-20 12:47:33 -04:00
cloudhead
e3a84c3819
track parsing/generation time
2010-06-20 12:46:42 -04:00
cloudhead
49d6830d49
(dist) version bump
2010-06-20 01:33:42 -04:00
cloudhead
fa286eb507
fix @import not working. Better error message for empty response
2010-06-20 01:33:03 -04:00
cloudhead
e9bfa462f1
fix error messages with no callLine
2010-06-19 14:35:56 -04:00
cloudhead
2aa945c98c
fix some issues with alpha getting lost
2010-06-19 14:35:37 -04:00
cloudhead
c53309c682
critical fix for browser
2010-06-19 14:03:52 -04:00
cloudhead
f272611137
fixed hsla => rgba conversion
2010-06-19 13:42:33 -04:00
cloudhead
e73176e532
refactor inheritance in mixin.js
2010-06-19 02:05:09 -04:00
cloudhead
94dfd6fac7
simplify regexps
2010-06-19 01:58:58 -04:00
cloudhead
8a0a0346c3
removed constructor names
2010-06-19 01:51:26 -04:00
cloudhead
947c80da60
(dist) version bump
2010-06-18 20:15:04 -04:00
cloudhead
fc35e55456
improve error reporting, provide a one line call-stack
2010-06-18 20:12:03 -04:00
cloudhead
f872b0f3f3
silent option. pass options through writeError
2010-06-18 19:51:29 -04:00
cloudhead
187315fae8
use bold instead of inverse for column highlight
2010-06-18 19:46:38 -04:00
cloudhead
58c457f1d3
fix error message when no filename, also try to print stack
2010-06-18 19:44:48 -04:00
cloudhead
ffc7c4c094
proper exit codes on errors, and use stderr
2010-06-18 19:23:56 -04:00
cloudhead
cf48bdef61
(dist) version bump
2010-06-16 18:59:07 -04:00
cloudhead
de301d599f
don't break when a node doesn't have an eval() function
2010-06-16 18:58:32 -04:00
cloudhead
8b6fcd4e7d
Improve log() function [browser]
2010-06-16 18:58:16 -04:00
cloudhead
2d55321810
(api) less.refresh(true) reloads stylesheets from source
2010-06-16 18:57:51 -04:00
cloudhead
7a80774960
fix comments in mixins.
2010-06-16 02:13:59 -04:00
cloudhead
87ad66d6eb
(dist) version bump
2010-06-15 20:15:07 -04:00
cloudhead
e2a6228ff5
(new) Additions & improvements to color functions.
...
- Added spin() to change hue.
- Fixed darken/lighten to be additive.
- Added color extraction functions.
2010-06-15 20:13:19 -04:00
cloudhead
b195601898
(dist) require() goes in its own file
2010-06-15 18:54:46 -04:00
cloudhead
98b8d31368
put Value in value.js
2010-06-15 18:46:09 -04:00
cloudhead
7a2ce13712
better cross-environment handling. stub out require() in browser.
2010-06-15 18:44:59 -04:00
cloudhead
92db519390
(dist) wrap script in anonymous function
2010-06-15 18:05:03 -04:00
cloudhead
8f2131f339
(dist) version bump
2010-06-15 14:52:52 -04:00
cloudhead
2755abb0cc
fix/refactor ajax in firefox [browser]
2010-06-15 14:52:17 -04:00
cloudhead
f8f2b8f61c
use isFileProtocol variable for dryness
2010-06-15 14:51:48 -04:00
cloudhead
24c3b9cbbf
abstract localStorage a little
2010-06-15 03:52:25 -04:00
cloudhead
daaa2bc4dd
(dist) version bump
2010-06-15 02:36:55 -04:00
cloudhead
bb1bfb2b26
update error messages if new error [browser]
2010-06-15 02:35:52 -04:00
cloudhead
b5a86f3d79
don't replace style text if equal to new one [browser]
2010-06-15 02:17:29 -04:00
cloudhead
a3ac5f24aa
don't give style tags a 'title' attribute, it screws things up. [browser]
2010-06-15 02:16:55 -04:00
cloudhead
66d29e2dd6
make error messages work with multiple stylesheets
2010-06-15 02:12:30 -04:00
cloudhead
773469d5b4
(api) less.refresh [browser]
2010-06-15 02:11:35 -04:00
cloudhead
4835eacdf4
use : in ids, - isn't authorized as first character. use firstChild instead of childNodes[0]
2010-06-15 01:17:35 -04:00
cloudhead
4a74c0049b
various improvements to browser.js
2010-06-15 00:56:37 -04:00
cloudhead
d7ce0d973d
set optimization level depending on less.env
2010-06-14 21:43:34 -04:00
cloudhead
c8a7ce9bd5
cleanup browser.js, make ajax synch by default, with option to turn off
2010-06-14 21:30:56 -04:00
cloudhead
cacba8e311
cleanup browser.js
2010-06-14 21:20:04 -04:00
cloudhead
e3888bfdd2
don't use a timer to load the stylesheets, or the body starts loading too early
2010-06-14 21:19:39 -04:00
cloudhead
639a5dd3d6
use two fields for cache, so we don't need to parse JSON
2010-06-14 21:08:11 -04:00
cloudhead
77f82601aa
(api) custom port == development mode
2010-06-14 21:07:38 -04:00
cloudhead
0477f14dde
better error handling
2010-06-11 21:46:24 -04:00
cloudhead
4bb64a2753
(new) css compression support
2010-06-11 21:45:51 -04:00
cloudhead
d369a658ff
(dist) fuck I always forget to update this version number
2010-06-11 18:33:49 -04:00
cloudhead
a386380afb
refactored and fixed css node creation, for watch mode
2010-06-11 18:18:40 -04:00
cloudhead
09fc69b654
(new) set watch mode with less.watch() and .unwatch()
2010-06-11 18:17:35 -04:00
cloudhead
03e94d2860
fix trying to create CSS from null root [browser]
2010-06-09 21:55:32 -04:00
cloudhead
183f285f24
(new) ability to @import on the browser
2010-06-07 18:20:13 -04:00
cloudhead
277c45eb5e
move error message css back in error function
2010-06-07 16:26:22 -04:00
cloudhead
7a36ffd877
fix generated stylesheet title
2010-06-07 16:12:59 -04:00
cloudhead
4c27e0a9bb
decoupled single stylesheet loading
2010-06-07 16:12:25 -04:00
cloudhead
85d50c84da
Better error messages, wrap browser.js.
2010-06-07 15:47:41 -04:00
cloudhead
621b13d11d
(new) auto stylesheet refreshing with '#!refresh'
2010-06-06 18:23:55 -04:00
cloudhead
6a5354579b
improve error reporting, include filename
2010-06-04 13:28:38 -04:00
cloudhead
63bcaf5414
fix error messages in cli
2010-06-04 12:34:41 -04:00
cloudhead
2487dbcec0
revert chunk split improvement
2010-06-04 12:27:25 -04:00
James Foster
bb2d359e78
Fixed incorrect inputLength. Avoid creating multiple empty chucks for consecutive blank lines.
2010-06-05 00:13:26 +08:00
cloudhead
2894174213
tweaks to bin/lessc
2010-06-01 21:48:13 -04:00
cloudhead
040759c31e
better fix for parse-error reporting
2010-06-01 21:34:56 -04:00
cloudhead
3ef983712d
fix parse error reporting when at beginning of file
2010-06-01 21:28:42 -04:00
cloudhead
23a4d55d04
fix optimizations, and errors on multi-line comments
2010-06-01 21:21:59 -04:00
cloudhead
3b69642134
log error if no AJAX available
2010-05-23 12:52:23 -04:00
cloudhead
a4111ae63b
Merge branch 'master' of github.com:cloudhead/less.js
2010-05-23 12:50:36 -04:00
cloudhead
8ab4d0aac0
treat Directive like a Ruleset
2010-05-23 12:50:20 -04:00
James Foster
8a02f29050
Fix for IE6 compatibility
2010-05-24 00:17:12 +08:00
cloudhead
0075217391
removed unnecessary code in Ruleset#toCSS
2010-05-22 20:57:10 -04:00
cloudhead
697136961e
support CSS3 @media more fully
2010-05-22 18:24:37 -04:00
cloudhead
7a29d7fd67
support [0-9_] in CSS attribute names
2010-05-22 15:13:02 -04:00
cloudhead
fae02b0889
(minor) formatting
2010-05-18 21:16:44 -04:00
James Foster
101790db21
Fixes for IE7 compatibility
2010-05-19 08:52:49 +08:00
cloudhead
d501d9df7b
(minor) formatting
2010-05-18 19:51:24 -04:00
cloudhead
d552222a65
[#.] is not optional in a mixin call
2010-05-18 19:49:19 -04:00
cloudhead
944a7c2be9
removed wildcard parser
2010-05-18 19:12:41 -04:00
cloudhead
9e9c988f79
removed trailing comma, which breaks minification
2010-05-17 23:28:23 -04:00
cloudhead
410b34314e
fix querySelectorAll call
2010-05-17 23:09:12 -04:00
cloudhead
a9b47a026c
added ECMAScript 4 compatibility
2010-05-17 22:57:11 -04:00
cloudhead
a3f252b727
don't cache return values. %() plays nice with strings
2010-05-13 20:15:59 -04:00
cloudhead
b38f5325c9
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
8ed7d8c9b8
Evaluate arguments before passing them to mixin.
...
Closes #23
2010-05-07 00:41:09 -07:00
cloudhead
8ef8bfed8c
rename variables() to variable()
2010-05-07 00:40:21 -07:00
cloudhead
3c89d3b9bd
evaluate Values of length > 1 properly
2010-05-06 09:46:36 -07:00
cloudhead
94780c2f72
moved index.js to lib/less
2010-05-05 00:23:45 -04:00
cloudhead
7155f44f43
be more flexible, pattern matching
2010-05-04 20:37:06 -04:00
cloudhead
0ec53f74e0
make operations left-associative Closes #20
2010-05-03 14:25:12 -04:00
cloudhead
839da27353
fix timestamps not being compared properly, when loading a .less
2010-04-30 15:22:58 -04:00
cloudhead
861bc2972a
fix error styles
2010-04-30 15:09:36 -04:00
cloudhead
d9dd858160
fix for when css isn't available in local storage
2010-04-30 14:49:58 -04:00
cloudhead
1d9b95f9e6
Evaluate function calls properly.
...
- `fun(f())` is now possible
- Anonymous can take normal strings
- Tests for `%()`
2010-04-30 14:07:05 -04:00
cloudhead
30773f942f
New %
function, to perform string interpolation
2010-04-30 14:06:36 -04:00
cloudhead
0aaf715232
fixed selector attributes not parsing with a '-'
2010-04-28 17:29:22 -04:00
cloudhead
4347211270
use a timer to check when the dom is ready, before showing errors
2010-04-26 14:22:37 -04:00
cloudhead
210e2e1886
automatically set less.env in certain conditions
2010-04-26 14:22:18 -04:00
cloudhead
535a0301ba
Local Storage caching, and .less loading from disk
...
- .less files can now be loaded directly from disk
- nice error messages
- use HTML 5 storage to cache parsing
2010-04-25 19:42:49 -04:00
cloudhead
f6d1cf981e
Overhaul of the error system
...
The parse() function no longer assumes the command-line is the output
device. We use less.writeError in node.js.
2010-04-25 19:39:21 -04:00
cloudhead
8c762b9e26
Support for pattern-matching on mixin calls.
2010-04-25 00:09:40 -04:00
cloudhead
7555c09707
More accurate parse error messages
...
Because of the backtracking, we lose the previous point of failure.
The solution is to store the furthest point the parser has parsed to,
when backtracking, and using it when showing parse errors.
2010-04-25 00:06:45 -04:00
cloudhead
1c52d6ac4d
use a hash to store variables, fixes variable redifinition bug
2010-04-23 17:52:36 -04:00
cloudhead
1e6cbbf61d
fixed bug with passing variables to functions
2010-04-23 13:49:55 -04:00
cloudhead
6778f51fc3
Added a couple colour functions
...
saturate, desaturate, lighten, darken, greyscale.
2010-04-23 13:36:50 -04:00
cloudhead
f0942511bb
Fixed HSL
...
HSL colors weren't working properly. The values weren't being normalized
to {0, 1}.
2010-04-23 13:35:36 -04:00
cloudhead
7be2b22cfb
the e() LESS function
...
used to escape strings in values.
Added Anonymous node to handle things like this.
2010-04-22 19:42:02 -04:00
cloudhead
1b5452652a
refactored mixin.definition.eval
2010-04-22 13:47:01 -04:00
cloudhead
444401dc3c
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
23640fe116
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
ac7916aa87
Reorganized some of the parsing rule order
...
- Fix for "{" not parsing
- Use some backtracking when necessary,
it's prettier than crazy lookaheads.
2010-04-21 10:12:29 -04:00
cloudhead
03e669be21
less.js now works in firefox, safari and chrome
2010-04-01 22:37:59 -04:00
cloudhead
9a34a05555
@import with .css files no longer precompiles. This gives us some extra
...
flexibility.
2010-03-30 15:32:38 -04:00
cloudhead
1721e02ae7
We aren't using adapters anymore.
2010-03-29 22:56:07 -04:00
cloudhead
92bdf598c7
quote 'import' so it doesn't freak out
2010-03-29 22:24:33 -04:00
cloudhead
30bf1ff7f3
fix optimization option wrongly scoped
2010-03-29 22:13:36 -04:00
cloudhead
400427e47a
merge
2010-03-27 02:27:59 -04:00
cloudhead
24bba952c7
removed lib/ext, moved lib/less.js to /index.js, moved Array/find to tree.find
2010-03-27 02:26:55 -04:00
cloudhead
3a474c9bae
Created a compat.js file in build/, for browser compatiblity, moved trim() in
...
there. LESS builds to dist/ now.
2010-03-27 02:24:39 -04:00
cloudhead
41d701de1d
Doc for Call, Comments, Operation..
2010-03-23 18:33:17 -04:00
cloudhead
aad5ff6385
putting the operate function in operation.js, to facilitate access from browser code
2010-03-23 01:19:12 -04:00
cloudhead
a2133e4b78
functional browser based parsing + css node creation
2010-03-23 01:16:59 -04:00
cloudhead
3287a6ce2c
fix typo in browser.js
2010-03-22 23:24:05 -04:00
cloudhead
be5d1999e3
no need for context passing
2010-03-22 23:15:25 -04:00
cloudhead
edf68ec0aa
String/trim()
2010-03-22 23:13:47 -04:00
cloudhead
5977640040
optimization level is taken from env now
2010-03-22 23:13:24 -04:00
cloudhead
ca43e06db9
browser.js init -- very basic browser support - Makefile also builds for browser now
2010-03-22 23:12:58 -04:00
cloudhead
a349b9b3fb
added render() convenience method. Returns an EventEmitter if no callback was passed.
2010-03-22 21:34:05 -04:00
cloudhead
259a4ad451
refactored the import mechanism, added some doc
2010-03-22 20:59:49 -04:00
cloudhead
336b655e16
allow for passing a context of evaluation to the importer
2010-03-22 20:59:11 -04:00
cloudhead
94f81a5fe0
removed unnecessary require
2010-03-22 20:15:06 -04:00
cloudhead
3253afad27
asynchronous import functionality! All tests passing.
2010-03-21 19:18:47 -04:00
cloudhead
ef97105ce3
made parser reentrant for import support
2010-03-21 19:17:37 -04:00
cloudhead
80905fdc58
no need to pass starting values to toCSS() anymore
2010-03-19 20:14:35 -04:00
cloudhead
40f8671bcd
fix to undefined mixin error message
2010-03-19 19:46:37 -04:00
cloudhead
5ee3d47e11
operations.less now passes
2010-03-19 18:47:17 -04:00
cloudhead
10965a9034
allow for operations with no spaces, such as '4+5'
2010-03-19 18:46:42 -04:00
cloudhead
ef61aec5f1
refactored operand(), and take away parsing of -()
2010-03-19 18:05:36 -04:00
cloudhead
f973deec28
refactored rule() cause the closure slows things down too much for some reason
2010-03-19 17:56:43 -04:00
cloudhead
215ef05907
added import.js to less.js
2010-03-19 17:50:48 -04:00
cloudhead
53996b2364
parse() is now asynch, and uses a callback
2010-03-19 17:50:35 -04:00
cloudhead
5088fca537
import.js init
2010-03-18 18:44:03 -04:00
cloudhead
2c0dc223ce
Parse @import properly.
2010-03-18 18:13:02 -04:00
cloudhead
00273d452c
don't use process.mixin, it's deprecated
2010-03-18 16:42:25 -04:00
cloudhead
79a3b58fa8
fixed scope problem in parser
2010-03-18 14:49:10 -04:00
cloudhead
854f65f079
Refactored parsers.rule
2010-03-13 20:15:44 -05:00
cloudhead
61a7b2e9e7
Added lots more documentation to the parser
2010-03-13 20:14:44 -05: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
e0623094fa
part 2 of the comment pass
2010-03-12 15:03:05 -05:00
cloudhead
be11ab6b89
some eval functions for good measure
2010-03-11 15:36:50 -05:00
cloudhead
9c84b50d5b
we need to make sure we're not eating a '-' in the operation parsing, it fucks up our generation of functions which start with a -
2010-03-11 15:36:32 -05:00
cloudhead
8adac6569e
output directives properly
2010-03-11 15:35:23 -05:00
cloudhead
553aaecf6a
font property parsing, mainly the 'small/12px' part.
2010-03-11 15:34:57 -05:00
cloudhead
9c0fb7174e
Cache Selector/toCSS()
2010-03-09 23:58:05 -05:00
cloudhead
77b2a36059
Cache mixin lookups for a nice speed boost.
2010-03-09 23:56:49 -05:00
cloudhead
c4413facad
did some refactoring in the parser, so we don't need to pass variables
...
to the $() function anymore. We also don't need to pass arrays around.
2010-03-08 23:45:57 -05:00
cloudhead
acd46cf7c6
refactoring of prototypes
2010-03-07 23:38:10 -05:00