[Blueprint] Upgrade to 0.9: Make IE conditional comments more configurable in project manifests

This commit is contained in:
Enrico Bianco 2009-06-16 19:40:55 -04:00 committed by Chris Eppstein
parent 56c745b939
commit 77f6e02c0e
3 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
stylesheet 'screen.sass', :media => 'screen, projection' stylesheet 'screen.sass', :media => 'screen, projection'
stylesheet 'print.sass', :media => 'print' stylesheet 'print.sass', :media => 'print'
stylesheet 'ie.sass', :media => 'screen, projection', :ie => true stylesheet 'ie.sass', :media => 'screen, projection', :condition => "lt IE 8"
image 'grid.png' image 'grid.png'

View File

@ -1,3 +1,3 @@
stylesheet 'screen.sass', :media => 'screen, projection' stylesheet 'screen.sass', :media => 'screen, projection'
stylesheet 'print.sass', :media => 'print' stylesheet 'print.sass', :media => 'print'
stylesheet 'ie.sass', :media => 'screen, projection', :ie => true stylesheet 'ie.sass', :media => 'screen, projection', :condition => "IE"

View File

@ -131,8 +131,8 @@ module Compass
%Q{ media="#{stylesheet.options[:media]}"} %Q{ media="#{stylesheet.options[:media]}"}
end end
ss_line = %Q{ <link href="/stylesheets/#{stylesheet.to.sub(/\.sass$/,'.css')}"#{media} rel="stylesheet" type="text/css" />} ss_line = %Q{ <link href="/stylesheets/#{stylesheet.to.sub(/\.sass$/,'.css')}"#{media} rel="stylesheet" type="text/css" />}
if stylesheet.options[:ie] if stylesheet.options[:condition]
ss_line = " <!--[if IE]>\n #{ss_line}\n <![endif]-->" ss_line = " <!--[if #{stylesheet.options[:condition]}]>\n #{ss_line}\n <![endif]-->"
end end
html << ss_line + "\n" html << ss_line + "\n"
end end