Progress made on the menu icons.

- Styles being inherited correctly down to the "New" section's sub items.
- Menu using the TextHint for generating class names instead of the menu text for predictability across localized sites.

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2011-02-21 12:16:31 -08:00
parent 90d81f69c1
commit 79b1a288b3
19 changed files with 97 additions and 48 deletions

View File

@@ -8,7 +8,7 @@ namespace Orchard.Core.Dashboard {
public string MenuName { get { return "admin"; } }
public void GetNavigation(NavigationBuilder builder) {
builder.AddImageSet("dashboard.menu")
builder.AddImageSet("dashboard")
.Add(T("Dashboard"), "-5",
menu => menu.Add(T("Orchard"), "-5",
item => item

View File

@@ -1,7 +0,0 @@
.navicon-dashboard {
background-image:url(images/dashboard.menu.png) !important;
background-position:0 2px !important;
}
.navicon-dashboard:hover {
background-position:0 -30px !important;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 224 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 B

View File

@@ -0,0 +1,6 @@
.navicon-dashboard {
background-image:url(images/menu.dashboard.png) !important;
}
.navicon-dashboard:hover {
background-position:0 -30px !important;
}

View File

@@ -239,8 +239,8 @@
<Content Include="Contents\Views\Admin\Create.cshtml" />
<Content Include="Contents\Views\Admin\Edit.cshtml" />
<Content Include="Contents\Views\Admin\List.cshtml" />
<Content Include="Dashboard\styles\dashboard.menu.css" />
<Content Include="Dashboard\styles\images\dashboard.menu.png" />
<Content Include="Dashboard\styles\menu.dashboard.css" />
<Content Include="Dashboard\styles\images\menu.dashboard.png" />
<Content Include="Feeds\Views\Feed.cshtml" />
<Content Include="Contents\Views\Parts.Contents.Publish.cshtml" />
<Content Include="Contents\Views\Parts.Contents.Publish.SummaryAdmin.cshtml" />