Skip to content

whitehat101/stasis-compass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stasis-Compass

Configures Stasis (with SCSS/SASS) to load compass mixins.

Installation

Add this line to your stasis project's Gemfile:

gem 'stasis-compass'

You may remove:

gem 'compass'
gem 'stasis'

Because they will be automatically included in your bundle, or you may keep them in your gemfile to pull a specific version of compass / stasis. This should work with any compass >= 0.10.1 and stasis >= 0.1.9.

Depending on your project's setup, you may need to require 'stasis-compass' in your top level stasis controller.rb.

And then execute:

$ bundle exec stasis

as usual to compile your project.

Usage

In a SCSS or SASS file, import and include mixins:

// style.css.scss
@import "compass/css3/opacity";

div {
  @include opacity(0.5);
}
// style.css.sass
@import "compass/css3/opacity"

div
  @include opacity(0.5)

See the Compass Reference for more information.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Configures Stasis (and SCSS) to load compass mixins.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages