github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

cloudhead / less

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 641
    • 44
  • Source
  • Commits
  • Network (44)
  • Issues (57)
  • Downloads (47)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (3)
    • dev
    • master ✓
    • refs/heads/old-master
  • Tags (47)
    • v1.2.21
    • v1.2.20
    • v1.2.19
    • v1.2.18
    • v1.2.17
    • v1.2.16
    • v1.2.15
    • v1.2.14
    • v1.2.13
    • v1.2.12
    • v1.2.11
    • v1.2.10
    • v1.2.9
    • v1.2.8
    • v1.2.7
    • v1.2.6
    • v1.2.5
    • v1.2.4
    • v1.2.3
    • v1.2.2
    • v1.2.1
    • v1.2.0
    • v1.1.13
    • v1.1.12
    • v1.1.11
    • v1.1.10
    • v1.1.9
    • v1.1.8
    • v1.1.7
    • v1.1.6
    • v1.1.5
    • v1.1.4
    • v1.1.3
    • v1.1.2
    • v1.1.1
    • v1.1.0
    • v1.0.16
    • v1.0.15
    • v1.0.13
    • v1.0.6
    • v1.0.4
    • v1.0.3
    • v1.0.2
    • v1.0.1
    • v1.0.0
    • v0.7.0
    • v0.5.2
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Leaner CSS — Read more

  cancel

lesscss.org

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Regenerated gemspec for version 1.2.21 
cloudhead (author)
Wed Jan 13 10:44:22 -0800 2010
commit  5c60db1993b88ae32483a9189cba5537f2e25ade
tree    5e6a52eeebdd041b2556db98db283c50f43af57e
parent  994ac47229e0544e05022acd708c950b0e122226
less /
name age
history
message
file .gitignore Mon May 18 21:10:07 -0700 2009 cleanup [cloudhead]
file CHANGELOG Wed Jul 29 19:27:20 -0700 2009 ruby 1.8 fix & updated changelog [cloudhead]
file LICENSE Mon May 18 18:18:49 -0700 2009 apache license [cloudhead]
file README.md Wed Dec 02 10:04:04 -0800 2009 Updated link in readme to link to http://lesscs... [samsoffes]
file Rakefile Wed Dec 02 09:44:30 -0800 2009 updated benchmark task [cloudhead]
file VERSION Wed Jan 13 10:44:15 -0800 2010 Version bump to 1.2.21 [cloudhead]
directory bin/ Fri Nov 20 19:01:53 -0800 2009 timestamps on watch output through -t argument [cloudhead]
file less.gemspec Wed Jan 13 10:44:22 -0800 2010 Regenerated gemspec for version 1.2.21 [cloudhead]
directory lib/ Wed Jan 13 10:44:09 -0800 2010 fixed for (n+1) not working [cloudhead]
directory spec/ Wed Jan 13 10:44:09 -0800 2010 fixed for (n+1) not working [cloudhead]
README.md

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
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server