Jon Schlinkert
38a8664013
Merge branch 'less.js/1.5.0-wip'
...
Conflicts:
.jshintrc
Makefile
package.json
2013-08-01 06:51:59 -04:00
Luke Page
42dfeb8d3b
move the property check out of the ruleset and fix an issue in the visitor
2013-07-05 20:56:59 +01:00
Luke Page
01fd5d679e
remove variables before toCSS
2013-07-05 17:13:27 +01:00
Luke Page
831e343216
move comment filtering into visitor
2013-07-05 06:52:32 +01:00
Luke Page
800b4218d5
Start abstracting re-organising logic into a visitor before css output. Will allow nodes to just be 'read' and debugInfo written into a sourcemap. part 1.
2013-07-05 06:52:31 +01:00
Luke Page
366f6755aa
guards on css styles, first draft. Only allows guards on 1 selector in the block, that being the last one.
2013-07-05 06:51:59 +01:00
Luke Page
5cb5f561c8
Convert property merging to the new agreed syntax of +:
2013-07-05 06:51:41 +01:00
Daniel Katz
ff029c34bd
Syntax changed to !merge(space | comma)
...
* Syntax changed to !merge(space | comma)
* !merge(space) implemented by Expression instead of Value.
* Added test for lonely property with !merge directive
2013-07-05 06:51:40 +01:00
Daniel Katz
5dde7b3381
Added support and tests for !merge() syntax #700
2013-07-05 06:51:39 +01:00
agatronic
446e164444
rename mute to reference
2013-07-05 06:51:04 +01:00
Luke Page
f4902f809c
rename import silent to import mute. Fixes #1210
2013-07-05 06:51:02 +01:00
Luke Page
dce452421f
Fix the rest of import silent
2013-07-05 06:51:01 +01:00
Luke Page
33c5ecd100
import silent - handle selectors containing amp
2013-07-05 06:50:55 +01:00
Luke Page
5df82b69ce
Basic functionality and basic tests for import silent
2013-07-05 06:50:54 +01:00
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