/* ### dropdown ### */
#spDropdown { display: inline-block; float: none; position: relative; visibility: visible; z-index: 10; }
+/* ### user menu ### */
+#spUserMenu { position: relative; margin-bottom: 40px; }
+#spUserMenu a, #spUserMenu a:hover { color: var(--color) !important; }
+
/* ### footer box ### */
#spFooterBox > .spBoundary { display: flex; justify-content: space-between; padding: 15px 0; }
#spFooterBox .spFooterBoxItem { flex: 0 0 auto; width: calc(50% - 15px); /* work-around for IE which does not support calc() for flex-basis */ }
<li><a>Sed diam nonumy</a></li>
</ul>
</div>
+
+ <div class="spHeadline">User Menu</div>
+
+ <div class="userMenu" id="spUserMenu" data-region="wcfUserMenu">
+ <div class="userMenuHeader">
+ <div class="userMenuTitle">Lorem Ipsum</div>
+ <div class="userMenuButtons">
+ <a class="userMenuButton"><span class="icon icon24 fa-cog"></span></a>
+ </div>
+ </div>
+ <div class="userMenuContent">
+ <div class="userMenuItem" data-is-unread="true">
+ <div class="userMenuItemImage">
+ <span class="icon icon48 fa-user"></span>
+ </div>
+ <div class="userMenuItemContent">
+ <a class="userMenuItemLink">
+ Dolor Sit Amet
+ </a>
+ </div>
+ <div class="userMenuItemMeta">
+ Consetetur Sadipscing
+ </div>
+ <div class="userMenuItemUnread">
+ <a class="userMenuItemMarkAsRead">
+ <span class="icon icon24 fa-check"></span>
+ </a>
+ </div>
+ </div>
+ </div>
+ <div class="userMenuFooter">
+ <a class="userMenuFooterLink">Sed diam nonumy</a>
+ </div>
+ </div>
<div class="spHeadline">Status</div>
<div class="spSidebarBox" data-category="apiVersion" style="display: none;">
<p><sup class="spApiVersion">3.1</sup> <small>{lang version='3.1'}wcf.acp.style.colors.description.apiVersion{/lang}</small></p>
<p><sup class="spApiVersion">5.2</sup> <small>{lang version='5.2'}wcf.acp.style.colors.description.apiVersion{/lang}</small></p>
+ <p><sup class="spApiVersion">5.5</sup> <small>{lang version='5.5'}wcf.acp.style.colors.description.apiVersion{/lang}</small></p>
</div>
</div>
</div>
'wcfDropdownLink': '#spDropdown li a { color: VALUE; }',
'wcfDropdownBackgroundActive': '#spDropdown li.active > a, #spDropdown li a:hover { background-color: VALUE; }',
'wcfDropdownLinkActive': '#spDropdown li.active > a, #spDropdown li a:hover { color: VALUE; }',
+ 'wcfUserMenuBackground': '#spUserMenu { --background-color: VALUE; }',
+ 'wcfUserMenuBackgroundActive': '#spUserMenu { --background-color-active: VALUE; }',
+ 'wcfUserMenuBorder': '#spUserMenu { --border-color: VALUE; }',
+ 'wcfUserMenuIndicator': '#spUserMenu { --color-indicator: VALUE; }',
+ 'wcfUserMenuText': '#spUserMenu { --color: VALUE; }',
+ 'wcfUserMenuTextDimmed': '#spUserMenu { --color-dimmed: VALUE; }',
'wcfFooterBoxBackground': '#spFooterBox { background-color: VALUE; }',
'wcfFooterBoxText': '#spFooterBox { color: VALUE; }',
'wcfFooterBoxLink': '#spFooterBox a { color: VALUE; }',
'wcfStatusErrorBorder': '#spStatusError { border-color: VALUE; }',
'wcfStatusErrorText': '#spStatusError { color: VALUE; }',
'wcfStatusErrorLink': '#spStatusError a { color: VALUE; }',
- 'wcfStatusErrorLinkActive': '#spStatusError a:hover { color: VALUE; }'
+ 'wcfStatusErrorLinkActive': '#spStatusError a:hover { color: VALUE; }',
};
</script>
// 5.2
'wcfEditorTableBorder' => '5.2',
+
+ // 5.5
+ 'wcfUserMenuBackground' => '5.5',
+ 'wcfUserMenuBackgroundActive' => '5.5',
+ 'wcfUserMenuText' => '5.5',
+ 'wcfUserMenuDimmedText' => '5.5',
+ 'wcfUserMenuIndicator' => '5.5',
+ 'wcfUserMenuBorder' => '5.5',
];
/**
'3.0' => '3.0',
'3.1' => '3.1',
'5.2' => '5.2, 5.3, 5.4',
+ '5.5' => '5.5',
];
/**
'wcfButton' => ['wcfButton', 'wcfButtonPrimary', 'wcfButtonDisabled'],
'wcfEditor' => ['wcfEditorButton', 'wcfEditorTable'],
'wcfDropdown' => 'wcfDropdown',
+ 'wcfUserMenu' => 'wcfUserMenu',
'wcfStatus' => ['wcfStatusInfo', 'wcfStatusSuccess', 'wcfStatusWarning', 'wcfStatusError'],
'wcfFooterBox' => ['wcfFooterBox', 'wcfFooterBoxHeadline'],
'wcfFooter' => ['wcfFooter', 'wcfFooterHeadline', 'wcfFooterCopyright'],
'wcfEditorButton' => ['background', 'backgroundActive', 'text', 'textActive', 'textDisabled'],
'wcfEditorTable' => ['border'],
'wcfDropdown' => ['background', 'borderInner', 'text', 'link', 'backgroundActive', 'linkActive'],
+ 'wcfUserMenu' => ['background', 'text', 'textDimmed', 'backgroundActive', 'indicator', 'border'],
'wcfStatusInfo' => ['background', 'border', 'text', 'link', 'linkActive'],
'wcfStatusSuccess' => ['background', 'border', 'text', 'link', 'linkActive'],
'wcfStatusWarning' => ['background', 'border', 'text', 'link', 'linkActive'],
* list of supported API versions
* @var string[]
*/
- public static $supportedApiVersions = ['3.0', '3.1', '5.2'];
+ public static $supportedApiVersions = ['3.0', '3.1', '5.2', '5.5'];
- const API_VERSION = '5.2';
+ const API_VERSION = '5.5';
const PREVIEW_IMAGE_MAX_HEIGHT = 64;
--background-color-active: #{$wcfUserMenuBackgroundActive};
--border-color: #{$wcfUserMenuBorder};
--color: #{$wcfUserMenuText};
- --color-dimmed: #{$wcfUserMenuDimmedText};
+ --color-dimmed: #{$wcfUserMenuTextDimmed};
--color-indicator: #{$wcfUserMenuIndicator};
background-color: var(--background-color);
border-radius: 5px;
box-shadow: 0 19px 38px rgb(0 0 0 / 30%), 0 15px 12px rgb(0 0 0 / 22%);
+ color: var(--color);
pointer-events: all;
position: absolute;
width: 400px;
}
}
+ .icon {
+ color: inherit;
+ }
+
/* TODO: This is for the old mobile menu only. */
@include screen-xs {
border-radius: 0;
INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfUserMenuBackground', 'rgba(255, 255, 255, 1)');
INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfUserMenuBackgroundActive', 'rgba(239, 239, 239, 1)');
INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfUserMenuText', 'rgba(58, 58, 61, 1)');
-INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfUserMenuDimmedText', 'rgba(108, 108, 108, 1)');
+INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfUserMenuTextDimmed', 'rgba(108, 108, 108, 1)');
INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfUserMenuIndicator', 'rgba(49, 138, 220, 1)');
INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfUserMenuBorder', 'rgb(221, 221, 221, 1)');