-<ol class="boxMenu forceOpen">
+<ol class="boxMenu">
{foreach from=$categoryList item=categoryItem}
<li{if $activeCategory && $activeCategory->categoryID == $categoryItem->categoryID} class="active"{/if} data-category-id="{@$categoryItem->categoryID}">
<a href="{@$categoryItem->getLink()}" class="boxMenuLink">
_pageMenuMain = new UiPageMenuMain();
_pageMenuUser = new UiPageMenuUser();
}
-
- elBySelAll('.boxMenu:not(.forceOpen)', null, function(boxMenu) {
- boxMenu.addEventListener(WCF_CLICK_EVENT, function(event) {
- event.stopPropagation();
-
- if (event.target === boxMenu) {
- event.preventDefault();
-
- boxMenu.classList.add('open');
- }
- });
- });
},
_closeAllMenus: function() {
- elBySelAll('.jsMobileButtonGroupNavigation.open, .jsMobileNavigation.open, .boxMenu.open', null, function (menu) {
+ elBySelAll('.jsMobileButtonGroupNavigation.open, .jsMobileNavigation.open', null, function (menu) {
menu.classList.remove('open');
});
.boxMenuDepth2 .boxMenuLink {
padding-left: 60px;
}
-
- @include screen-md-down {
- position: relative;
-
- .boxMenuLink,
- .boxMenuLinkTitle {
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
-
- &:not(.open):not(.forceOpen) {
- > li:first-child,
- > li.active:not(:first-child) {
- pointer-events: none;
-
- > a::after {
- content: $fa-var-caret-down;
- font-family: FontAwesome;
- font-size: 14px;
- margin-left: 7px;
- }
-
- .boxMenuDepth1,
- .boxMenuDepth2 {
- position: relative;
-
- > li {
- &:not(.active) {
- display: none;
- }
-
- &.active {
- left: 0;
- position: absolute;
- right: 0;
- top: 0;
- transform: translateY(-100%);
-
- > a::after {
- content: $fa-var-caret-down;
- font-family: FontAwesome;
- font-size: 14px;
- margin-left: 7px;
- }
- }
- }
- }
- }
-
- > li:first-child ~ li {
- display: none;
- }
-
- > li.active:not(:first-child) {
- display: block;
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- }
- }
- }
}
}