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
2013-12-17 23:05:07 +00:00
2014-06-06 09:16:04 +01:00
2014-06-22 16:12:14 +01:00
2013-10-27 13:02:09 +01:00
2013-06-27 16:59:58 -04:00
2014-02-27 20:10:42 +00:00
2014-06-22 16:12:14 +01:00
2013-10-27 15:27:59 +01:00
2013-10-27 15:27:59 +01:00
2014-06-22 16:12:14 +01:00
2014-06-22 16:12:14 +01:00

Build Status Dependencies devDependency Status optionalDependency Status

Less.js v1.7.3

The dynamic stylesheet language. http://lesscss.org.

This is the JavaScript, official, stable version of Less.

Getting Started

Options for adding Less.js to your project:

More information

For general information on the language, configuration options or usage visit lesscss.org.

Here are other resources for using Less.js:

Contributing

Please read CONTRIBUTING.md. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Reporting Issues

Before opening any issue, please search for existing issues and read the Issue Guidelines, written by Nicolas Gallagher. After that if you find a bug or would like to make feature request, please open a new issue.

Please report documentation issues in the documentation project.

Development

Read Developing Less.

Release History

See the changelog

License

Copyright (c) 2009-2014 Alexis Sellier & The Core Less Team Licensed under the Apache License.

Description
No description provided
Readme 56 MiB
Languages
JavaScript 64.7%
Less 24.5%
CSS 9.2%
Shell 1.3%
TypeScript 0.2%