This repository has been archived by the owner on Aug 14, 2024. It is now read-only.
forked from less/less.ruby
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
cloudhead
committed
May 19, 2009
1 parent
dd1f1f1
commit 33d87e1
Showing
6 changed files
with
111 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/*.css | ||
*.tmproj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
LESS | ||
==== | ||
It's time CSS was done right – LESS is _leaner_ css. | ||
|
||
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 { border: 1px solid black } | ||
|
||
.article { | ||
a { text-decoration: none } | ||
p { color: @dark } | ||
.outline; | ||
} | ||
|
||
### And the CSS output it produces: | ||
|
||
.outline { border: 1px solid black } | ||
.article > a { text-decoration: none } | ||
.article > p { color: #110011 } | ||
.article { border: 1px solid black } | ||
|
||
If you have CSS nightmares, just | ||
$ lessc style.less | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Je::Specification.new do |s| | ||
# s.name = "less" | ||
# s.version = "0.1" | ||
# s.date = Time.today.strftime("%Y-%m-%d") | ||
# s.authors = ["cloudhead"] | ||
# s.email = "alexis@cloudhead.net" | ||
# s.summary = "LESS compiler" | ||
# s.homepage = "http://www.lesscss.org" | ||
# s.description = "Compiles LESS files into CSS" | ||
# s.files = [ | ||
# "README", | ||
# "bin/lessc", | ||
# "lib/less.rb", | ||
# "lib/less/command.rb", | ||
# "lib/less/engine.rb", | ||
# "lib/less/tree.rb" | ||
# ] | ||
# | ||
# s.bindir = "bin" | ||
# s.default_executable = "lessc" | ||
# s.executables = "lessc" | ||
# end | ||
|
||
begin | ||
require 'jeweler' | ||
Jeweler::Tasks.new do |s| | ||
s.name = "less" | ||
s.authors = ["cloudhead"] | ||
s.email = "alexis@cloudhead.net" | ||
s.summary = "LESS compiler" | ||
s.homepage = "http://www.lesscss.org" | ||
s.description = "Compiles LESS files into CSS" | ||
end | ||
rescue LoadError | ||
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,45 @@ | ||
# -*- encoding: utf-8 -*- | ||
|
||
Gem::Specification.new do |s| | ||
s.name = "less" | ||
s.version = "0.1" | ||
s.date = Time.today.strftime("%Y-%m-%d") | ||
s.authors = ["cloudhead"] | ||
s.email = "alexis@cloudhead.net" | ||
s.summary = "LESS compiler" | ||
s.homepage = "http://www.lesscss.org" | ||
s.description = "Compiles LESS files into CSS" | ||
s.files = [ | ||
"README", | ||
"bin/lessc", | ||
"lib/less.rb", | ||
"lib/less/command.rb", | ||
"lib/less/engine.rb", | ||
"lib/less/tree.rb" | ||
] | ||
|
||
s.bindir = "bin" | ||
s.default_executable = "lessc" | ||
s.executables = "lessc" | ||
end | ||
s.name = %q{less} | ||
s.version = "0.5.0" | ||
|
||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= | ||
s.authors = ["cloudhead"] | ||
s.date = %q{2009-05-18} | ||
s.default_executable = %q{lessc} | ||
s.description = %q{Compiles LESS files into CSS} | ||
s.email = %q{alexis@cloudhead.net} | ||
s.executables = ["lessc"] | ||
s.extra_rdoc_files = [ | ||
"LICENSE", | ||
"README.md" | ||
] | ||
s.files = [ | ||
".gitignore", | ||
"LICENSE", | ||
"README.md", | ||
"bin/lessc", | ||
"lib/less.rb", | ||
"lib/less/command.rb", | ||
"lib/less/engine.rb", | ||
"lib/less/tree.rb", | ||
"spec/spec.less" | ||
] | ||
s.has_rdoc = true | ||
s.homepage = %q{http://www.lesscss.org} | ||
s.rdoc_options = ["--charset=UTF-8"] | ||
s.require_paths = ["lib"] | ||
s.rubygems_version = %q{1.3.1} | ||
s.summary = %q{LESS compiler} | ||
|
||
if s.respond_to? :specification_version then | ||
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION | ||
s.specification_version = 2 | ||
|
||
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then | ||
else | ||
end | ||
else | ||
end | ||
end |
Binary file not shown.