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

@@ -7,7 +7,7 @@ namespace Orchard.Core.Dashboard {
public string MenuName { get { return "admin"; } }
public void GetNavigation(NavigationBuilder builder) {
builder.AddImageSet("page.menu");
builder.AddImageSet("page");
}
}
}

View File

@@ -55,8 +55,8 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Content Include="Styles\page.menu.css" />
<Content Include="Styles\images\page.menu.png" />
<Content Include="Styles\menu.page.css" />
<Content Include="Styles\images\menu.page.png" />
<Content Include="web.config" />
</ItemGroup>
<ItemGroup>

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 B

View File

@@ -0,0 +1,14 @@
.navicon-page {
background-image:url(images/menu.page.png) !important;
}
.navicon-page:hover {
background-position:0 -30px !important;
}
/* subnav */
ul ul .navicon-page {
background-position:0 6px !important;
padding-left:16px !important;
}
ul ul .navicon-page:hover {
background-position:0 -26px !important;
}

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;
}