Permalink
Browse files

Add bourbon integration

  • Loading branch information...
1 parent 374b37a commit af7ec64f4fd15f13a9e02a245523d2d1f5fee889 @ixti ixti committed Jan 7, 2013
View
@@ -23,6 +23,7 @@ Gem::Specification.new do |gem|
gem.add_development_dependency "guard-rspec"
gem.add_development_dependency "rb-inotify"
gem.add_development_dependency "compass"
+ gem.add_development_dependency "bourbon"
gem.files = `git ls-files`.split($\)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -0,0 +1,5 @@
+require "sprockets"
+
+
+bourbon_root = Gem::Specification.find_by_name("bourbon").gem_dir
+Sprockets.append_path File.join(bourbon_root, "app", "assets", "stylesheets")
@@ -0,0 +1,4 @@
+@import "bourbon"
+
+.photo
+ @include box-shadow(0 0 5px 0px hsla(0, 0%, 0%, 0.65))
@@ -1,4 +1,4 @@
-@import "compass/css3/box-shadow"
+@import "compass"
.photo
@include single-box-shadow(#eee, 0px, 0px, 5px)
@@ -0,0 +1,14 @@
+require 'spec_helper'
+require 'jekyll-assets/bourbon'
+
+
+module Jekyll::AssetsPlugin
+ describe 'Bourbon integration' do
+ it "should globally append bourbon paths into Sprockets environment" do
+ asset = @site.assets['vendor/bourbon.css'].to_s
+
+ asset.should =~ /-webkit-box-shadow/
+ asset.should =~ /box-shadow/
+ end
+ end
+end
@@ -5,7 +5,7 @@
module Jekyll::AssetsPlugin
describe 'Compass integration' do
it "should globally append compass paths into Sprockets environment" do
- asset = @site.assets['photos.css'].to_s
+ asset = @site.assets['vendor/compass.css'].to_s
asset.should =~ /-webkit-box-shadow/
asset.should =~ /-moz-box-shadow/

0 comments on commit af7ec64

Please sign in to comment.