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.
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:
- Install with NPM:
npm install less - Download the latest release
- Clone the repo:
git clone git://github.com/less/less.js.git
More information
For general information on the language, configuration options or usage visit lesscss.org.
Here are other resources for using Less.js:
- stackoverflow.com is a great place to get answers about Less.
- Less.js Issues for reporting bugs
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.



