Skip to content

Commit

Permalink
[Blueprint] Upgrade to 0.9: Make IE conditional comments more configu…
Browse files Browse the repository at this point in the history
…rable in project manifests
  • Loading branch information
enricob authored and chriseppstein committed Jun 20, 2009
1 parent 56c745b commit 77f6e02
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frameworks/blueprint/templates/project/manifest.rb
@@ -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'
2 changes: 1 addition & 1 deletion frameworks/compass/templates/project/manifest.rb
@@ -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"
4 changes: 2 additions & 2 deletions lib/compass/installers/base.rb
Expand Up @@ -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
Expand Down

0 comments on commit 77f6e02

Please sign in to comment.