Permalink
Browse files

[Blueprint] Upgrade to 0.9: Make IE conditional comments more configu…

…rable in project manifests
  • Loading branch information...
enricob authored and chriseppstein committed Jun 16, 2009
1 parent 56c745b commit 77f6e02c0ec80d2b6fd19e611ced02be003c98ae
@@ -1,5 +1,5 @@
stylesheet 'screen.sass', :media => 'screen, projection'
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'
@@ -1,3 +1,3 @@
stylesheet 'screen.sass', :media => 'screen, projection'
stylesheet 'print.sass', :media => 'print'
stylesheet 'ie.sass', :media => 'screen, projection', :ie => true
stylesheet 'ie.sass', :media => 'screen, projection', :condition => "IE"
@@ -131,8 +131,8 @@ def stylesheet_links
%Q{ media="#{stylesheet.options[:media]}"}
end
ss_line = %Q{ <link href="/stylesheets/#{stylesheet.to.sub(/\.sass$/,'.css')}"#{media} rel="stylesheet" type="text/css" />}
if stylesheet.options[:ie]
ss_line = " <!--[if IE]>\n #{ss_line}\n <![endif]-->"
if stylesheet.options[:condition]
ss_line = " <!--[if #{stylesheet.options[:condition]}]>\n #{ss_line}\n <![endif]-->"
end
html << ss_line + "\n"
end

0 comments on commit 77f6e02

Please sign in to comment.