+++ /dev/null
-.wcfAcpMenu {
- font-size: 13px;
- font-weight: 400;
- padding: 5px;
-}
-
-.wcfAcpMenu.doubleColumned {
- -webkit-columns: 2;
- -moz-columns: 2;
- columns: 2;
-
- /* 11px = 5px + border + 5px */
- -webkit-column-gap: 11px;
- -moz-column-gap: 11px;
- column-gap: 11px;
-
- -webkit-column-rule: 1px solid rgb(238, 238, 238);
- -moz-column-rule: 1px solid rgb(238, 238, 238);
- column-rule: 1px solid rgb(238, 238, 238);
-}
-
-.wcfAcpMenu.doubleColumned > li {
- -webkit-column-break-inside: avoid;
- page-break-inside: avoid;
- break-inside: avoid;
-}
-
-.wcfAcpMenu > li {
- min-width: 250px;
-}
-
-.wcfAcpMenu > li:not(:first-child) {
- border-top: 1px solid rgb(238, 238, 238);
-}
-
-.wcfAcpMenu > li > span {
- background-color: rgb(236, 240, 241);
- color: rgb(127, 140, 141);
- font-size: 11px;
- display: block;
- padding: 10px;
- text-transform: uppercase;
-}
-
-.menuItemList > li > a {
- color: rgb(54, 54, 54);
- display: block;
- font-size: 13px;
- padding: 10px 20px;
- white-space: nowrap;
-}
-
-.menuItemList > li > a:hover {
- background-color: rgb(66, 129, 244);
- color: #fff;
- text-decoration: none;
-}
-
-.menuItemList > li.active > a {
- background-color: rgb(217, 237, 247);
-}
-
-.menuItemWrapper {
- display: flex;
-}
-
-.menuItemWrapper:hover > a,
-.menuItemWrapper > .active {
- background-color: rgb(217, 237, 247);
-}
-
-.menuItemWrapper > a {
- color: rgb(54, 54, 54);
- display: block;
- flex: 0 auto;
- padding: 10px;
- white-space: nowrap;
-}
-
-.menuItemWrapper > a:first-child {
- flex: 1 auto;
- padding: 10px 20px;
-}
-
-.menuItemWrapper > a > .icon {
- color: rgb(54, 54, 54);
- opacity: .6;
-}
-
-.menuItemList .menuItemWrapper > a:hover {
- background-color: rgb(66, 129, 244);
- color: #fff;
- text-decoration: none;
-}
-
-.menuItemList .menuItemWrapper > a:hover > .icon {
- color: #fff;
- opacity: 1;
-}
--- /dev/null
+.wcfAcpMenu {
+ &.doubleColumned {
+ -webkit-columns: 2;
+ -moz-columns: 2;
+ columns: 2;
+
+ -webkit-column-gap: 1px;
+ -moz-column-gap: 1px;
+ column-gap: 1px;
+
+ -webkit-column-rule: 1px solid $wcfContentBorderInner;
+ -moz-column-rule: 1px solid $wcfContentBorderInner;
+ column-rule: 1px solid $wcfContentBorderInner;
+
+ > li {
+ -webkit-column-break-inside: avoid;
+ page-break-inside: avoid;
+ break-inside: avoid;
+ }
+ }
+
+ > li {
+ min-width: 250px;
+ }
+}
+
+.boxMenuDepth1 > li > span {
+ color: $wcfTabularBoxHeadline;
+ cursor: default;
+ font-weight: 600 !important;
+
+ @extend .wcfFontBold;
+}
+
+.menuItemWrapper {
+ display: flex;
+
+ &:hover > a,
+ > .active {
+ background-color: $wcfDropdownBackgroundActive;
+ color: $wcfDropdownLinkActive;
+
+ > .icon {
+ color: $wcfDropdownLinkActive;
+ }
+ }
+
+ > a {
+ color: $wcfDropdownLink;
+ display: block;
+ flex: 0 0 auto;
+ padding: 5px 10px;
+ white-space: nowrap;
+
+ @extend .wcfFontDefault;
+
+ &:first-child {
+ flex: 1 1 auto;
+ padding: 5px 20px 5px 40px;
+ }
+ }
+}
<title>{if $pageTitle|isset}{@$pageTitle|language} - {/if}{lang}wcf.global.acp{/lang}{if PACKAGE_ID} - {PAGE_TITLE|language}{/if}</title>
<!-- Stylesheets -->
- <link href='//fonts.googleapis.com/css?family=Open+Sans:400,300,600' rel='stylesheet' type='text/css'>
+ <link href="//fonts.googleapis.com/css?family=Open+Sans:400,300,600" rel="stylesheet">
{@$__wcf->getStyleHandler()->getStylesheet(true)}
- <link href="{@$__wcf->getPath()}acp/style/acpMenu.css" type="text/css" rel="stylesheet">
{event name='stylesheets'}
<!-- Icons -->
<ol class="boxMenu">
{foreach from=$__wcf->getACPMenu()->getMenuItems('') item=_sectionMenuItem}
<li class="boxMenuHasChildren{if $_sectionMenuItem->menuItem|in_array:$_activeMenuItems} active{/if}" data-menu-item="{$_sectionMenuItem->menuItem}">
- <a>{@$_sectionMenuItem}</a>
+ <span>{@$_sectionMenuItem}</span>
{assign var=_menuItemCategories value=$__wcf->getACPMenu()->getMenuItems($_sectionMenuItem->menuItem)}
- <ol class="wcfAcpMenu boxMenuDepth1 subMenu{if $_menuItemCategories|count > 3} doubleColumned {/if}">
+ <ol class="wcfAcpMenu boxMenuDepth1 subMenu{if $_menuItemCategories|count > 3} doubleColumned{/if}">
{foreach from=$_menuItemCategories item=_menuItemCategory}
<li>
<span>{@$_menuItemCategory}</span>
closedir($handle);
}
+
+ $additional = ['mainMenu'];
+ for ($i = 0, $length = count($additional); $i < $length; $i++) {
+ $files[] = WCF_DIR . 'acp/style/' . $additional[$i] . '.scss';
+ }
// TESTING ONLY
//$files = glob(WCF_DIR.'style/*.less');
margin-right: 12px;
}
- > a {
+ > a,
+ > span {
background-color: $wcfHeaderMenuBackground;
color: $wcfHeaderMenuLink;
display: block;
padding: 4px 12px;
}
+ > span {
+ cursor: default;
+ }
+
&.active > a,
- &:hover > a {
+ &:hover > a,
+ &.active > span,
+ &:hover > span {
background-color: $wcfHeaderMenuBackgroundActive;
color: $wcfHeaderMenuLinkActive;
}
}
> a {
- padding-right: 21px;
+ padding-right: 30px;
- &::after {
- content: $fa-var-caret-down;
+ &::before {
+ border-left: 1px solid $wcfHeaderBackground;
+ bottom: 0;
+ content: "";
display: block;
- font-family: FontAwesome;
position: absolute;
- right: 6px;
- top: 3px;
- transition: transform .12s ease-out;
+ right: 22px;
+ top: 0;
}
}
- }
-
- // TESTING
- > .boxMenuHasChildren > a {
- padding-right: 30px;
- &::before {
- border-left: 1px solid $wcfHeaderBackground;
- bottom: 0;
- content: "";
+ > span {
+ padding-right: 21px;
+ }
+
+ > a::after,
+ > span::after {
+ content: $fa-var-caret-down;
display: block;
+ font-family: FontAwesome;
position: absolute;
- right: 22px;
- top: 0;
+ right: 6px;
+ top: 3px;
+ transition: transform .12s ease-out;
}
}
- // TESTING
.boxMenuDepth1 {
background-color: $wcfHeaderMenuDropdownBackground;
> li {
> a {
color: $wcfHeaderMenuDropdownLink;
+ }
+
+ > a,
+ > span {
display: block;
padding: 5px 20px;
white-space: nowrap;
color: $wcfHeaderMenuDropdownLinkActive;
text-decoration: none;
}
+ }
+ }
+
+ .boxMenuDepth2 > li {
+ > a {
+ color: $wcfHeaderMenuDropdownLink;
+ display: block;
+ padding: 5px 20px 5px 40px;
+ white-space: nowrap;
- &.active > a {
- cursor: default;
- }
+ @extend .wcfFontDefault;
+ }
+
+ &.active > a,
+ > a:hover {
+ background-color: $wcfHeaderMenuDropdownBackgroundActive;
+ color: $wcfHeaderMenuDropdownLinkActive;
+ text-decoration: none;
}
}
}