8000 usage info · chumpy/less.js@e46e71a · GitHub
[go: up one dir, main page]

Skip to content < 8000 span style="width: 0%;" data-view-component="true" class="Progress-item progress-pjax-loader-bar left-0 top-0 color-bg-accent-emphasis">

Commit e46e71a

Browse files
author
cloudhead
committed
usage info
1 parent 6392328 commit e46e71a

File tree

1 file changed

+14
-20
lines changed

1 file changed

+14
-20
lines changed

README.md

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,29 @@
11
less.js
22
=======
33

4-
> Leaner CSS, in your browser.
5-
6-
**less.js is currently under development, and not to be relied upon!**
7-
84
about
95
-----
106

117
less.js is the next evolution of [LESS](http://lesscss.org), eventually, it will become LESS 2.0.
128
less.js is a complete rewrite of LESS in JavaScript, and will be able to run directly in the browser,
139
as well as on the server, with node.js.
1410

15-
More info coming soon.
11+
synopsis
12+
--------
13+
14+
### in node.js
15+
16+
var less = require('less');
17+
18+
less.render(".class { width: 10px * 2 }", function (e, css) {
19+
sys.puts(css); // .class { width: 20px }
20+
});
1621

17-
development status
18-
------------------
22+
### via the command-line (requires node)
1923

20-
A stable release is due sometime end of March.
24+
bin/lessc style.less
2125

22-
### Implemented features:
26+
### in the browser
2327

24-
- Variables
25-
- Nested rules
26-
- & selector
27-
- Numerical operations
28-
- Color operations
29-
- Namespaces
30-
- Functions
31-
- Static mixins
32-
- Comment output
33-
- Dynamic mixins
34-
- Importing
28+
<link rel="less" href="/stylesheets/main.less" type="text/css">
3529

0 commit comments

Comments
 (0)
0