Luke Page
1abb5dd460
Fix #1122
2013-01-12 09:46:20 +00:00
Spocke
c04ad3adc1
Added better compression for rules by removing the last semicolon.
2013-01-05 16:30:34 +00:00
Luke Page
97d0b0205b
Rudimentary support for extend in selectors
2013-01-05 15:29:38 +00:00
Luke Page
ecc9b0606b
Fix merge errors/problems and change format to ++
2013-01-05 15:29:35 +00:00
hokaccha
e793e81e92
Add Sass like extend
2013-01-05 15:29:32 +00:00
Luke Page
59258f5549
Fix server tests and an import bug when a media import is followed by further imports
2012-12-28 11:08:49 +00:00
Luke Page
60b2aa9a77
Fix multiple scoping issues with variables. Fixes #878
2012-11-29 18:40:45 +00:00
Luke Page
e5fd5abc60
Do not require default mixin. Fixes #926
2012-11-27 09:28:19 +00:00
tscheinecker
1f19a043a5
only include the first @charset definition - subsequent ones will be
...
rendered as a comment + debugInfo when debugging is enabled.
2012-10-28 14:06:56 +00:00
Luke Page
1175ddc01c
Fixi important on mixin calls when mixin has rulesets or comments
2012-10-25 11:52:07 +01:00
Luke Page
38d2c57016
Make less.js ignore nodes in its own path so infinite recursion does not happen. Fixes #413
2012-10-24 20:16:10 +01:00
Simone Deponti
8abc60ef26
Minor fixes.
...
Fixed a bug that could appear with compression enabled,
and minor tabbing issues in tests.
2012-10-07 12:16:10 +01:00
Simone Deponti
ebc41e5c4b
Fixed nested media bug.
2012-10-07 12:16:08 +01:00
Simone Deponti
1b0b84551f
Wrapped ruleset debug info passing in condition.
2012-10-07 12:16:07 +01:00
Simone Deponti
bbdcc02c8b
Fixed some tests.
...
* Import filenames are okay, line numbers are off by one in some cases
* The nested media query still makes .tst show up as undefined
2012-10-07 12:16:04 +01:00
Simone Deponti
959e22f5ff
Added media query support.
...
* env.dumpLineNumbers was being lost when doing "offline" compilation
(within node.js)
* Added documentation for the changed options
* --line-numbers now takes a parameter
(either "comments", "mediaquery" or "all")
* The system can now again output mediaqueries for FireLESS
* Moved comments tests in debug/comments, will duplicate
for mediaquery and for "all"
Everything is still utterly broken though, tests still fail.
2012-10-07 12:16:03 +01:00
Luke Page
538097ec30
Unit tests for debug numbers
2012-10-07 12:16:02 +01:00
Vsevolod Vlasov
2165f29a6f
New line is now only inserted between rulesets when not in compress mode.
2012-10-07 12:16:01 +01:00
Vsevolod Vlasov
ccfa7402a1
Added ruleset source line number dumping support for debugging purposes.
2012-10-07 12:16:01 +01:00
Luke Page
473b320c68
Fix bug in media bubbling. Fixes #762
2012-08-12 19:09:54 +01:00
Luke Page
a702b282e6
Allow comparing colors and strings. Fix a bug whereby sometimes a mixin-call or import would disappear. This makes the import test fail consistently instead of once out of 8 times depending on async order I think.
2012-08-05 22:47:05 +01:00
Luke Page
63821cdbe6
Fix all the parent combinator issues
2012-07-30 21:41:34 +01:00
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