[Blueprint] Upgrade to 0.9: Make IE conditional comments more configurable in project manifests
This commit is contained in:
parent
56c745b939
commit
77f6e02c0e
@ -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'
|
||||||
|
@ -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"
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user