From 77f6e02c0ec80d2b6fd19e611ced02be003c98ae Mon Sep 17 00:00:00 2001 From: Enrico Bianco Date: Tue, 16 Jun 2009 19:40:55 -0400 Subject: [PATCH] [Blueprint] Upgrade to 0.9: Make IE conditional comments more configurable in project manifests --- frameworks/blueprint/templates/project/manifest.rb | 2 +- frameworks/compass/templates/project/manifest.rb | 2 +- lib/compass/installers/base.rb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frameworks/blueprint/templates/project/manifest.rb b/frameworks/blueprint/templates/project/manifest.rb index 80324ef9..9e0f7ede 100644 --- a/frameworks/blueprint/templates/project/manifest.rb +++ b/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' diff --git a/frameworks/compass/templates/project/manifest.rb b/frameworks/compass/templates/project/manifest.rb index 34e18ab0..03604fe2 100644 --- a/frameworks/compass/templates/project/manifest.rb +++ b/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 \ No newline at end of file +stylesheet 'ie.sass', :media => 'screen, projection', :condition => "IE" \ No newline at end of file diff --git a/lib/compass/installers/base.rb b/lib/compass/installers/base.rb index 5a3081a4..43dd2ef3 100644 --- a/lib/compass/installers/base.rb +++ b/lib/compass/installers/base.rb @@ -131,8 +131,8 @@ module Compass %Q{ media="#{stylesheet.options[:media]}"} end ss_line = %Q{ } - if stylesheet.options[:ie] - ss_line = " " + if stylesheet.options[:condition] + ss_line = " " end html << ss_line + "\n" end