Changed id to class in menu file and updated themes.

--HG--
branch : dev
This commit is contained in:
jowall
2010-03-09 15:03:49 -08:00
parent 53fbe1fe86
commit 94ff65840e
5 changed files with 14 additions and 12 deletions

View File

@@ -2,10 +2,9 @@
<%@ Import Namespace="Orchard.Mvc.ViewModels"%><%
var menu = Model.Menu.FirstOrDefault();
if (menu != null && menu.Items.Count() > 0) { %>
<div id="menucontainer">
<%-- todo: (heskew) *really* need a better way of doing this. ...and this is really, really ugly :) --%>
<%-- TODO: (erikpo) Really need a partial for rendering lists (and it should be templatable) to fix the above todo :) --%>
<ul id="menu"><%
<ul class="menu"><%
int counter = 0, count = menu.Items.Count() - 1;
foreach (var menuItem in menu.Items) {
var sbClass = new StringBuilder(10);
@@ -22,5 +21,5 @@
++counter;
} %>
</ul>
</div><%
<%
} %>

View File

@@ -186,6 +186,7 @@
<Content Include="Themes\Classic\Content\Images\mainBackgroundgrey.png" />
<Content Include="Themes\Classic\Content\Images\navDivider.gif" />
<Content Include="Themes\Classic\Content\Images\sidebarBackground.gif" />
<Content Include="Themes\Classic\DesignerNotes\Sidebar.html" />
<Content Include="Themes\Classic\Styles\blog.css" />
<Content Include="Themes\Classic\Styles\site.css" />
<Content Include="Themes\Classic\Theme.png" />

View File

@@ -263,7 +263,7 @@ div.homeWidget {
/* Top navigation pane
----------------------------------------------------------*/
#menucontainer {
.menucontainer {
margin:0;
padding:0 0 0 20px;
list-style:none;
@@ -271,13 +271,13 @@ div.homeWidget {
font-size:104%;
}
#menucontainer ul li {
.menucontainer ul.menu li {
float:left;
margin:0 2px;
background:url(../Content/Images/tabRightOff.gif) no-repeat top right;
}
#menucontainer ul li a {
.menucontainer ul.menu li a {
display:block;
padding: 8px 18px;
background:url(../Content/Images/tabLeftOff.gif) no-repeat top left;
@@ -287,11 +287,11 @@ div.homeWidget {
color:#35550b;
}
#menucontainer ul li.current {
.menucontainer ul.menu li.current {
background:url(../Content/Images/tabRightOn.gif) no-repeat top right;
}
#menucontainer ul li.current a {
.menucontainer ul.menu li.current a {
background:url(../Content/Images/tabLeftOn.gif) no-repeat top left;
font-weight:600;
}

View File

@@ -35,7 +35,9 @@ return false;
</div>
<%--Top Navigation--%>
<%-- todo:(nheskew) this will need to be a generated menu --%>
<% Html.Include("Menu"); %>
<div class="menucontainer">
<% Html.Include("menu"); %>
</div>
</div>
<%-- Begin Page Content --%>

View File

@@ -19,8 +19,6 @@ return false;
<div id="doc4" class="yui-t6">
<% Html.Zone("header"); Html.Zone("menu"); %>
<div id="hd" role="banner">
<div class="yui-g" id="branding">
<div class="yui-u first">
@@ -35,7 +33,9 @@ return false;
</div>
<%--Top Navigation--%>
<%-- todo:(nheskew) this will need to be a generated menu --%>
<% Html.Include("Menu"); %>
<div class="menucontainer">
<% Html.Include("menu"); %>
</div>
</div>
<%-- Begin Page Content --%>