From: Sven Schöling Date: Mon, 3 Sep 2012 16:54:22 +0000 (+0200) Subject: Menü gefixt und richtig gestyled X-Git-Tag: release-3.0.0beta1~206 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=345731a4ff5c1f84b755be776027ddd0407a97fa;p=kivitendo-erp.git Menü gefixt und richtig gestyled --- diff --git a/bin/mozilla/menu.pl b/bin/mozilla/menu.pl index 8536c26ca..eb717077e 100644 --- a/bin/mozilla/menu.pl +++ b/bin/mozilla/menu.pl @@ -128,7 +128,6 @@ sub section_menu { if (!$level) { # toplevel push @items, make_item( - href => '#', img => make_image(icon => $item . '.png', size => 24, label => $label), label => $label, height => 24, diff --git a/css/lx-office-erp/menu.css b/css/lx-office-erp/menu.css index 1c34f5bd8..67c314fc7 100644 --- a/css/lx-office-erp/menu.css +++ b/css/lx-office-erp/menu.css @@ -300,4 +300,6 @@ div#menuv4 li li li li:hover ul #html-menu a { vertical-align: top } #html-menu .item span.menu-spacer { display: inline-block; width: 24px } #html-menu .menu span.menu-spacer { display: inline-block; width: 32px } +#html-menu div.menu div.menuitemchunk { color:blue;} +#html-menu div.menu div.menuitemchunk:hover { color:blue; background-color: lemonchiffon; cursor: pointer; } diff --git a/templates/webpages/menu/menu.html b/templates/webpages/menu/menu.html index e7d710c76..87a81a9af 100644 --- a/templates/webpages/menu/menu.html +++ b/templates/webpages/menu/menu.html @@ -4,18 +4,31 @@
[% INCLUDE sections %]
+ [%- BLOCK sections %] [%- FOREACH item IN sections %] @@ -24,24 +37,8 @@ [%- BLOCK item %] [% item.spacer %] [%- IF item.href %] - [% L.link(item.href, L.html_tag('span', L.html_tag('img', undef, item.img), class='menu-spacer') _ chunk, target=item.target) %] + [% L.link(item.href, L.html_tag('span', L.img_tag(item.img), class='menu-spacer') _ chunk, class='menu-link', target=item.target) %] [%- ELSE %] - [% L.html_tag('img', undef, item.img) _ chunk %] + [% L.img_tag(item.img) _ chunk %] [%- END %] [%- END %] - - - - - -