Commit Graph

140 Commits

Author SHA1 Message Date
Veres Lajos
73f3fc4468 typo fixes 2014-11-02 23:18:29 +00:00
Luke Page
b4ae1e880f when finding variables, look inside sub import nodes 2014-10-23 18:33:13 +01:00
Luke Page
9d535c0470 Whitespace - undo unusual new() syntax 2014-10-19 16:57:22 +01:00
Luke Page
6d64213996 Fix issue #2221 2014-10-11 18:51:09 +01:00
Luke Page
dedf0eee38 rename env to context to avoid confusion with environment 2014-10-05 18:50:34 +01:00
Luke Page
1a78cd5901 Remove unnecessary text from require statements 2014-09-08 00:57:50 +01:00
Luke Page
723b410db0 Merge branch 'SomMeri-namespaces-guards-1418' into 2_0_0
Conflicts:
	lib/less/tree/mixin.js
	lib/less/tree/ruleset.js
2014-09-06 13:27:11 +01:00
jurcovicovam
c330c3a4a8 Added guards checking to namespaces. Issue #1418. 2014-09-05 09:01:56 +02:00
Luke Page
95dedcc576 rename env to contexts 2014-08-24 18:03:33 +01:00
Luke Page
16746e9b1e untangle the mess of dependencies and remove all circular dependencies. Remove un-necessary dependency injection. 2014-08-24 17:55:46 +01:00
Luke Page
f85f253586 merge from master 2014-08-14 17:27:16 +01:00
jurcovicovam
e7c81125b7 Charsets should float on top #2126 2014-08-03 10:37:10 +02:00
jurcovicovam
f4d0442dbc Removing useless comments. 2014-07-24 14:13:43 +02:00
jurcovicovam
864c63d27b Fix ordering of @import and @charset rules #1954 #2013
The genCss method of ruleset.js splits child nodes into two groups:
* rules,
* rulesets.

Rules are always printed first and have special handling for last rule.
Rulesets are always printed second. Wrong ordering was caused by the
condition that determined what is rule and what is ruleset.

Issue #2013: The condition made no difference between @charset and @page,
because both are compiled into tree.Directive nodes. I added isRulesetLike
method to the tree.Directive to differentiate between them.

Issue #1954: The condition treated all tree.Anonymous types as rules and
caused them to float up. That is incorrect, because `@import (inline)` is
compiled into tree.Anonymous too, but should be treated as ruleset and
stay where it is.
2014-07-22 14:46:58 +02:00
Luke Page
7dfc0cf9b0 Merge branch 'whitespace' of github.com:XhmikosR/less.js into 2_0_0
Conflicts:
	lib/less/functions.js
	lib/less/index.js
	lib/less/tree/anonymous.js
	lib/less/tree/media.js
	lib/less/tree/mixin.js
2014-03-02 12:36:49 +00:00
XhmikosR
7efbcd31cf Trim trailing whitespace. 2014-03-02 14:06:26 +02:00
Luke Page
08bd23dc2a add browserify (not yet working) and refactor tree nodes to not be dependent on their parent (currently breaks browser build) 2014-02-24 21:22:52 +00:00
Luke Page
5ab0e08665 Do not evaluate css with guards if the guards fail. Fixes #1873 2014-02-21 12:37:40 +00:00
Luke Page
7c90acaae6 Fix a small scope issue with mixins when using parent selectors, introduced in 1.6.2. Fixes #1877 2014-02-21 11:22:42 +00:00
Luke Page
88b44dfc43 make mixin definitions have similar coding style to detached rulesets for grabbing frames 2014-02-17 19:50:43 +00:00
Luke Page
baba33ea6a Fix some bugs with detached rulesets and media queries 2014-02-17 19:15:47 +00:00
Luke Page
f7414a1072 detached rulesets 2014-02-09 22:20:08 +00:00
Luke Page
38cca0471c make selector-less css guard fold into the current selector 2014-02-02 17:38:13 +00:00
Luke Page
eb19ae4cfa Fix bug with css guards. Fixes #1750. Fixes #1613. Fixes #1813 2014-02-01 19:13:56 +00:00
Josh Schmidt
ec462237ba Update ruleset.js
Correct arguments for tree.Element
2014-01-18 21:07:05 -07:00
seven-phases-max
bbc15a413b default function: added error when used with css-guards. updated tests. 2013-12-22 18:54:39 +04:00
Luke Page
3818727bf7 jshint: boss 2013-12-16 23:23:34 +00:00
Luke Page
5367b8b6be Merge branch 'perf-tune' of https://github.com/fredburger/less.js
Conflicts:
	lib/less/to-css-visitor.js
2013-12-08 17:25:58 +00:00
fredburger
1a33bc69f8 Misc. perf optimizations. #1615 2013-10-30 08:09:17 +01:00
seven-phases-max
194f2c5213 a few minor selector match fixes... 2013-10-29 18:48:10 +04:00
seven-phases-max
05ef5cd0ac fixed mixin call matching for multi-selector parent... 2013-10-29 08:04:38 +04:00
Luke Page
577751a174 improve output of page rules during compression - don't strip ; on rule before rulesets 2013-09-16 22:22:33 +01:00
Luke Page
1f456ffc18 clean up a TODO and avoid some un-necessary calls 2013-09-08 17:25:03 +01:00
Luke Page
023c3f020a do not create empty sourcemaps or add mapping comments on to empty files. Also fix empty files from having a newline in them. fixes #1491 2013-09-08 17:12:13 +01:00
Luke Page
fc35190d38 unused variable cleanup 2013-07-20 22:44:13 +01:00
Luke Page
63109417c7 small fixes to sourcemaps 2013-07-19 19:26:24 +01:00
Luke Page
fb9423b94b Merge remote-tracking branch 'evocateur/all-sourcemap-patches' into sourcemaps-wip 2013-07-17 22:18:29 +01:00
Luke Page
f99d29cfad continue moving to genCSS 2013-07-17 21:59:43 +01:00
Luke Page
8ca2bb74d2 edit to show bug in extends. move selector toCSS to be concurrent 2013-07-17 20:26:21 +01:00
Luke Page
d6f386727c move mergerules into toCSS visitor 2013-07-16 22:48:29 +01:00
Luke Page
45bc539b57 refactor toCSS to be in output order 2013-07-16 22:45:21 +01:00
Luke Page
1464d22183 move rule duplication removal into the toCSS visitor 2013-07-16 22:25:23 +01:00
Luke Page
190bcca19f Move more toCSS logic into the toCSS visitor 2013-07-16 21:41:38 +01:00
Luke Page
967543cf08 housekeeping ready for next part of refactoring 2013-07-16 20:56:02 +01:00
Luke Page
f032f20206 Fix error in previous commit 2013-07-16 20:24:44 +01:00
Luke Page
2a0df97291 move rule/ruleset re-ordering away from toCSS 2013-07-15 23:05:27 +01:00
Luke Page
037cdb5916 fix tests 2013-07-15 22:03:52 +01:00
Luke Page
a554b8e088 get closer moving tab control away replacing text after converting to css 2013-07-14 23:04:09 +01:00
Luke Page
8529f93b48 start moving the tab indent so that css is not modified once output 2013-07-13 15:43:09 +01:00
Luke Page
4db7c883cf start refactoring toCSS so we will be able to collect sourcemap information at the same time 2013-07-11 22:08:38 +01:00