-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
calcite web now works as a compass extension via a ruby gem
- Loading branch information
1 parent
b95a1c0
commit c141ad6
Showing
4 changed files
with
31 additions
and
24 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
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
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
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,15 +1,3 @@ | ||
# find the 'lib' directory and also the stylesheets directory | ||
base_directory = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')) | ||
stylesheets_path = File.join(base_directory, 'sass') | ||
|
||
# if using compass, register as a compass extension | ||
if (defined? Compass) | ||
Compass::Frameworks.register('calcite-web', :stylesheets_directory => stylesheets_path) | ||
else | ||
# if not, register on the Sass path via the environment. | ||
if ENV.has_key?("SASS_PATH") | ||
ENV["SASS_PATH"] = ENV["SASS_PATH"] + File::PATH_SEPARATOR + stylesheets_path | ||
else | ||
ENV["SASS_PATH"] = stylesheets_path | ||
end | ||
end | ||
require 'compass' | ||
dir = File.join(File.dirname(__FILE__), '..', 'lib', 'sass') | ||
Compass::Frameworks.register('calcite-web', :stylesheets_directory => dir) |