Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/less/less.ruby
Less Ruby — now at http://github.com/cowboyd/less.rb
https://github.com/less/less.ruby
Last synced: about 6 hours ago
JSON representation
Less Ruby — now at http://github.com/cowboyd/less.rb
- Host: GitHub
- URL: https://github.com/less/less.ruby
- Owner: less
- License: apache-2.0
- Archived: true
- Created: 2009-05-03T21:35:57.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2013-09-18T15:28:54.000Z (about 11 years ago)
- Last Synced: 2024-05-23T06:01:46.035Z (4 months ago)
- Language: CSS
- Homepage:
- Size: 984 KB
- Stars: 958
- Watchers: 25
- Forks: 69
- Open Issues: 93
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
**Note: From now on, new development on LESS will be happening in **
=====================================================================================================================See http://github.com/cowboyd/less.rb for less ruby development.
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.orgto 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.lessFor more information, see you at
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