Small style optimization
authorMarcel Werk <burntime@woltlab.com>
Tue, 19 Mar 2013 00:44:26 +0000 (01:44 +0100)
committerMarcel Werk <burntime@woltlab.com>
Tue, 19 Mar 2013 00:44:26 +0000 (01:44 +0100)
com.woltlab.wcf/template/mainMenu.tpl
wcfsetup/install/files/acp/templates/header.tpl
wcfsetup/install/files/style/layout.less

index 9e103d46bdb2432614679b6dee779662c3f4d59c..a4f83e41c0b2909185a58b2e1da7b65aa51437a5 100644 (file)
@@ -1,9 +1,5 @@
 {if $__wcf->getPageMenu()->getMenuItems('header')|count > 0}
        <nav id="mainMenu" class="mainMenu">
-               <ul>
-                       {foreach from=$__wcf->getPageMenu()->getMenuItems('header') item=menuItem}
-                               <li{if $__wcf->getPageMenu()->getActiveMenuItem() == $menuItem->menuItem} class="active"{/if}><a href="{$menuItem->getProcessor()->getLink()}">{lang}{$menuItem->menuItem}{/lang}{if $menuItem->getProcessor()->getNotifications()} <span class="badge badgeUpdate">{#$menuItem->getProcessor()->getNotifications()}</span>{/if}</a></li>
-                       {/foreach}
-               </ul>
+               <ul>{foreach from=$__wcf->getPageMenu()->getMenuItems('header') item=menuItem}<li{if $__wcf->getPageMenu()->getActiveMenuItem() == $menuItem->menuItem} class="active"{/if}><a href="{$menuItem->getProcessor()->getLink()}">{lang}{$menuItem->menuItem}{/lang}{if $menuItem->getProcessor()->getNotifications()} <span class="badge badgeUpdate">{#$menuItem->getProcessor()->getNotifications()}</span>{/if}</a></li>{/foreach}</ul>
        </nav>
 {/if}
index 828c71eb31e3bf1727fc4113d4e9ab01c58b31cb..34a17bb6e67edade95187ca61c818cfd9c183f4b 100644 (file)
                        {if PACKAGE_ID}
                                {hascontent}
                                        <nav id="mainMenu" class="mainMenu">
-                                               <ul>
-                                                       {content}
-                                                               {foreach from=$__wcf->getACPMenu()->getMenuItems('') item=_menuItem}
-                                                                       <li data-menu-item="{$_menuItem->menuItem}"><a>{lang}{@$_menuItem->menuItem}{/lang}</a></li>
-                                                               {/foreach}
-                                                       {/content}
-                                               </ul>
+                                               <ul>{content}{foreach from=$__wcf->getACPMenu()->getMenuItems('') item=_menuItem}<li data-menu-item="{$_menuItem->menuItem}"><a>{lang}{@$_menuItem->menuItem}{/lang}</a></li>{/foreach}{/content}</ul>
                                        </nav>
                                {/hascontent}
                        {/if}
index 2590a6baf882f86808f4f29157b615ee7dff6f69..2141cd6b2e6ebb66b30b95e26f7885f076f66cd8 100644 (file)
        > ul {
                background-color: @wcfMainMenuBackgroundColor;
                display: inline-block;
-               letter-spacing: -4px;
                
                > li {
                        display: inline-block;
                        font-size: @wcfTitleFontSize;
                        margin-top: -7px;
-                       letter-spacing: normal;
                        vertical-align: bottom;
                        
                        > a {