Luke Page
e210c4b251
Fix extends when selector to add includes & and :extend is inline. Fixes #1227
2013-03-18 11:29:39 +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
bf74d88302
remove commented out code
2013-03-04 13:15:37 +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
4101ae9bdc
move selector joining into visitor
2013-03-01 17:34:11 +00:00
Luke Page
c56db94b7d
Add modified (self altering) visitor pattern and class
2013-03-01 13:40:00 +00:00
Luke Page
d01d2e9bfb
do not pollute the parent scope after mixin call if variable is defined
2013-02-16 15:15:38 +00:00
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