mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
usage info
This commit is contained in:
34
README.md
34
README.md
@@ -1,10 +1,6 @@
|
||||
less.js
|
||||
=======
|
||||
|
||||
> Leaner CSS, in your browser.
|
||||
|
||||
**less.js is currently under development, and not to be relied upon!**
|
||||
|
||||
about
|
||||
-----
|
||||
|
||||
@@ -12,24 +8,22 @@ less.js is the next evolution of [LESS](http://lesscss.org), eventually, it will
|
||||
less.js is a complete rewrite of LESS in JavaScript, and will be able to run directly in the browser,
|
||||
as well as on the server, with node.js.
|
||||
|
||||
More info coming soon.
|
||||
synopsis
|
||||
--------
|
||||
|
||||
development status
|
||||
------------------
|
||||
### in node.js
|
||||
|
||||
A stable release is due sometime end of March.
|
||||
var less = require('less');
|
||||
|
||||
### Implemented features:
|
||||
less.render(".class { width: 10px * 2 }", function (e, css) {
|
||||
sys.puts(css); // .class { width: 20px }
|
||||
});
|
||||
|
||||
- Variables
|
||||
- Nested rules
|
||||
- & selector
|
||||
- Numerical operations
|
||||
- Color operations
|
||||
- Namespaces
|
||||
- Functions
|
||||
- Static mixins
|
||||
- Comment output
|
||||
- Dynamic mixins
|
||||
- Importing
|
||||
### via the command-line (requires node)
|
||||
|
||||
bin/lessc style.less
|
||||
|
||||
### in the browser
|
||||
|
||||
<link rel="less" href="/stylesheets/main.less" type="text/css">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user