Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 1a3569b9

Von Sven Schöling vor etwa 12 Jahren hinzugefügt

  • ID 1a3569b9a81d6b9ca88941793926327051506122
  • Vorgänger fdd40c9d
  • Nachfolger 7adc5519

img -> css scaling, muss aber noch gefixt werden

Unterschiede anzeigen:

templates/webpages/menu/menu.html
2 2
<style type='text/css'>
3 3
  #html-menu { float:left; white-space: nowrap; }
4 4
  #html-menu tr { vertical-align: top; }
5
  #html-menu img { vertical-align: middle; }
6 5
  #html-menu div.menuitem { padding: 2px 4px 1px 4px; }
7 6
  #html-menu div.submenu { font-weight: bold }
8
  #html-menu img { visibility:hidden; border: 0 }
7
  #html-menu img { vertical-align: middle; visibility:hidden; border: 0; }
9 8
  #html-menu div.menuitem:first-child img { visibility:visible }
10 9
  #html-menu a { vertical-align: top }
11 10
</style>
......
18 17
 [%- FOREACH chunk IN item.chunks %]
19 18
     <div class='menuitem [% item.class %] hover'>[% item.spacer %]
20 19
     [%- IF item.href %]
21
       [% L.link(item.href, item.img _ chunk, target=item.target) %]
20
       [% L.link(item.href, L.html_tag('img', undef, item.img) _ chunk, target=item.target) %]
22 21
     [%- ELSE %]
23
       [% item.img _ chunk %]
22
       [% L.html_tag('img', undef, item.img) _ chunk %]
24 23
     [%- END %]
25 24
     </div>
26 25
 [%- END %]

Auch abrufbar als: Unified diff