Skip to content

Commit

Permalink
Expanded on the basic project template
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenway committed Nov 11, 2012
1 parent 136d897 commit 66d3db7
Show file tree
Hide file tree
Showing 7 changed files with 89 additions and 17 deletions.
27 changes: 16 additions & 11 deletions compass-inuit.gemspec
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
# -*- encoding: utf-8 -*-
Gem::Specification.new do |gem|
gem.name = "compass-inuit"
gem.version = "4.1.0"
gem.authors = ["Stephen Way"]
gem.email = ["stephen@swy.me"]
gem.description = "inuit.css for compass—cooler than a polar bear’s toenails"
gem.summary = "inuit.css for compass—cooler than a polar bear’s toenails"
gem.homepage = "http://github.com/stephenway/compass-intuit"
Gem::Specification.new do |s|
s.version = "4.1.1"
s.date = "2012-11-10"
s.name = "compass-inuit"
s.authors = ["Stephen Way"]
s.email = ["stephencway@me.com"]
s.description = "inuit.css for compass—cooler than a polar bear’s toenails."
s.summary = "inuit.css for compass—cooler than a polar bear’s toenails"
s.homepage = "http://github.com/stephenway/compass-intuit"

gem.require_paths = ["lib", "stylesheets", "templates"]
gem.add_dependency "sass", ">= 3.2"
gem.add_dependency "compass", ">= 0.12"
s.files = %w(README.md)
s.files += Dir.glob("lib/**/*.*")
s.files += Dir.glob("stylesheets/**/*.*")
s.files += Dir.glob("templates/**/*.*")
s.has_rdoc = false
s.add_dependency("sass", [">= 3.2"])
s.add_dependency("compass", [">= 0.12.2"])
end
6 changes: 2 additions & 4 deletions lib/compass-inuit.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require 'compass'

Compass::Frameworks.register('compass-intuit',
:stylesheets_directory => File.join(File.dirname(__FILE__), '..', 'stylesheets'),
:templates_directory => File.join(File.dirname(__FILE__), '..', 'templates'))
extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
Compass::Frameworks.register('compass-inuit', :path => extension_path)
8 changes: 8 additions & 0 deletions templates/project/config.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Require any additional compass plugins here.
require 'compass-inuit'
project_type = :stand_alone
css_dir = "/"
sass_dir = "sass"
images_dir = "images"
output_style = :compressed
relative_assets = true
55 changes: 55 additions & 0 deletions templates/project/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>inuit.css Example Project</title>
<link rel="stylesheet" href="your-project.css">
</head>
<body>
<div class="island greybox greybox--medium header">Header</div>

<div class=wrapper>

<ul class="nav nav--fit nav--block greybox">
<li><a href=#>Home</a></li>
<li><a href=#>About</a></li>
<li><a href=#>Portfolio</a></li>
<li><a href=#>Contact</a></li>
</ul>

<div class="island greybox greybox--large">Masthead</div>

<div class=gw>

<div class="g two-thirds content">
<div class="island greybox greybox--gigantic">Content</div>
</div><!-- /content -->

<div class="g one-third sub-content">
<div class="island greybox">

<div class=gw>
<div class="g one-half">
<div class="islet greybox">Ad</div>
</div>
<div class="g one-half">
<div class="islet greybox">Ad</div>
</div>
</div>

<div class="island greybox greybox--huge">Sub content</div>


<div class="islet greybox">Ad</div>

</div>
</div><!-- /sub-content -->

</div>

</div><!-- /wrapper -->

<div class="island greybox greybox--medium footer">Footer</div>
</body>
</html>

10 changes: 8 additions & 2 deletions templates/project/manifest.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Make sure you list all the project template files here in the manifest.
stylesheet '_vars.scss'
stylesheet 'your-project.scss', :media => 'screen, projection'
stylesheet 'sass/_vars.scss'
stylesheet 'sass/your-project.scss', :media => 'screen, projection'
html 'index.html'
file 'config.rb'

welcome_message %Q{
Now customize and compile!
}
File renamed without changes.
File renamed without changes.

0 comments on commit 66d3db7

Please sign in to comment.