Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Expanded on the basic project template

  • Loading branch information...
commit 66d3db72df22e3e886214fd58d382e42727ae948 1 parent 136d897
@stephenway authored
View
27 compass-inuit.gemspec
@@ -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
View
6 lib/compass-inuit.rb
@@ -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)
View
8 templates/project/config.rb
@@ -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
View
55 templates/project/index.html
@@ -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>
+
View
10 templates/project/manifest.rb
@@ -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!
+}
View
0  templates/project/_vars.scss → templates/project/sass/_vars.scss
File renamed without changes
View
0  templates/project/your-project.scss → templates/project/sass/your-project.scss
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.