Adding an IE-specific CSS for 7&8 (there's already an IE6 CSS)

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-06-02 12:39:00 -07:00
parent 5051dd7dae
commit 42292c8612
3 changed files with 3 additions and 0 deletions

View File

@@ -99,6 +99,7 @@
<ItemGroup>
<Content Include="Default.aspx" />
<Content Include="Global.asax" />
<Content Include="Themes\TheAdmin\Styles\ie.css" />
<Content Include="Web.config" />
</ItemGroup>
<ItemGroup>

View File

@@ -0,0 +1 @@


View File

@@ -2,6 +2,7 @@
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
<%@ Import Namespace="Orchard.Mvc.Html"%><%
Html.RegisterStyle("site.css");
Html.RegisterStyle("ie.css").WithCondition("if (lte IE 8)").ForMedia("screen, projection");
Html.RegisterStyle("ie6.css").WithCondition("if lte IE 6").ForMedia("screen, projection");
Model.Zones.AddRenderPartial("header", "Header", Model);
Model.Zones.AddRenderPartial("header:after", "User", Model); // todo: (heskew) should be a user display or widget