include compass, 'cause i'm awesome
This commit is contained in:
parent
c5bf39c0e5
commit
c45c5a5a43
|
@ -1,6 +1,7 @@
|
|||
require 's6-gen'
|
||||
require 's6-gen/presentation'
|
||||
require 'fileutils'
|
||||
require 'compass'
|
||||
require 'sass'
|
||||
|
||||
module S6Gen
|
||||
|
@ -26,8 +27,18 @@ module S6Gen
|
|||
|
||||
FileUtils.mkdir_p 'public'
|
||||
|
||||
Compass.configuration do |config|
|
||||
config.project_path = Dir.pwd
|
||||
config.sass_dir = 'src'
|
||||
|
||||
config.images_dir = File.join('public', 'graphics')
|
||||
config.http_path = ""
|
||||
config.http_images_path = 'graphics'
|
||||
config.output_style = :compact
|
||||
end
|
||||
|
||||
File.open('public/style.css', 'w') do |file|
|
||||
file.puts Sass::Engine.new(File.read('src/style.sass')).to_css
|
||||
file.puts Sass::Engine.new(File.read('src/style.sass'), Compass.sass_engine_options).to_css
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -2,9 +2,10 @@
|
|||
%head
|
||||
%title= @title
|
||||
%meta{:name => :author, :content => @author}
|
||||
%link#outlineStyle{:rel => :stylesheet, :href => 's6/shared/outline.css', :type => 'text/css', :media => :screen}
|
||||
%link#slidePrint{:rel => :stylesheet, :href => 's6/shared/print.css', :type => 'text/css', :media => :print}
|
||||
%link#slideProj{:rel => :stylesheet, :href => 's6/shared/slides.css', :type => 'text/css', :media => :projection}
|
||||
%link{:rel => :stylesheet, :href => 'style.css', :type => 'text/css', :media => :screen}
|
||||
%link{:rel => :stylesheet, :href => 's6/shared/outline.css', :type => 'text/css', :media => :screen}
|
||||
%link{:rel => :stylesheet, :href => 's6/shared/print.css', :type => 'text/css', :media => :print}
|
||||
|
||||
%script{:src => 'jquery/jquery-1.4.2.min.js', :type => 'text/javascript'}
|
||||
%script{:src => 'jquery/jquery-ui-1.7.2.effects.min.js', :type => 'text/javascript'}
|
||||
|
|
Loading…
Reference in New Issue