-<nav id="topMenu" class="userPanel">
+<nav id="topMenu" class="userPanel{if $__wcf->user->userID} userPanelLoggedIn{/if}">
+ {if $__wcf->user->userID}
+ <span class="userPanelAvatar">{@$__wcf->getUserProfileHandler()->getAvatar()->getImageTag(32)}</span>
+ {/if}
+
<ul class="userPanelItems">
{if $__wcf->user->userID}
<!-- user menu -->
}
}
}
+
+ .userPanelAvatar {
+ display: none;
+ }
}
/* LOGO */
.userPanel {
flex: 0 0 auto;
- &::before {
- content: $fa-var-user;
- }
-
> .userPanelItems {
display: none;
}
+
+ .userPanelAvatar {
+ display: block;
+ padding: 0 5px;
+ }
}
.mainMenu {
.userPanel {
position: relative;
+ &.pageMenuMobileButtonHasContent::after {
+ background-color: rgb(244, 67, 54);
+ border: 2px solid $wcfHeaderBackground;
+ border-radius: 50%;
+ content: "";
+ height: 14px;
+ position: absolute;
+ right: -3px;
+ top: -3px;
+ width: 14px;
+ }
+ }
+
+ .mainMenu,
+ .userPanel:not(.userPanelLoggedIn) {
&::before {
- background-color: $wcfHeaderMenuBackground;
- border-radius: 2px;
color: $wcfHeaderMenuLink;
font-family: FontAwesome;
font-size: 28px;
line-height: 32px;
- padding: 5px 10px;
+ padding: 5px 5px;
}
&:hover::before {
- background-color: $wcfHeaderMenuLinkBackgroundActive;
color: $wcfHeaderMenuLinkActive;
}
-
- &.pageMenuMobileButtonHasContent::after {
- background-color: rgb(244, 67, 54);
- border: 2px solid $wcfHeaderBackground;
- border-radius: 50%;
- content: "";
- height: 14px;
- position: absolute;
- right: -5px;
- top: -8px;
- width: 14px;
+ }
+
+ .userPanel:not(.userPanelLoggedIn) {
+ &::before {
+ content: $fa-var-user;
}
}