diff --git a/admin/code/LeftAndMain.php b/admin/code/LeftAndMain.php index 1cb632877..4400e912b 100644 --- a/admin/code/LeftAndMain.php +++ b/admin/code/LeftAndMain.php @@ -452,7 +452,7 @@ class LeftAndMain extends Controller { continue; } - $linkingmode = ""; + $linkingmode = "link"; if($menuItem->controller && get_class($this) == $menuItem->controller) { $linkingmode = "current"; diff --git a/admin/css/screen.css b/admin/css/screen.css index 4c01dfe90..d337329c7 100644 --- a/admin/css/screen.css +++ b/admin/css/screen.css @@ -162,6 +162,7 @@ li.class-ErrorPage a .jstree-pageicon { background-position: 0 -112px; } .cms-menu-list li a:focus, .cms-menu-list li a:active { border-top: 1px solid #a1b2bc; text-decoration: none; background-color: #a1b2bc; color: #393939; background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #92a5b2), color-stop(100%, #a1b2bc)); background-image: -webkit-linear-gradient(#92a5b2, #a1b2bc); background-image: -moz-linear-gradient(#92a5b2, #a1b2bc); background-image: -o-linear-gradient(#92a5b2, #a1b2bc); background-image: -ms-linear-gradient(#92a5b2, #a1b2bc); background-image: linear-gradient(#92a5b2, #a1b2bc); } .cms-menu-list li a .icon { display: block; float: left; margin: 4px 10px 0 4px; filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=70); opacity: 0.7; } .cms-menu-list li a .text { display: block; } +.cms-menu-list li ul { display: none; } .cms-menu-list li.current a { color: white; text-shadow: #1e5270 0 -1px 0; border-top: 1px solid #55a4d2; border-bottom: 1px solid #1e5270; background-color: #338dc1; background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #338dc1), color-stop(100%, #287099)); background-image: -webkit-linear-gradient(#338dc1, #287099); background-image: -moz-linear-gradient(#338dc1, #287099); background-image: -o-linear-gradient(#338dc1, #287099); background-image: -ms-linear-gradient(#338dc1, #287099); background-image: linear-gradient(#338dc1, #287099); } .cms-menu-list li.current ul { border-top: 1px solid #1e5270; } .cms-menu-list li.current li { background-color: #287099; } diff --git a/admin/javascript/LeftAndMain.Menu.js b/admin/javascript/LeftAndMain.Menu.js index 15a62ba16..c3ad90b0a 100644 --- a/admin/javascript/LeftAndMain.Menu.js +++ b/admin/javascript/LeftAndMain.Menu.js @@ -27,11 +27,6 @@ onmatch: function() { var self = this; - // TODO Fix icon etc. - // this.children('li').each(function() { - // $(this).find('a:first').append('o'); - // }); - $('.cms-container').bind('afterstatechange', function(e, data) { var controller = data.xhr.getResponseHeader('X-Controller'); if(controller) { diff --git a/admin/scss/_menu.scss b/admin/scss/_menu.scss index 951c4c5e7..9f0688e8b 100644 --- a/admin/scss/_menu.scss +++ b/admin/scss/_menu.scss @@ -117,7 +117,11 @@ display: block; } } - + + ul { + display: none; + } + &.current { a { color: $color-text-light; @@ -174,7 +178,7 @@ } } } - + &.collapsed { li .text { display: none; diff --git a/admin/templates/Includes/LeftAndMain_Menu.ss b/admin/templates/Includes/LeftAndMain_Menu.ss index e02e3320e..0e355d9ee 100644 --- a/admin/templates/Includes/LeftAndMain_Menu.ss +++ b/admin/templates/Includes/LeftAndMain_Menu.ss @@ -24,14 +24,13 @@