<div>
{hascontent}
<aside class="sidebar collapsibleMenu">
- {content}
- {* work-around for unknown core-object during WCFSetup *}
- {if PACKAGE_ID}
- {foreach from=$__wcf->getACPMenu()->getMenuItems('') item=_parentMenuItem}
- <div id="{$_parentMenuItem->menuItem}-container" style="display: none;" class="menuGroup collapsibleMenus" data-parent-menu-item="{$_parentMenuItem->menuItem}">
- {foreach from=$__wcf->getACPMenu()->getMenuItems($_parentMenuItem->menuItem) item=_menuItem}
- <fieldset>
- <legend class="menuHeader" data-menu-item="{$_menuItem->menuItem}">{lang}{@$_menuItem->menuItem}{/lang}</legend>
-
- <nav class="menuGroupItems">
- <ul id="{$_menuItem->menuItem}">
- {foreach from=$__wcf->getACPMenu()->getMenuItems($_menuItem->menuItem) item=menuItemCategory}
- {if $__wcf->getACPMenu()->getMenuItems($menuItemCategory->menuItem)|count > 0}
- {foreach from=$__wcf->getACPMenu()->getMenuItems($menuItemCategory->menuItem) item=subMenuItem}
- <li id="{$subMenuItem->menuItem}" data-menu-item="{$subMenuItem->menuItem}"><a href="{$subMenuItem->getLink()}">{lang}{$subMenuItem->menuItem}{/lang}</a></li>
- {/foreach}
- {else}
- <li id="{$menuItemCategory->menuItem}" data-menu-item="{$menuItemCategory->menuItem}"><a href="{$menuItemCategory->getLink()}">{lang}{$menuItemCategory->menuItem}{/lang}</a></li>
- {/if}
- {/foreach}
- </ul>
- </nav>
- </fieldset>
- {/foreach}
- </div>
- {/foreach}
- {/if}
- {/content}
+ <div>
+ {content}
+ {* work-around for unknown core-object during WCFSetup *}
+ {if PACKAGE_ID}
+ {foreach from=$__wcf->getACPMenu()->getMenuItems('') item=_parentMenuItem}
+ <div id="{$_parentMenuItem->menuItem}-container" style="display: none;" class="menuGroup collapsibleMenus" data-parent-menu-item="{$_parentMenuItem->menuItem}">
+ {foreach from=$__wcf->getACPMenu()->getMenuItems($_parentMenuItem->menuItem) item=_menuItem}
+ <fieldset>
+ <legend class="menuHeader" data-menu-item="{$_menuItem->menuItem}">{lang}{@$_menuItem->menuItem}{/lang}</legend>
+
+ <nav class="menuGroupItems">
+ <ul id="{$_menuItem->menuItem}">
+ {foreach from=$__wcf->getACPMenu()->getMenuItems($_menuItem->menuItem) item=menuItemCategory}
+ {if $__wcf->getACPMenu()->getMenuItems($menuItemCategory->menuItem)|count > 0}
+ {foreach from=$__wcf->getACPMenu()->getMenuItems($menuItemCategory->menuItem) item=subMenuItem}
+ <li id="{$subMenuItem->menuItem}" data-menu-item="{$subMenuItem->menuItem}"><a href="{$subMenuItem->getLink()}">{lang}{$subMenuItem->menuItem}{/lang}</a></li>
+ {/foreach}
+ {else}
+ <li id="{$menuItemCategory->menuItem}" data-menu-item="{$menuItemCategory->menuItem}"><a href="{$menuItemCategory->getLink()}">{lang}{$menuItemCategory->menuItem}{/lang}</a></li>
+ {/if}
+ {/foreach}
+ </ul>
+ </nav>
+ </fieldset>
+ {/foreach}
+ </div>
+ {/foreach}
+ {/if}
+ {/content}
+ </div>
</aside>
{/hascontent}
width: 300px;
z-index: 120;
+ .transition(width, .2s, ease);
+
> .collapsibleButton {
background-color: @wcfSidebarBackgroundColor;
background-image: url('../icon/arrowRightColored.svg');
position: absolute;
top: 0;
width: 24px;
+
+ .transition(left, .2s, ease);
+ }
+
+ > div {
+ overflow: hidden;
}
}
min-height: 100px;
padding: @wcfGapSmall @wcfGapLarge * 2 - @wcfGapTiny @wcfGapLarge;
z-index: 130;
+
+ .transition(margin, .2s, ease);
}
}
}
> .sidebar {
- width: 20px;
-
- > div,
- > fieldset {
- display: none;
- }
+ width: 0;
> .collapsibleButton {
background-image: url('../icon/arrowLeftColored.svg');
+ left: -40px;
}
}
}
}
/* ### sidebar ### */
-.sidebar > fieldset:not(:last-child), .sidebar > div:not(:last-child) {
+.sidebar > div > fieldset:not(:last-child), .sidebar > div > div:not(:last-child) {
border-bottom: 1px solid @wcfContainerBorderColor;
margin-bottom: @wcfGapMedium;
}
-.sidebar.collapsibleMenu > fieldset, .sidebar.collapsibleMenu > div {
+.sidebar.collapsibleMenu > div > fieldset, .sidebar.collapsibleMenu > div > div {
border-bottom-width: 0;
}
}
&:hover:not(.active) {
- background-color: @wcfContainerHoverBackgroundColor;
+ > a {
+ color: @wcfLinkHoverColor;
+ }
}
> a {
display: block;
padding: @wcfGapTiny @wcfGapMedium @wcfGapSmall @wcfGapLarge;
+ .textShadow(@wcfSidebarBackgroundColor);
+
&:hover {
text-decoration: none;
}
}
}
- > div {
+ > div,
+ > ul,
+ > dl {
width: 300px - @wcfGapMedium * 2;
}
}
.formSubmit {
margin-bottom: @wcfGapMedium;
margin-top: 0;
+ width: 300px;
}
&.collapsibleMenu {