$ compass compile --environment production && compass compile
Afterwards you will have both the minified and non-minified versions in your output folder. Note that compass clean will not clean up your minified files.
| # extracts dependencies for a file | |
| class DependencyExtractor | |
| class Asset < Struct.new(:filename, :importer, :children) | |
| def initialize(*args) | |
| super | |
| self.children ||= [] | |
| end | |
| # transitive dependencies. Call `children` for just the immediate dependencies. | |
| def dependencies |
$ compass compile --environment production && compass compile
Afterwards you will have both the minified and non-minified versions in your output folder. Note that compass clean will not clean up your minified files.
| %bordered { | |
| .section & { | |
| border: 1px solid #ccc; | |
| } | |
| } | |
| .sidebar .quotation { | |
| @extend %bordered; | |
| } |
| // A named buffer. Will append to existing content captured there. | |
| // The buffer can be accessed via get-capture("foo") or @emit "foo". | |
| @capture "foo" { | |
| @media screen { | |
| .asdf { | |
| .qwerty { | |
| /* This is a comment */ | |
| color: red; | |
| } | |
| } |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'nokogiri' | |
| require 'open-uri' | |
| url = ARGV[0] | |
| class Document < Nokogiri::XML::SAX::Document | |
| SEMANTIC_CONTAINERS = %w(body article section nav aside hgroup header footer) | |
| COUNT_ELEMENTS = %w(p a) |
| @include keyframes(appear-and-roundify) { | |
| 0% { opacity: 0; @include border-radius(2px); } | |
| 100% { opacity: 1; @include border-radius(10px); } | |
| } |
| $gutter: 10px; | |
| $grid-unit: 60px; | |
| %clearfix { | |
| *zoom: 1; | |
| &:after { | |
| content: "\0020"; | |
| display: block; | |
| height: 0; | |
| clear: both; |
| @mixin ie6 { * html & { @content } } | |
| #logo { | |
| background-image: url("/images/logo.png"); | |
| @include ie6 { background-image: url("/images/logo.gif"); } | |
| } |
This gist is no longer valid. Please see Compass-Rails for instructions on how to install.