mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-21 11:17:28 +08:00
More fine-grained admin menu classification to limit accidental item iconification.
--HG-- branch : dev
This commit is contained in:
@@ -1,16 +1,15 @@
|
|||||||
.navicon-list,
|
.navicon-lists,
|
||||||
.navicon-lists {
|
.section-new .subnavicon-list {
|
||||||
background-image:url(images/menu.list.png) !important;
|
background-image:url(images/menu.list.png) !important;
|
||||||
}
|
}
|
||||||
.navicon-list:hover,
|
|
||||||
.navicon-lists:hover {
|
.navicon-lists:hover {
|
||||||
background-position:0 -30px !important;
|
background-position:0 -30px !important;
|
||||||
}
|
}
|
||||||
/* subnav */
|
/* subnav */
|
||||||
ul ul .navicon-list {
|
.section-new .subnavicon-list {
|
||||||
background-position:0 6px !important;
|
background-position:0 6px !important;
|
||||||
padding-left:20px !important;
|
padding-left:20px !important;
|
||||||
}
|
}
|
||||||
ul ul .navicon-list:hover {
|
.section-new .subnavicon-list:hover {
|
||||||
background-position:0 -26px !important;
|
background-position:0 -26px !important;
|
||||||
}
|
}
|
@@ -1,14 +1,15 @@
|
|||||||
.navicon-page {
|
.navicon-page,
|
||||||
|
.section-new .subnavicon-page {
|
||||||
background-image:url(images/menu.page.png) !important;
|
background-image:url(images/menu.page.png) !important;
|
||||||
}
|
}
|
||||||
.navicon-page:hover {
|
.navicon-page:hover {
|
||||||
background-position:0 -30px !important;
|
background-position:0 -30px !important;
|
||||||
}
|
}
|
||||||
/* subnav */
|
/* subnav */
|
||||||
ul ul .navicon-page {
|
.section-new .subnavicon-page {
|
||||||
background-position:0 6px !important;
|
background-position:0 6px !important;
|
||||||
padding-left:20px !important;
|
padding-left:20px !important;
|
||||||
}
|
}
|
||||||
ul ul .navicon-page:hover {
|
.section-new .subnavicon-page:hover {
|
||||||
background-position:0 -26px !important;
|
background-position:0 -26px !important;
|
||||||
}
|
}
|
@@ -69,10 +69,10 @@
|
|||||||
@foreach (var secondLevelMenuItem in secondLevelMenuItems.Where(menuItem => !menuItem.LocalNav)) {
|
@foreach (var secondLevelMenuItem in secondLevelMenuItems.Where(menuItem => !menuItem.LocalNav)) {
|
||||||
string secondLevelTextHint = secondLevelMenuItem.TextHint;
|
string secondLevelTextHint = secondLevelMenuItem.TextHint;
|
||||||
var secondLevelItemClassName = HasText(secondLevelTextHint)
|
var secondLevelItemClassName = HasText(secondLevelTextHint)
|
||||||
? "navicon-" + secondLevelTextHint.HtmlClassify()
|
? "subnavicon-" + secondLevelTextHint.HtmlClassify()
|
||||||
: "navicon";
|
: "subnavicon";
|
||||||
var secondLevelItemId = HasText(secondLevelMenuItem.IdHint)
|
var secondLevelItemId = HasText(secondLevelMenuItem.IdHint)
|
||||||
? "navicon-" + secondLevelMenuItem.IdHint
|
? "subnavicon-" + secondLevelMenuItem.IdHint
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
if (secondLevelMenuItem.Selected) {
|
if (secondLevelMenuItem.Selected) {
|
||||||
|
Reference in New Issue
Block a user