cloudhead / less
- Source
- Commits
- Network (61)
- Issues (69)
- Downloads (47)
- Graphs
-
Branch:
master
commit d60fba0bc4ca6ada6e01
tree b9dcf134c8a6b398dc24
parent b22bc7eddd6a1b9bed49 parent 6c297e4b3d06f1cf3473
tree b9dcf134c8a6b398dc24
parent b22bc7eddd6a1b9bed49 parent 6c297e4b3d06f1cf3473
less /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Mon May 18 21:10:07 -0700 2009 | |
| |
CHANGELOG | Wed Jul 29 19:27:20 -0700 2009 | |
| |
LICENSE | Mon May 18 18:18:49 -0700 2009 | |
| |
README.md | Thu Feb 25 12:55:26 -0800 2010 | |
| |
Rakefile | Wed Dec 02 09:44:30 -0800 2009 | |
| |
VERSION | Wed Jan 13 10:44:15 -0800 2010 | |
| |
bin/ | Fri Nov 20 19:01:53 -0800 2009 | |
| |
less.gemspec | Wed Jan 13 10:44:22 -0800 2010 | |
| |
lib/ | Sun Apr 11 15:13:07 -0700 2010 | |
| |
spec/ | Wed Jan 13 10:44:09 -0800 2010 |
README.md
Note: From now on, most of the new development on LESS will be happening in http://github.com/cloudhead/less.js
LESS
It's time CSS was done right – LESS is leaner css.
Setup
to get the latest development version:
sudo gem install less -s http://gemcutter.org
to get the latest stable version:
sudo gem install less
Explained
LESS allows you to write CSS the way (I think) it was meant to, that is: with variables, nested rules and mixins!
Here's some example LESS code:
@dark: #110011;
.outline (@width: 1) { border: (@width * 10px) solid black }
.article {
a { text-decoration: none }
p { color: @dark }
.outline(3);
}
And the CSS output it produces:
.article a { text-decoration: none }
.article p { color: #110011 }
.article { border: 30px solid black }
If you have CSS nightmares, just
$ lessc style.less
For more information, see you at http://lesscss.org
People without whom this wouldn't have happened a.k.a Credits
- Dmitry Fadeyev, for pushing me to do this, and designing our awesome website
- August Lilleaas, for initiating the work on the treetop grammar, as well as writing the rails plugin
- Nathan Sobo, for creating treetop
- Jason Garber, for his magical performance optimizations on treetop
- And finally, the people of #ruby-lang for answering all my ruby questions. apeiros, manveru and rue come to mind
